gdb/
[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 GDB_NM_FILE
595 frags
596 target_subdir
597 CONFIG_UNINSTALL
598 CONFIG_INSTALL
599 CONFIG_CLEAN
600 CONFIG_ALL
601 CONFIG_SRCS
602 CONFIG_DEPS
603 CONFIG_OBS
604 PROFILE_CFLAGS
605 ENABLE_CFLAGS
606 SIM_OBS
607 SIM
608 XMKMF
609 GDBTK_SRC_DIR
610 GDBTK_CFLAGS
611 GDBTKLIBS
612 X_LIBS
613 X_LDFLAGS
614 X_CFLAGS
615 TK_XINCLUDES
616 TK_DEPS
617 TK_LIBRARY
618 TK_INCLUDE
619 TK_STUB_LIB_SPEC
620 TK_STUB_LIB_FLAG
621 TK_STUB_LIB_FILE
622 TK_LIB_SPEC
623 TK_LIB_FLAG
624 TK_LIB_FILE
625 TK_SRC_DIR
626 TK_BIN_DIR
627 TK_VERSION
628 TCL_DEPS
629 TCL_LIBRARY
630 TCL_INCLUDE
631 TCL_STUB_LIB_SPEC
632 TCL_STUB_LIB_FLAG
633 TCL_STUB_LIB_FILE
634 TCL_LIB_SPEC
635 TCL_LIB_FLAG
636 TCL_LIB_FILE
637 TCL_SRC_DIR
638 TCL_BIN_DIR
639 TCL_PATCH_LEVEL
640 TCL_VERSION
641 WIN32LDAPP
642 GUI_CFLAGS_X
643 LIBGUI
644 WIN32LIBS
645 SER_HARDWIRE
646 WERROR_CFLAGS
647 WARN_CFLAGS
648 SYSTEM_GDBINIT
649 TARGET_SYSTEM_ROOT
650 CONFIG_LDFLAGS
651 RDYNAMIC
652 ALLOCA
653 PYTHON_LIBS
654 PYTHON_CPPFLAGS
655 PYTHON_CFLAGS
656 python_prog_path
657 LTLIBEXPAT
658 LIBEXPAT
659 HAVE_LIBEXPAT
660 JIT_READER_DIR
661 TARGET_PTR
662 READLINE_TEXI_INCFLAG
663 READLINE_CFLAGS
664 READLINE_DEPS
665 READLINE
666 MIG
667 WINDRES
668 DLLTOOL
669 AR
670 YFLAGS
671 YACC
672 RANLIB
673 LN_S
674 INSTALL_DATA
675 INSTALL_SCRIPT
676 INSTALL_PROGRAM
677 AWK
678 REPORT_BUGS_TEXI
679 REPORT_BUGS_TO
680 PKGVERSION
681 TARGET_OBS
682 subdirs
683 GDB_DATADIR
684 DEBUGDIR
685 MAKEINFO_EXTRA_FLAGS
686 MAKEINFOFLAGS
687 MAKEINFO
688 PACKAGE
689 GNULIB_STDINT_H
690 CATOBJEXT
691 GENCAT
692 INSTOBJEXT
693 DATADIRNAME
694 CATALOGS
695 POSUB
696 GMSGFMT
697 XGETTEXT
698 INCINTL
699 LIBINTL_DEP
700 LIBINTL
701 USE_NLS
702 SET_MAKE
703 GMAKE_FALSE
704 GMAKE_TRUE
705 MAKE
706 CCDEPMODE
707 DEPDIR
708 am__leading_dot
709 target_os
710 target_vendor
711 target_cpu
712 target
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 EGREP
722 GREP
723 CPP
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 MAINT
732 MAINTAINER_MODE_FALSE
733 MAINTAINER_MODE_TRUE
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files='host_makefile_frag'
773 ac_user_opts='
774 enable_option_checking
775 enable_maintainer_mode
776 enable_plugins
777 enable_largefile
778 with_separate_debug_dir
779 with_gdb_datadir
780 with_relocated_sources
781 with_auto_load_safe_path
782 enable_targets
783 enable_64_bit_bfd
784 enable_gdbcli
785 enable_gdbmi
786 enable_tui
787 enable_gdbtk
788 with_libunwind_ia64
789 with_curses
790 enable_profiling
791 with_pkgversion
792 with_bugurl
793 with_zlib
794 with_libiconv_prefix
795 with_iconv_bin
796 with_system_readline
797 with_jit_reader_dir
798 with_expat
799 with_gnu_ld
800 enable_rpath
801 with_libexpat_prefix
802 with_python
803 with_included_regex
804 with_sysroot
805 with_system_gdbinit
806 enable_werror
807 enable_build_warnings
808 enable_gdb_build_warnings
809 with_tcl
810 with_tk
811 with_x
812 enable_sim
813 enable_multi_ice
814 enable_gdbserver
815 '
816       ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CC
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
824 CPP
825 MAKEINFO
826 MAKEINFOFLAGS
827 YACC
828 YFLAGS
829 XMKMF'
830 ac_subdirs_all='testsuite
831 gdbtk
832 multi-ice
833 gdbserver'
834
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 ac_unrecognized_opts=
839 ac_unrecognized_sep=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
856
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
882
883 ac_prev=
884 ac_dashdash=
885 for ac_option
886 do
887   # If the previous option needs an argument, assign it.
888   if test -n "$ac_prev"; then
889     eval $ac_prev=\$ac_option
890     ac_prev=
891     continue
892   fi
893
894   case $ac_option in
895   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896   *)    ac_optarg=yes ;;
897   esac
898
899   # Accept the important Cygnus configure options, so we can diagnose typos.
900
901   case $ac_dashdash$ac_option in
902   --)
903     ac_dashdash=yes ;;
904
905   -bindir | --bindir | --bindi | --bind | --bin | --bi)
906     ac_prev=bindir ;;
907   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908     bindir=$ac_optarg ;;
909
910   -build | --build | --buil | --bui | --bu)
911     ac_prev=build_alias ;;
912   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913     build_alias=$ac_optarg ;;
914
915   -cache-file | --cache-file | --cache-fil | --cache-fi \
916   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917     ac_prev=cache_file ;;
918   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920     cache_file=$ac_optarg ;;
921
922   --config-cache | -C)
923     cache_file=config.cache ;;
924
925   -datadir | --datadir | --datadi | --datad)
926     ac_prev=datadir ;;
927   -datadir=* | --datadir=* | --datadi=* | --datad=*)
928     datadir=$ac_optarg ;;
929
930   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931   | --dataroo | --dataro | --datar)
932     ac_prev=datarootdir ;;
933   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935     datarootdir=$ac_optarg ;;
936
937   -disable-* | --disable-*)
938     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941       as_fn_error "invalid feature name: $ac_useropt"
942     ac_useropt_orig=$ac_useropt
943     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944     case $ac_user_opts in
945       *"
946 "enable_$ac_useropt"
947 "*) ;;
948       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949          ac_unrecognized_sep=', ';;
950     esac
951     eval enable_$ac_useropt=no ;;
952
953   -docdir | --docdir | --docdi | --doc | --do)
954     ac_prev=docdir ;;
955   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956     docdir=$ac_optarg ;;
957
958   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959     ac_prev=dvidir ;;
960   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961     dvidir=$ac_optarg ;;
962
963   -enable-* | --enable-*)
964     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965     # Reject names that are not valid shell variable names.
966     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967       as_fn_error "invalid feature name: $ac_useropt"
968     ac_useropt_orig=$ac_useropt
969     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970     case $ac_user_opts in
971       *"
972 "enable_$ac_useropt"
973 "*) ;;
974       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975          ac_unrecognized_sep=', ';;
976     esac
977     eval enable_$ac_useropt=\$ac_optarg ;;
978
979   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981   | --exec | --exe | --ex)
982     ac_prev=exec_prefix ;;
983   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985   | --exec=* | --exe=* | --ex=*)
986     exec_prefix=$ac_optarg ;;
987
988   -gas | --gas | --ga | --g)
989     # Obsolete; use --with-gas.
990     with_gas=yes ;;
991
992   -help | --help | --hel | --he | -h)
993     ac_init_help=long ;;
994   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995     ac_init_help=recursive ;;
996   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997     ac_init_help=short ;;
998
999   -host | --host | --hos | --ho)
1000     ac_prev=host_alias ;;
1001   -host=* | --host=* | --hos=* | --ho=*)
1002     host_alias=$ac_optarg ;;
1003
1004   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005     ac_prev=htmldir ;;
1006   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007   | --ht=*)
1008     htmldir=$ac_optarg ;;
1009
1010   -includedir | --includedir | --includedi | --included | --include \
1011   | --includ | --inclu | --incl | --inc)
1012     ac_prev=includedir ;;
1013   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014   | --includ=* | --inclu=* | --incl=* | --inc=*)
1015     includedir=$ac_optarg ;;
1016
1017   -infodir | --infodir | --infodi | --infod | --info | --inf)
1018     ac_prev=infodir ;;
1019   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020     infodir=$ac_optarg ;;
1021
1022   -libdir | --libdir | --libdi | --libd)
1023     ac_prev=libdir ;;
1024   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025     libdir=$ac_optarg ;;
1026
1027   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028   | --libexe | --libex | --libe)
1029     ac_prev=libexecdir ;;
1030   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031   | --libexe=* | --libex=* | --libe=*)
1032     libexecdir=$ac_optarg ;;
1033
1034   -localedir | --localedir | --localedi | --localed | --locale)
1035     ac_prev=localedir ;;
1036   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037     localedir=$ac_optarg ;;
1038
1039   -localstatedir | --localstatedir | --localstatedi | --localstated \
1040   | --localstate | --localstat | --localsta | --localst | --locals)
1041     ac_prev=localstatedir ;;
1042   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044     localstatedir=$ac_optarg ;;
1045
1046   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047     ac_prev=mandir ;;
1048   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049     mandir=$ac_optarg ;;
1050
1051   -nfp | --nfp | --nf)
1052     # Obsolete; use --without-fp.
1053     with_fp=no ;;
1054
1055   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056   | --no-cr | --no-c | -n)
1057     no_create=yes ;;
1058
1059   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061     no_recursion=yes ;;
1062
1063   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065   | --oldin | --oldi | --old | --ol | --o)
1066     ac_prev=oldincludedir ;;
1067   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070     oldincludedir=$ac_optarg ;;
1071
1072   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073     ac_prev=prefix ;;
1074   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075     prefix=$ac_optarg ;;
1076
1077   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078   | --program-pre | --program-pr | --program-p)
1079     ac_prev=program_prefix ;;
1080   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082     program_prefix=$ac_optarg ;;
1083
1084   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085   | --program-suf | --program-su | --program-s)
1086     ac_prev=program_suffix ;;
1087   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089     program_suffix=$ac_optarg ;;
1090
1091   -program-transform-name | --program-transform-name \
1092   | --program-transform-nam | --program-transform-na \
1093   | --program-transform-n | --program-transform- \
1094   | --program-transform | --program-transfor \
1095   | --program-transfo | --program-transf \
1096   | --program-trans | --program-tran \
1097   | --progr-tra | --program-tr | --program-t)
1098     ac_prev=program_transform_name ;;
1099   -program-transform-name=* | --program-transform-name=* \
1100   | --program-transform-nam=* | --program-transform-na=* \
1101   | --program-transform-n=* | --program-transform-=* \
1102   | --program-transform=* | --program-transfor=* \
1103   | --program-transfo=* | --program-transf=* \
1104   | --program-trans=* | --program-tran=* \
1105   | --progr-tra=* | --program-tr=* | --program-t=*)
1106     program_transform_name=$ac_optarg ;;
1107
1108   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109     ac_prev=pdfdir ;;
1110   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111     pdfdir=$ac_optarg ;;
1112
1113   -psdir | --psdir | --psdi | --psd | --ps)
1114     ac_prev=psdir ;;
1115   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116     psdir=$ac_optarg ;;
1117
1118   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119   | -silent | --silent | --silen | --sile | --sil)
1120     silent=yes ;;
1121
1122   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123     ac_prev=sbindir ;;
1124   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125   | --sbi=* | --sb=*)
1126     sbindir=$ac_optarg ;;
1127
1128   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130   | --sharedst | --shareds | --shared | --share | --shar \
1131   | --sha | --sh)
1132     ac_prev=sharedstatedir ;;
1133   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136   | --sha=* | --sh=*)
1137     sharedstatedir=$ac_optarg ;;
1138
1139   -site | --site | --sit)
1140     ac_prev=site ;;
1141   -site=* | --site=* | --sit=*)
1142     site=$ac_optarg ;;
1143
1144   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145     ac_prev=srcdir ;;
1146   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147     srcdir=$ac_optarg ;;
1148
1149   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150   | --syscon | --sysco | --sysc | --sys | --sy)
1151     ac_prev=sysconfdir ;;
1152   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154     sysconfdir=$ac_optarg ;;
1155
1156   -target | --target | --targe | --targ | --tar | --ta | --t)
1157     ac_prev=target_alias ;;
1158   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159     target_alias=$ac_optarg ;;
1160
1161   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162     verbose=yes ;;
1163
1164   -version | --version | --versio | --versi | --vers | -V)
1165     ac_init_version=: ;;
1166
1167   -with-* | --with-*)
1168     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169     # Reject names that are not valid shell variable names.
1170     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171       as_fn_error "invalid package name: $ac_useropt"
1172     ac_useropt_orig=$ac_useropt
1173     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174     case $ac_user_opts in
1175       *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179          ac_unrecognized_sep=', ';;
1180     esac
1181     eval with_$ac_useropt=\$ac_optarg ;;
1182
1183   -without-* | --without-*)
1184     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185     # Reject names that are not valid shell variable names.
1186     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187       as_fn_error "invalid package name: $ac_useropt"
1188     ac_useropt_orig=$ac_useropt
1189     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190     case $ac_user_opts in
1191       *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195          ac_unrecognized_sep=', ';;
1196     esac
1197     eval with_$ac_useropt=no ;;
1198
1199   --x)
1200     # Obsolete; use --with-x.
1201     with_x=yes ;;
1202
1203   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204   | --x-incl | --x-inc | --x-in | --x-i)
1205     ac_prev=x_includes ;;
1206   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208     x_includes=$ac_optarg ;;
1209
1210   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212     ac_prev=x_libraries ;;
1213   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215     x_libraries=$ac_optarg ;;
1216
1217   -*) as_fn_error "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information."
1219     ;;
1220
1221   *=*)
1222     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223     # Reject names that are not valid shell variable names.
1224     case $ac_envvar in #(
1225       '' | [0-9]* | *[!_$as_cr_alnum]* )
1226       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1227     esac
1228     eval $ac_envvar=\$ac_optarg
1229     export $ac_envvar ;;
1230
1231   *)
1232     # FIXME: should be removed in autoconf 3.0.
1233     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1237     ;;
1238
1239   esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244   as_fn_error "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248   case $enable_option_checking in
1249     no) ;;
1250     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1251     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252   esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257                 datadir sysconfdir sharedstatedir localstatedir includedir \
1258                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259                 libdir localedir mandir
1260 do
1261   eval ac_val=\$$ac_var
1262   # Remove trailing slashes.
1263   case $ac_val in
1264     */ )
1265       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266       eval $ac_var=\$ac_val;;
1267   esac
1268   # Be sure to have absolute directory names.
1269   case $ac_val in
1270     [\\/$]* | ?:[\\/]* )  continue;;
1271     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272   esac
1273   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285   if test "x$build_alias" = x; then
1286     cross_compiling=maybe
1287     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288     If a cross compiler is detected then cross compile mode will be used." >&2
1289   elif test "x$build_alias" != "x$host_alias"; then
1290     cross_compiling=yes
1291   fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303   as_fn_error "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305   as_fn_error "pwd does not report name of working directory"
1306
1307
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310   ac_srcdir_defaulted=yes
1311   # Try the directory containing this script, then the parent directory.
1312   ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314          X"$as_myself" : 'X\(//\)[^/]' \| \
1315          X"$as_myself" : 'X\(//\)$' \| \
1316          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319             s//\1/
1320             q
1321           }
1322           /^X\(\/\/\)[^/].*/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)$/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\).*/{
1331             s//\1/
1332             q
1333           }
1334           s/.*/./; q'`
1335   srcdir=$ac_confdir
1336   if test ! -r "$srcdir/$ac_unique_file"; then
1337     srcdir=..
1338   fi
1339 else
1340   ac_srcdir_defaulted=no
1341 fi
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1345 fi
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1349         pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352   srcdir=.
1353 fi
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362   eval ac_env_${ac_var}_value=\$${ac_var}
1363   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1366
1367 #
1368 # Report the --help message.
1369 #
1370 if test "$ac_init_help" = "long"; then
1371   # Omit some internal or obsolete options to make the list less imposing.
1372   # This message is too long to be a string in the A/UX 3.1 sh.
1373   cat <<_ACEOF
1374 \`configure' configures this package to adapt to many kinds of systems.
1375
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE.  See below for descriptions of some of the useful variables.
1380
1381 Defaults for the options are specified in brackets.
1382
1383 Configuration:
1384   -h, --help              display this help and exit
1385       --help=short        display options specific to this package
1386       --help=recursive    display the short help of all the included packages
1387   -V, --version           display version information and exit
1388   -q, --quiet, --silent   do not print \`checking...' messages
1389       --cache-file=FILE   cache test results in FILE [disabled]
1390   -C, --config-cache      alias for \`--cache-file=config.cache'
1391   -n, --no-create         do not create output files
1392       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1393
1394 Installation directories:
1395   --prefix=PREFIX         install architecture-independent files in PREFIX
1396                           [$ac_default_prefix]
1397   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1398                           [PREFIX]
1399
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1404
1405 For better control, use the options below.
1406
1407 Fine tuning of the installation directories:
1408   --bindir=DIR            user executables [EPREFIX/bin]
1409   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1410   --libexecdir=DIR        program executables [EPREFIX/libexec]
1411   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1412   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1413   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1414   --libdir=DIR            object code libraries [EPREFIX/lib]
1415   --includedir=DIR        C header files [PREFIX/include]
1416   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1417   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1418   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1419   --infodir=DIR           info documentation [DATAROOTDIR/info]
1420   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1421   --mandir=DIR            man documentation [DATAROOTDIR/man]
1422   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1423   --htmldir=DIR           html documentation [DOCDIR]
1424   --dvidir=DIR            dvi documentation [DOCDIR]
1425   --pdfdir=DIR            pdf documentation [DOCDIR]
1426   --psdir=DIR             ps documentation [DOCDIR]
1427 _ACEOF
1428
1429   cat <<\_ACEOF
1430
1431 Program names:
1432   --program-prefix=PREFIX            prepend PREFIX to installed program names
1433   --program-suffix=SUFFIX            append SUFFIX to installed program names
1434   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1435
1436 X features:
1437   --x-includes=DIR    X include files are in DIR
1438   --x-libraries=DIR   X library files are in DIR
1439
1440 System types:
1441   --build=BUILD     configure for building on BUILD [guessed]
1442   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1443   --target=TARGET   configure for building compilers for TARGET [HOST]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448
1449   cat <<\_ACEOF
1450
1451 Optional Features:
1452   --disable-option-checking  ignore unrecognized --enable/--with options
1453   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455   --enable-maintainer-mode  enable make rules and dependencies not useful
1456                           (and sometimes confusing) to the casual installer
1457   --enable-plugins        Enable support for plugins (defaults no)
1458   --disable-largefile     omit support for large files
1459   --enable-targets=TARGETS
1460                           alternative target configurations
1461   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1462   --disable-gdbcli        disable command-line interface (CLI)
1463   --disable-gdbmi         disable machine-interface (MI)
1464   --enable-tui            enable full-screen terminal user interface (TUI)
1465   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1466   --enable-profiling      enable profiling of GDB
1467   --disable-rpath         do not hardcode runtime library paths
1468   --enable-werror         treat compile warnings as errors
1469   --enable-build-warnings enable build-time compiler warnings if gcc is used
1470   --enable-gdb-build-warnings
1471                           enable GDB specific build-time compiler warnings if
1472                           gcc is used
1473   --enable-sim            link gdb with simulator
1474   --enable-multi-ice      build the multi-ice-gdb-server
1475   --enable-gdbserver      automatically build gdbserver (yes/no/auto, default
1476                           is auto)
1477
1478 Optional Packages:
1479   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481   --with-separate-debug-dir=PATH
1482                           look for global separate debug info in this path
1483                           [LIBDIR/debug]
1484   --with-gdb-datadir=PATH look for global separate data files in this path
1485                           [DATADIR/gdb]
1486   --with-relocated-sources=PATH
1487                           automatically relocate this path for source files
1488   --with-auto-load-safe-path=PATH
1489                           directories safe to hold auto-loaded files, use
1490                           $ddir for --with-gdb-datadir path [$ddir/auto-load]
1491   --without-auto-load-safe-path
1492                           do not restrict auto-loaded files locations
1493   --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
1494   --with-curses           use the curses library instead of the termcap
1495                           library
1496   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1497   --with-bugurl=URL       Direct users to URL to report a bug
1498   --with-zlib             include zlib support (auto/yes/no) default=auto
1499   --with-libiconv-prefix=DIR
1500                           search for libiconv in DIR/include and DIR/lib
1501   --with-iconv-bin=PATH   specify where to find the iconv program
1502   --with-system-readline  use installed readline library
1503   --with-jit-reader-dir=PATH
1504                           directory to load the JIT readers from
1505   --with-expat            include expat support (auto/yes/no)
1506   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1507   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1508   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1509   --with-python[=PYTHON]  include python support
1510                           (auto/yes/no/<python-program>)
1511   --without-included-regex
1512                           don't use included regex; this is the default on
1513                           systems with version 2 of the GNU C library (use
1514                           with caution on other system)
1515   --with-sysroot[=DIR]    search for usr/lib et al within DIR
1516   --with-system-gdbinit=PATH
1517                           automatically load a system-wide gdbinit file
1518   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1519   --with-tk               directory containing tk configuration (tkConfig.sh)
1520   --with-x                use the X Window System
1521
1522 Some influential environment variables:
1523   CC          C compiler command
1524   CFLAGS      C compiler flags
1525   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1526               nonstandard directory <lib dir>
1527   LIBS        libraries to pass to the linker, e.g. -l<library>
1528   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529               you have headers in a nonstandard directory <include dir>
1530   CPP         C preprocessor
1531   MAKEINFO    Parent configure detects if it is of sufficient version.
1532   MAKEINFOFLAGS
1533               Parameters for MAKEINFO.
1534   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1535               the first program found out of: `bison -y', `byacc', `yacc'.
1536   YFLAGS      The list of arguments that will be passed by default to $YACC.
1537               This script will default YFLAGS to the empty string to avoid a
1538               default value of `-d' given by some make applications.
1539   XMKMF       Path to xmkmf, Makefile generator for X Window System
1540
1541 Use these variables to override the choices made by `configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1543
1544 Report bugs to the package provider.
1545 _ACEOF
1546 ac_status=$?
1547 fi
1548
1549 if test "$ac_init_help" = "recursive"; then
1550   # If there are subdirs, report their specific --help.
1551   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552     test -d "$ac_dir" ||
1553       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554       continue
1555     ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561   # A ".." for each directory in $ac_dir_suffix.
1562   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563   case $ac_top_builddir_sub in
1564   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566   esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574   .)  # We are building in place.
1575     ac_srcdir=.
1576     ac_top_srcdir=$ac_top_builddir_sub
1577     ac_abs_top_srcdir=$ac_pwd ;;
1578   [\\/]* | ?:[\\/]* )  # Absolute name.
1579     ac_srcdir=$srcdir$ac_dir_suffix;
1580     ac_top_srcdir=$srcdir
1581     ac_abs_top_srcdir=$srcdir ;;
1582   *) # Relative name.
1583     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584     ac_top_srcdir=$ac_top_build_prefix$srcdir
1585     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589     cd "$ac_dir" || { ac_status=$?; continue; }
1590     # Check for guested configure.
1591     if test -f "$ac_srcdir/configure.gnu"; then
1592       echo &&
1593       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594     elif test -f "$ac_srcdir/configure"; then
1595       echo &&
1596       $SHELL "$ac_srcdir/configure" --help=recursive
1597     else
1598       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599     fi || ac_status=$?
1600     cd "$ac_pwd" || { ac_status=$?; break; }
1601   done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606   cat <<\_ACEOF
1607 configure
1608 generated by GNU Autoconf 2.64
1609
1610 Copyright (C) 2009 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613 _ACEOF
1614   exit
1615 fi
1616
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1620
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1625 {
1626   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627   rm -f conftest.$ac_objext
1628   if { { ac_try="$ac_compile"
1629 case "(($ac_try" in
1630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631   *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635   (eval "$ac_compile") 2>conftest.err
1636   ac_status=$?
1637   if test -s conftest.err; then
1638     grep -v '^ *+' conftest.err >conftest.er1
1639     cat conftest.er1 >&5
1640     mv -f conftest.er1 conftest.err
1641   fi
1642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643   test $ac_status = 0; } && {
1644          test -z "$ac_c_werror_flag" ||
1645          test ! -s conftest.err
1646        } && test -s conftest.$ac_objext; then :
1647   ac_retval=0
1648 else
1649   $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652         ac_retval=1
1653 fi
1654   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655   return $ac_retval
1656
1657 } # ac_fn_c_try_compile
1658
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668   *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673   ac_status=$?
1674   if test -s conftest.err; then
1675     grep -v '^ *+' conftest.err >conftest.er1
1676     cat conftest.er1 >&5
1677     mv -f conftest.er1 conftest.err
1678   fi
1679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680   test $ac_status = 0; } >/dev/null && {
1681          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682          test ! -s conftest.err
1683        }; then :
1684   ac_retval=0
1685 else
1686   $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689     ac_retval=1
1690 fi
1691   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692   return $ac_retval
1693
1694 } # ac_fn_c_try_cpp
1695
1696 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1699 # the include files in INCLUDES and setting the cache variable VAR
1700 # accordingly.
1701 ac_fn_c_check_header_mongrel ()
1702 {
1703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1708   $as_echo_n "(cached) " >&6
1709 fi
1710 eval ac_res=\$$3
1711                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1713 else
1714   # Is the header compilable?
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1716 $as_echo_n "checking $2 usability... " >&6; }
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h.  */
1719 $4
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723   ac_header_compiler=yes
1724 else
1725   ac_header_compiler=no
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1729 $as_echo "$ac_header_compiler" >&6; }
1730
1731 # Is the header present?
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1733 $as_echo_n "checking $2 presence... " >&6; }
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h.  */
1736 #include <$2>
1737 _ACEOF
1738 if ac_fn_c_try_cpp "$LINENO"; then :
1739   ac_header_preproc=yes
1740 else
1741   ac_header_preproc=no
1742 fi
1743 rm -f conftest.err conftest.$ac_ext
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1745 $as_echo "$ac_header_preproc" >&6; }
1746
1747 # So?  What about this header?
1748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1749   yes:no: )
1750     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1751 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1752     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754     ;;
1755   no:yes:* )
1756     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1757 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1758     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1759 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1760     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1761 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1762     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1763 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1764     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766     ;;
1767 esac
1768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771   $as_echo_n "(cached) " >&6
1772 else
1773   eval "$3=\$ac_header_compiler"
1774 fi
1775 eval ac_res=\$$3
1776                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 fi
1779   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780
1781 } # ac_fn_c_check_header_mongrel
1782
1783 # ac_fn_c_try_run LINENO
1784 # ----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1786 # that executables *can* be run.
1787 ac_fn_c_try_run ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793   *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797   (eval "$ac_link") 2>&5
1798   ac_status=$?
1799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1801   { { case "(($ac_try" in
1802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803   *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807   (eval "$ac_try") 2>&5
1808   ac_status=$?
1809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810   test $ac_status = 0; }; }; then :
1811   ac_retval=0
1812 else
1813   $as_echo "$as_me: program exited with status $ac_status" >&5
1814        $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817        ac_retval=$ac_status
1818 fi
1819   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821   return $ac_retval
1822
1823 } # ac_fn_c_try_run
1824
1825 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1826 # -------------------------------------------------------
1827 # Tests whether HEADER exists and can be compiled using the include files in
1828 # INCLUDES, setting the cache variable VAR accordingly.
1829 ac_fn_c_check_header_compile ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835   $as_echo_n "(cached) " >&6
1836 else
1837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h.  */
1839 $4
1840 #include <$2>
1841 _ACEOF
1842 if ac_fn_c_try_compile "$LINENO"; then :
1843   eval "$3=yes"
1844 else
1845   eval "$3=no"
1846 fi
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 fi
1849 eval ac_res=\$$3
1850                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853
1854 } # ac_fn_c_check_header_compile
1855
1856 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1857 # --------------------------------------------
1858 # Tries to find the compile-time value of EXPR in a program that includes
1859 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1860 # computed
1861 ac_fn_c_compute_int ()
1862 {
1863   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864   if test "$cross_compiling" = yes; then
1865     # Depending upon the size, compute the lo and hi bounds.
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h.  */
1868 $4
1869 int
1870 main ()
1871 {
1872 static int test_array [1 - 2 * !(($2) >= 0)];
1873 test_array [0] = 0
1874
1875   ;
1876   return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880   ac_lo=0 ac_mid=0
1881   while :; do
1882     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h.  */
1884 $4
1885 int
1886 main ()
1887 {
1888 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1889 test_array [0] = 0
1890
1891   ;
1892   return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"; then :
1896   ac_hi=$ac_mid; break
1897 else
1898   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1899                         if test $ac_lo -le $ac_mid; then
1900                           ac_lo= ac_hi=
1901                           break
1902                         fi
1903                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906   done
1907 else
1908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h.  */
1910 $4
1911 int
1912 main ()
1913 {
1914 static int test_array [1 - 2 * !(($2) < 0)];
1915 test_array [0] = 0
1916
1917   ;
1918   return 0;
1919 }
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922   ac_hi=-1 ac_mid=-1
1923   while :; do
1924     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h.  */
1926 $4
1927 int
1928 main ()
1929 {
1930 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1931 test_array [0] = 0
1932
1933   ;
1934   return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938   ac_lo=$ac_mid; break
1939 else
1940   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1941                         if test $ac_mid -le $ac_hi; then
1942                           ac_lo= ac_hi=
1943                           break
1944                         fi
1945                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948   done
1949 else
1950   ac_lo= ac_hi=
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 # Binary search between lo and hi bounds.
1956 while test "x$ac_lo" != "x$ac_hi"; do
1957   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h.  */
1960 $4
1961 int
1962 main ()
1963 {
1964 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1965 test_array [0] = 0
1966
1967   ;
1968   return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972   ac_hi=$ac_mid
1973 else
1974   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 done
1978 case $ac_lo in #((
1979 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1980 '') ac_retval=1 ;;
1981 esac
1982   else
1983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h.  */
1985 $4
1986 static long int longval () { return $2; }
1987 static unsigned long int ulongval () { return $2; }
1988 #include <stdio.h>
1989 #include <stdlib.h>
1990 int
1991 main ()
1992 {
1993
1994   FILE *f = fopen ("conftest.val", "w");
1995   if (! f)
1996     return 1;
1997   if (($2) < 0)
1998     {
1999       long int i = longval ();
2000       if (i != ($2))
2001         return 1;
2002       fprintf (f, "%ld", i);
2003     }
2004   else
2005     {
2006       unsigned long int i = ulongval ();
2007       if (i != ($2))
2008         return 1;
2009       fprintf (f, "%lu", i);
2010     }
2011   /* Do not output a trailing newline, as this causes \r\n confusion
2012      on some platforms.  */
2013   return ferror (f) || fclose (f) != 0;
2014
2015   ;
2016   return 0;
2017 }
2018 _ACEOF
2019 if ac_fn_c_try_run "$LINENO"; then :
2020   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2021 else
2022   ac_retval=1
2023 fi
2024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2025   conftest.$ac_objext conftest.beam conftest.$ac_ext
2026 rm -f conftest.val
2027
2028   fi
2029   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030   return $ac_retval
2031
2032 } # ac_fn_c_compute_int
2033
2034 # ac_fn_c_try_link LINENO
2035 # -----------------------
2036 # Try to link conftest.$ac_ext, and return whether this succeeded.
2037 ac_fn_c_try_link ()
2038 {
2039   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040   rm -f conftest.$ac_objext conftest$ac_exeext
2041   if { { ac_try="$ac_link"
2042 case "(($ac_try" in
2043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044   *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048   (eval "$ac_link") 2>conftest.err
2049   ac_status=$?
2050   if test -s conftest.err; then
2051     grep -v '^ *+' conftest.err >conftest.er1
2052     cat conftest.er1 >&5
2053     mv -f conftest.er1 conftest.err
2054   fi
2055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056   test $ac_status = 0; } && {
2057          test -z "$ac_c_werror_flag" ||
2058          test ! -s conftest.err
2059        } && test -s conftest$ac_exeext && {
2060          test "$cross_compiling" = yes ||
2061          $as_test_x conftest$ac_exeext
2062        }; then :
2063   ac_retval=0
2064 else
2065   $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2067
2068         ac_retval=1
2069 fi
2070   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2071   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2072   # interfere with the next link command; also delete a directory that is
2073   # left behind by Apple's compiler.  We do this before executing the actions.
2074   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2075   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076   return $ac_retval
2077
2078 } # ac_fn_c_try_link
2079
2080 # ac_fn_c_check_func LINENO FUNC VAR
2081 # ----------------------------------
2082 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2083 ac_fn_c_check_func ()
2084 {
2085   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2089   $as_echo_n "(cached) " >&6
2090 else
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2095 #define $2 innocuous_$2
2096
2097 /* System header to define __stub macros and hopefully few prototypes,
2098     which can conflict with char $2 (); below.
2099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2100     <limits.h> exists even on freestanding compilers.  */
2101
2102 #ifdef __STDC__
2103 # include <limits.h>
2104 #else
2105 # include <assert.h>
2106 #endif
2107
2108 #undef $2
2109
2110 /* Override any GCC internal prototype to avoid an error.
2111    Use char because int might match the return type of a GCC
2112    builtin and then its argument prototype would still apply.  */
2113 #ifdef __cplusplus
2114 extern "C"
2115 #endif
2116 char $2 ();
2117 /* The GNU C library defines this for functions which it implements
2118     to always fail with ENOSYS.  Some functions are actually named
2119     something starting with __ and the normal name is an alias.  */
2120 #if defined __stub_$2 || defined __stub___$2
2121 choke me
2122 #endif
2123
2124 int
2125 main ()
2126 {
2127 return $2 ();
2128   ;
2129   return 0;
2130 }
2131 _ACEOF
2132 if ac_fn_c_try_link "$LINENO"; then :
2133   eval "$3=yes"
2134 else
2135   eval "$3=no"
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext \
2138     conftest$ac_exeext conftest.$ac_ext
2139 fi
2140 eval ac_res=\$$3
2141                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2144
2145 } # ac_fn_c_check_func
2146
2147 # ac_fn_c_check_decl LINENO SYMBOL VAR
2148 # ------------------------------------
2149 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2150 ac_fn_c_check_decl ()
2151 {
2152   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153   as_decl_name=`echo $2|sed 's/ *(.*//'`
2154   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2156 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2157 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2158   $as_echo_n "(cached) " >&6
2159 else
2160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h.  */
2162 $4
2163 int
2164 main ()
2165 {
2166 #ifndef $as_decl_name
2167 #ifdef __cplusplus
2168   (void) $as_decl_use;
2169 #else
2170   (void) $as_decl_name;
2171 #endif
2172 #endif
2173
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179   eval "$3=yes"
2180 else
2181   eval "$3=no"
2182 fi
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 fi
2185 eval ac_res=\$$3
2186                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2189
2190 } # ac_fn_c_check_decl
2191
2192 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2193 # ----------------------------------------------------
2194 # Tries to find if the field MEMBER exists in type AGGR, after including
2195 # INCLUDES, setting cache variable VAR accordingly.
2196 ac_fn_c_check_member ()
2197 {
2198   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2200 $as_echo_n "checking for $2.$3... " >&6; }
2201 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2202   $as_echo_n "(cached) " >&6
2203 else
2204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h.  */
2206 $5
2207 int
2208 main ()
2209 {
2210 static $2 ac_aggr;
2211 if (ac_aggr.$3)
2212 return 0;
2213   ;
2214   return 0;
2215 }
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218   eval "$4=yes"
2219 else
2220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h.  */
2222 $5
2223 int
2224 main ()
2225 {
2226 static $2 ac_aggr;
2227 if (sizeof ac_aggr.$3)
2228 return 0;
2229   ;
2230   return 0;
2231 }
2232 _ACEOF
2233 if ac_fn_c_try_compile "$LINENO"; then :
2234   eval "$4=yes"
2235 else
2236   eval "$4=no"
2237 fi
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 fi
2242 eval ac_res=\$$4
2243                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246
2247 } # ac_fn_c_check_member
2248
2249 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2250 # -------------------------------------------
2251 # Tests whether TYPE exists after having included INCLUDES, setting cache
2252 # variable VAR accordingly.
2253 ac_fn_c_check_type ()
2254 {
2255   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257 $as_echo_n "checking for $2... " >&6; }
2258 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259   $as_echo_n "(cached) " >&6
2260 else
2261   eval "$3=no"
2262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h.  */
2264 $4
2265 int
2266 main ()
2267 {
2268 if (sizeof ($2))
2269          return 0;
2270   ;
2271   return 0;
2272 }
2273 _ACEOF
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h.  */
2277 $4
2278 int
2279 main ()
2280 {
2281 if (sizeof (($2)))
2282             return 0;
2283   ;
2284   return 0;
2285 }
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288
2289 else
2290   eval "$3=yes"
2291 fi
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 fi
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 fi
2296 eval ac_res=\$$3
2297                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 $as_echo "$ac_res" >&6; }
2299   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300
2301 } # ac_fn_c_check_type
2302 cat >config.log <<_ACEOF
2303 This file contains any messages produced by compilers while
2304 running configure, to aid debugging if configure makes a mistake.
2305
2306 It was created by $as_me, which was
2307 generated by GNU Autoconf 2.64.  Invocation command line was
2308
2309   $ $0 $@
2310
2311 _ACEOF
2312 exec 5>>config.log
2313 {
2314 cat <<_ASUNAME
2315 ## --------- ##
2316 ## Platform. ##
2317 ## --------- ##
2318
2319 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2320 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2321 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2322 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2323 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2324
2325 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2326 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2327
2328 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2329 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2330 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2331 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2332 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2333 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2334 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2335
2336 _ASUNAME
2337
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2340 do
2341   IFS=$as_save_IFS
2342   test -z "$as_dir" && as_dir=.
2343     $as_echo "PATH: $as_dir"
2344   done
2345 IFS=$as_save_IFS
2346
2347 } >&5
2348
2349 cat >&5 <<_ACEOF
2350
2351
2352 ## ----------- ##
2353 ## Core tests. ##
2354 ## ----------- ##
2355
2356 _ACEOF
2357
2358
2359 # Keep a trace of the command line.
2360 # Strip out --no-create and --no-recursion so they do not pile up.
2361 # Strip out --silent because we don't want to record it for future runs.
2362 # Also quote any args containing shell meta-characters.
2363 # Make two passes to allow for proper duplicate-argument suppression.
2364 ac_configure_args=
2365 ac_configure_args0=
2366 ac_configure_args1=
2367 ac_must_keep_next=false
2368 for ac_pass in 1 2
2369 do
2370   for ac_arg
2371   do
2372     case $ac_arg in
2373     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2374     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2375     | -silent | --silent | --silen | --sile | --sil)
2376       continue ;;
2377     *\'*)
2378       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2379     esac
2380     case $ac_pass in
2381     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2382     2)
2383       as_fn_append ac_configure_args1 " '$ac_arg'"
2384       if test $ac_must_keep_next = true; then
2385         ac_must_keep_next=false # Got value, back to normal.
2386       else
2387         case $ac_arg in
2388           *=* | --config-cache | -C | -disable-* | --disable-* \
2389           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2390           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2391           | -with-* | --with-* | -without-* | --without-* | --x)
2392             case "$ac_configure_args0 " in
2393               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2394             esac
2395             ;;
2396           -* ) ac_must_keep_next=true ;;
2397         esac
2398       fi
2399       as_fn_append ac_configure_args " '$ac_arg'"
2400       ;;
2401     esac
2402   done
2403 done
2404 { ac_configure_args0=; unset ac_configure_args0;}
2405 { ac_configure_args1=; unset ac_configure_args1;}
2406
2407 # When interrupted or exit'd, cleanup temporary files, and complete
2408 # config.log.  We remove comments because anyway the quotes in there
2409 # would cause problems or look ugly.
2410 # WARNING: Use '\'' to represent an apostrophe within the trap.
2411 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2412 trap 'exit_status=$?
2413   # Save into config.log some information that might help in debugging.
2414   {
2415     echo
2416
2417     cat <<\_ASBOX
2418 ## ---------------- ##
2419 ## Cache variables. ##
2420 ## ---------------- ##
2421 _ASBOX
2422     echo
2423     # The following way of writing the cache mishandles newlines in values,
2424 (
2425   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2426     eval ac_val=\$$ac_var
2427     case $ac_val in #(
2428     *${as_nl}*)
2429       case $ac_var in #(
2430       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2431 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2432       esac
2433       case $ac_var in #(
2434       _ | IFS | as_nl) ;; #(
2435       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2436       *) { eval $ac_var=; unset $ac_var;} ;;
2437       esac ;;
2438     esac
2439   done
2440   (set) 2>&1 |
2441     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2442     *${as_nl}ac_space=\ *)
2443       sed -n \
2444         "s/'\''/'\''\\\\'\'''\''/g;
2445           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2446       ;; #(
2447     *)
2448       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2449       ;;
2450     esac |
2451     sort
2452 )
2453     echo
2454
2455     cat <<\_ASBOX
2456 ## ----------------- ##
2457 ## Output variables. ##
2458 ## ----------------- ##
2459 _ASBOX
2460     echo
2461     for ac_var in $ac_subst_vars
2462     do
2463       eval ac_val=\$$ac_var
2464       case $ac_val in
2465       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2466       esac
2467       $as_echo "$ac_var='\''$ac_val'\''"
2468     done | sort
2469     echo
2470
2471     if test -n "$ac_subst_files"; then
2472       cat <<\_ASBOX
2473 ## ------------------- ##
2474 ## File substitutions. ##
2475 ## ------------------- ##
2476 _ASBOX
2477       echo
2478       for ac_var in $ac_subst_files
2479       do
2480         eval ac_val=\$$ac_var
2481         case $ac_val in
2482         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483         esac
2484         $as_echo "$ac_var='\''$ac_val'\''"
2485       done | sort
2486       echo
2487     fi
2488
2489     if test -s confdefs.h; then
2490       cat <<\_ASBOX
2491 ## ----------- ##
2492 ## confdefs.h. ##
2493 ## ----------- ##
2494 _ASBOX
2495       echo
2496       cat confdefs.h
2497       echo
2498     fi
2499     test "$ac_signal" != 0 &&
2500       $as_echo "$as_me: caught signal $ac_signal"
2501     $as_echo "$as_me: exit $exit_status"
2502   } >&5
2503   rm -f core *.core core.conftest.* &&
2504     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2505     exit $exit_status
2506 ' 0
2507 for ac_signal in 1 2 13 15; do
2508   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2509 done
2510 ac_signal=0
2511
2512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2513 rm -f -r conftest* confdefs.h
2514
2515 $as_echo "/* confdefs.h */" > confdefs.h
2516
2517 # Predefined preprocessor variables.
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_NAME "$PACKAGE_NAME"
2521 _ACEOF
2522
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2525 _ACEOF
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2529 _ACEOF
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_STRING "$PACKAGE_STRING"
2533 _ACEOF
2534
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2537 _ACEOF
2538
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_URL "$PACKAGE_URL"
2541 _ACEOF
2542
2543
2544 # Let the site file select an alternate cache file if it wants to.
2545 # Prefer an explicitly selected file to automatically selected ones.
2546 ac_site_file1=NONE
2547 ac_site_file2=NONE
2548 if test -n "$CONFIG_SITE"; then
2549   ac_site_file1=$CONFIG_SITE
2550 elif test "x$prefix" != xNONE; then
2551   ac_site_file1=$prefix/share/config.site
2552   ac_site_file2=$prefix/etc/config.site
2553 else
2554   ac_site_file1=$ac_default_prefix/share/config.site
2555   ac_site_file2=$ac_default_prefix/etc/config.site
2556 fi
2557 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2558 do
2559   test "x$ac_site_file" = xNONE && continue
2560   if test -r "$ac_site_file"; then
2561     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2562 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2563     sed 's/^/| /' "$ac_site_file" >&5
2564     . "$ac_site_file"
2565   fi
2566 done
2567
2568 if test -r "$cache_file"; then
2569   # Some versions of bash will fail to source /dev/null (special
2570   # files actually), so we avoid doing that.
2571   if test -f "$cache_file"; then
2572     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2573 $as_echo "$as_me: loading cache $cache_file" >&6;}
2574     case $cache_file in
2575       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2576       *)                      . "./$cache_file";;
2577     esac
2578   fi
2579 else
2580   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2581 $as_echo "$as_me: creating cache $cache_file" >&6;}
2582   >$cache_file
2583 fi
2584
2585 # Check that the precious variables saved in the cache have kept the same
2586 # value.
2587 ac_cache_corrupted=false
2588 for ac_var in $ac_precious_vars; do
2589   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2590   eval ac_new_set=\$ac_env_${ac_var}_set
2591   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2592   eval ac_new_val=\$ac_env_${ac_var}_value
2593   case $ac_old_set,$ac_new_set in
2594     set,)
2595       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2596 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2597       ac_cache_corrupted=: ;;
2598     ,set)
2599       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2600 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2601       ac_cache_corrupted=: ;;
2602     ,);;
2603     *)
2604       if test "x$ac_old_val" != "x$ac_new_val"; then
2605         # differences in whitespace do not lead to failure.
2606         ac_old_val_w=`echo x $ac_old_val`
2607         ac_new_val_w=`echo x $ac_new_val`
2608         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2609           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2610 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2611           ac_cache_corrupted=:
2612         else
2613           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2614 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2615           eval $ac_var=\$ac_old_val
2616         fi
2617         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2618 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2619         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2620 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2621       fi;;
2622   esac
2623   # Pass precious variables to config.status.
2624   if test "$ac_new_set" = set; then
2625     case $ac_new_val in
2626     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2627     *) ac_arg=$ac_var=$ac_new_val ;;
2628     esac
2629     case " $ac_configure_args " in
2630       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2631       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2632     esac
2633   fi
2634 done
2635 if $ac_cache_corrupted; then
2636   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2638   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2639 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2640   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2641 fi
2642 ## -------------------- ##
2643 ## Main body of script. ##
2644 ## -------------------- ##
2645
2646 ac_ext=c
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651
2652
2653
2654
2655
2656 ac_config_headers="$ac_config_headers config.h:config.in"
2657
2658
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2660 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2661     # Check whether --enable-maintainer-mode was given.
2662 if test "${enable_maintainer_mode+set}" = set; then :
2663   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2664 else
2665   USE_MAINTAINER_MODE=no
2666 fi
2667
2668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2669 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2670    if test $USE_MAINTAINER_MODE = yes; then
2671   MAINTAINER_MODE_TRUE=
2672   MAINTAINER_MODE_FALSE='#'
2673 else
2674   MAINTAINER_MODE_TRUE='#'
2675   MAINTAINER_MODE_FALSE=
2676 fi
2677
2678   MAINT=$MAINTAINER_MODE_TRUE
2679
2680
2681
2682 ac_ext=c
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687 if test -n "$ac_tool_prefix"; then
2688   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2689 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_CC+set}" = set; then :
2693   $as_echo_n "(cached) " >&6
2694 else
2695   if test -n "$CC"; then
2696   ac_cv_prog_CC="$CC" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701   IFS=$as_save_IFS
2702   test -z "$as_dir" && as_dir=.
2703     for ac_exec_ext in '' $ac_executable_extensions; do
2704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707     break 2
2708   fi
2709 done
2710   done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 CC=$ac_cv_prog_CC
2716 if test -n "$CC"; then
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2719 else
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2722 fi
2723
2724
2725 fi
2726 if test -z "$ac_cv_prog_CC"; then
2727   ac_ct_CC=$CC
2728   # Extract the first word of "gcc", so it can be a program name with args.
2729 set dummy gcc; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2733   $as_echo_n "(cached) " >&6
2734 else
2735   if test -n "$ac_ct_CC"; then
2736   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741   IFS=$as_save_IFS
2742   test -z "$as_dir" && as_dir=.
2743     for ac_exec_ext in '' $ac_executable_extensions; do
2744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745     ac_cv_prog_ac_ct_CC="gcc"
2746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747     break 2
2748   fi
2749 done
2750   done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2758 $as_echo "$ac_ct_CC" >&6; }
2759 else
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2762 fi
2763
2764   if test "x$ac_ct_CC" = x; then
2765     CC=""
2766   else
2767     case $cross_compiling:$ac_tool_warned in
2768 yes:)
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2771 ac_tool_warned=yes ;;
2772 esac
2773     CC=$ac_ct_CC
2774   fi
2775 else
2776   CC="$ac_cv_prog_CC"
2777 fi
2778
2779 if test -z "$CC"; then
2780           if test -n "$ac_tool_prefix"; then
2781     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}cc; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_CC+set}" = set; then :
2786   $as_echo_n "(cached) " >&6
2787 else
2788   if test -n "$CC"; then
2789   ac_cv_prog_CC="$CC" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794   IFS=$as_save_IFS
2795   test -z "$as_dir" && as_dir=.
2796     for ac_exec_ext in '' $ac_executable_extensions; do
2797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798     ac_cv_prog_CC="${ac_tool_prefix}cc"
2799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800     break 2
2801   fi
2802 done
2803   done
2804 IFS=$as_save_IFS
2805
2806 fi
2807 fi
2808 CC=$ac_cv_prog_CC
2809 if test -n "$CC"; then
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811 $as_echo "$CC" >&6; }
2812 else
2813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2815 fi
2816
2817
2818   fi
2819 fi
2820 if test -z "$CC"; then
2821   # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then :
2826   $as_echo_n "(cached) " >&6
2827 else
2828   if test -n "$CC"; then
2829   ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831   ac_prog_rejected=no
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837     for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840        ac_prog_rejected=yes
2841        continue
2842      fi
2843     ac_cv_prog_CC="cc"
2844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845     break 2
2846   fi
2847 done
2848   done
2849 IFS=$as_save_IFS
2850
2851 if test $ac_prog_rejected = yes; then
2852   # We found a bogon in the path, so make sure we never use it.
2853   set dummy $ac_cv_prog_CC
2854   shift
2855   if test $# != 0; then
2856     # We chose a different compiler from the bogus one.
2857     # However, it has the same basename, so the bogon will be chosen
2858     # first if we set CC to just the basename; use the full file name.
2859     shift
2860     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2861   fi
2862 fi
2863 fi
2864 fi
2865 CC=$ac_cv_prog_CC
2866 if test -n "$CC"; then
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2869 else
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2872 fi
2873
2874
2875 fi
2876 if test -z "$CC"; then
2877   if test -n "$ac_tool_prefix"; then
2878   for ac_prog in cl.exe
2879   do
2880     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then :
2885   $as_echo_n "(cached) " >&6
2886 else
2887   if test -n "$CC"; then
2888   ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895     for ac_exec_ext in '' $ac_executable_extensions; do
2896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902   done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2911 else
2912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917     test -n "$CC" && break
2918   done
2919 fi
2920 if test -z "$CC"; then
2921   ac_ct_CC=$CC
2922   for ac_prog in cl.exe
2923 do
2924   # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2929   $as_echo_n "(cached) " >&6
2930 else
2931   if test -n "$ac_ct_CC"; then
2932   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937   IFS=$as_save_IFS
2938   test -z "$as_dir" && as_dir=.
2939     for ac_exec_ext in '' $ac_executable_extensions; do
2940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941     ac_cv_prog_ac_ct_CC="$ac_prog"
2942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943     break 2
2944   fi
2945 done
2946   done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2954 $as_echo "$ac_ct_CC" >&6; }
2955 else
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960
2961   test -n "$ac_ct_CC" && break
2962 done
2963
2964   if test "x$ac_ct_CC" = x; then
2965     CC=""
2966   else
2967     case $cross_compiling:$ac_tool_warned in
2968 yes:)
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned=yes ;;
2972 esac
2973     CC=$ac_ct_CC
2974   fi
2975 fi
2976
2977 fi
2978
2979
2980 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982 as_fn_error "no acceptable C compiler found in \$PATH
2983 See \`config.log' for more details." "$LINENO" 5; }
2984
2985 # Provide some information about the compiler.
2986 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2987 set X $ac_compile
2988 ac_compiler=$2
2989 for ac_option in --version -v -V -qversion; do
2990   { { ac_try="$ac_compiler $ac_option >&5"
2991 case "(($ac_try" in
2992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993   *) ac_try_echo=$ac_try;;
2994 esac
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2998   ac_status=$?
2999   if test -s conftest.err; then
3000     sed '10a\
3001 ... rest of stderr output deleted ...
3002          10q' conftest.err >conftest.er1
3003     cat conftest.er1 >&5
3004     rm -f conftest.er1 conftest.err
3005   fi
3006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007   test $ac_status = 0; }
3008 done
3009
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 ac_clean_files_save=$ac_clean_files
3022 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3023 # Try to create an executable without -o first, disregard a.out.
3024 # It will help us diagnose broken compilers, and finding out an intuition
3025 # of exeext.
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3027 $as_echo_n "checking for C compiler default output file name... " >&6; }
3028 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3029
3030 # The possible output files:
3031 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3032
3033 ac_rmfiles=
3034 for ac_file in $ac_files
3035 do
3036   case $ac_file in
3037     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3038     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3039   esac
3040 done
3041 rm -f $ac_rmfiles
3042
3043 if { { ac_try="$ac_link_default"
3044 case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3049 $as_echo "$ac_try_echo"; } >&5
3050   (eval "$ac_link_default") 2>&5
3051   ac_status=$?
3052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3053   test $ac_status = 0; }; then :
3054   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3055 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3056 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3057 # so that the user can short-circuit this test for compilers unknown to
3058 # Autoconf.
3059 for ac_file in $ac_files ''
3060 do
3061   test -f "$ac_file" || continue
3062   case $ac_file in
3063     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3064         ;;
3065     [ab].out )
3066         # We found the default executable, but exeext='' is most
3067         # certainly right.
3068         break;;
3069     *.* )
3070         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3071         then :; else
3072            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073         fi
3074         # We set ac_cv_exeext here because the later test for it is not
3075         # safe: cross compilers may not add the suffix if given an `-o'
3076         # argument, so we may need to know it at that point already.
3077         # Even if this section looks crufty: it has the advantage of
3078         # actually working.
3079         break;;
3080     * )
3081         break;;
3082   esac
3083 done
3084 test "$ac_cv_exeext" = no && ac_cv_exeext=
3085
3086 else
3087   ac_file=''
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3090 $as_echo "$ac_file" >&6; }
3091 if test -z "$ac_file"; then :
3092   $as_echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 { as_fn_set_status 77
3098 as_fn_error "C compiler cannot create executables
3099 See \`config.log' for more details." "$LINENO" 5; }; }
3100 fi
3101 ac_exeext=$ac_cv_exeext
3102
3103 # Check that the compiler produces executables we can run.  If not, either
3104 # the compiler is broken, or we cross compile.
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3106 $as_echo_n "checking whether the C compiler works... " >&6; }
3107 # If not cross compiling, check that we can run a simple program.
3108 if test "$cross_compiling" != yes; then
3109   if { ac_try='./$ac_file'
3110   { { case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115 $as_echo "$ac_try_echo"; } >&5
3116   (eval "$ac_try") 2>&5
3117   ac_status=$?
3118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119   test $ac_status = 0; }; }; then
3120     cross_compiling=no
3121   else
3122     if test "$cross_compiling" = maybe; then
3123         cross_compiling=yes
3124     else
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_error "cannot run C compiled programs.
3128 If you meant to cross compile, use \`--host'.
3129 See \`config.log' for more details." "$LINENO" 5; }
3130     fi
3131   fi
3132 fi
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3135
3136 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3137 ac_clean_files=$ac_clean_files_save
3138 # Check that the compiler produces executables we can run.  If not, either
3139 # the compiler is broken, or we cross compile.
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3141 $as_echo_n "checking whether we are cross compiling... " >&6; }
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3143 $as_echo "$cross_compiling" >&6; }
3144
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3146 $as_echo_n "checking for suffix of executables... " >&6; }
3147 if { { ac_try="$ac_link"
3148 case "(($ac_try" in
3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150   *) ac_try_echo=$ac_try;;
3151 esac
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154   (eval "$ac_link") 2>&5
3155   ac_status=$?
3156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157   test $ac_status = 0; }; then :
3158   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3159 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3160 # work properly (i.e., refer to `conftest.exe'), while it won't with
3161 # `rm'.
3162 for ac_file in conftest.exe conftest conftest.*; do
3163   test -f "$ac_file" || continue
3164   case $ac_file in
3165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3166     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167           break;;
3168     * ) break;;
3169   esac
3170 done
3171 else
3172   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error "cannot compute suffix of executables: cannot compile and link
3175 See \`config.log' for more details." "$LINENO" 5; }
3176 fi
3177 rm -f conftest$ac_cv_exeext
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3179 $as_echo "$ac_cv_exeext" >&6; }
3180
3181 rm -f conftest.$ac_ext
3182 EXEEXT=$ac_cv_exeext
3183 ac_exeext=$EXEEXT
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3185 $as_echo_n "checking for suffix of object files... " >&6; }
3186 if test "${ac_cv_objext+set}" = set; then :
3187   $as_echo_n "(cached) " >&6
3188 else
3189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h.  */
3191
3192 int
3193 main ()
3194 {
3195
3196   ;
3197   return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.o conftest.obj
3201 if { { ac_try="$ac_compile"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208   (eval "$ac_compile") 2>&5
3209   ac_status=$?
3210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211   test $ac_status = 0; }; then :
3212   for ac_file in conftest.o conftest.obj conftest.*; do
3213   test -f "$ac_file" || continue;
3214   case $ac_file in
3215     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3216     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3217        break;;
3218   esac
3219 done
3220 else
3221   $as_echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error "cannot compute suffix of object files: cannot compile
3227 See \`config.log' for more details." "$LINENO" 5; }
3228 fi
3229 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3230 fi
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3232 $as_echo "$ac_cv_objext" >&6; }
3233 OBJEXT=$ac_cv_objext
3234 ac_objext=$OBJEXT
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3236 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3237 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3238   $as_echo_n "(cached) " >&6
3239 else
3240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h.  */
3242
3243 int
3244 main ()
3245 {
3246 #ifndef __GNUC__
3247        choke me
3248 #endif
3249
3250   ;
3251   return 0;
3252 }
3253 _ACEOF
3254 if ac_fn_c_try_compile "$LINENO"; then :
3255   ac_compiler_gnu=yes
3256 else
3257   ac_compiler_gnu=no
3258 fi
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3261
3262 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3264 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3265 if test $ac_compiler_gnu = yes; then
3266   GCC=yes
3267 else
3268   GCC=
3269 fi
3270 ac_test_CFLAGS=${CFLAGS+set}
3271 ac_save_CFLAGS=$CFLAGS
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3273 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3274 if test "${ac_cv_prog_cc_g+set}" = set; then :
3275   $as_echo_n "(cached) " >&6
3276 else
3277   ac_save_c_werror_flag=$ac_c_werror_flag
3278    ac_c_werror_flag=yes
3279    ac_cv_prog_cc_g=no
3280    CFLAGS="-g"
3281    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h.  */
3283
3284 int
3285 main ()
3286 {
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293   ac_cv_prog_cc_g=yes
3294 else
3295   CFLAGS=""
3296       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h.  */
3298
3299 int
3300 main ()
3301 {
3302
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 if ac_fn_c_try_compile "$LINENO"; then :
3308
3309 else
3310   ac_c_werror_flag=$ac_save_c_werror_flag
3311          CFLAGS="-g"
3312          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h.  */
3314
3315 int
3316 main ()
3317 {
3318
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324   ac_cv_prog_cc_g=yes
3325 fi
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 fi
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 fi
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331    ac_c_werror_flag=$ac_save_c_werror_flag
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3334 $as_echo "$ac_cv_prog_cc_g" >&6; }
3335 if test "$ac_test_CFLAGS" = set; then
3336   CFLAGS=$ac_save_CFLAGS
3337 elif test $ac_cv_prog_cc_g = yes; then
3338   if test "$GCC" = yes; then
3339     CFLAGS="-g -O2"
3340   else
3341     CFLAGS="-g"
3342   fi
3343 else
3344   if test "$GCC" = yes; then
3345     CFLAGS="-O2"
3346   else
3347     CFLAGS=
3348   fi
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3351 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3352 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3353   $as_echo_n "(cached) " >&6
3354 else
3355   ac_cv_prog_cc_c89=no
3356 ac_save_CC=$CC
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h.  */
3359 #include <stdarg.h>
3360 #include <stdio.h>
3361 #include <sys/types.h>
3362 #include <sys/stat.h>
3363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3364 struct buf { int x; };
3365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3366 static char *e (p, i)
3367      char **p;
3368      int i;
3369 {
3370   return p[i];
3371 }
3372 static char *f (char * (*g) (char **, int), char **p, ...)
3373 {
3374   char *s;
3375   va_list v;
3376   va_start (v,p);
3377   s = g (p, va_arg (v,int));
3378   va_end (v);
3379   return s;
3380 }
3381
3382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3383    function prototypes and stuff, but not '\xHH' hex character constants.
3384    These don't provoke an error unfortunately, instead are silently treated
3385    as 'x'.  The following induces an error, until -std is added to get
3386    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3387    array size at least.  It's necessary to write '\x00'==0 to get something
3388    that's true only with -std.  */
3389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3390
3391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3392    inside strings and character constants.  */
3393 #define FOO(x) 'x'
3394 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3395
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3400 int argc;
3401 char **argv;
3402 int
3403 main ()
3404 {
3405 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3411         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3412 do
3413   CC="$ac_save_CC $ac_arg"
3414   if ac_fn_c_try_compile "$LINENO"; then :
3415   ac_cv_prog_cc_c89=$ac_arg
3416 fi
3417 rm -f core conftest.err conftest.$ac_objext
3418   test "x$ac_cv_prog_cc_c89" != "xno" && break
3419 done
3420 rm -f conftest.$ac_ext
3421 CC=$ac_save_CC
3422
3423 fi
3424 # AC_CACHE_VAL
3425 case "x$ac_cv_prog_cc_c89" in
3426   x)
3427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3428 $as_echo "none needed" >&6; } ;;
3429   xno)
3430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3431 $as_echo "unsupported" >&6; } ;;
3432   *)
3433     CC="$CC $ac_cv_prog_cc_c89"
3434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3435 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3436 esac
3437 if test "x$ac_cv_prog_cc_c89" != xno; then :
3438
3439 fi
3440
3441 ac_ext=c
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446
3447
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3455 # On Suns, sometimes $CPP names a directory.
3456 if test -n "$CPP" && test -d "$CPP"; then
3457   CPP=
3458 fi
3459 if test -z "$CPP"; then
3460   if test "${ac_cv_prog_CPP+set}" = set; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463       # Double quotes because CPP needs to be expanded
3464     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3465     do
3466       ac_preproc_ok=false
3467 for ac_c_preproc_warn_flag in '' yes
3468 do
3469   # Use a header file that comes with gcc, so configuring glibc
3470   # with a fresh cross-compiler works.
3471   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472   # <limits.h> exists even on freestanding compilers.
3473   # On the NeXT, cc -E runs the code through the compiler's parser,
3474   # not just through cpp. "Syntax error" is here to catch this case.
3475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h.  */
3477 #ifdef __STDC__
3478 # include <limits.h>
3479 #else
3480 # include <assert.h>
3481 #endif
3482                      Syntax error
3483 _ACEOF
3484 if ac_fn_c_try_cpp "$LINENO"; then :
3485
3486 else
3487   # Broken: fails on valid input.
3488 continue
3489 fi
3490 rm -f conftest.err conftest.$ac_ext
3491
3492   # OK, works on sane cases.  Now check whether nonexistent headers
3493   # can be detected and how.
3494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h.  */
3496 #include <ac_nonexistent.h>
3497 _ACEOF
3498 if ac_fn_c_try_cpp "$LINENO"; then :
3499   # Broken: success on invalid input.
3500 continue
3501 else
3502   # Passes both tests.
3503 ac_preproc_ok=:
3504 break
3505 fi
3506 rm -f conftest.err conftest.$ac_ext
3507
3508 done
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then :
3512   break
3513 fi
3514
3515     done
3516     ac_cv_prog_CPP=$CPP
3517
3518 fi
3519   CPP=$ac_cv_prog_CPP
3520 else
3521   ac_cv_prog_CPP=$CPP
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3524 $as_echo "$CPP" >&6; }
3525 ac_preproc_ok=false
3526 for ac_c_preproc_warn_flag in '' yes
3527 do
3528   # Use a header file that comes with gcc, so configuring glibc
3529   # with a fresh cross-compiler works.
3530   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531   # <limits.h> exists even on freestanding compilers.
3532   # On the NeXT, cc -E runs the code through the compiler's parser,
3533   # not just through cpp. "Syntax error" is here to catch this case.
3534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h.  */
3536 #ifdef __STDC__
3537 # include <limits.h>
3538 #else
3539 # include <assert.h>
3540 #endif
3541                      Syntax error
3542 _ACEOF
3543 if ac_fn_c_try_cpp "$LINENO"; then :
3544
3545 else
3546   # Broken: fails on valid input.
3547 continue
3548 fi
3549 rm -f conftest.err conftest.$ac_ext
3550
3551   # OK, works on sane cases.  Now check whether nonexistent headers
3552   # can be detected and how.
3553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h.  */
3555 #include <ac_nonexistent.h>
3556 _ACEOF
3557 if ac_fn_c_try_cpp "$LINENO"; then :
3558   # Broken: success on invalid input.
3559 continue
3560 else
3561   # Passes both tests.
3562 ac_preproc_ok=:
3563 break
3564 fi
3565 rm -f conftest.err conftest.$ac_ext
3566
3567 done
3568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3569 rm -f conftest.err conftest.$ac_ext
3570 if $ac_preproc_ok; then :
3571
3572 else
3573   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3576 See \`config.log' for more details." "$LINENO" 5; }
3577 fi
3578
3579 ac_ext=c
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584
3585
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3587 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3588 if test "${ac_cv_path_GREP+set}" = set; then :
3589   $as_echo_n "(cached) " >&6
3590 else
3591   if test -z "$GREP"; then
3592   ac_path_GREP_found=false
3593   # Loop through the user's path and test for each of PROGNAME-LIST
3594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3596 do
3597   IFS=$as_save_IFS
3598   test -z "$as_dir" && as_dir=.
3599     for ac_prog in grep ggrep; do
3600     for ac_exec_ext in '' $ac_executable_extensions; do
3601       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3602       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3603 # Check for GNU ac_path_GREP and select it if it is found.
3604   # Check for GNU $ac_path_GREP
3605 case `"$ac_path_GREP" --version 2>&1` in
3606 *GNU*)
3607   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3608 *)
3609   ac_count=0
3610   $as_echo_n 0123456789 >"conftest.in"
3611   while :
3612   do
3613     cat "conftest.in" "conftest.in" >"conftest.tmp"
3614     mv "conftest.tmp" "conftest.in"
3615     cp "conftest.in" "conftest.nl"
3616     $as_echo 'GREP' >> "conftest.nl"
3617     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3618     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3619     as_fn_arith $ac_count + 1 && ac_count=$as_val
3620     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3621       # Best one so far, save it but keep looking for a better one
3622       ac_cv_path_GREP="$ac_path_GREP"
3623       ac_path_GREP_max=$ac_count
3624     fi
3625     # 10*(2^10) chars as input seems more than enough
3626     test $ac_count -gt 10 && break
3627   done
3628   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3629 esac
3630
3631       $ac_path_GREP_found && break 3
3632     done
3633   done
3634   done
3635 IFS=$as_save_IFS
3636   if test -z "$ac_cv_path_GREP"; then
3637     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3638   fi
3639 else
3640   ac_cv_path_GREP=$GREP
3641 fi
3642
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3645 $as_echo "$ac_cv_path_GREP" >&6; }
3646  GREP="$ac_cv_path_GREP"
3647
3648
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3650 $as_echo_n "checking for egrep... " >&6; }
3651 if test "${ac_cv_path_EGREP+set}" = set; then :
3652   $as_echo_n "(cached) " >&6
3653 else
3654   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3655    then ac_cv_path_EGREP="$GREP -E"
3656    else
3657      if test -z "$EGREP"; then
3658   ac_path_EGREP_found=false
3659   # Loop through the user's path and test for each of PROGNAME-LIST
3660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3662 do
3663   IFS=$as_save_IFS
3664   test -z "$as_dir" && as_dir=.
3665     for ac_prog in egrep; do
3666     for ac_exec_ext in '' $ac_executable_extensions; do
3667       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3668       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3669 # Check for GNU ac_path_EGREP and select it if it is found.
3670   # Check for GNU $ac_path_EGREP
3671 case `"$ac_path_EGREP" --version 2>&1` in
3672 *GNU*)
3673   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3674 *)
3675   ac_count=0
3676   $as_echo_n 0123456789 >"conftest.in"
3677   while :
3678   do
3679     cat "conftest.in" "conftest.in" >"conftest.tmp"
3680     mv "conftest.tmp" "conftest.in"
3681     cp "conftest.in" "conftest.nl"
3682     $as_echo 'EGREP' >> "conftest.nl"
3683     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685     as_fn_arith $ac_count + 1 && ac_count=$as_val
3686     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3687       # Best one so far, save it but keep looking for a better one
3688       ac_cv_path_EGREP="$ac_path_EGREP"
3689       ac_path_EGREP_max=$ac_count
3690     fi
3691     # 10*(2^10) chars as input seems more than enough
3692     test $ac_count -gt 10 && break
3693   done
3694   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695 esac
3696
3697       $ac_path_EGREP_found && break 3
3698     done
3699   done
3700   done
3701 IFS=$as_save_IFS
3702   if test -z "$ac_cv_path_EGREP"; then
3703     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3704   fi
3705 else
3706   ac_cv_path_EGREP=$EGREP
3707 fi
3708
3709    fi
3710 fi
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3712 $as_echo "$ac_cv_path_EGREP" >&6; }
3713  EGREP="$ac_cv_path_EGREP"
3714
3715
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3717 $as_echo_n "checking for ANSI C header files... " >&6; }
3718 if test "${ac_cv_header_stdc+set}" = set; then :
3719   $as_echo_n "(cached) " >&6
3720 else
3721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h.  */
3723 #include <stdlib.h>
3724 #include <stdarg.h>
3725 #include <string.h>
3726 #include <float.h>
3727
3728 int
3729 main ()
3730 {
3731
3732   ;
3733   return 0;
3734 }
3735 _ACEOF
3736 if ac_fn_c_try_compile "$LINENO"; then :
3737   ac_cv_header_stdc=yes
3738 else
3739   ac_cv_header_stdc=no
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742
3743 if test $ac_cv_header_stdc = yes; then
3744   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h.  */
3747 #include <string.h>
3748
3749 _ACEOF
3750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3751   $EGREP "memchr" >/dev/null 2>&1; then :
3752
3753 else
3754   ac_cv_header_stdc=no
3755 fi
3756 rm -f conftest*
3757
3758 fi
3759
3760 if test $ac_cv_header_stdc = yes; then
3761   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h.  */
3764 #include <stdlib.h>
3765
3766 _ACEOF
3767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3768   $EGREP "free" >/dev/null 2>&1; then :
3769
3770 else
3771   ac_cv_header_stdc=no
3772 fi
3773 rm -f conftest*
3774
3775 fi
3776
3777 if test $ac_cv_header_stdc = yes; then
3778   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3779   if test "$cross_compiling" = yes; then :
3780   :
3781 else
3782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h.  */
3784 #include <ctype.h>
3785 #include <stdlib.h>
3786 #if ((' ' & 0x0FF) == 0x020)
3787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3789 #else
3790 # define ISLOWER(c) \
3791                    (('a' <= (c) && (c) <= 'i') \
3792                      || ('j' <= (c) && (c) <= 'r') \
3793                      || ('s' <= (c) && (c) <= 'z'))
3794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3795 #endif
3796
3797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3798 int
3799 main ()
3800 {
3801   int i;
3802   for (i = 0; i < 256; i++)
3803     if (XOR (islower (i), ISLOWER (i))
3804         || toupper (i) != TOUPPER (i))
3805       return 2;
3806   return 0;
3807 }
3808 _ACEOF
3809 if ac_fn_c_try_run "$LINENO"; then :
3810
3811 else
3812   ac_cv_header_stdc=no
3813 fi
3814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3815   conftest.$ac_objext conftest.beam conftest.$ac_ext
3816 fi
3817
3818 fi
3819 fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3821 $as_echo "$ac_cv_header_stdc" >&6; }
3822 if test $ac_cv_header_stdc = yes; then
3823
3824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3825
3826 fi
3827
3828 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3829 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3830                   inttypes.h stdint.h unistd.h
3831 do :
3832   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3833 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3834 "
3835 eval as_val=\$$as_ac_Header
3836    if test "x$as_val" = x""yes; then :
3837   cat >>confdefs.h <<_ACEOF
3838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3839 _ACEOF
3840
3841 fi
3842
3843 done
3844
3845
3846
3847   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3848 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3849   MINIX=yes
3850 else
3851   MINIX=
3852 fi
3853
3854
3855   if test "$MINIX" = yes; then
3856
3857 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3858
3859
3860 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3861
3862
3863 $as_echo "#define _MINIX 1" >>confdefs.h
3864
3865   fi
3866
3867
3868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3869 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3870 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h.  */
3875
3876 #         define __EXTENSIONS__ 1
3877           $ac_includes_default
3878 int
3879 main ()
3880 {
3881
3882   ;
3883   return 0;
3884 }
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887   ac_cv_safe_to_define___extensions__=yes
3888 else
3889   ac_cv_safe_to_define___extensions__=no
3890 fi
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3894 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3895   test $ac_cv_safe_to_define___extensions__ = yes &&
3896     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3897
3898   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3899
3900   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3901
3902   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3903
3904   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3905
3906
3907 ac_aux_dir=
3908 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3909   for ac_t in install-sh install.sh shtool; do
3910     if test -f "$ac_dir/$ac_t"; then
3911       ac_aux_dir=$ac_dir
3912       ac_install_sh="$ac_aux_dir/$ac_t -c"
3913       break 2
3914     fi
3915   done
3916 done
3917 if test -z "$ac_aux_dir"; then
3918   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3919 fi
3920
3921 # These three variables are undocumented and unsupported,
3922 # and are intended to be withdrawn in a future Autoconf release.
3923 # They can cause serious problems if a builder's source tree is in a directory
3924 # whose full name contains unusual characters.
3925 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3926 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3927 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3928
3929
3930 # Make sure we can run config.sub.
3931 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3932   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3933
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3935 $as_echo_n "checking build system type... " >&6; }
3936 if test "${ac_cv_build+set}" = set; then :
3937   $as_echo_n "(cached) " >&6
3938 else
3939   ac_build_alias=$build_alias
3940 test "x$ac_build_alias" = x &&
3941   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3942 test "x$ac_build_alias" = x &&
3943   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3944 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3945   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3946
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3949 $as_echo "$ac_cv_build" >&6; }
3950 case $ac_cv_build in
3951 *-*-*) ;;
3952 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3953 esac
3954 build=$ac_cv_build
3955 ac_save_IFS=$IFS; IFS='-'
3956 set x $ac_cv_build
3957 shift
3958 build_cpu=$1
3959 build_vendor=$2
3960 shift; shift
3961 # Remember, the first character of IFS is used to create $*,
3962 # except with old shells:
3963 build_os=$*
3964 IFS=$ac_save_IFS
3965 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3966
3967
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3969 $as_echo_n "checking host system type... " >&6; }
3970 if test "${ac_cv_host+set}" = set; then :
3971   $as_echo_n "(cached) " >&6
3972 else
3973   if test "x$host_alias" = x; then
3974   ac_cv_host=$ac_cv_build
3975 else
3976   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3977     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3978 fi
3979
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3982 $as_echo "$ac_cv_host" >&6; }
3983 case $ac_cv_host in
3984 *-*-*) ;;
3985 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3986 esac
3987 host=$ac_cv_host
3988 ac_save_IFS=$IFS; IFS='-'
3989 set x $ac_cv_host
3990 shift
3991 host_cpu=$1
3992 host_vendor=$2
3993 shift; shift
3994 # Remember, the first character of IFS is used to create $*,
3995 # except with old shells:
3996 host_os=$*
3997 IFS=$ac_save_IFS
3998 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3999
4000
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4002 $as_echo_n "checking target system type... " >&6; }
4003 if test "${ac_cv_target+set}" = set; then :
4004   $as_echo_n "(cached) " >&6
4005 else
4006   if test "x$target_alias" = x; then
4007   ac_cv_target=$ac_cv_host
4008 else
4009   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4010     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4011 fi
4012
4013 fi
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4015 $as_echo "$ac_cv_target" >&6; }
4016 case $ac_cv_target in
4017 *-*-*) ;;
4018 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4019 esac
4020 target=$ac_cv_target
4021 ac_save_IFS=$IFS; IFS='-'
4022 set x $ac_cv_target
4023 shift
4024 target_cpu=$1
4025 target_vendor=$2
4026 shift; shift
4027 # Remember, the first character of IFS is used to create $*,
4028 # except with old shells:
4029 target_os=$*
4030 IFS=$ac_save_IFS
4031 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4032
4033
4034 # The aliases save the names the user supplied, while $host etc.
4035 # will get canonicalized.
4036 test -n "$target_alias" &&
4037   test "$program_prefix$program_suffix$program_transform_name" = \
4038     NONENONEs,x,x, &&
4039   program_prefix=${target_alias}-
4040
4041 # The tests for host and target for $enable_largefile require
4042 # canonical names.
4043
4044
4045
4046 # As the $enable_largefile decision depends on --enable-plugins we must set it
4047 # even in directories otherwise not depending on the $plugins option.
4048
4049
4050 # Check whether --enable-plugins was given.
4051 if test "${enable_plugins+set}" = set; then :
4052   enableval=$enable_plugins; case "${enableval}" in
4053   yes | "") plugins=yes ;;
4054   no) plugins=no ;;
4055   *) plugins=yes ;;
4056  esac
4057 else
4058   plugins=no
4059 fi
4060
4061
4062
4063 case "${host}" in
4064   sparc-*-solaris*|i[3-7]86-*-solaris*)
4065     # On native 32bit sparc and ia32 solaris, large-file and procfs support
4066     # are mutually exclusive; and without procfs support, the bfd/ elf module
4067     # cannot provide certain routines such as elfcore_write_prpsinfo
4068     # or elfcore_write_prstatus.  So unless the user explicitly requested
4069     # large-file support through the --enable-largefile switch, disable
4070     # large-file support in favor of procfs support.
4071     test "${target}" = "${host}" -a "x$plugins" = xno \
4072       && : ${enable_largefile="no"}
4073     ;;
4074 esac
4075
4076 # Check whether --enable-largefile was given.
4077 if test "${enable_largefile+set}" = set; then :
4078   enableval=$enable_largefile;
4079 fi
4080
4081 if test "$enable_largefile" != no; then
4082
4083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4084 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4085 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   ac_cv_sys_largefile_CC=no
4089      if test "$GCC" != yes; then
4090        ac_save_CC=$CC
4091        while :; do
4092          # IRIX 6.2 and later do not support large files by default,
4093          # so use the C compiler's -n32 option if that helps.
4094          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h.  */
4096 #include <sys/types.h>
4097  /* Check that off_t can represent 2**63 - 1 correctly.
4098     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4099     since some C++ compilers masquerading as C compilers
4100     incorrectly reject 9223372036854775807.  */
4101 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4102   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4103                        && LARGE_OFF_T % 2147483647 == 1)
4104                       ? 1 : -1];
4105 int
4106 main ()
4107 {
4108
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113          if ac_fn_c_try_compile "$LINENO"; then :
4114   break
4115 fi
4116 rm -f core conftest.err conftest.$ac_objext
4117          CC="$CC -n32"
4118          if ac_fn_c_try_compile "$LINENO"; then :
4119   ac_cv_sys_largefile_CC=' -n32'; break
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext
4122          break
4123        done
4124        CC=$ac_save_CC
4125        rm -f conftest.$ac_ext
4126     fi
4127 fi
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4129 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4130   if test "$ac_cv_sys_largefile_CC" != no; then
4131     CC=$CC$ac_cv_sys_largefile_CC
4132   fi
4133
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4135 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4136 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4137   $as_echo_n "(cached) " >&6
4138 else
4139   while :; do
4140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h.  */
4142 #include <sys/types.h>
4143  /* Check that off_t can represent 2**63 - 1 correctly.
4144     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4145     since some C++ compilers masquerading as C compilers
4146     incorrectly reject 9223372036854775807.  */
4147 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4148   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4149                        && LARGE_OFF_T % 2147483647 == 1)
4150                       ? 1 : -1];
4151 int
4152 main ()
4153 {
4154
4155   ;
4156   return 0;
4157 }
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160   ac_cv_sys_file_offset_bits=no; break
4161 fi
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h.  */
4165 #define _FILE_OFFSET_BITS 64
4166 #include <sys/types.h>
4167  /* Check that off_t can represent 2**63 - 1 correctly.
4168     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4169     since some C++ compilers masquerading as C compilers
4170     incorrectly reject 9223372036854775807.  */
4171 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4172   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4173                        && LARGE_OFF_T % 2147483647 == 1)
4174                       ? 1 : -1];
4175 int
4176 main ()
4177 {
4178
4179   ;
4180   return 0;
4181 }
4182 _ACEOF
4183 if ac_fn_c_try_compile "$LINENO"; then :
4184   ac_cv_sys_file_offset_bits=64; break
4185 fi
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187   ac_cv_sys_file_offset_bits=unknown
4188   break
4189 done
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4192 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4193 case $ac_cv_sys_file_offset_bits in #(
4194   no | unknown) ;;
4195   *)
4196 cat >>confdefs.h <<_ACEOF
4197 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4198 _ACEOF
4199 ;;
4200 esac
4201 rm -rf conftest*
4202   if test $ac_cv_sys_file_offset_bits = unknown; then
4203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4204 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4205 if test "${ac_cv_sys_large_files+set}" = set; then :
4206   $as_echo_n "(cached) " >&6
4207 else
4208   while :; do
4209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h.  */
4211 #include <sys/types.h>
4212  /* Check that off_t can represent 2**63 - 1 correctly.
4213     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4214     since some C++ compilers masquerading as C compilers
4215     incorrectly reject 9223372036854775807.  */
4216 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4217   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4218                        && LARGE_OFF_T % 2147483647 == 1)
4219                       ? 1 : -1];
4220 int
4221 main ()
4222 {
4223
4224   ;
4225   return 0;
4226 }
4227 _ACEOF
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229   ac_cv_sys_large_files=no; break
4230 fi
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h.  */
4234 #define _LARGE_FILES 1
4235 #include <sys/types.h>
4236  /* Check that off_t can represent 2**63 - 1 correctly.
4237     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4238     since some C++ compilers masquerading as C compilers
4239     incorrectly reject 9223372036854775807.  */
4240 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4241   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4242                        && LARGE_OFF_T % 2147483647 == 1)
4243                       ? 1 : -1];
4244 int
4245 main ()
4246 {
4247
4248   ;
4249   return 0;
4250 }
4251 _ACEOF
4252 if ac_fn_c_try_compile "$LINENO"; then :
4253   ac_cv_sys_large_files=1; break
4254 fi
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256   ac_cv_sys_large_files=unknown
4257   break
4258 done
4259 fi
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4261 $as_echo "$ac_cv_sys_large_files" >&6; }
4262 case $ac_cv_sys_large_files in #(
4263   no | unknown) ;;
4264   *)
4265 cat >>confdefs.h <<_ACEOF
4266 #define _LARGE_FILES $ac_cv_sys_large_files
4267 _ACEOF
4268 ;;
4269 esac
4270 rm -rf conftest*
4271   fi
4272 fi
4273
4274
4275
4276
4277
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4279 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4280 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4281   $as_echo_n "(cached) " >&6
4282 else
4283   am_cv_prog_cc_stdc=no
4284 ac_save_CC="$CC"
4285 # Don't try gcc -ansi; that turns off useful extensions and
4286 # breaks some systems' header files.
4287 # AIX                   -qlanglvl=ansi
4288 # Ultrix and OSF/1      -std1
4289 # HP-UX 10.20 and later -Ae
4290 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4291 # SVR4                  -Xc -D__EXTENSIONS__
4292 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4293 do
4294   CC="$ac_save_CC $ac_arg"
4295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h.  */
4297 #include <stdarg.h>
4298 #include <stdio.h>
4299 #include <sys/types.h>
4300 #include <sys/stat.h>
4301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4302 struct buf { int x; };
4303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4304 static char *e (p, i)
4305      char **p;
4306      int i;
4307 {
4308   return p[i];
4309 }
4310 static char *f (char * (*g) (char **, int), char **p, ...)
4311 {
4312   char *s;
4313   va_list v;
4314   va_start (v,p);
4315   s = g (p, va_arg (v,int));
4316   va_end (v);
4317   return s;
4318 }
4319 int test (int i, double x);
4320 struct s1 {int (*f) (int a);};
4321 struct s2 {int (*f) (double a);};
4322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4323 int argc;
4324 char **argv;
4325
4326 int
4327 main ()
4328 {
4329
4330 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4331
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 if ac_fn_c_try_compile "$LINENO"; then :
4337   am_cv_prog_cc_stdc="$ac_arg"; break
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 done
4341 CC="$ac_save_CC"
4342
4343 fi
4344
4345 if test -z "$am_cv_prog_cc_stdc"; then
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4347 $as_echo "none needed" >&6; }
4348 else
4349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4350 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4351 fi
4352 case "x$am_cv_prog_cc_stdc" in
4353   x|xno) ;;
4354   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4355 esac
4356
4357
4358 ac_aux_dir=
4359 for ac_dir in .. "$srcdir"/..; do
4360   for ac_t in install-sh install.sh shtool; do
4361     if test -f "$ac_dir/$ac_t"; then
4362       ac_aux_dir=$ac_dir
4363       ac_install_sh="$ac_aux_dir/$ac_t -c"
4364       break 2
4365     fi
4366   done
4367 done
4368 if test -z "$ac_aux_dir"; then
4369   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4370 fi
4371
4372 # These three variables are undocumented and unsupported,
4373 # and are intended to be withdrawn in a future Autoconf release.
4374 # They can cause serious problems if a builder's source tree is in a directory
4375 # whose full name contains unusual characters.
4376 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4377 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4378 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4379
4380
4381
4382 test "$program_prefix" != NONE &&
4383   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4384 # Use a double $ so make ignores it.
4385 test "$program_suffix" != NONE &&
4386   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4387 # Double any \ or $.
4388 # By default was `s,x,x', remove it if useless.
4389 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4390 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4391
4392
4393 # Dependency checking.
4394 rm -rf .tst 2>/dev/null
4395 mkdir .tst 2>/dev/null
4396 if test -d .tst; then
4397   am__leading_dot=.
4398 else
4399   am__leading_dot=_
4400 fi
4401 rmdir .tst 2>/dev/null
4402
4403 DEPDIR="${am__leading_dot}deps"
4404
4405 ac_config_commands="$ac_config_commands depdir"
4406
4407
4408 depcc="$CC"   am_compiler_list=
4409
4410 am_depcomp=$ac_aux_dir/depcomp
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4412 $as_echo_n "checking dependency style of $depcc... " >&6; }
4413 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4414   $as_echo_n "(cached) " >&6
4415 else
4416   if test -f "$am_depcomp"; then
4417   # We make a subdir and do the tests there.  Otherwise we can end up
4418   # making bogus files that we don't know about and never remove.  For
4419   # instance it was reported that on HP-UX the gcc test will end up
4420   # making a dummy file named `D' -- because `-MD' means `put the output
4421   # in D'.
4422   mkdir conftest.dir
4423   # Copy depcomp to subdir because otherwise we won't find it if we're
4424   # using a relative directory.
4425   cp "$am_depcomp" conftest.dir
4426   cd conftest.dir
4427   # We will build objects and dependencies in a subdirectory because
4428   # it helps to detect inapplicable dependency modes.  For instance
4429   # both Tru64's cc and ICC support -MD to output dependencies as a
4430   # side effect of compilation, but ICC will put the dependencies in
4431   # the current directory while Tru64 will put them in the object
4432   # directory.
4433   mkdir sub
4434
4435   am_cv_CC_dependencies_compiler_type=none
4436   if test "$am_compiler_list" = ""; then
4437      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4438   fi
4439   for depmode in $am_compiler_list; do
4440     if test $depmode = none; then break; fi
4441
4442     $as_echo "$as_me:$LINENO: trying $depmode" >&5
4443     # Setup a source with many dependencies, because some compilers
4444     # like to wrap large dependency lists on column 80 (with \), and
4445     # we should not choose a depcomp mode which is confused by this.
4446     #
4447     # We need to recreate these files for each test, as the compiler may
4448     # overwrite some of them when testing with obscure command lines.
4449     # This happens at least with the AIX C compiler.
4450     : > sub/conftest.c
4451     for i in 1 2 3 4 5 6; do
4452       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4453       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4454       # Solaris 8's {/usr,}/bin/sh.
4455       touch sub/conftst$i.h
4456     done
4457     echo "include sub/conftest.Po" > confmf
4458
4459     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4460     # mode.  It turns out that the SunPro C++ compiler does not properly
4461     # handle `-M -o', and we need to detect this.
4462     depcmd="depmode=$depmode \
4463        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4464        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4465        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4466     echo "| $depcmd" | sed -e 's/  */ /g' >&5
4467     if env $depcmd > conftest.err 2>&1 &&
4468        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4469        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4470        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4471       # icc doesn't choke on unknown options, it will just issue warnings
4472       # or remarks (even with -Werror).  So we grep stderr for any message
4473       # that says an option was ignored or not supported.
4474       # When given -MP, icc 7.0 and 7.1 complain thusly:
4475       #   icc: Command line warning: ignoring option '-M'; no argument required
4476       # The diagnosis changed in icc 8.0:
4477       #   icc: Command line remark: option '-MP' not supported
4478       if (grep 'ignoring option' conftest.err ||
4479           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4480         am_cv_CC_dependencies_compiler_type=$depmode
4481         $as_echo "$as_me:$LINENO: success" >&5
4482         break
4483       fi
4484     fi
4485     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4486     sed -e 's/^/| /' < conftest.err >&5
4487   done
4488
4489   cd ..
4490   rm -rf conftest.dir
4491 else
4492   am_cv_CC_dependencies_compiler_type=none
4493 fi
4494
4495 fi
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4497 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4498 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4499 then as_fn_error "no usable dependency style found" "$LINENO" 5
4500 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4501
4502 fi
4503
4504
4505 # Check for the 'make' the user wants to use.
4506 for ac_prog in make
4507 do
4508   # Extract the first word of "$ac_prog", so it can be a program name with args.
4509 set dummy $ac_prog; ac_word=$2
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511 $as_echo_n "checking for $ac_word... " >&6; }
4512 if test "${ac_cv_prog_MAKE+set}" = set; then :
4513   $as_echo_n "(cached) " >&6
4514 else
4515   if test -n "$MAKE"; then
4516   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4517 else
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523     for ac_exec_ext in '' $ac_executable_extensions; do
4524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525     ac_cv_prog_MAKE="$ac_prog"
4526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527     break 2
4528   fi
4529 done
4530   done
4531 IFS=$as_save_IFS
4532
4533 fi
4534 fi
4535 MAKE=$ac_cv_prog_MAKE
4536 if test -n "$MAKE"; then
4537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4538 $as_echo "$MAKE" >&6; }
4539 else
4540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541 $as_echo "no" >&6; }
4542 fi
4543
4544
4545   test -n "$MAKE" && break
4546 done
4547
4548 MAKE_IS_GNU=
4549 case "`$MAKE --version 2>&1 | sed 1q`" in
4550   *GNU*)
4551     MAKE_IS_GNU=yes
4552     ;;
4553 esac
4554  if test "$MAKE_IS_GNU" = yes; then
4555   GMAKE_TRUE=
4556   GMAKE_FALSE='#'
4557 else
4558   GMAKE_TRUE='#'
4559   GMAKE_FALSE=
4560 fi
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4563 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4564 set x ${MAKE-make}
4565 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4566 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4567   $as_echo_n "(cached) " >&6
4568 else
4569   cat >conftest.make <<\_ACEOF
4570 SHELL = /bin/sh
4571 all:
4572         @echo '@@@%%%=$(MAKE)=@@@%%%'
4573 _ACEOF
4574 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4575 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4576   *@@@%%%=?*=@@@%%%*)
4577     eval ac_cv_prog_make_${ac_make}_set=yes;;
4578   *)
4579     eval ac_cv_prog_make_${ac_make}_set=no;;
4580 esac
4581 rm -f conftest.make
4582 fi
4583 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4585 $as_echo "yes" >&6; }
4586   SET_MAKE=
4587 else
4588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4590   SET_MAKE="MAKE=${MAKE-make}"
4591 fi
4592
4593
4594 # Configure gnulib.  We need to build gnulib under some other
4595 # directory not "gnulib", to avoid the problem of both GDB and
4596 # GDBserver wanting to build it in the same directory, when building
4597 # in the source dir.
4598
4599   in_src="gnulib"
4600   in_build="build-gnulib"
4601
4602   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4603   # so they do not pile up.
4604   ac_sub_configure_args=
4605   ac_prev=
4606   eval "set x $ac_configure_args"
4607   shift
4608   for ac_arg
4609   do
4610     if test -n "$ac_prev"; then
4611       ac_prev=
4612       continue
4613     fi
4614     case $ac_arg in
4615     -cache-file | --cache-file | --cache-fil | --cache-fi \
4616     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4617       ac_prev=cache_file ;;
4618     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4619     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4620     | --c=*)
4621       ;;
4622     --config-cache | -C)
4623       ;;
4624     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4625       ac_prev=srcdir ;;
4626     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4627       ;;
4628     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4629       ac_prev=prefix ;;
4630     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4631       ;;
4632     --disable-option-checking)
4633       ;;
4634     *)
4635       case $ac_arg in
4636       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4637       esac
4638       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4639     esac
4640   done
4641
4642   # Always prepend --prefix to ensure using the same prefix
4643   # in subdir configurations.
4644   ac_arg="--prefix=$prefix"
4645   case $ac_arg in
4646   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4647   esac
4648   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4649
4650   # Pass --silent
4651   if test "$silent" = yes; then
4652     ac_sub_configure_args="--silent $ac_sub_configure_args"
4653   fi
4654
4655   # Always prepend --disable-option-checking to silence warnings, since
4656   # different subdirs can have different --enable and --with options.
4657   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4658
4659   ac_popdir=`pwd`
4660   ac_dir=$in_build
4661
4662   ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4663   $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4664   $as_echo "$ac_msg" >&6
4665   as_dir="$ac_dir"; as_fn_mkdir_p
4666
4667   case $srcdir in
4668   [\\/]* | ?:[\\/]* )
4669     ac_srcdir=$srcdir/$in_src ;;
4670   *) # Relative name.
4671     ac_srcdir=../$srcdir/$in_src ;;
4672   esac
4673
4674   cd "$ac_dir"
4675
4676   ac_sub_configure=$ac_srcdir/configure
4677
4678   # Make the cache file name correct relative to the subdirectory.
4679   case $cache_file in
4680   [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4681   *) # Relative name.
4682     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4683   esac
4684
4685   { $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
4686 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4687   # The eval makes quoting arguments work.
4688   eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4689        --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4690     as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4691
4692   cd "$ac_popdir"
4693
4694
4695
4696 CONFIG_OBS=
4697 CONFIG_DEPS=
4698 CONFIG_SRCS=
4699 ENABLE_CFLAGS=
4700
4701 CONFIG_ALL=
4702 CONFIG_CLEAN=
4703 CONFIG_INSTALL=
4704 CONFIG_UNINSTALL=
4705
4706 # If we haven't got the data from the intl directory,
4707 # assume NLS is disabled.
4708 USE_NLS=no
4709 LIBINTL=
4710 LIBINTL_DEP=
4711 INCINTL=
4712 XGETTEXT=
4713 GMSGFMT=
4714 POSUB=
4715
4716 if test -f  ../intl/config.intl; then
4717   .  ../intl/config.intl
4718 fi
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4720 $as_echo_n "checking whether NLS is requested... " >&6; }
4721 if test x"$USE_NLS" != xyes; then
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4724 else
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4726 $as_echo "yes" >&6; }
4727
4728 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4729
4730
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4732 $as_echo_n "checking for catalogs to be installed... " >&6; }
4733   # Look for .po and .gmo files in the source directory.
4734   CATALOGS=
4735   XLINGUAS=
4736   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4737     # If there aren't any .gmo files the shell will give us the
4738     # literal string "../path/to/srcdir/po/*.gmo" which has to be
4739     # weeded out.
4740     case "$cat" in *\**)
4741       continue;;
4742     esac
4743     # The quadruple backslash is collapsed to a double backslash
4744     # by the backticks, then collapsed again by the double quotes,
4745     # leaving us with one backslash in the sed expression (right
4746     # before the dot that mustn't act as a wildcard).
4747     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4748     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4749     # The user is allowed to set LINGUAS to a list of languages to
4750     # install catalogs for.  If it's empty that means "all of them."
4751     if test "x$LINGUAS" = x; then
4752       CATALOGS="$CATALOGS $cat"
4753       XLINGUAS="$XLINGUAS $lang"
4754     else
4755       case "$LINGUAS" in *$lang*)
4756         CATALOGS="$CATALOGS $cat"
4757         XLINGUAS="$XLINGUAS $lang"
4758         ;;
4759       esac
4760     fi
4761   done
4762   LINGUAS="$XLINGUAS"
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4764 $as_echo "$LINGUAS" >&6; }
4765
4766
4767     DATADIRNAME=share
4768
4769   INSTOBJEXT=.mo
4770
4771   GENCAT=gencat
4772
4773   CATOBJEXT=.gmo
4774
4775 fi
4776
4777 localedir='${datadir}/locale'
4778
4779
4780 if test x"$USE_NLS" = xyes; then
4781    CONFIG_ALL="$CONFIG_ALL all-po"
4782    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4783    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4784    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4785 fi
4786
4787 GNULIB=build-gnulib/import
4788
4789 # For Makefile dependencies.
4790 GNULIB_STDINT_H=
4791 if test x"$STDINT_H" != x; then
4792   GNULIB_STDINT_H=$GNULIB/$STDINT_H
4793 fi
4794
4795
4796 PACKAGE=gdb
4797
4798 cat >>confdefs.h <<_ACEOF
4799 #define PACKAGE "$PACKAGE"
4800 _ACEOF
4801
4802
4803
4804 # We never need to detect it in this sub-configure.
4805 # But preserve it for config.status --recheck.
4806
4807
4808
4809 MAKEINFO_EXTRA_FLAGS=""
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4811 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4812 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   echo '@clicksequence{a @click{} b}' >conftest.texinfo
4816   if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4817     gdb_cv_have_makeinfo_click=yes
4818   else
4819     gdb_cv_have_makeinfo_click=no
4820   fi
4821 fi
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4823 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4824 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
4825   MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4826 fi
4827
4828
4829
4830
4831 # Check whether --with-separate-debug-dir was given.
4832 if test "${with_separate_debug_dir+set}" = set; then :
4833   withval=$with_separate_debug_dir;
4834     DEBUGDIR=$withval
4835 else
4836   DEBUGDIR=${libdir}/debug
4837 fi
4838
4839
4840   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4841   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4842   ac_define_dir=`eval echo $DEBUGDIR`
4843   ac_define_dir=`eval echo $ac_define_dir`
4844
4845 cat >>confdefs.h <<_ACEOF
4846 #define DEBUGDIR "$ac_define_dir"
4847 _ACEOF
4848
4849
4850
4851
4852   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4853      if test "x$prefix" = xNONE; then
4854         test_prefix=/usr/local
4855      else
4856         test_prefix=$prefix
4857      fi
4858   else
4859      test_prefix=$exec_prefix
4860   fi
4861   value=0
4862   case ${ac_define_dir} in
4863      "${test_prefix}"|"${test_prefix}/"*|\
4864         '${exec_prefix}'|'${exec_prefix}/'*)
4865      value=1
4866      ;;
4867   esac
4868
4869 cat >>confdefs.h <<_ACEOF
4870 #define DEBUGDIR_RELOCATABLE $value
4871 _ACEOF
4872
4873
4874
4875
4876 # We can't pass paths as command line arguments.
4877 # Mingw32 tries to be clever and will convert the paths for us.
4878 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
4879 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
4880 # This breaks GDB's relocatable path conversions since paths passed in
4881 # config.h would not get so translated, the path prefixes no longer match.
4882
4883   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4884   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4885   ac_define_dir=`eval echo $bindir`
4886   ac_define_dir=`eval echo $ac_define_dir`
4887
4888 cat >>confdefs.h <<_ACEOF
4889 #define BINDIR "$ac_define_dir"
4890 _ACEOF
4891
4892
4893
4894 # GDB's datadir relocation
4895
4896
4897
4898 # Check whether --with-gdb-datadir was given.
4899 if test "${with_gdb_datadir+set}" = set; then :
4900   withval=$with_gdb_datadir;
4901     GDB_DATADIR=$withval
4902 else
4903   GDB_DATADIR=${datadir}/gdb
4904 fi
4905
4906
4907   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4908   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4909   ac_define_dir=`eval echo $GDB_DATADIR`
4910   ac_define_dir=`eval echo $ac_define_dir`
4911
4912 cat >>confdefs.h <<_ACEOF
4913 #define GDB_DATADIR "$ac_define_dir"
4914 _ACEOF
4915
4916
4917
4918
4919   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4920      if test "x$prefix" = xNONE; then
4921         test_prefix=/usr/local
4922      else
4923         test_prefix=$prefix
4924      fi
4925   else
4926      test_prefix=$exec_prefix
4927   fi
4928   value=0
4929   case ${ac_define_dir} in
4930      "${test_prefix}"|"${test_prefix}/"*|\
4931         '${exec_prefix}'|'${exec_prefix}/'*)
4932      value=1
4933      ;;
4934   esac
4935
4936 cat >>confdefs.h <<_ACEOF
4937 #define GDB_DATADIR_RELOCATABLE $value
4938 _ACEOF
4939
4940
4941
4942
4943
4944 # Check whether --with-relocated-sources was given.
4945 if test "${with_relocated_sources+set}" = set; then :
4946   withval=$with_relocated_sources; reloc_srcdir="${withval}"
4947
4948   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4949   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4950   ac_define_dir=`eval echo $reloc_srcdir`
4951   ac_define_dir=`eval echo $ac_define_dir`
4952
4953 cat >>confdefs.h <<_ACEOF
4954 #define RELOC_SRCDIR "$ac_define_dir"
4955 _ACEOF
4956
4957
4958
4959 fi
4960
4961
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
4963 $as_echo_n "checking for default auto-load safe-path... " >&6; }
4964
4965 # Check whether --with-auto-load-safe-path was given.
4966 if test "${with_auto_load_safe_path+set}" = set; then :
4967   withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
4968      with_auto_load_safe_path="/"
4969      fi
4970 else
4971   with_auto_load_safe_path='$ddir/auto-load'
4972 fi
4973
4974 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]ddir\>/\\\\\\\\\\\\&/g'`
4975
4976   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4977   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4978   ac_define_dir=`eval echo $escape_dir`
4979   ac_define_dir=`eval echo $ac_define_dir`
4980
4981 cat >>confdefs.h <<_ACEOF
4982 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
4983 _ACEOF
4984
4985
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
4987 $as_echo "$with_auto_load_safe_path" >&6; }
4988
4989
4990
4991 subdirs="$subdirs testsuite"
4992
4993
4994 # Check whether to support alternative target configurations
4995 # Check whether --enable-targets was given.
4996 if test "${enable_targets+set}" = set; then :
4997   enableval=$enable_targets; case "${enableval}" in
4998   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
4999             ;;
5000   no)       enable_targets= ;;
5001   *)        enable_targets=$enableval ;;
5002 esac
5003 fi
5004
5005
5006 # Check whether to enable 64-bit support on 32-bit hosts
5007 # Check whether --enable-64-bit-bfd was given.
5008 if test "${enable_64_bit_bfd+set}" = set; then :
5009   enableval=$enable_64_bit_bfd; case "${enableval}" in
5010   yes)  want64=true  ;;
5011   no)   want64=false ;;
5012   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5013 esac
5014 else
5015   want64=false
5016 fi
5017
5018 # Provide defaults for some variables set by the per-host and per-target
5019 # configuration.
5020 gdb_host_obs=posix-hdep.o
5021
5022 if test "${target}" = "${host}"; then
5023   gdb_native=yes
5024 else
5025   gdb_native=no
5026 fi
5027
5028 . $srcdir/configure.host
5029
5030 # Accumulate some settings from configure.tgt over all enabled targets
5031
5032 TARGET_OBS=
5033 all_targets=
5034
5035 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5036 do
5037   if test "$targ_alias" = "all"; then
5038     all_targets=true
5039   else
5040     # Canonicalize the secondary target names.
5041     result=`$ac_config_sub $targ_alias 2>/dev/null`
5042     if test -n "$result"; then
5043         targ=$result
5044     else
5045         targ=$targ_alias
5046     fi
5047
5048     . ${srcdir}/configure.tgt
5049
5050     if test -z "${gdb_target_obs}"; then :
5051   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5052 fi
5053
5054     # Target-specific object files
5055     for i in ${gdb_target_obs}; do
5056         case " $TARGET_OBS " in
5057         *" ${i} "*) ;;
5058         *)
5059           TARGET_OBS="$TARGET_OBS ${i}"
5060           ;;
5061         esac
5062     done
5063
5064     # Check whether this target needs 64-bit CORE_ADDR
5065     if test x${want64} = xfalse; then
5066       . ${srcdir}/../bfd/config.bfd
5067     fi
5068   fi
5069 done
5070
5071 if test x${all_targets} = xtrue; then
5072
5073   # We want all 64-bit targets if we either:
5074   #  - run on a 64-bit host  or
5075   #  - already require 64-bit support for some other target  or
5076   #  - the --enable-64-bit-bfd option was supplied
5077   # Otherwise we only support all 32-bit targets.
5078   #
5079   # NOTE: This test must be in sync with the corresponding
5080   #       tests in BFD!
5081
5082   if test x${want64} = xfalse; then
5083     # The cast to long int works around a bug in the HP C Compiler
5084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5086 # This bug is HP SR number 8606223364.
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5088 $as_echo_n "checking size of long... " >&6; }
5089 if test "${ac_cv_sizeof_long+set}" = set; then :
5090   $as_echo_n "(cached) " >&6
5091 else
5092   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5093
5094 else
5095   if test "$ac_cv_type_long" = yes; then
5096      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5098 { as_fn_set_status 77
5099 as_fn_error "cannot compute sizeof (long)
5100 See \`config.log' for more details." "$LINENO" 5; }; }
5101    else
5102      ac_cv_sizeof_long=0
5103    fi
5104 fi
5105
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5108 $as_echo "$ac_cv_sizeof_long" >&6; }
5109
5110
5111
5112 cat >>confdefs.h <<_ACEOF
5113 #define SIZEOF_LONG $ac_cv_sizeof_long
5114 _ACEOF
5115
5116
5117     if test "x${ac_cv_sizeof_long}" = "x8"; then
5118       want64=true
5119     fi
5120   fi
5121   if test x${want64} = xtrue; then
5122     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5123   else
5124     TARGET_OBS='$(ALL_TARGET_OBS)'
5125   fi
5126 fi
5127
5128
5129
5130 # For other settings, only the main target counts.
5131 gdb_sim=
5132 gdb_osabi=
5133 build_gdbserver=
5134 targ=$target; . ${srcdir}/configure.tgt
5135
5136 # Fetch the default architecture and default target vector from BFD.
5137 targ=$target; . $srcdir/../bfd/config.bfd
5138
5139 # We only want the first architecture, so strip off the others if
5140 # there is more than one.
5141 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5142
5143 if test "x$targ_archs" != x; then
5144
5145 cat >>confdefs.h <<_ACEOF
5146 #define DEFAULT_BFD_ARCH $targ_archs
5147 _ACEOF
5148
5149 fi
5150 if test "x$targ_defvec" != x; then
5151
5152 cat >>confdefs.h <<_ACEOF
5153 #define DEFAULT_BFD_VEC $targ_defvec
5154 _ACEOF
5155
5156 fi
5157
5158 # The CLI cannot be disabled yet, but may be in the future.
5159
5160 # Enable CLI.
5161 # Check whether --enable-gdbcli was given.
5162 if test "${enable_gdbcli+set}" = set; then :
5163   enableval=$enable_gdbcli; case $enableval in
5164     yes)
5165       ;;
5166     no)
5167       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5168     *)
5169       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5170   esac
5171 else
5172   enable_gdbcli=yes
5173 fi
5174
5175 if test x"$enable_gdbcli" = xyes; then
5176   if test -d $srcdir/cli; then
5177     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5178     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5179     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5180     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5181   fi
5182 fi
5183
5184 # Enable MI.
5185 # Check whether --enable-gdbmi was given.
5186 if test "${enable_gdbmi+set}" = set; then :
5187   enableval=$enable_gdbmi; case $enableval in
5188     yes | no)
5189       ;;
5190     *)
5191       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5192   esac
5193 else
5194   enable_gdbmi=yes
5195 fi
5196
5197 if test x"$enable_gdbmi" = xyes; then
5198   if test -d $srcdir/mi; then
5199     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5200     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5201     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5202     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5203   fi
5204 fi
5205
5206 # Enable TUI.
5207 # Check whether --enable-tui was given.
5208 if test "${enable_tui+set}" = set; then :
5209   enableval=$enable_tui; case $enableval in
5210     yes | no | auto)
5211       ;;
5212     *)
5213       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5214   esac
5215 else
5216   enable_tui=auto
5217 fi
5218
5219
5220 # Enable gdbtk.
5221 # Check whether --enable-gdbtk was given.
5222 if test "${enable_gdbtk+set}" = set; then :
5223   enableval=$enable_gdbtk; case $enableval in
5224     yes | no)
5225       ;;
5226     *)
5227       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5228   esac
5229 else
5230   if test -d $srcdir/gdbtk; then
5231     enable_gdbtk=yes
5232   else
5233     enable_gdbtk=no
5234   fi
5235 fi
5236
5237 # We unconditionally disable gdbtk tests on selected platforms.
5238 case $host_os in
5239   go32* | windows*)
5240     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5241 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5242     enable_gdbtk=no ;;
5243 esac
5244
5245 # Libunwind support for ia64.
5246
5247
5248 # Check whether --with-libunwind-ia64 was given.
5249 if test "${with_libunwind_ia64+set}" = set; then :
5250   withval=$with_libunwind_ia64;
5251 else
5252   with_libunwind_ia64=auto
5253 fi
5254
5255
5256 # Backward compatibility option.
5257 if test "${with_libunwind+set}" = set; then
5258   if test x"$with_libunwind_ia64" != xauto; then
5259     as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5260   fi
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5262 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5263   with_libunwind_ia64="$with_libunwind"
5264 fi
5265
5266 case "$with_libunwind_ia64" in
5267   yes | no)
5268     ;;
5269   auto)
5270     for ac_header in libunwind-ia64.h
5271 do :
5272   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5273 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5274   cat >>confdefs.h <<_ACEOF
5275 #define HAVE_LIBUNWIND_IA64_H 1
5276 _ACEOF
5277
5278 fi
5279
5280 done
5281
5282     with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5283     ;;
5284   *)
5285     as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5286     ;;
5287 esac
5288
5289 if test x"$with_libunwind_ia64" = xyes; then
5290   for ac_header in libunwind-ia64.h
5291 do :
5292   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5293 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5294   cat >>confdefs.h <<_ACEOF
5295 #define HAVE_LIBUNWIND_IA64_H 1
5296 _ACEOF
5297
5298 fi
5299
5300 done
5301
5302   if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5303     as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5304   fi
5305   CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5306   CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5307   CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5308 fi
5309
5310 opt_curses=no
5311
5312 # Check whether --with-curses was given.
5313 if test "${with_curses+set}" = set; then :
5314   withval=$with_curses; opt_curses=$withval
5315 fi
5316
5317
5318 prefer_curses=no
5319 if test "$opt_curses" = "yes"; then
5320   prefer_curses=yes
5321 fi
5322
5323 # Profiling support.
5324 # Check whether --enable-profiling was given.
5325 if test "${enable_profiling+set}" = set; then :
5326   enableval=$enable_profiling; case $enableval in
5327     yes | no)
5328       ;;
5329     *)
5330       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5331   esac
5332 else
5333   enable_profiling=no
5334 fi
5335
5336
5337 for ac_func in monstartup _mcleanup
5338 do :
5339   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5340 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5341 eval as_val=\$$as_ac_var
5342    if test "x$as_val" = x""yes; then :
5343   cat >>confdefs.h <<_ACEOF
5344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5345 _ACEOF
5346
5347 fi
5348 done
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5351 $as_echo_n "checking for _etext... " >&6; }
5352 if test "${ac_cv_var__etext+set}" = set; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h.  */
5357 #include <stdlib.h>
5358 extern char _etext;
5359
5360 int
5361 main ()
5362 {
5363 free (&_etext);
5364   ;
5365   return 0;
5366 }
5367 _ACEOF
5368 if ac_fn_c_try_link "$LINENO"; then :
5369   ac_cv_var__etext=yes
5370 else
5371   ac_cv_var__etext=no
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext \
5374     conftest$ac_exeext conftest.$ac_ext
5375 fi
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5377 $as_echo "$ac_cv_var__etext" >&6; }
5378 if test $ac_cv_var__etext = yes; then
5379
5380 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5381
5382 fi
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5384 $as_echo_n "checking for etext... " >&6; }
5385 if test "${ac_cv_var_etext+set}" = set; then :
5386   $as_echo_n "(cached) " >&6
5387 else
5388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h.  */
5390 #include <stdlib.h>
5391 extern char etext;
5392
5393 int
5394 main ()
5395 {
5396 free (&etext);
5397   ;
5398   return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_c_try_link "$LINENO"; then :
5402   ac_cv_var_etext=yes
5403 else
5404   ac_cv_var_etext=no
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext \
5407     conftest$ac_exeext conftest.$ac_ext
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5410 $as_echo "$ac_cv_var_etext" >&6; }
5411 if test $ac_cv_var_etext = yes; then
5412
5413 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5414
5415 fi
5416 if test "$enable_profiling" = yes ; then
5417   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5418     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5419   fi
5420   PROFILE_CFLAGS=-pg
5421   OLD_CFLAGS="$CFLAGS"
5422   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5423
5424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5425 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5426 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5427   $as_echo_n "(cached) " >&6
5428 else
5429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h.  */
5431
5432 int
5433 main ()
5434 {
5435 int x;
5436   ;
5437   return 0;
5438 }
5439 _ACEOF
5440 if ac_fn_c_try_compile "$LINENO"; then :
5441   ac_cv_cc_supports_pg=yes
5442 else
5443   ac_cv_cc_supports_pg=no
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5448 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5449
5450   if test $ac_cv_cc_supports_pg = no; then
5451     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5452   fi
5453
5454   CFLAGS="$OLD_CFLAGS"
5455 fi
5456
5457
5458
5459 # Check whether --with-pkgversion was given.
5460 if test "${with_pkgversion+set}" = set; then :
5461   withval=$with_pkgversion; case "$withval" in
5462       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5463       no)  PKGVERSION= ;;
5464       *)   PKGVERSION="($withval) " ;;
5465      esac
5466 else
5467   PKGVERSION="(GDB) "
5468
5469 fi
5470
5471
5472
5473
5474
5475 # Check whether --with-bugurl was given.
5476 if test "${with_bugurl+set}" = set; then :
5477   withval=$with_bugurl; case "$withval" in
5478       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5479       no)  BUGURL=
5480            ;;
5481       *)   BUGURL="$withval"
5482            ;;
5483      esac
5484 else
5485   BUGURL="http://www.gnu.org/software/gdb/bugs/"
5486
5487 fi
5488
5489   case ${BUGURL} in
5490   "")
5491     REPORT_BUGS_TO=
5492     REPORT_BUGS_TEXI=
5493     ;;
5494   *)
5495     REPORT_BUGS_TO="<$BUGURL>"
5496     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5497     ;;
5498   esac;
5499
5500
5501
5502
5503 cat >>confdefs.h <<_ACEOF
5504 #define PKGVERSION "$PKGVERSION"
5505 _ACEOF
5506
5507
5508 cat >>confdefs.h <<_ACEOF
5509 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5510 _ACEOF
5511
5512
5513 # --------------------- #
5514 # Checks for programs.  #
5515 # --------------------- #
5516
5517 for ac_prog in gawk mawk nawk awk
5518 do
5519   # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy $ac_prog; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if test "${ac_cv_prog_AWK+set}" = set; then :
5524   $as_echo_n "(cached) " >&6
5525 else
5526   if test -n "$AWK"; then
5527   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534     for ac_exec_ext in '' $ac_executable_extensions; do
5535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536     ac_cv_prog_AWK="$ac_prog"
5537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541   done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 AWK=$ac_cv_prog_AWK
5547 if test -n "$AWK"; then
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5549 $as_echo "$AWK" >&6; }
5550 else
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 fi
5554
5555
5556   test -n "$AWK" && break
5557 done
5558
5559 # Find a good install program.  We prefer a C program (faster),
5560 # so one script is as good as another.  But avoid the broken or
5561 # incompatible versions:
5562 # SysV /etc/install, /usr/sbin/install
5563 # SunOS /usr/etc/install
5564 # IRIX /sbin/install
5565 # AIX /bin/install
5566 # AmigaOS /C/install, which installs bootblocks on floppy discs
5567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5570 # OS/2's system install, which has a completely different semantic
5571 # ./install, which can be erroneously created by make from ./install.sh.
5572 # Reject install programs that cannot install multiple files.
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5574 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5575 if test -z "$INSTALL"; then
5576 if test "${ac_cv_path_install+set}" = set; then :
5577   $as_echo_n "(cached) " >&6
5578 else
5579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582   IFS=$as_save_IFS
5583   test -z "$as_dir" && as_dir=.
5584     # Account for people who put trailing slashes in PATH elements.
5585 case $as_dir/ in #((
5586   ./ | .// | /[cC]/* | \
5587   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5588   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5589   /usr/ucb/* ) ;;
5590   *)
5591     # OSF1 and SCO ODT 3.0 have their own names for install.
5592     # Don't use installbsd from OSF since it installs stuff as root
5593     # by default.
5594     for ac_prog in ginstall scoinst install; do
5595       for ac_exec_ext in '' $ac_executable_extensions; do
5596         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5597           if test $ac_prog = install &&
5598             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5599             # AIX install.  It has an incompatible calling convention.
5600             :
5601           elif test $ac_prog = install &&
5602             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5603             # program-specific install script used by HP pwplus--don't use.
5604             :
5605           else
5606             rm -rf conftest.one conftest.two conftest.dir
5607             echo one > conftest.one
5608             echo two > conftest.two
5609             mkdir conftest.dir
5610             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5611               test -s conftest.one && test -s conftest.two &&
5612               test -s conftest.dir/conftest.one &&
5613               test -s conftest.dir/conftest.two
5614             then
5615               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5616               break 3
5617             fi
5618           fi
5619         fi
5620       done
5621     done
5622     ;;
5623 esac
5624
5625   done
5626 IFS=$as_save_IFS
5627
5628 rm -rf conftest.one conftest.two conftest.dir
5629
5630 fi
5631   if test "${ac_cv_path_install+set}" = set; then
5632     INSTALL=$ac_cv_path_install
5633   else
5634     # As a last resort, use the slow shell script.  Don't cache a
5635     # value for INSTALL within a source directory, because that will
5636     # break other packages using the cache if that directory is
5637     # removed, or if the value is a relative name.
5638     INSTALL=$ac_install_sh
5639   fi
5640 fi
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5642 $as_echo "$INSTALL" >&6; }
5643
5644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5645 # It thinks the first close brace ends the variable substitution.
5646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5647
5648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5649
5650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5651
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5653 $as_echo_n "checking whether ln -s works... " >&6; }
5654 LN_S=$as_ln_s
5655 if test "$LN_S" = "ln -s"; then
5656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5657 $as_echo "yes" >&6; }
5658 else
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5660 $as_echo "no, using $LN_S" >&6; }
5661 fi
5662
5663 if test -n "$ac_tool_prefix"; then
5664   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5665 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   if test -n "$RANLIB"; then
5672   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5676 do
5677   IFS=$as_save_IFS
5678   test -z "$as_dir" && as_dir=.
5679     for ac_exec_ext in '' $ac_executable_extensions; do
5680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683     break 2
5684   fi
5685 done
5686   done
5687 IFS=$as_save_IFS
5688
5689 fi
5690 fi
5691 RANLIB=$ac_cv_prog_RANLIB
5692 if test -n "$RANLIB"; then
5693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5694 $as_echo "$RANLIB" >&6; }
5695 else
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698 fi
5699
5700
5701 fi
5702 if test -z "$ac_cv_prog_RANLIB"; then
5703   ac_ct_RANLIB=$RANLIB
5704   # Extract the first word of "ranlib", so it can be a program name with args.
5705 set dummy ranlib; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711   if test -n "$ac_ct_RANLIB"; then
5712   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717   IFS=$as_save_IFS
5718   test -z "$as_dir" && as_dir=.
5719     for ac_exec_ext in '' $ac_executable_extensions; do
5720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5721     ac_cv_prog_ac_ct_RANLIB="ranlib"
5722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723     break 2
5724   fi
5725 done
5726   done
5727 IFS=$as_save_IFS
5728
5729 fi
5730 fi
5731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5732 if test -n "$ac_ct_RANLIB"; then
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5734 $as_echo "$ac_ct_RANLIB" >&6; }
5735 else
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5738 fi
5739
5740   if test "x$ac_ct_RANLIB" = x; then
5741     RANLIB=":"
5742   else
5743     case $cross_compiling:$ac_tool_warned in
5744 yes:)
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5747 ac_tool_warned=yes ;;
5748 esac
5749     RANLIB=$ac_ct_RANLIB
5750   fi
5751 else
5752   RANLIB="$ac_cv_prog_RANLIB"
5753 fi
5754
5755 for ac_prog in 'bison -y' byacc
5756 do
5757   # Extract the first word of "$ac_prog", so it can be a program name with args.
5758 set dummy $ac_prog; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if test "${ac_cv_prog_YACC+set}" = set; then :
5762   $as_echo_n "(cached) " >&6
5763 else
5764   if test -n "$YACC"; then
5765   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770   IFS=$as_save_IFS
5771   test -z "$as_dir" && as_dir=.
5772     for ac_exec_ext in '' $ac_executable_extensions; do
5773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774     ac_cv_prog_YACC="$ac_prog"
5775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776     break 2
5777   fi
5778 done
5779   done
5780 IFS=$as_save_IFS
5781
5782 fi
5783 fi
5784 YACC=$ac_cv_prog_YACC
5785 if test -n "$YACC"; then
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5787 $as_echo "$YACC" >&6; }
5788 else
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 fi
5792
5793
5794   test -n "$YACC" && break
5795 done
5796 test -n "$YACC" || YACC="yacc"
5797
5798
5799 if test -n "$ac_tool_prefix"; then
5800   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5801 set dummy ${ac_tool_prefix}ar; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if test "${ac_cv_prog_AR+set}" = set; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   if test -n "$AR"; then
5808   ac_cv_prog_AR="$AR" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813   IFS=$as_save_IFS
5814   test -z "$as_dir" && as_dir=.
5815     for ac_exec_ext in '' $ac_executable_extensions; do
5816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817     ac_cv_prog_AR="${ac_tool_prefix}ar"
5818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819     break 2
5820   fi
5821 done
5822   done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 AR=$ac_cv_prog_AR
5828 if test -n "$AR"; then
5829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5830 $as_echo "$AR" >&6; }
5831 else
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835
5836
5837 fi
5838 if test -z "$ac_cv_prog_AR"; then
5839   ac_ct_AR=$AR
5840   # Extract the first word of "ar", so it can be a program name with args.
5841 set dummy ar; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5845   $as_echo_n "(cached) " >&6
5846 else
5847   if test -n "$ac_ct_AR"; then
5848   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853   IFS=$as_save_IFS
5854   test -z "$as_dir" && as_dir=.
5855     for ac_exec_ext in '' $ac_executable_extensions; do
5856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857     ac_cv_prog_ac_ct_AR="ar"
5858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859     break 2
5860   fi
5861 done
5862   done
5863 IFS=$as_save_IFS
5864
5865 fi
5866 fi
5867 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5868 if test -n "$ac_ct_AR"; then
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5870 $as_echo "$ac_ct_AR" >&6; }
5871 else
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875
5876   if test "x$ac_ct_AR" = x; then
5877     AR=""
5878   else
5879     case $cross_compiling:$ac_tool_warned in
5880 yes:)
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883 ac_tool_warned=yes ;;
5884 esac
5885     AR=$ac_ct_AR
5886   fi
5887 else
5888   AR="$ac_cv_prog_AR"
5889 fi
5890
5891 if test -n "$ac_tool_prefix"; then
5892   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5893 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5897   $as_echo_n "(cached) " >&6
5898 else
5899   if test -n "$DLLTOOL"; then
5900   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905   IFS=$as_save_IFS
5906   test -z "$as_dir" && as_dir=.
5907     for ac_exec_ext in '' $ac_executable_extensions; do
5908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911     break 2
5912   fi
5913 done
5914   done
5915 IFS=$as_save_IFS
5916
5917 fi
5918 fi
5919 DLLTOOL=$ac_cv_prog_DLLTOOL
5920 if test -n "$DLLTOOL"; then
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5922 $as_echo "$DLLTOOL" >&6; }
5923 else
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5926 fi
5927
5928
5929 fi
5930 if test -z "$ac_cv_prog_DLLTOOL"; then
5931   ac_ct_DLLTOOL=$DLLTOOL
5932   # Extract the first word of "dlltool", so it can be a program name with args.
5933 set dummy dlltool; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5937   $as_echo_n "(cached) " >&6
5938 else
5939   if test -n "$ac_ct_DLLTOOL"; then
5940   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945   IFS=$as_save_IFS
5946   test -z "$as_dir" && as_dir=.
5947     for ac_exec_ext in '' $ac_executable_extensions; do
5948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951     break 2
5952   fi
5953 done
5954   done
5955 IFS=$as_save_IFS
5956
5957 fi
5958 fi
5959 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5960 if test -n "$ac_ct_DLLTOOL"; then
5961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5962 $as_echo "$ac_ct_DLLTOOL" >&6; }
5963 else
5964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5966 fi
5967
5968   if test "x$ac_ct_DLLTOOL" = x; then
5969     DLLTOOL=""
5970   else
5971     case $cross_compiling:$ac_tool_warned in
5972 yes:)
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975 ac_tool_warned=yes ;;
5976 esac
5977     DLLTOOL=$ac_ct_DLLTOOL
5978   fi
5979 else
5980   DLLTOOL="$ac_cv_prog_DLLTOOL"
5981 fi
5982
5983 if test -n "$ac_tool_prefix"; then
5984   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5985 set dummy ${ac_tool_prefix}windres; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if test "${ac_cv_prog_WINDRES+set}" = set; then :
5989   $as_echo_n "(cached) " >&6
5990 else
5991   if test -n "$WINDRES"; then
5992   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999     for ac_exec_ext in '' $ac_executable_extensions; do
6000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006   done
6007 IFS=$as_save_IFS
6008
6009 fi
6010 fi
6011 WINDRES=$ac_cv_prog_WINDRES
6012 if test -n "$WINDRES"; then
6013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6014 $as_echo "$WINDRES" >&6; }
6015 else
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6018 fi
6019
6020
6021 fi
6022 if test -z "$ac_cv_prog_WINDRES"; then
6023   ac_ct_WINDRES=$WINDRES
6024   # Extract the first word of "windres", so it can be a program name with args.
6025 set dummy windres; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6029   $as_echo_n "(cached) " >&6
6030 else
6031   if test -n "$ac_ct_WINDRES"; then
6032   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037   IFS=$as_save_IFS
6038   test -z "$as_dir" && as_dir=.
6039     for ac_exec_ext in '' $ac_executable_extensions; do
6040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041     ac_cv_prog_ac_ct_WINDRES="windres"
6042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043     break 2
6044   fi
6045 done
6046   done
6047 IFS=$as_save_IFS
6048
6049 fi
6050 fi
6051 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6052 if test -n "$ac_ct_WINDRES"; then
6053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6054 $as_echo "$ac_ct_WINDRES" >&6; }
6055 else
6056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6058 fi
6059
6060   if test "x$ac_ct_WINDRES" = x; then
6061     WINDRES=""
6062   else
6063     case $cross_compiling:$ac_tool_warned in
6064 yes:)
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067 ac_tool_warned=yes ;;
6068 esac
6069     WINDRES=$ac_ct_WINDRES
6070   fi
6071 else
6072   WINDRES="$ac_cv_prog_WINDRES"
6073 fi
6074
6075
6076 # Needed for GNU/Hurd.
6077 if test -n "$ac_tool_prefix"; then
6078   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}mig; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if test "${ac_cv_prog_MIG+set}" = set; then :
6083   $as_echo_n "(cached) " >&6
6084 else
6085   if test -n "$MIG"; then
6086   ac_cv_prog_MIG="$MIG" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093     for ac_exec_ext in '' $ac_executable_extensions; do
6094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095     ac_cv_prog_MIG="${ac_tool_prefix}mig"
6096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100   done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 MIG=$ac_cv_prog_MIG
6106 if test -n "$MIG"; then
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6108 $as_echo "$MIG" >&6; }
6109 else
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113
6114
6115 fi
6116 if test -z "$ac_cv_prog_MIG"; then
6117   ac_ct_MIG=$MIG
6118   # Extract the first word of "mig", so it can be a program name with args.
6119 set dummy mig; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6123   $as_echo_n "(cached) " >&6
6124 else
6125   if test -n "$ac_ct_MIG"; then
6126   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131   IFS=$as_save_IFS
6132   test -z "$as_dir" && as_dir=.
6133     for ac_exec_ext in '' $ac_executable_extensions; do
6134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135     ac_cv_prog_ac_ct_MIG="mig"
6136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137     break 2
6138   fi
6139 done
6140   done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6146 if test -n "$ac_ct_MIG"; then
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6148 $as_echo "$ac_ct_MIG" >&6; }
6149 else
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153
6154   if test "x$ac_ct_MIG" = x; then
6155     MIG=""
6156   else
6157     case $cross_compiling:$ac_tool_warned in
6158 yes:)
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6161 ac_tool_warned=yes ;;
6162 esac
6163     MIG=$ac_ct_MIG
6164   fi
6165 else
6166   MIG="$ac_cv_prog_MIG"
6167 fi
6168
6169
6170 # ---------------------- #
6171 # Checks for libraries.  #
6172 # ---------------------- #
6173
6174 # We might need to link with -lm; most simulators need it.
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6176 $as_echo_n "checking for main in -lm... " >&6; }
6177 if test "${ac_cv_lib_m_main+set}" = set; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   ac_check_lib_save_LIBS=$LIBS
6181 LIBS="-lm  $LIBS"
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h.  */
6184
6185
6186 int
6187 main ()
6188 {
6189 return main ();
6190   ;
6191   return 0;
6192 }
6193 _ACEOF
6194 if ac_fn_c_try_link "$LINENO"; then :
6195   ac_cv_lib_m_main=yes
6196 else
6197   ac_cv_lib_m_main=no
6198 fi
6199 rm -f core conftest.err conftest.$ac_objext \
6200     conftest$ac_exeext conftest.$ac_ext
6201 LIBS=$ac_check_lib_save_LIBS
6202 fi
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6204 $as_echo "$ac_cv_lib_m_main" >&6; }
6205 if test "x$ac_cv_lib_m_main" = x""yes; then :
6206   cat >>confdefs.h <<_ACEOF
6207 #define HAVE_LIBM 1
6208 _ACEOF
6209
6210   LIBS="-lm $LIBS"
6211
6212 fi
6213
6214
6215 # We need to link with -lw to get `wctype' on Solaris before Solaris
6216 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
6217 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6218 # is known to have this problem).  Therefore we avoid libw if we can.
6219 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6220 if test "x$ac_cv_func_wctype" = x""yes; then :
6221
6222 else
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6224 $as_echo_n "checking for wctype in -lw... " >&6; }
6225 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6226   $as_echo_n "(cached) " >&6
6227 else
6228   ac_check_lib_save_LIBS=$LIBS
6229 LIBS="-lw  $LIBS"
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h.  */
6232
6233 /* Override any GCC internal prototype to avoid an error.
6234    Use char because int might match the return type of a GCC
6235    builtin and then its argument prototype would still apply.  */
6236 #ifdef __cplusplus
6237 extern "C"
6238 #endif
6239 char wctype ();
6240 int
6241 main ()
6242 {
6243 return wctype ();
6244   ;
6245   return 0;
6246 }
6247 _ACEOF
6248 if ac_fn_c_try_link "$LINENO"; then :
6249   ac_cv_lib_w_wctype=yes
6250 else
6251   ac_cv_lib_w_wctype=no
6252 fi
6253 rm -f core conftest.err conftest.$ac_objext \
6254     conftest$ac_exeext conftest.$ac_ext
6255 LIBS=$ac_check_lib_save_LIBS
6256 fi
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6258 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6259 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6260   cat >>confdefs.h <<_ACEOF
6261 #define HAVE_LIBW 1
6262 _ACEOF
6263
6264   LIBS="-lw $LIBS"
6265
6266 fi
6267
6268 fi
6269
6270
6271 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6273 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6274 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6275   $as_echo_n "(cached) " >&6
6276 else
6277   ac_func_search_save_LIBS=$LIBS
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h.  */
6280
6281 /* Override any GCC internal prototype to avoid an error.
6282    Use char because int might match the return type of a GCC
6283    builtin and then its argument prototype would still apply.  */
6284 #ifdef __cplusplus
6285 extern "C"
6286 #endif
6287 char gethostbyname ();
6288 int
6289 main ()
6290 {
6291 return gethostbyname ();
6292   ;
6293   return 0;
6294 }
6295 _ACEOF
6296 for ac_lib in '' nsl; do
6297   if test -z "$ac_lib"; then
6298     ac_res="none required"
6299   else
6300     ac_res=-l$ac_lib
6301     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6302   fi
6303   if ac_fn_c_try_link "$LINENO"; then :
6304   ac_cv_search_gethostbyname=$ac_res
6305 fi
6306 rm -f core conftest.err conftest.$ac_objext \
6307     conftest$ac_exeext
6308   if test "${ac_cv_search_gethostbyname+set}" = set; then :
6309   break
6310 fi
6311 done
6312 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6313
6314 else
6315   ac_cv_search_gethostbyname=no
6316 fi
6317 rm conftest.$ac_ext
6318 LIBS=$ac_func_search_save_LIBS
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6321 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6322 ac_res=$ac_cv_search_gethostbyname
6323 if test "$ac_res" != no; then :
6324   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6325
6326 fi
6327
6328
6329 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6331 $as_echo_n "checking for library containing socketpair... " >&6; }
6332 if test "${ac_cv_search_socketpair+set}" = set; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335   ac_func_search_save_LIBS=$LIBS
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h.  */
6338
6339 /* Override any GCC internal prototype to avoid an error.
6340    Use char because int might match the return type of a GCC
6341    builtin and then its argument prototype would still apply.  */
6342 #ifdef __cplusplus
6343 extern "C"
6344 #endif
6345 char socketpair ();
6346 int
6347 main ()
6348 {
6349 return socketpair ();
6350   ;
6351   return 0;
6352 }
6353 _ACEOF
6354 for ac_lib in '' socket; do
6355   if test -z "$ac_lib"; then
6356     ac_res="none required"
6357   else
6358     ac_res=-l$ac_lib
6359     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6360   fi
6361   if ac_fn_c_try_link "$LINENO"; then :
6362   ac_cv_search_socketpair=$ac_res
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext \
6365     conftest$ac_exeext
6366   if test "${ac_cv_search_socketpair+set}" = set; then :
6367   break
6368 fi
6369 done
6370 if test "${ac_cv_search_socketpair+set}" = set; then :
6371
6372 else
6373   ac_cv_search_socketpair=no
6374 fi
6375 rm conftest.$ac_ext
6376 LIBS=$ac_func_search_save_LIBS
6377 fi
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6379 $as_echo "$ac_cv_search_socketpair" >&6; }
6380 ac_res=$ac_cv_search_socketpair
6381 if test "$ac_res" != no; then :
6382   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6383
6384 fi
6385
6386
6387 # Link in zlib if we can.  This allows us to read compressed debug sections.
6388
6389   # See if the user specified whether he wants zlib support or not.
6390
6391 # Check whether --with-zlib was given.
6392 if test "${with_zlib+set}" = set; then :
6393   withval=$with_zlib;
6394 else
6395   with_zlib=auto
6396 fi
6397
6398
6399   if test "$with_zlib" != "no"; then
6400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6401 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6402 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6403   $as_echo_n "(cached) " >&6
6404 else
6405   ac_func_search_save_LIBS=$LIBS
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h.  */
6408
6409 /* Override any GCC internal prototype to avoid an error.
6410    Use char because int might match the return type of a GCC
6411    builtin and then its argument prototype would still apply.  */
6412 #ifdef __cplusplus
6413 extern "C"
6414 #endif
6415 char zlibVersion ();
6416 int
6417 main ()
6418 {
6419 return zlibVersion ();
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 for ac_lib in '' z; do
6425   if test -z "$ac_lib"; then
6426     ac_res="none required"
6427   else
6428     ac_res=-l$ac_lib
6429     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6430   fi
6431   if ac_fn_c_try_link "$LINENO"; then :
6432   ac_cv_search_zlibVersion=$ac_res
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext \
6435     conftest$ac_exeext
6436   if test "${ac_cv_search_zlibVersion+set}" = set; then :
6437   break
6438 fi
6439 done
6440 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6441
6442 else
6443   ac_cv_search_zlibVersion=no
6444 fi
6445 rm conftest.$ac_ext
6446 LIBS=$ac_func_search_save_LIBS
6447 fi
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6449 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6450 ac_res=$ac_cv_search_zlibVersion
6451 if test "$ac_res" != no; then :
6452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6453   for ac_header in zlib.h
6454 do :
6455   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6456 if test "x$ac_cv_header_zlib_h" = x""yes; then :
6457   cat >>confdefs.h <<_ACEOF
6458 #define HAVE_ZLIB_H 1
6459 _ACEOF
6460
6461 fi
6462
6463 done
6464
6465 fi
6466
6467     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6468       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6469     fi
6470   fi
6471
6472
6473 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6475 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6476 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   ac_func_search_save_LIBS=$LIBS
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h.  */
6482
6483 /* Override any GCC internal prototype to avoid an error.
6484    Use char because int might match the return type of a GCC
6485    builtin and then its argument prototype would still apply.  */
6486 #ifdef __cplusplus
6487 extern "C"
6488 #endif
6489 char dlgetmodinfo ();
6490 int
6491 main ()
6492 {
6493 return dlgetmodinfo ();
6494   ;
6495   return 0;
6496 }
6497 _ACEOF
6498 for ac_lib in '' dl xpdl; do
6499   if test -z "$ac_lib"; then
6500     ac_res="none required"
6501   else
6502     ac_res=-l$ac_lib
6503     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6504   fi
6505   if ac_fn_c_try_link "$LINENO"; then :
6506   ac_cv_search_dlgetmodinfo=$ac_res
6507 fi
6508 rm -f core conftest.err conftest.$ac_objext \
6509     conftest$ac_exeext
6510   if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6511   break
6512 fi
6513 done
6514 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6515
6516 else
6517   ac_cv_search_dlgetmodinfo=no
6518 fi
6519 rm conftest.$ac_ext
6520 LIBS=$ac_func_search_save_LIBS
6521 fi
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6523 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6524 ac_res=$ac_cv_search_dlgetmodinfo
6525 if test "$ac_res" != no; then :
6526   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6527
6528 fi
6529
6530
6531
6532
6533
6534 # Check whether --with-libiconv-prefix was given.
6535 if test "${with_libiconv_prefix+set}" = set; then :
6536   withval=$with_libiconv_prefix;
6537     for dir in `echo "$withval" | tr : ' '`; do
6538       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
6539       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
6540     done
6541
6542 fi
6543
6544
6545   BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
6546   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
6547
6548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6549 $as_echo_n "checking for iconv... " >&6; }
6550 if test "${am_cv_func_iconv+set}" = set; then :
6551   $as_echo_n "(cached) " >&6
6552 else
6553
6554     am_cv_func_iconv="no, consider installing GNU libiconv"
6555     am_cv_lib_iconv=no
6556     am_cv_use_build_libiconv=no
6557     am_cv_build_libiconv_path=
6558
6559     # If libiconv is part of the build tree, then try using it over
6560     # any system iconv.
6561     if test -d ../libiconv; then
6562       for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
6563         am_save_LIBS="$LIBS"
6564         am_save_CPPFLAGS="$CPPFLAGS"
6565         LIBS="$LIBS $lib_dir/libiconv.a"
6566         CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6567         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h.  */
6569 #include <stdlib.h>
6570 #include <iconv.h>
6571 int
6572 main ()
6573 {
6574 iconv_t cd = iconv_open("","");
6575            iconv(cd,NULL,NULL,NULL,NULL);
6576            iconv_close(cd);
6577   ;
6578   return 0;
6579 }
6580 _ACEOF
6581 if ac_fn_c_try_link "$LINENO"; then :
6582   am_cv_use_build_libiconv=yes
6583           am_cv_build_libiconv_path=$lib_dir/libiconv.a
6584           am_cv_lib_iconv=yes
6585           am_cv_func_iconv=yes
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext \
6588     conftest$ac_exeext conftest.$ac_ext
6589         LIBS="$am_save_LIBS"
6590         CPPFLAGS="$am_save_CPPFLAGS"
6591         if test "$am_cv_use_build_libiconv" = "yes"; then
6592           break
6593         fi
6594       done
6595     fi
6596
6597     # Next, try to find iconv in libc.
6598     if test "$am_cv_func_iconv" != yes; then
6599       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h.  */
6601 #include <stdlib.h>
6602 #include <iconv.h>
6603 int
6604 main ()
6605 {
6606 iconv_t cd = iconv_open("","");
6607          iconv(cd,NULL,NULL,NULL,NULL);
6608          iconv_close(cd);
6609   ;
6610   return 0;
6611 }
6612 _ACEOF
6613 if ac_fn_c_try_link "$LINENO"; then :
6614   am_cv_func_iconv=yes
6615 fi
6616 rm -f core conftest.err conftest.$ac_objext \
6617     conftest$ac_exeext conftest.$ac_ext
6618     fi
6619
6620     # If iconv was not in libc, try -liconv.  In this case, arrange to
6621     # look in the libiconv prefix, if it was specified by the user.
6622     if test "$am_cv_func_iconv" != yes; then
6623       am_save_CPPFLAGS="$CPPFLAGS"
6624       am_save_LIBS="$LIBS"
6625       if test -n "$LIBICONV_INCLUDE"; then
6626         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6627         LIBS="$LIBS $LIBICONV_LIBDIR"
6628       fi
6629       LIBS="$LIBS -liconv"
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_lib_iconv=yes
6646         am_cv_func_iconv=yes
6647 fi
6648 rm -f core conftest.err conftest.$ac_objext \
6649     conftest$ac_exeext conftest.$ac_ext
6650       LIBS="$am_save_LIBS"
6651       CPPFLAGS="$am_save_CPPFLAGS"
6652     fi
6653
6654 fi
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6656 $as_echo "$am_cv_func_iconv" >&6; }
6657
6658   # Set the various flags based on the cache variables.  We can't rely
6659   # on the flags to remain set from the above code, due to caching.
6660   LIBICONV=
6661   if test "$am_cv_lib_iconv" = yes; then
6662     LIBICONV="-liconv"
6663   else
6664     LIBICONV_LIBDIR=
6665     LIBICONV_INCLUDE=
6666   fi
6667   if test "$am_cv_use_build_libiconv" = yes; then
6668     LIBICONV="$am_cv_build_libiconv_path"
6669     LIBICONV_LIBDIR=""
6670     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
6671   fi
6672   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6673   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6674
6675   if test "$am_cv_func_iconv" = yes; then
6676
6677 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6678
6679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6680 $as_echo_n "checking for iconv declaration... " >&6; }
6681     if test "${am_cv_proto_iconv+set}" = set; then :
6682   $as_echo_n "(cached) " >&6
6683 else
6684
6685       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h.  */
6687
6688 #include <stdlib.h>
6689 #include <iconv.h>
6690 extern
6691 #ifdef __cplusplus
6692 "C"
6693 #endif
6694 #if defined(__STDC__) || defined(__cplusplus)
6695 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6696 #else
6697 size_t iconv();
6698 #endif
6699
6700 int
6701 main ()
6702 {
6703
6704   ;
6705   return 0;
6706 }
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709   am_cv_proto_iconv_arg1=""
6710 else
6711   am_cv_proto_iconv_arg1="const"
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714       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);"
6715 fi
6716
6717     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6719          }$am_cv_proto_iconv" >&5
6720 $as_echo "${ac_t:-
6721          }$am_cv_proto_iconv" >&6; }
6722
6723 cat >>confdefs.h <<_ACEOF
6724 #define ICONV_CONST $am_cv_proto_iconv_arg1
6725 _ACEOF
6726
6727   fi
6728
6729
6730 # GDB may fork/exec the iconv program to get the list of supported character
6731 # sets.  Allow the user to specify where to find it.
6732 # There are several factors affecting the choice of option name:
6733 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6734 #   the build-time location of libiconv files.
6735 # - The program we need to find is iconv, which comes with glibc.  The user
6736 #   doesn't necessarily have libiconv installed.  Therefore naming this
6737 #   --with-libiconv-foo feels wrong.
6738 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6739 #   defined to work on directories not files (though it really doesn't know
6740 #   the difference).
6741 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6742 #   with --with-libiconv-prefix.
6743 # Putting these together is why the option name is --with-iconv-bin.
6744
6745
6746 # Check whether --with-iconv-bin was given.
6747 if test "${with_iconv_bin+set}" = set; then :
6748   withval=$with_iconv_bin; iconv_bin="${withval}"
6749
6750 cat >>confdefs.h <<_ACEOF
6751 #define ICONV_BIN "${iconv_bin}"
6752 _ACEOF
6753
6754
6755   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6756      if test "x$prefix" = xNONE; then
6757         test_prefix=/usr/local
6758      else
6759         test_prefix=$prefix
6760      fi
6761   else
6762      test_prefix=$exec_prefix
6763   fi
6764   value=0
6765   case ${iconv_bin} in
6766      "${test_prefix}"|"${test_prefix}/"*|\
6767         '${exec_prefix}'|'${exec_prefix}/'*)
6768      value=1
6769      ;;
6770   esac
6771
6772 cat >>confdefs.h <<_ACEOF
6773 #define ICONV_BIN_RELOCATABLE $value
6774 _ACEOF
6775
6776
6777
6778 fi
6779
6780
6781 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6782 # There is a very specific comment in /usr/include/curses.h explaining that
6783 # termcap routines built into libcurses must not be used.
6784 #
6785 # The symptoms we observed so far is GDB unexpectedly changing
6786 # the terminal settings when tgetent is called - this is particularly
6787 # visible as the output is missing carriage returns, and so rapidly
6788 # becomes very hard to read.
6789 #
6790 # The readline configure script has already decided that libtermcap
6791 # was enough for its purposes, and so decided to build readline using
6792 # libtermcap.  Since the TUI mode requires curses, building GDB with
6793 # TUI enabled results in both libraries to be used at the same time,
6794 # which is not allowed.  This basically means that GDB with TUI is
6795 # broken on alpha-osf.
6796
6797 case $host_os in
6798   osf* )
6799     if test x"$enable_tui" = xyes; then
6800       as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6801     fi
6802     if test x"$enable_tui" = xauto; then
6803       enable_tui=no
6804     fi
6805     ;;
6806 esac
6807
6808 # For the TUI, we need enhanced curses functionality.
6809 if test x"$enable_tui" != xno; then
6810   prefer_curses=yes
6811 fi
6812
6813 curses_found=no
6814 if test x"$prefer_curses" = xyes; then
6815   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6816   # curses library because the latter might not provide all the
6817   # functionality we need.  However, this leads to problems on systems
6818   # where the linker searches /usr/local/lib, but the compiler doesn't
6819   # search /usr/local/include, if ncurses is installed in /usr/local.  A
6820   # default installation of ncurses on alpha*-dec-osf* will lead to such
6821   # a situation.
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
6823 $as_echo_n "checking for library containing waddstr... " >&6; }
6824 if test "${ac_cv_search_waddstr+set}" = set; then :
6825   $as_echo_n "(cached) " >&6
6826 else
6827   ac_func_search_save_LIBS=$LIBS
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h.  */
6830
6831 /* Override any GCC internal prototype to avoid an error.
6832    Use char because int might match the return type of a GCC
6833    builtin and then its argument prototype would still apply.  */
6834 #ifdef __cplusplus
6835 extern "C"
6836 #endif
6837 char waddstr ();
6838 int
6839 main ()
6840 {
6841 return waddstr ();
6842   ;
6843   return 0;
6844 }
6845 _ACEOF
6846 for ac_lib in '' ncurses cursesX curses; do
6847   if test -z "$ac_lib"; then
6848     ac_res="none required"
6849   else
6850     ac_res=-l$ac_lib
6851     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6852   fi
6853   if ac_fn_c_try_link "$LINENO"; then :
6854   ac_cv_search_waddstr=$ac_res
6855 fi
6856 rm -f core conftest.err conftest.$ac_objext \
6857     conftest$ac_exeext
6858   if test "${ac_cv_search_waddstr+set}" = set; then :
6859   break
6860 fi
6861 done
6862 if test "${ac_cv_search_waddstr+set}" = set; then :
6863
6864 else
6865   ac_cv_search_waddstr=no
6866 fi
6867 rm conftest.$ac_ext
6868 LIBS=$ac_func_search_save_LIBS
6869 fi
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
6871 $as_echo "$ac_cv_search_waddstr" >&6; }
6872 ac_res=$ac_cv_search_waddstr
6873 if test "$ac_res" != no; then :
6874   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6875
6876 fi
6877
6878
6879   if test "$ac_cv_search_waddstr" != no; then
6880     curses_found=yes
6881   fi
6882 fi
6883
6884 # Check whether we should enable the TUI, but only do so if we really
6885 # can.
6886 if test x"$enable_tui" != xno; then
6887   if test -d $srcdir/tui; then
6888     if test "$curses_found" != no; then
6889       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
6890       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
6891       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
6892       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
6893     else
6894       if test x"$enable_tui" = xyes; then
6895         as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
6896       else
6897         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
6898 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6899       fi
6900     fi
6901   fi
6902 fi
6903
6904 # Since GDB uses Readline, we need termcap functionality.  In many
6905 # cases this will be provided by the curses library, but some systems
6906 # have a seperate termcap library, or no curses library at all.
6907
6908 case $host_os in
6909   cygwin*)
6910     if test -d $srcdir/libtermcap; then
6911       LIBS="../libtermcap/libtermcap.a $LIBS"
6912       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
6913     fi ;;
6914   go32* | *djgpp*)
6915     ac_cv_search_tgetent="none required"
6916     ;;
6917   *mingw32*)
6918     ac_cv_search_tgetent="none required"
6919     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
6920     ;;
6921 esac
6922
6923 # These are the libraries checked by Readline.
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
6925 $as_echo_n "checking for library containing tgetent... " >&6; }
6926 if test "${ac_cv_search_tgetent+set}" = set; then :
6927   $as_echo_n "(cached) " >&6
6928 else
6929   ac_func_search_save_LIBS=$LIBS
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h.  */
6932
6933 /* Override any GCC internal prototype to avoid an error.
6934    Use char because int might match the return type of a GCC
6935    builtin and then its argument prototype would still apply.  */
6936 #ifdef __cplusplus
6937 extern "C"
6938 #endif
6939 char tgetent ();
6940 int
6941 main ()
6942 {
6943 return tgetent ();
6944   ;
6945   return 0;
6946 }
6947 _ACEOF
6948 for ac_lib in '' termcap tinfo curses ncurses; do
6949   if test -z "$ac_lib"; then
6950     ac_res="none required"
6951   else
6952     ac_res=-l$ac_lib
6953     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6954   fi
6955   if ac_fn_c_try_link "$LINENO"; then :
6956   ac_cv_search_tgetent=$ac_res
6957 fi
6958 rm -f core conftest.err conftest.$ac_objext \
6959     conftest$ac_exeext
6960   if test "${ac_cv_search_tgetent+set}" = set; then :
6961   break
6962 fi
6963 done
6964 if test "${ac_cv_search_tgetent+set}" = set; then :
6965
6966 else
6967   ac_cv_search_tgetent=no
6968 fi
6969 rm conftest.$ac_ext
6970 LIBS=$ac_func_search_save_LIBS
6971 fi
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
6973 $as_echo "$ac_cv_search_tgetent" >&6; }
6974 ac_res=$ac_cv_search_tgetent
6975 if test "$ac_res" != no; then :
6976   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6977
6978 fi
6979
6980
6981 if test "$ac_cv_search_tgetent" = no; then
6982   as_fn_error "no termcap library found" "$LINENO" 5
6983 fi
6984
6985
6986 # Check whether --with-system-readline was given.
6987 if test "${with_system_readline+set}" = set; then :
6988   withval=$with_system_readline;
6989 fi
6990
6991
6992 if test "$with_system_readline" = yes; then
6993   READLINE=-lreadline
6994   READLINE_DEPS=
6995   READLINE_CFLAGS=
6996   READLINE_TEXI_INCFLAG=
6997 else
6998   READLINE='$(READLINE_DIR)/libreadline.a'
6999   READLINE_DEPS='$(READLINE)'
7000   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7001   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7002 fi
7003
7004
7005
7006
7007
7008 # Generate jit-reader.h
7009
7010 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7011 TARGET_PTR=
7012
7013 # The cast to long int works around a bug in the HP C Compiler
7014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7016 # This bug is HP SR number 8606223364.
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7018 $as_echo_n "checking size of unsigned long long... " >&6; }
7019 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7020   $as_echo_n "(cached) " >&6
7021 else
7022   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
7023
7024 else
7025   if test "$ac_cv_type_unsigned_long_long" = yes; then
7026      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7028 { as_fn_set_status 77
7029 as_fn_error "cannot compute sizeof (unsigned long long)
7030 See \`config.log' for more details." "$LINENO" 5; }; }
7031    else
7032      ac_cv_sizeof_unsigned_long_long=0
7033    fi
7034 fi
7035
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7038 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7039
7040
7041
7042 cat >>confdefs.h <<_ACEOF
7043 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7044 _ACEOF
7045
7046
7047 # The cast to long int works around a bug in the HP C Compiler
7048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7050 # This bug is HP SR number 8606223364.
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7052 $as_echo_n "checking size of unsigned long... " >&6; }
7053 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7054   $as_echo_n "(cached) " >&6
7055 else
7056   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
7057
7058 else
7059   if test "$ac_cv_type_unsigned_long" = yes; then
7060      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7062 { as_fn_set_status 77
7063 as_fn_error "cannot compute sizeof (unsigned long)
7064 See \`config.log' for more details." "$LINENO" 5; }; }
7065    else
7066      ac_cv_sizeof_unsigned_long=0
7067    fi
7068 fi
7069
7070 fi
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7072 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7073
7074
7075
7076 cat >>confdefs.h <<_ACEOF
7077 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7078 _ACEOF
7079
7080
7081 # The cast to long int works around a bug in the HP C Compiler
7082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7084 # This bug is HP SR number 8606223364.
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7086 $as_echo_n "checking size of unsigned __int128... " >&6; }
7087 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :
7091
7092 else
7093   if test "$ac_cv_type_unsigned___int128" = yes; then
7094      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7096 { as_fn_set_status 77
7097 as_fn_error "cannot compute sizeof (unsigned __int128)
7098 See \`config.log' for more details." "$LINENO" 5; }; }
7099    else
7100      ac_cv_sizeof_unsigned___int128=0
7101    fi
7102 fi
7103
7104 fi
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7106 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7107
7108
7109
7110 cat >>confdefs.h <<_ACEOF
7111 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7112 _ACEOF
7113
7114
7115
7116 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7117   TARGET_PTR="unsigned long"
7118 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7119   TARGET_PTR="unsigned long long"
7120 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7121   TARGET_PTR="unsigned __int128"
7122 else
7123   TARGET_PTR="unsigned long"
7124 fi
7125
7126
7127 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7128
7129
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7131 $as_echo_n "checking for library containing dlopen... " >&6; }
7132 if test "${ac_cv_search_dlopen+set}" = set; then :
7133   $as_echo_n "(cached) " >&6
7134 else
7135   ac_func_search_save_LIBS=$LIBS
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h.  */
7138
7139 /* Override any GCC internal prototype to avoid an error.
7140    Use char because int might match the return type of a GCC
7141    builtin and then its argument prototype would still apply.  */
7142 #ifdef __cplusplus
7143 extern "C"
7144 #endif
7145 char dlopen ();
7146 int
7147 main ()
7148 {
7149 return dlopen ();
7150   ;
7151   return 0;
7152 }
7153 _ACEOF
7154 for ac_lib in '' dl; do
7155   if test -z "$ac_lib"; then
7156     ac_res="none required"
7157   else
7158     ac_res=-l$ac_lib
7159     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7160   fi
7161   if ac_fn_c_try_link "$LINENO"; then :
7162   ac_cv_search_dlopen=$ac_res
7163 fi
7164 rm -f core conftest.err conftest.$ac_objext \
7165     conftest$ac_exeext
7166   if test "${ac_cv_search_dlopen+set}" = set; then :
7167   break
7168 fi
7169 done
7170 if test "${ac_cv_search_dlopen+set}" = set; then :
7171
7172 else
7173   ac_cv_search_dlopen=no
7174 fi
7175 rm conftest.$ac_ext
7176 LIBS=$ac_func_search_save_LIBS
7177 fi
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7179 $as_echo "$ac_cv_search_dlopen" >&6; }
7180 ac_res=$ac_cv_search_dlopen
7181 if test "$ac_res" != no; then :
7182   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7183
7184 fi
7185
7186
7187
7188
7189 # Check whether --with-jit-reader-dir was given.
7190 if test "${with_jit_reader_dir+set}" = set; then :
7191   withval=$with_jit_reader_dir;
7192     JIT_READER_DIR=$withval
7193 else
7194   JIT_READER_DIR=${libdir}/gdb
7195 fi
7196
7197
7198   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7199   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7200   ac_define_dir=`eval echo $JIT_READER_DIR`
7201   ac_define_dir=`eval echo $ac_define_dir`
7202
7203 cat >>confdefs.h <<_ACEOF
7204 #define JIT_READER_DIR "$ac_define_dir"
7205 _ACEOF
7206
7207
7208
7209
7210   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7211      if test "x$prefix" = xNONE; then
7212         test_prefix=/usr/local
7213      else
7214         test_prefix=$prefix
7215      fi
7216   else
7217      test_prefix=$exec_prefix
7218   fi
7219   value=0
7220   case ${ac_define_dir} in
7221      "${test_prefix}"|"${test_prefix}/"*|\
7222         '${exec_prefix}'|'${exec_prefix}/'*)
7223      value=1
7224      ;;
7225   esac
7226
7227 cat >>confdefs.h <<_ACEOF
7228 #define JIT_READER_DIR_RELOCATABLE $value
7229 _ACEOF
7230
7231
7232
7233
7234
7235 # Check whether --with-expat was given.
7236 if test "${with_expat+set}" = set; then :
7237   withval=$with_expat;
7238 else
7239   with_expat=auto
7240 fi
7241
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7243 $as_echo_n "checking whether to use expat... " >&6; }
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7245 $as_echo "$with_expat" >&6; }
7246
7247 if test "${with_expat}" = no; then
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7249 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7250   HAVE_LIBEXPAT=no
7251 else
7252
7253       if test "X$prefix" = "XNONE"; then
7254     acl_final_prefix="$ac_default_prefix"
7255   else
7256     acl_final_prefix="$prefix"
7257   fi
7258   if test "X$exec_prefix" = "XNONE"; then
7259     acl_final_exec_prefix='${prefix}'
7260   else
7261     acl_final_exec_prefix="$exec_prefix"
7262   fi
7263   acl_save_prefix="$prefix"
7264   prefix="$acl_final_prefix"
7265   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7266   prefix="$acl_save_prefix"
7267
7268
7269 # Check whether --with-gnu-ld was given.
7270 if test "${with_gnu_ld+set}" = set; then :
7271   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7272 else
7273   with_gnu_ld=no
7274 fi
7275
7276 # Prepare PATH_SEPARATOR.
7277 # The user is always right.
7278 if test "${PATH_SEPARATOR+set}" != set; then
7279   echo "#! /bin/sh" >conf$$.sh
7280   echo  "exit 0"   >>conf$$.sh
7281   chmod +x conf$$.sh
7282   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7283     PATH_SEPARATOR=';'
7284   else
7285     PATH_SEPARATOR=:
7286   fi
7287   rm -f conf$$.sh
7288 fi
7289 ac_prog=ld
7290 if test "$GCC" = yes; then
7291   # Check if gcc -print-prog-name=ld gives a path.
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7293 $as_echo_n "checking for ld used by GCC... " >&6; }
7294   case $host in
7295   *-*-mingw*)
7296     # gcc leaves a trailing carriage return which upsets mingw
7297     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7298   *)
7299     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7300   esac
7301   case $ac_prog in
7302     # Accept absolute paths.
7303     [\\/]* | [A-Za-z]:[\\/]*)
7304       re_direlt='/[^/][^/]*/\.\./'
7305       # Canonicalize the path of ld
7306       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7307       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7308         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7309       done
7310       test -z "$LD" && LD="$ac_prog"
7311       ;;
7312   "")
7313     # If it fails, then pretend we aren't using GCC.
7314     ac_prog=ld
7315     ;;
7316   *)
7317     # If it is relative, then search for the first ld in PATH.
7318     with_gnu_ld=unknown
7319     ;;
7320   esac
7321 elif test "$with_gnu_ld" = yes; then
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7323 $as_echo_n "checking for GNU ld... " >&6; }
7324 else
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7326 $as_echo_n "checking for non-GNU ld... " >&6; }
7327 fi
7328 if test "${acl_cv_path_LD+set}" = set; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   if test -z "$LD"; then
7332   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7333   for ac_dir in $PATH; do
7334     test -z "$ac_dir" && ac_dir=.
7335     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7336       acl_cv_path_LD="$ac_dir/$ac_prog"
7337       # Check to see if the program is GNU ld.  I'd rather use --version,
7338       # but apparently some GNU ld's only accept -v.
7339       # Break only if it was the GNU/non-GNU ld that we prefer.
7340       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7341         test "$with_gnu_ld" != no && break
7342       else
7343         test "$with_gnu_ld" != yes && break
7344       fi
7345     fi
7346   done
7347   IFS="$ac_save_ifs"
7348 else
7349   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7350 fi
7351 fi
7352
7353 LD="$acl_cv_path_LD"
7354 if test -n "$LD"; then
7355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7356 $as_echo "$LD" >&6; }
7357 else
7358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7360 fi
7361 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7363 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7364 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7365   $as_echo_n "(cached) " >&6
7366 else
7367   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7368 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7369   acl_cv_prog_gnu_ld=yes
7370 else
7371   acl_cv_prog_gnu_ld=no
7372 fi
7373 fi
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7375 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7376 with_gnu_ld=$acl_cv_prog_gnu_ld
7377
7378
7379
7380                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7381 $as_echo_n "checking for shared library run path origin... " >&6; }
7382 if test "${acl_cv_rpath+set}" = set; then :
7383   $as_echo_n "(cached) " >&6
7384 else
7385
7386     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7387     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7388     . ./conftest.sh
7389     rm -f ./conftest.sh
7390     acl_cv_rpath=done
7391
7392 fi
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7394 $as_echo "$acl_cv_rpath" >&6; }
7395   wl="$acl_cv_wl"
7396   libext="$acl_cv_libext"
7397   shlibext="$acl_cv_shlibext"
7398   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7399   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7400   hardcode_direct="$acl_cv_hardcode_direct"
7401   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7402     # Check whether --enable-rpath was given.
7403 if test "${enable_rpath+set}" = set; then :
7404   enableval=$enable_rpath; :
7405 else
7406   enable_rpath=yes
7407 fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418     use_additional=yes
7419
7420   acl_save_prefix="$prefix"
7421   prefix="$acl_final_prefix"
7422   acl_save_exec_prefix="$exec_prefix"
7423   exec_prefix="$acl_final_exec_prefix"
7424
7425     eval additional_includedir=\"$includedir\"
7426     eval additional_libdir=\"$libdir\"
7427
7428   exec_prefix="$acl_save_exec_prefix"
7429   prefix="$acl_save_prefix"
7430
7431
7432 # Check whether --with-libexpat-prefix was given.
7433 if test "${with_libexpat_prefix+set}" = set; then :
7434   withval=$with_libexpat_prefix;
7435     if test "X$withval" = "Xno"; then
7436       use_additional=no
7437     else
7438       if test "X$withval" = "X"; then
7439
7440   acl_save_prefix="$prefix"
7441   prefix="$acl_final_prefix"
7442   acl_save_exec_prefix="$exec_prefix"
7443   exec_prefix="$acl_final_exec_prefix"
7444
7445           eval additional_includedir=\"$includedir\"
7446           eval additional_libdir=\"$libdir\"
7447
7448   exec_prefix="$acl_save_exec_prefix"
7449   prefix="$acl_save_prefix"
7450
7451       else
7452         additional_includedir="$withval/include"
7453         additional_libdir="$withval/lib"
7454       fi
7455     fi
7456
7457 fi
7458
7459       LIBEXPAT=
7460   LTLIBEXPAT=
7461   INCEXPAT=
7462   rpathdirs=
7463   ltrpathdirs=
7464   names_already_handled=
7465   names_next_round='expat '
7466   while test -n "$names_next_round"; do
7467     names_this_round="$names_next_round"
7468     names_next_round=
7469     for name in $names_this_round; do
7470       already_handled=
7471       for n in $names_already_handled; do
7472         if test "$n" = "$name"; then
7473           already_handled=yes
7474           break
7475         fi
7476       done
7477       if test -z "$already_handled"; then
7478         names_already_handled="$names_already_handled $name"
7479                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7480         eval value=\"\$HAVE_LIB$uppername\"
7481         if test -n "$value"; then
7482           if test "$value" = yes; then
7483             eval value=\"\$LIB$uppername\"
7484             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7485             eval value=\"\$LTLIB$uppername\"
7486             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7487           else
7488                                     :
7489           fi
7490         else
7491                               found_dir=
7492           found_la=
7493           found_so=
7494           found_a=
7495           if test $use_additional = yes; then
7496             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7497               found_dir="$additional_libdir"
7498               found_so="$additional_libdir/lib$name.$shlibext"
7499               if test -f "$additional_libdir/lib$name.la"; then
7500                 found_la="$additional_libdir/lib$name.la"
7501               fi
7502             else
7503               if test -f "$additional_libdir/lib$name.$libext"; then
7504                 found_dir="$additional_libdir"
7505                 found_a="$additional_libdir/lib$name.$libext"
7506                 if test -f "$additional_libdir/lib$name.la"; then
7507                   found_la="$additional_libdir/lib$name.la"
7508                 fi
7509               fi
7510             fi
7511           fi
7512           if test "X$found_dir" = "X"; then
7513             for x in $LDFLAGS $LTLIBEXPAT; do
7514
7515   acl_save_prefix="$prefix"
7516   prefix="$acl_final_prefix"
7517   acl_save_exec_prefix="$exec_prefix"
7518   exec_prefix="$acl_final_exec_prefix"
7519   eval x=\"$x\"
7520   exec_prefix="$acl_save_exec_prefix"
7521   prefix="$acl_save_prefix"
7522
7523               case "$x" in
7524                 -L*)
7525                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7526                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7527                     found_dir="$dir"
7528                     found_so="$dir/lib$name.$shlibext"
7529                     if test -f "$dir/lib$name.la"; then
7530                       found_la="$dir/lib$name.la"
7531                     fi
7532                   else
7533                     if test -f "$dir/lib$name.$libext"; then
7534                       found_dir="$dir"
7535                       found_a="$dir/lib$name.$libext"
7536                       if test -f "$dir/lib$name.la"; then
7537                         found_la="$dir/lib$name.la"
7538                       fi
7539                     fi
7540                   fi
7541                   ;;
7542               esac
7543               if test "X$found_dir" != "X"; then
7544                 break
7545               fi
7546             done
7547           fi
7548           if test "X$found_dir" != "X"; then
7549                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7550             if test "X$found_so" != "X"; then
7551                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7552                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7553               else
7554                                                                                 haveit=
7555                 for x in $ltrpathdirs; do
7556                   if test "X$x" = "X$found_dir"; then
7557                     haveit=yes
7558                     break
7559                   fi
7560                 done
7561                 if test -z "$haveit"; then
7562                   ltrpathdirs="$ltrpathdirs $found_dir"
7563                 fi
7564                                 if test "$hardcode_direct" = yes; then
7565                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7566                 else
7567                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7568                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7569                                                             haveit=
7570                     for x in $rpathdirs; do
7571                       if test "X$x" = "X$found_dir"; then
7572                         haveit=yes
7573                         break
7574                       fi
7575                     done
7576                     if test -z "$haveit"; then
7577                       rpathdirs="$rpathdirs $found_dir"
7578                     fi
7579                   else
7580                                                                                 haveit=
7581                     for x in $LDFLAGS $LIBEXPAT; do
7582
7583   acl_save_prefix="$prefix"
7584   prefix="$acl_final_prefix"
7585   acl_save_exec_prefix="$exec_prefix"
7586   exec_prefix="$acl_final_exec_prefix"
7587   eval x=\"$x\"
7588   exec_prefix="$acl_save_exec_prefix"
7589   prefix="$acl_save_prefix"
7590
7591                       if test "X$x" = "X-L$found_dir"; then
7592                         haveit=yes
7593                         break
7594                       fi
7595                     done
7596                     if test -z "$haveit"; then
7597                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7598                     fi
7599                     if test "$hardcode_minus_L" != no; then
7600                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7601                     else
7602                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7603                     fi
7604                   fi
7605                 fi
7606               fi
7607             else
7608               if test "X$found_a" != "X"; then
7609                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7610               else
7611                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7612               fi
7613             fi
7614                         additional_includedir=
7615             case "$found_dir" in
7616               */lib | */lib/)
7617                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7618                 additional_includedir="$basedir/include"
7619                 ;;
7620             esac
7621             if test "X$additional_includedir" != "X"; then
7622                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7623                 haveit=
7624                 if test "X$additional_includedir" = "X/usr/local/include"; then
7625                   if test -n "$GCC"; then
7626                     case $host_os in
7627                       linux*) haveit=yes;;
7628                     esac
7629                   fi
7630                 fi
7631                 if test -z "$haveit"; then
7632                   for x in $CPPFLAGS $INCEXPAT; do
7633
7634   acl_save_prefix="$prefix"
7635   prefix="$acl_final_prefix"
7636   acl_save_exec_prefix="$exec_prefix"
7637   exec_prefix="$acl_final_exec_prefix"
7638   eval x=\"$x\"
7639   exec_prefix="$acl_save_exec_prefix"
7640   prefix="$acl_save_prefix"
7641
7642                     if test "X$x" = "X-I$additional_includedir"; then
7643                       haveit=yes
7644                       break
7645                     fi
7646                   done
7647                   if test -z "$haveit"; then
7648                     if test -d "$additional_includedir"; then
7649                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7650                     fi
7651                   fi
7652                 fi
7653               fi
7654             fi
7655                         if test -n "$found_la"; then
7656                                                         save_libdir="$libdir"
7657               case "$found_la" in
7658                 */* | *\\*) . "$found_la" ;;
7659                 *) . "./$found_la" ;;
7660               esac
7661               libdir="$save_libdir"
7662                             for dep in $dependency_libs; do
7663                 case "$dep" in
7664                   -L*)
7665                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7666                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7667                       haveit=
7668                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7669                         if test -n "$GCC"; then
7670                           case $host_os in
7671                             linux*) haveit=yes;;
7672                           esac
7673                         fi
7674                       fi
7675                       if test -z "$haveit"; then
7676                         haveit=
7677                         for x in $LDFLAGS $LIBEXPAT; do
7678
7679   acl_save_prefix="$prefix"
7680   prefix="$acl_final_prefix"
7681   acl_save_exec_prefix="$exec_prefix"
7682   exec_prefix="$acl_final_exec_prefix"
7683   eval x=\"$x\"
7684   exec_prefix="$acl_save_exec_prefix"
7685   prefix="$acl_save_prefix"
7686
7687                           if test "X$x" = "X-L$additional_libdir"; then
7688                             haveit=yes
7689                             break
7690                           fi
7691                         done
7692                         if test -z "$haveit"; then
7693                           if test -d "$additional_libdir"; then
7694                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7695                           fi
7696                         fi
7697                         haveit=
7698                         for x in $LDFLAGS $LTLIBEXPAT; do
7699
7700   acl_save_prefix="$prefix"
7701   prefix="$acl_final_prefix"
7702   acl_save_exec_prefix="$exec_prefix"
7703   exec_prefix="$acl_final_exec_prefix"
7704   eval x=\"$x\"
7705   exec_prefix="$acl_save_exec_prefix"
7706   prefix="$acl_save_prefix"
7707
7708                           if test "X$x" = "X-L$additional_libdir"; then
7709                             haveit=yes
7710                             break
7711                           fi
7712                         done
7713                         if test -z "$haveit"; then
7714                           if test -d "$additional_libdir"; then
7715                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7716                           fi
7717                         fi
7718                       fi
7719                     fi
7720                     ;;
7721                   -R*)
7722                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7723                     if test "$enable_rpath" != no; then
7724                                                                   haveit=
7725                       for x in $rpathdirs; do
7726                         if test "X$x" = "X$dir"; then
7727                           haveit=yes
7728                           break
7729                         fi
7730                       done
7731                       if test -z "$haveit"; then
7732                         rpathdirs="$rpathdirs $dir"
7733                       fi
7734                                                                   haveit=
7735                       for x in $ltrpathdirs; do
7736                         if test "X$x" = "X$dir"; then
7737                           haveit=yes
7738                           break
7739                         fi
7740                       done
7741                       if test -z "$haveit"; then
7742                         ltrpathdirs="$ltrpathdirs $dir"
7743                       fi
7744                     fi
7745                     ;;
7746                   -l*)
7747                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7748                     ;;
7749                   *.la)
7750                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7751                     ;;
7752                   *)
7753                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7754                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7755                     ;;
7756                 esac
7757               done
7758             fi
7759           else
7760                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7761             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7762           fi
7763         fi
7764       fi
7765     done
7766   done
7767   if test "X$rpathdirs" != "X"; then
7768     if test -n "$hardcode_libdir_separator"; then
7769                         alldirs=
7770       for found_dir in $rpathdirs; do
7771         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7772       done
7773             acl_save_libdir="$libdir"
7774       libdir="$alldirs"
7775       eval flag=\"$hardcode_libdir_flag_spec\"
7776       libdir="$acl_save_libdir"
7777       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7778     else
7779             for found_dir in $rpathdirs; do
7780         acl_save_libdir="$libdir"
7781         libdir="$found_dir"
7782         eval flag=\"$hardcode_libdir_flag_spec\"
7783         libdir="$acl_save_libdir"
7784         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7785       done
7786     fi
7787   fi
7788   if test "X$ltrpathdirs" != "X"; then
7789             for found_dir in $ltrpathdirs; do
7790       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7791     done
7792   fi
7793
7794
7795         ac_save_CPPFLAGS="$CPPFLAGS"
7796
7797   for element in $INCEXPAT; do
7798     haveit=
7799     for x in $CPPFLAGS; do
7800
7801   acl_save_prefix="$prefix"
7802   prefix="$acl_final_prefix"
7803   acl_save_exec_prefix="$exec_prefix"
7804   exec_prefix="$acl_final_exec_prefix"
7805   eval x=\"$x\"
7806   exec_prefix="$acl_save_exec_prefix"
7807   prefix="$acl_save_prefix"
7808
7809       if test "X$x" = "X$element"; then
7810         haveit=yes
7811         break
7812       fi
7813     done
7814     if test -z "$haveit"; then
7815       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7816     fi
7817   done
7818
7819
7820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
7821 $as_echo_n "checking for libexpat... " >&6; }
7822 if test "${ac_cv_libexpat+set}" = set; then :
7823   $as_echo_n "(cached) " >&6
7824 else
7825
7826     ac_save_LIBS="$LIBS"
7827     LIBS="$LIBS $LIBEXPAT"
7828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h.  */
7830 #include "expat.h"
7831 int
7832 main ()
7833 {
7834 XML_Parser p = XML_ParserCreate (0);
7835   ;
7836   return 0;
7837 }
7838 _ACEOF
7839 if ac_fn_c_try_link "$LINENO"; then :
7840   ac_cv_libexpat=yes
7841 else
7842   ac_cv_libexpat=no
7843 fi
7844 rm -f core conftest.err conftest.$ac_objext \
7845     conftest$ac_exeext conftest.$ac_ext
7846     LIBS="$ac_save_LIBS"
7847
7848 fi
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
7850 $as_echo "$ac_cv_libexpat" >&6; }
7851   if test "$ac_cv_libexpat" = yes; then
7852     HAVE_LIBEXPAT=yes
7853
7854 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
7855
7856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
7857 $as_echo_n "checking how to link with libexpat... " >&6; }
7858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
7859 $as_echo "$LIBEXPAT" >&6; }
7860   else
7861     HAVE_LIBEXPAT=no
7862             CPPFLAGS="$ac_save_CPPFLAGS"
7863     LIBEXPAT=
7864     LTLIBEXPAT=
7865   fi
7866
7867
7868
7869
7870
7871
7872   if test "$HAVE_LIBEXPAT" != yes; then
7873     if test "$with_expat" = yes; then
7874       as_fn_error "expat is missing or unusable" "$LINENO" 5
7875     else
7876       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7877 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7878     fi
7879   else
7880     save_LIBS=$LIBS
7881     LIBS="$LIBS $LIBEXPAT"
7882     for ac_func in XML_StopParser
7883 do :
7884   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
7885 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
7886   cat >>confdefs.h <<_ACEOF
7887 #define HAVE_XML_STOPPARSER 1
7888 _ACEOF
7889
7890 fi
7891 done
7892
7893     LIBS=$save_LIBS
7894   fi
7895 fi
7896
7897
7898
7899
7900
7901
7902 # Check whether --with-python was given.
7903 if test "${with_python+set}" = set; then :
7904   withval=$with_python;
7905 else
7906   with_python=auto
7907 fi
7908
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
7910 $as_echo_n "checking whether to use python... " >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7912 $as_echo "$with_python" >&6; }
7913
7914 if test "${with_python}" = no; then
7915   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
7916 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
7917   have_libpython=no
7918 else
7919   case "${with_python}" in
7920   [\\/]* | ?:[\\/]*)
7921     if test -d ${with_python}; then
7922       # Assume the python binary is ${with_python}/bin/python.
7923       python_prog="${with_python}/bin/python"
7924       python_prefix=
7925       # If python does not exit ${with_python}/bin, then try in
7926       # ${with_python}.  On Windows/MinGW, this is where the Python
7927       # executable is.
7928       if test ! -x "${python_prog}"; then
7929         python_prog="${with_python}/python"
7930         python_prefix=
7931       fi
7932       if test ! -x "${python_prog}"; then
7933         # Fall back to gdb 7.0/7.1 behaviour.
7934         python_prog=missing
7935         python_prefix=${with_python}
7936       fi
7937     elif test -x "${with_python}"; then
7938       # While we can't run python compiled for $host (unless host == build),
7939       # the user could write a script that provides the needed information,
7940       # so we support that.
7941       python_prog=${with_python}
7942       python_prefix=
7943     else
7944       as_fn_error "invalid value for --with-python" "$LINENO" 5
7945     fi
7946     ;;
7947   */*)
7948     # Disallow --with-python=foo/bar.
7949     as_fn_error "invalid value for --with-python" "$LINENO" 5
7950     ;;
7951   *)
7952     # The user has either specified auto, yes, or the name of the python
7953     # program assumed to be in $PATH.
7954     python_prefix=
7955     case "${with_python}" in
7956     yes | auto)
7957       if test ${build} = ${host}; then
7958         # Extract the first word of "python", so it can be a program name with args.
7959 set dummy python; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_path_python_prog_path+set}" = set; then :
7963   $as_echo_n "(cached) " >&6
7964 else
7965   case $python_prog_path in
7966   [\\/]* | ?:[\\/]*)
7967   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
7968   ;;
7969   *)
7970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7972 do
7973   IFS=$as_save_IFS
7974   test -z "$as_dir" && as_dir=.
7975     for ac_exec_ext in '' $ac_executable_extensions; do
7976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7977     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
7978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979     break 2
7980   fi
7981 done
7982   done
7983 IFS=$as_save_IFS
7984
7985   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
7986   ;;
7987 esac
7988 fi
7989 python_prog_path=$ac_cv_path_python_prog_path
7990 if test -n "$python_prog_path"; then
7991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
7992 $as_echo "$python_prog_path" >&6; }
7993 else
7994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996 fi
7997
7998
7999         if test "${python_prog_path}" = missing; then
8000           python_prog=missing
8001         else
8002           python_prog=${python_prog_path}
8003         fi
8004       else
8005         # Not much we can do except assume the cross-compiler will find the
8006         # right files.
8007         python_prog=missing
8008       fi
8009       ;;
8010     *)
8011       # While we can't run python compiled for $host (unless host == build),
8012       # the user could write a script that provides the needed information,
8013       # so we support that.
8014       python_prog="${with_python}"
8015       # Extract the first word of "${python_prog}", so it can be a program name with args.
8016 set dummy ${python_prog}; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8020   $as_echo_n "(cached) " >&6
8021 else
8022   case $python_prog_path in
8023   [\\/]* | ?:[\\/]*)
8024   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8025   ;;
8026   *)
8027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8029 do
8030   IFS=$as_save_IFS
8031   test -z "$as_dir" && as_dir=.
8032     for ac_exec_ext in '' $ac_executable_extensions; do
8033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8034     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036     break 2
8037   fi
8038 done
8039   done
8040 IFS=$as_save_IFS
8041
8042   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8043   ;;
8044 esac
8045 fi
8046 python_prog_path=$ac_cv_path_python_prog_path
8047 if test -n "$python_prog_path"; then
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8049 $as_echo "$python_prog_path" >&6; }
8050 else
8051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8053 fi
8054
8055
8056       if test "${python_prog_path}" = missing; then
8057         as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8058       fi
8059       ;;
8060     esac
8061   esac
8062
8063   if test "${python_prog}" != missing; then
8064     # We have a python program to use, but it may be too old.
8065     # Don't flag an error for --with-python=auto (the default).
8066     have_python_config=yes
8067     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8068     if test $? != 0; then
8069       have_python_config=failed
8070       if test "${with_python}" != auto; then
8071         as_fn_error "failure running python-config --includes" "$LINENO" 5
8072       fi
8073     fi
8074     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8075     if test $? != 0; then
8076       have_python_config=failed
8077       if test "${with_python}" != auto; then
8078         as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8079       fi
8080     fi
8081     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8082     if test $? != 0; then
8083       have_python_config=failed
8084       if test "${with_python}" != auto; then
8085         as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8086       fi
8087     fi
8088   else
8089     # We do not have a python executable we can use to determine where
8090     # to find the Python headers and libs.  We cannot guess the include
8091     # path from the python_prefix either, because that include path
8092     # depends on the Python version.  So, there is nothing much we can
8093     # do except assume that the compiler will be able to find those files.
8094     python_includes=
8095     python_libs=
8096     have_python_config=no
8097   fi
8098
8099   # If we have python-config, only try the configuration it provides.
8100   # Otherwise fallback on the old way of trying different versions of
8101   # python in turn.
8102
8103   have_libpython=no
8104   if test "${have_python_config}" = yes; then
8105     # Determine the Python version by extracting "-lpython<version>"
8106     # part of the python_libs. <version> is usually X.Y with X and Y
8107     # being decimal numbers, but can also be XY (seen on Windows).
8108     #
8109     # The extraction is performed using sed with a regular expression.
8110     # Initially, the regexp used was using the '?' quantifier to make
8111     # the dot in the version number optional.  Unfortunately, this
8112     # does not work with non-GNU versions of sed because, because of
8113     # what looks like a limitation (the '?' quantifier does not work
8114     # with back-references).  We work around this limitation by using
8115     # the '*' quantifier instead.  It means that, in theory, we might
8116     # match unexpected version strings such as "-lpython2..7", but
8117     # this seems unlikely in practice.  And even if that happens,
8118     # an error will be triggered later on, when checking that version
8119     # number.
8120     python_version=`echo " ${python_libs} " \
8121                          | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8122     case "${python_version}" in
8123     python*)
8124
8125   version=${python_version}
8126
8127   new_CPPFLAGS=${python_includes}
8128   new_LIBS=${python_libs}
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8130 $as_echo_n "checking for ${version}... " >&6; }
8131   save_CPPFLAGS=$CPPFLAGS
8132   save_LIBS=$LIBS
8133   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8134   LIBS="$LIBS $new_LIBS"
8135   found_usable_python=no
8136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h.  */
8138 #include "Python.h"
8139 int
8140 main ()
8141 {
8142 Py_Initialize ();
8143   ;
8144   return 0;
8145 }
8146 _ACEOF
8147 if ac_fn_c_try_link "$LINENO"; then :
8148   have_libpython=${version}
8149                   found_usable_python=yes
8150                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8151                   PYTHON_LIBS=$new_LIBS
8152 fi
8153 rm -f core conftest.err conftest.$ac_objext \
8154     conftest$ac_exeext conftest.$ac_ext
8155   CPPFLAGS=$save_CPPFLAGS
8156   LIBS=$save_LIBS
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8158 $as_echo "${found_usable_python}" >&6; }
8159
8160       ;;
8161     *)
8162       as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8163       ;;
8164     esac
8165   elif test "${have_python_config}" != failed; then
8166     if test "${have_libpython}" = no; then
8167
8168   version=python2.7
8169
8170   new_CPPFLAGS=${python_includes}
8171   new_LIBS="${python_libs} -lpython2.7"
8172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8173 $as_echo_n "checking for ${version}... " >&6; }
8174   save_CPPFLAGS=$CPPFLAGS
8175   save_LIBS=$LIBS
8176   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8177   LIBS="$LIBS $new_LIBS"
8178   found_usable_python=no
8179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h.  */
8181 #include "Python.h"
8182 int
8183 main ()
8184 {
8185 Py_Initialize ();
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 if ac_fn_c_try_link "$LINENO"; then :
8191   have_libpython=${version}
8192                   found_usable_python=yes
8193                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8194                   PYTHON_LIBS=$new_LIBS
8195 fi
8196 rm -f core conftest.err conftest.$ac_objext \
8197     conftest$ac_exeext conftest.$ac_ext
8198   CPPFLAGS=$save_CPPFLAGS
8199   LIBS=$save_LIBS
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8201 $as_echo "${found_usable_python}" >&6; }
8202
8203     fi
8204     if test "${have_libpython}" = no; then
8205
8206   version=python2.6
8207
8208   new_CPPFLAGS=${python_includes}
8209   new_LIBS="${python_libs} -lpython2.6"
8210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8211 $as_echo_n "checking for ${version}... " >&6; }
8212   save_CPPFLAGS=$CPPFLAGS
8213   save_LIBS=$LIBS
8214   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8215   LIBS="$LIBS $new_LIBS"
8216   found_usable_python=no
8217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h.  */
8219 #include "Python.h"
8220 int
8221 main ()
8222 {
8223 Py_Initialize ();
8224   ;
8225   return 0;
8226 }
8227 _ACEOF
8228 if ac_fn_c_try_link "$LINENO"; then :
8229   have_libpython=${version}
8230                   found_usable_python=yes
8231                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8232                   PYTHON_LIBS=$new_LIBS
8233 fi
8234 rm -f core conftest.err conftest.$ac_objext \
8235     conftest$ac_exeext conftest.$ac_ext
8236   CPPFLAGS=$save_CPPFLAGS
8237   LIBS=$save_LIBS
8238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8239 $as_echo "${found_usable_python}" >&6; }
8240
8241     fi
8242     if test ${have_libpython} = no; then
8243
8244   version=python2.5
8245
8246   new_CPPFLAGS=${python_includes}
8247   new_LIBS="${python_libs} -lpython2.5"
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8249 $as_echo_n "checking for ${version}... " >&6; }
8250   save_CPPFLAGS=$CPPFLAGS
8251   save_LIBS=$LIBS
8252   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8253   LIBS="$LIBS $new_LIBS"
8254   found_usable_python=no
8255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h.  */
8257 #include "Python.h"
8258 int
8259 main ()
8260 {
8261 Py_Initialize ();
8262   ;
8263   return 0;
8264 }
8265 _ACEOF
8266 if ac_fn_c_try_link "$LINENO"; then :
8267   have_libpython=${version}
8268                   found_usable_python=yes
8269                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8270                   PYTHON_LIBS=$new_LIBS
8271 fi
8272 rm -f core conftest.err conftest.$ac_objext \
8273     conftest$ac_exeext conftest.$ac_ext
8274   CPPFLAGS=$save_CPPFLAGS
8275   LIBS=$save_LIBS
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8277 $as_echo "${found_usable_python}" >&6; }
8278
8279     fi
8280     if test ${have_libpython} = no; then
8281
8282   version=python2.4
8283
8284   new_CPPFLAGS=${python_includes}
8285   new_LIBS="${python_libs} -lpython2.4"
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8287 $as_echo_n "checking for ${version}... " >&6; }
8288   save_CPPFLAGS=$CPPFLAGS
8289   save_LIBS=$LIBS
8290   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8291   LIBS="$LIBS $new_LIBS"
8292   found_usable_python=no
8293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h.  */
8295 #include "Python.h"
8296 int
8297 main ()
8298 {
8299 Py_Initialize ();
8300   ;
8301   return 0;
8302 }
8303 _ACEOF
8304 if ac_fn_c_try_link "$LINENO"; then :
8305   have_libpython=${version}
8306                   found_usable_python=yes
8307                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8308                   PYTHON_LIBS=$new_LIBS
8309 fi
8310 rm -f core conftest.err conftest.$ac_objext \
8311     conftest$ac_exeext conftest.$ac_ext
8312   CPPFLAGS=$save_CPPFLAGS
8313   LIBS=$save_LIBS
8314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8315 $as_echo "${found_usable_python}" >&6; }
8316
8317     fi
8318   fi
8319   if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8320
8321 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8322
8323   elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8324
8325 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8326
8327   elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8328
8329 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8330
8331   elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8332
8333 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8334
8335   fi
8336
8337   if test "${have_libpython}" = no; then
8338     case "${with_python}" in
8339     yes)
8340       as_fn_error "python is missing or unusable" "$LINENO" 5
8341       ;;
8342     auto)
8343       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8344 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8345       ;;
8346     *)
8347       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8348       ;;
8349     esac
8350   else
8351     if test -n "${python_prefix}"; then
8352
8353 cat >>confdefs.h <<_ACEOF
8354 #define WITH_PYTHON_PATH "${python_prefix}"
8355 _ACEOF
8356
8357
8358   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8359      if test "x$prefix" = xNONE; then
8360         test_prefix=/usr/local
8361      else
8362         test_prefix=$prefix
8363      fi
8364   else
8365      test_prefix=$exec_prefix
8366   fi
8367   value=0
8368   case ${python_prefix} in
8369      "${test_prefix}"|"${test_prefix}/"*|\
8370         '${exec_prefix}'|'${exec_prefix}/'*)
8371      value=1
8372      ;;
8373   esac
8374
8375 cat >>confdefs.h <<_ACEOF
8376 #define PYTHON_PATH_RELOCATABLE $value
8377 _ACEOF
8378
8379
8380     fi
8381   fi
8382 fi
8383
8384 if test "${have_libpython}" != no; then
8385
8386 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8387
8388   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8389   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8390   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8391   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
8392   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8393
8394   # Flags needed to compile Python code (taken from python-config --cflags).
8395   # We cannot call python-config directly because it will output whatever was
8396   # used when compiling the Python interpreter itself, including flags which
8397   # would make the python-related objects be compiled differently from the
8398   # rest of GDB (e.g., -O2 and -fPIC).
8399   if test "${GCC}" = yes; then
8400     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
8401   fi
8402
8403   if test "x${tentative_python_cflags}" != x; then
8404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8405 $as_echo_n "checking compiler flags for python code... " >&6; }
8406     for flag in ${tentative_python_cflags}; do
8407       # Check that the compiler accepts it
8408       saved_CFLAGS="$CFLAGS"
8409       CFLAGS="$CFLAGS $flag"
8410       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h.  */
8412
8413 int
8414 main ()
8415 {
8416
8417   ;
8418   return 0;
8419 }
8420 _ACEOF
8421 if ac_fn_c_try_compile "$LINENO"; then :
8422   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
8423 fi
8424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425       CFLAGS="$saved_CFLAGS"
8426     done
8427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8428 $as_echo "${PYTHON_CFLAGS}" >&6; }
8429   fi
8430
8431   # On IRIX, type siginfo is not defined.  Instead, sys/siginfo.h provides:
8432   #    #if _SGIAPI
8433   #    #define siginfo __siginfo
8434   #    #endif
8435   # The problem is that including Python causes some XOPEN macros to be
8436   # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8437   # to false.  So, we work around this issue by defining siginfo ourself
8438   # though the command-line.
8439   case "$gdb_host" in
8440     irix*) if test "${GCC}" = yes; then
8441              CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
8442            fi
8443            ;;
8444   esac
8445 else
8446   # Even if Python support is not compiled in, we need to have these files
8447   # included.
8448   CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
8449   CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
8450         python/py-prettyprint.c python/py-auto-load.c"
8451 fi
8452
8453
8454
8455
8456 # ------------------------- #
8457 # Checks for header files.  #
8458 # ------------------------- #
8459
8460 ac_header_dirent=no
8461 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8462   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8464 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8466   $as_echo_n "(cached) " >&6
8467 else
8468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h.  */
8470 #include <sys/types.h>
8471 #include <$ac_hdr>
8472
8473 int
8474 main ()
8475 {
8476 if ((DIR *) 0)
8477 return 0;
8478   ;
8479   return 0;
8480 }
8481 _ACEOF
8482 if ac_fn_c_try_compile "$LINENO"; then :
8483   eval "$as_ac_Header=yes"
8484 else
8485   eval "$as_ac_Header=no"
8486 fi
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 fi
8489 eval ac_res=\$$as_ac_Header
8490                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8491 $as_echo "$ac_res" >&6; }
8492 eval as_val=\$$as_ac_Header
8493    if test "x$as_val" = x""yes; then :
8494   cat >>confdefs.h <<_ACEOF
8495 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8496 _ACEOF
8497
8498 ac_header_dirent=$ac_hdr; break
8499 fi
8500
8501 done
8502 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8503 if test $ac_header_dirent = dirent.h; then
8504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8505 $as_echo_n "checking for library containing opendir... " >&6; }
8506 if test "${ac_cv_search_opendir+set}" = set; then :
8507   $as_echo_n "(cached) " >&6
8508 else
8509   ac_func_search_save_LIBS=$LIBS
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h.  */
8512
8513 /* Override any GCC internal prototype to avoid an error.
8514    Use char because int might match the return type of a GCC
8515    builtin and then its argument prototype would still apply.  */
8516 #ifdef __cplusplus
8517 extern "C"
8518 #endif
8519 char opendir ();
8520 int
8521 main ()
8522 {
8523 return opendir ();
8524   ;
8525   return 0;
8526 }
8527 _ACEOF
8528 for ac_lib in '' dir; do
8529   if test -z "$ac_lib"; then
8530     ac_res="none required"
8531   else
8532     ac_res=-l$ac_lib
8533     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8534   fi
8535   if ac_fn_c_try_link "$LINENO"; then :
8536   ac_cv_search_opendir=$ac_res
8537 fi
8538 rm -f core conftest.err conftest.$ac_objext \
8539     conftest$ac_exeext
8540   if test "${ac_cv_search_opendir+set}" = set; then :
8541   break
8542 fi
8543 done
8544 if test "${ac_cv_search_opendir+set}" = set; then :
8545
8546 else
8547   ac_cv_search_opendir=no
8548 fi
8549 rm conftest.$ac_ext
8550 LIBS=$ac_func_search_save_LIBS
8551 fi
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8553 $as_echo "$ac_cv_search_opendir" >&6; }
8554 ac_res=$ac_cv_search_opendir
8555 if test "$ac_res" != no; then :
8556   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8557
8558 fi
8559
8560 else
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8562 $as_echo_n "checking for library containing opendir... " >&6; }
8563 if test "${ac_cv_search_opendir+set}" = set; then :
8564   $as_echo_n "(cached) " >&6
8565 else
8566   ac_func_search_save_LIBS=$LIBS
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h.  */
8569
8570 /* Override any GCC internal prototype to avoid an error.
8571    Use char because int might match the return type of a GCC
8572    builtin and then its argument prototype would still apply.  */
8573 #ifdef __cplusplus
8574 extern "C"
8575 #endif
8576 char opendir ();
8577 int
8578 main ()
8579 {
8580 return opendir ();
8581   ;
8582   return 0;
8583 }
8584 _ACEOF
8585 for ac_lib in '' x; do
8586   if test -z "$ac_lib"; then
8587     ac_res="none required"
8588   else
8589     ac_res=-l$ac_lib
8590     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8591   fi
8592   if ac_fn_c_try_link "$LINENO"; then :
8593   ac_cv_search_opendir=$ac_res
8594 fi
8595 rm -f core conftest.err conftest.$ac_objext \
8596     conftest$ac_exeext
8597   if test "${ac_cv_search_opendir+set}" = set; then :
8598   break
8599 fi
8600 done
8601 if test "${ac_cv_search_opendir+set}" = set; then :
8602
8603 else
8604   ac_cv_search_opendir=no
8605 fi
8606 rm conftest.$ac_ext
8607 LIBS=$ac_func_search_save_LIBS
8608 fi
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8610 $as_echo "$ac_cv_search_opendir" >&6; }
8611 ac_res=$ac_cv_search_opendir
8612 if test "$ac_res" != no; then :
8613   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8614
8615 fi
8616
8617 fi
8618
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8620 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8621 if test "${ac_cv_header_stat_broken+set}" = set; then :
8622   $as_echo_n "(cached) " >&6
8623 else
8624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h.  */
8626 #include <sys/types.h>
8627 #include <sys/stat.h>
8628
8629 #if defined S_ISBLK && defined S_IFDIR
8630 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8631 #endif
8632
8633 #if defined S_ISBLK && defined S_IFCHR
8634 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8635 #endif
8636
8637 #if defined S_ISLNK && defined S_IFREG
8638 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8639 #endif
8640
8641 #if defined S_ISSOCK && defined S_IFREG
8642 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8643 #endif
8644
8645 _ACEOF
8646 if ac_fn_c_try_compile "$LINENO"; then :
8647   ac_cv_header_stat_broken=no
8648 else
8649   ac_cv_header_stat_broken=yes
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 fi
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8654 $as_echo "$ac_cv_header_stat_broken" >&6; }
8655 if test $ac_cv_header_stat_broken = yes; then
8656
8657 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8658
8659 fi
8660
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8662 $as_echo_n "checking for ANSI C header files... " >&6; }
8663 if test "${ac_cv_header_stdc+set}" = set; then :
8664   $as_echo_n "(cached) " >&6
8665 else
8666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h.  */
8668 #include <stdlib.h>
8669 #include <stdarg.h>
8670 #include <string.h>
8671 #include <float.h>
8672
8673 int
8674 main ()
8675 {
8676
8677   ;
8678   return 0;
8679 }
8680 _ACEOF
8681 if ac_fn_c_try_compile "$LINENO"; then :
8682   ac_cv_header_stdc=yes
8683 else
8684   ac_cv_header_stdc=no
8685 fi
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687
8688 if test $ac_cv_header_stdc = yes; then
8689   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h.  */
8692 #include <string.h>
8693
8694 _ACEOF
8695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8696   $EGREP "memchr" >/dev/null 2>&1; then :
8697
8698 else
8699   ac_cv_header_stdc=no
8700 fi
8701 rm -f conftest*
8702
8703 fi
8704
8705 if test $ac_cv_header_stdc = yes; then
8706   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h.  */
8709 #include <stdlib.h>
8710
8711 _ACEOF
8712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8713   $EGREP "free" >/dev/null 2>&1; then :
8714
8715 else
8716   ac_cv_header_stdc=no
8717 fi
8718 rm -f conftest*
8719
8720 fi
8721
8722 if test $ac_cv_header_stdc = yes; then
8723   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8724   if test "$cross_compiling" = yes; then :
8725   :
8726 else
8727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h.  */
8729 #include <ctype.h>
8730 #include <stdlib.h>
8731 #if ((' ' & 0x0FF) == 0x020)
8732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8734 #else
8735 # define ISLOWER(c) \
8736                    (('a' <= (c) && (c) <= 'i') \
8737                      || ('j' <= (c) && (c) <= 'r') \
8738                      || ('s' <= (c) && (c) <= 'z'))
8739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8740 #endif
8741
8742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8743 int
8744 main ()
8745 {
8746   int i;
8747   for (i = 0; i < 256; i++)
8748     if (XOR (islower (i), ISLOWER (i))
8749         || toupper (i) != TOUPPER (i))
8750       return 2;
8751   return 0;
8752 }
8753 _ACEOF
8754 if ac_fn_c_try_run "$LINENO"; then :
8755
8756 else
8757   ac_cv_header_stdc=no
8758 fi
8759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8760   conftest.$ac_objext conftest.beam conftest.$ac_ext
8761 fi
8762
8763 fi
8764 fi
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8766 $as_echo "$ac_cv_header_stdc" >&6; }
8767 if test $ac_cv_header_stdc = yes; then
8768
8769 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8770
8771 fi
8772
8773 # elf_hp.h is for HP/UX 64-bit shared library support.
8774 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
8775 # unconditionally, so what's the point in checking these?
8776 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
8777                   thread_db.h gnu/libc-version.h signal.h stddef.h \
8778                   stdlib.h string.h memory.h strings.h sys/fault.h \
8779                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
8780                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
8781                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
8782                   sys/types.h sys/wait.h wait.h termios.h termio.h \
8783                   sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h \
8784                   dlfcn.h sys/socket.h sys/un.h
8785 do :
8786   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8787 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8788 eval as_val=\$$as_ac_Header
8789    if test "x$as_val" = x""yes; then :
8790   cat >>confdefs.h <<_ACEOF
8791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8792 _ACEOF
8793
8794 fi
8795
8796 done
8797
8798 for ac_header in link.h
8799 do :
8800   ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
8801 # include <sys/types.h>
8802 #endif
8803 #if HAVE_NLIST_H
8804 # include <nlist.h>
8805 #endif
8806
8807 "
8808 if test "x$ac_cv_header_link_h" = x""yes; then :
8809   cat >>confdefs.h <<_ACEOF
8810 #define HAVE_LINK_H 1
8811 _ACEOF
8812
8813 fi
8814
8815 done
8816
8817 for ac_header in sys/proc.h
8818 do :
8819   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
8820 # include <sys/param.h>
8821 #endif
8822
8823 "
8824 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
8825   cat >>confdefs.h <<_ACEOF
8826 #define HAVE_SYS_PROC_H 1
8827 _ACEOF
8828
8829 fi
8830
8831 done
8832
8833 for ac_header in sys/user.h
8834 do :
8835   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
8836 # include <sys/param.h>
8837 #endif
8838
8839 "
8840 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
8841   cat >>confdefs.h <<_ACEOF
8842 #define HAVE_SYS_USER_H 1
8843 _ACEOF
8844
8845 fi
8846
8847 done
8848
8849
8850 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
8851 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
8852 # think that we don't have <curses.h> if we're using GCC.
8853 case $host_os in
8854   solaris2.[789])
8855     if test "$GCC" = yes; then
8856
8857 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
8858
8859     fi ;;
8860 esac
8861 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
8862 do :
8863   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8864 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8865 eval as_val=\$$as_ac_Header
8866    if test "x$as_val" = x""yes; then :
8867   cat >>confdefs.h <<_ACEOF
8868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8869 _ACEOF
8870
8871 fi
8872
8873 done
8874
8875 for ac_header in term.h
8876 do :
8877   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
8878 # include <curses.h>
8879 #endif
8880
8881 "
8882 if test "x$ac_cv_header_term_h" = x""yes; then :
8883   cat >>confdefs.h <<_ACEOF
8884 #define HAVE_TERM_H 1
8885 _ACEOF
8886
8887 fi
8888
8889 done
8890
8891
8892 # ------------------------- #
8893 # Checks for declarations.  #
8894 # ------------------------- #
8895
8896 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
8897 if test "x$ac_cv_have_decl_free" = x""yes; then :
8898   ac_have_decl=1
8899 else
8900   ac_have_decl=0
8901 fi
8902
8903 cat >>confdefs.h <<_ACEOF
8904 #define HAVE_DECL_FREE $ac_have_decl
8905 _ACEOF
8906 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
8907 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
8908   ac_have_decl=1
8909 else
8910   ac_have_decl=0
8911 fi
8912
8913 cat >>confdefs.h <<_ACEOF
8914 #define HAVE_DECL_MALLOC $ac_have_decl
8915 _ACEOF
8916 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
8917 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
8918   ac_have_decl=1
8919 else
8920   ac_have_decl=0
8921 fi
8922
8923 cat >>confdefs.h <<_ACEOF
8924 #define HAVE_DECL_REALLOC $ac_have_decl
8925 _ACEOF
8926 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
8927 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
8928   ac_have_decl=1
8929 else
8930   ac_have_decl=0
8931 fi
8932
8933 cat >>confdefs.h <<_ACEOF
8934 #define HAVE_DECL_STRERROR $ac_have_decl
8935 _ACEOF
8936 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8937 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
8938   ac_have_decl=1
8939 else
8940   ac_have_decl=0
8941 fi
8942
8943 cat >>confdefs.h <<_ACEOF
8944 #define HAVE_DECL_STRSTR $ac_have_decl
8945 _ACEOF
8946 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
8947 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
8948   ac_have_decl=1
8949 else
8950   ac_have_decl=0
8951 fi
8952
8953 cat >>confdefs.h <<_ACEOF
8954 #define HAVE_DECL_GETOPT $ac_have_decl
8955 _ACEOF
8956 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
8957 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
8958   ac_have_decl=1
8959 else
8960   ac_have_decl=0
8961 fi
8962
8963 cat >>confdefs.h <<_ACEOF
8964 #define HAVE_DECL_SNPRINTF $ac_have_decl
8965 _ACEOF
8966 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
8967 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
8968   ac_have_decl=1
8969 else
8970   ac_have_decl=0
8971 fi
8972
8973 cat >>confdefs.h <<_ACEOF
8974 #define HAVE_DECL_VSNPRINTF $ac_have_decl
8975 _ACEOF
8976
8977
8978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8979 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8980 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8981   $as_echo_n "(cached) " >&6
8982 else
8983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h.  */
8985 #include <locale.h>
8986 int
8987 main ()
8988 {
8989 return LC_MESSAGES
8990   ;
8991   return 0;
8992 }
8993 _ACEOF
8994 if ac_fn_c_try_link "$LINENO"; then :
8995   am_cv_val_LC_MESSAGES=yes
8996 else
8997   am_cv_val_LC_MESSAGES=no
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext \
9000     conftest$ac_exeext conftest.$ac_ext
9001 fi
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9003 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9004   if test $am_cv_val_LC_MESSAGES = yes; then
9005
9006 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9007
9008   fi
9009
9010
9011 # ----------------------- #
9012 # Checks for structures.  #
9013 # ----------------------- #
9014
9015 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9016 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
9017
9018 cat >>confdefs.h <<_ACEOF
9019 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9020 _ACEOF
9021
9022
9023 fi
9024 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9025 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
9026
9027 cat >>confdefs.h <<_ACEOF
9028 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9029 _ACEOF
9030
9031
9032 fi
9033
9034
9035 # ------------------ #
9036 # Checks for types.  #
9037 # ------------------ #
9038
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9040 $as_echo_n "checking return type of signal handlers... " >&6; }
9041 if test "${ac_cv_type_signal+set}" = set; then :
9042   $as_echo_n "(cached) " >&6
9043 else
9044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h.  */
9046 #include <sys/types.h>
9047 #include <signal.h>
9048
9049 int
9050 main ()
9051 {
9052 return *(signal (0, 0)) (0) == 1;
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 if ac_fn_c_try_compile "$LINENO"; then :
9058   ac_cv_type_signal=int
9059 else
9060   ac_cv_type_signal=void
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063 fi
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9065 $as_echo "$ac_cv_type_signal" >&6; }
9066
9067 cat >>confdefs.h <<_ACEOF
9068 #define RETSIGTYPE $ac_cv_type_signal
9069 _ACEOF
9070
9071
9072 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9073 #include <sys/socket.h>
9074
9075 "
9076 if test "x$ac_cv_type_socklen_t" = x""yes; then :
9077
9078 cat >>confdefs.h <<_ACEOF
9079 #define HAVE_SOCKLEN_T 1
9080 _ACEOF
9081
9082
9083 fi
9084
9085
9086 # ------------------------------------- #
9087 # Checks for compiler characteristics.  #
9088 # ------------------------------------- #
9089
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9091 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9092 if test "${ac_cv_c_const+set}" = set; then :
9093   $as_echo_n "(cached) " >&6
9094 else
9095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h.  */
9097
9098 int
9099 main ()
9100 {
9101 /* FIXME: Include the comments suggested by Paul. */
9102 #ifndef __cplusplus
9103   /* Ultrix mips cc rejects this.  */
9104   typedef int charset[2];
9105   const charset cs;
9106   /* SunOS 4.1.1 cc rejects this.  */
9107   char const *const *pcpcc;
9108   char **ppc;
9109   /* NEC SVR4.0.2 mips cc rejects this.  */
9110   struct point {int x, y;};
9111   static struct point const zero = {0,0};
9112   /* AIX XL C 1.02.0.0 rejects this.
9113      It does not let you subtract one const X* pointer from another in
9114      an arm of an if-expression whose if-part is not a constant
9115      expression */
9116   const char *g = "string";
9117   pcpcc = &g + (g ? g-g : 0);
9118   /* HPUX 7.0 cc rejects these. */
9119   ++pcpcc;
9120   ppc = (char**) pcpcc;
9121   pcpcc = (char const *const *) ppc;
9122   { /* SCO 3.2v4 cc rejects this.  */
9123     char *t;
9124     char const *s = 0 ? (char *) 0 : (char const *) 0;
9125
9126     *t++ = 0;
9127     if (s) return 0;
9128   }
9129   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9130     int x[] = {25, 17};
9131     const int *foo = &x[0];
9132     ++foo;
9133   }
9134   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9135     typedef const int *iptr;
9136     iptr p = 0;
9137     ++p;
9138   }
9139   { /* AIX XL C 1.02.0.0 rejects this saying
9140        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9141     struct s { int j; const int *ap[3]; };
9142     struct s *b; b->j = 5;
9143   }
9144   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9145     const int foo = 10;
9146     if (!foo) return 0;
9147   }
9148   return !cs[0] && !zero.x;
9149 #endif
9150
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 if ac_fn_c_try_compile "$LINENO"; then :
9156   ac_cv_c_const=yes
9157 else
9158   ac_cv_c_const=no
9159 fi
9160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161 fi
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9163 $as_echo "$ac_cv_c_const" >&6; }
9164 if test $ac_cv_c_const = no; then
9165
9166 $as_echo "#define const /**/" >>confdefs.h
9167
9168 fi
9169
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9171 $as_echo_n "checking for inline... " >&6; }
9172 if test "${ac_cv_c_inline+set}" = set; then :
9173   $as_echo_n "(cached) " >&6
9174 else
9175   ac_cv_c_inline=no
9176 for ac_kw in inline __inline__ __inline; do
9177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h.  */
9179 #ifndef __cplusplus
9180 typedef int foo_t;
9181 static $ac_kw foo_t static_foo () {return 0; }
9182 $ac_kw foo_t foo () {return 0; }
9183 #endif
9184
9185 _ACEOF
9186 if ac_fn_c_try_compile "$LINENO"; then :
9187   ac_cv_c_inline=$ac_kw
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190   test "$ac_cv_c_inline" != no && break
9191 done
9192
9193 fi
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9195 $as_echo "$ac_cv_c_inline" >&6; }
9196
9197 case $ac_cv_c_inline in
9198   inline | yes) ;;
9199   *)
9200     case $ac_cv_c_inline in
9201       no) ac_val=;;
9202       *) ac_val=$ac_cv_c_inline;;
9203     esac
9204     cat >>confdefs.h <<_ACEOF
9205 #ifndef __cplusplus
9206 #define inline $ac_val
9207 #endif
9208 _ACEOF
9209     ;;
9210 esac
9211
9212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9213 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9214 if test "${ac_cv_c_bigendian+set}" = set; then :
9215   $as_echo_n "(cached) " >&6
9216 else
9217   ac_cv_c_bigendian=unknown
9218     # See if we're dealing with a universal compiler.
9219     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h.  */
9221 #ifndef __APPLE_CC__
9222                not a universal capable compiler
9223              #endif
9224              typedef int dummy;
9225
9226 _ACEOF
9227 if ac_fn_c_try_compile "$LINENO"; then :
9228
9229         # Check for potential -arch flags.  It is not universal unless
9230         # there are at least two -arch flags with different values.
9231         ac_arch=
9232         ac_prev=
9233         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9234          if test -n "$ac_prev"; then
9235            case $ac_word in
9236              i?86 | x86_64 | ppc | ppc64)
9237                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9238                  ac_arch=$ac_word
9239                else
9240                  ac_cv_c_bigendian=universal
9241                  break
9242                fi
9243                ;;
9244            esac
9245            ac_prev=
9246          elif test "x$ac_word" = "x-arch"; then
9247            ac_prev=arch
9248          fi
9249        done
9250 fi
9251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252     if test $ac_cv_c_bigendian = unknown; then
9253       # See if sys/param.h defines the BYTE_ORDER macro.
9254       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h.  */
9256 #include <sys/types.h>
9257              #include <sys/param.h>
9258
9259 int
9260 main ()
9261 {
9262 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9263                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9264                      && LITTLE_ENDIAN)
9265               bogus endian macros
9266              #endif
9267
9268   ;
9269   return 0;
9270 }
9271 _ACEOF
9272 if ac_fn_c_try_compile "$LINENO"; then :
9273   # It does; now see whether it defined to BIG_ENDIAN or not.
9274          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h.  */
9276 #include <sys/types.h>
9277                 #include <sys/param.h>
9278
9279 int
9280 main ()
9281 {
9282 #if BYTE_ORDER != BIG_ENDIAN
9283                  not big endian
9284                 #endif
9285
9286   ;
9287   return 0;
9288 }
9289 _ACEOF
9290 if ac_fn_c_try_compile "$LINENO"; then :
9291   ac_cv_c_bigendian=yes
9292 else
9293   ac_cv_c_bigendian=no
9294 fi
9295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298     fi
9299     if test $ac_cv_c_bigendian = unknown; then
9300       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9301       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h.  */
9303 #include <limits.h>
9304
9305 int
9306 main ()
9307 {
9308 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9309               bogus endian macros
9310              #endif
9311
9312   ;
9313   return 0;
9314 }
9315 _ACEOF
9316 if ac_fn_c_try_compile "$LINENO"; then :
9317   # It does; now see whether it defined to _BIG_ENDIAN or not.
9318          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h.  */
9320 #include <limits.h>
9321
9322 int
9323 main ()
9324 {
9325 #ifndef _BIG_ENDIAN
9326                  not big endian
9327                 #endif
9328
9329   ;
9330   return 0;
9331 }
9332 _ACEOF
9333 if ac_fn_c_try_compile "$LINENO"; then :
9334   ac_cv_c_bigendian=yes
9335 else
9336   ac_cv_c_bigendian=no
9337 fi
9338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9339 fi
9340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341     fi
9342     if test $ac_cv_c_bigendian = unknown; then
9343       # Compile a test program.
9344       if test "$cross_compiling" = yes; then :
9345   # Try to guess by grepping values from an object file.
9346          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h.  */
9348 short int ascii_mm[] =
9349                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9350                 short int ascii_ii[] =
9351                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9352                 int use_ascii (int i) {
9353                   return ascii_mm[i] + ascii_ii[i];
9354                 }
9355                 short int ebcdic_ii[] =
9356                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9357                 short int ebcdic_mm[] =
9358                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9359                 int use_ebcdic (int i) {
9360                   return ebcdic_mm[i] + ebcdic_ii[i];
9361                 }
9362                 extern int foo;
9363
9364 int
9365 main ()
9366 {
9367 return use_ascii (foo) == use_ebcdic (foo);
9368   ;
9369   return 0;
9370 }
9371 _ACEOF
9372 if ac_fn_c_try_compile "$LINENO"; then :
9373   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9374               ac_cv_c_bigendian=yes
9375             fi
9376             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9377               if test "$ac_cv_c_bigendian" = unknown; then
9378                 ac_cv_c_bigendian=no
9379               else
9380                 # finding both strings is unlikely to happen, but who knows?
9381                 ac_cv_c_bigendian=unknown
9382               fi
9383             fi
9384 fi
9385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386 else
9387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h.  */
9389 $ac_includes_default
9390 int
9391 main ()
9392 {
9393
9394              /* Are we little or big endian?  From Harbison&Steele.  */
9395              union
9396              {
9397                long int l;
9398                char c[sizeof (long int)];
9399              } u;
9400              u.l = 1;
9401              return u.c[sizeof (long int) - 1] == 1;
9402
9403   ;
9404   return 0;
9405 }
9406 _ACEOF
9407 if ac_fn_c_try_run "$LINENO"; then :
9408   ac_cv_c_bigendian=no
9409 else
9410   ac_cv_c_bigendian=yes
9411 fi
9412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9413   conftest.$ac_objext conftest.beam conftest.$ac_ext
9414 fi
9415
9416     fi
9417 fi
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9419 $as_echo "$ac_cv_c_bigendian" >&6; }
9420  case $ac_cv_c_bigendian in #(
9421    yes)
9422      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9423 ;; #(
9424    no)
9425       ;; #(
9426    universal)
9427
9428 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9429
9430      ;; #(
9431    *)
9432      as_fn_error "unknown endianness
9433  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9434  esac
9435
9436
9437 # ------------------------------ #
9438 # Checks for library functions.  #
9439 # ------------------------------ #
9440
9441 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9442 # for constant arguments.  Useless!
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9444 $as_echo_n "checking for working alloca.h... " >&6; }
9445 if test "${ac_cv_working_alloca_h+set}" = set; then :
9446   $as_echo_n "(cached) " >&6
9447 else
9448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h.  */
9450 #include <alloca.h>
9451 int
9452 main ()
9453 {
9454 char *p = (char *) alloca (2 * sizeof (int));
9455                           if (p) return 0;
9456   ;
9457   return 0;
9458 }
9459 _ACEOF
9460 if ac_fn_c_try_link "$LINENO"; then :
9461   ac_cv_working_alloca_h=yes
9462 else
9463   ac_cv_working_alloca_h=no
9464 fi
9465 rm -f core conftest.err conftest.$ac_objext \
9466     conftest$ac_exeext conftest.$ac_ext
9467 fi
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9469 $as_echo "$ac_cv_working_alloca_h" >&6; }
9470 if test $ac_cv_working_alloca_h = yes; then
9471
9472 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9473
9474 fi
9475
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9477 $as_echo_n "checking for alloca... " >&6; }
9478 if test "${ac_cv_func_alloca_works+set}" = set; then :
9479   $as_echo_n "(cached) " >&6
9480 else
9481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h.  */
9483 #ifdef __GNUC__
9484 # define alloca __builtin_alloca
9485 #else
9486 # ifdef _MSC_VER
9487 #  include <malloc.h>
9488 #  define alloca _alloca
9489 # else
9490 #  ifdef HAVE_ALLOCA_H
9491 #   include <alloca.h>
9492 #  else
9493 #   ifdef _AIX
9494  #pragma alloca
9495 #   else
9496 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9497 char *alloca ();
9498 #    endif
9499 #   endif
9500 #  endif
9501 # endif
9502 #endif
9503
9504 int
9505 main ()
9506 {
9507 char *p = (char *) alloca (1);
9508                                     if (p) return 0;
9509   ;
9510   return 0;
9511 }
9512 _ACEOF
9513 if ac_fn_c_try_link "$LINENO"; then :
9514   ac_cv_func_alloca_works=yes
9515 else
9516   ac_cv_func_alloca_works=no
9517 fi
9518 rm -f core conftest.err conftest.$ac_objext \
9519     conftest$ac_exeext conftest.$ac_ext
9520 fi
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9522 $as_echo "$ac_cv_func_alloca_works" >&6; }
9523
9524 if test $ac_cv_func_alloca_works = yes; then
9525
9526 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9527
9528 else
9529   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9530 # that cause trouble.  Some versions do not even contain alloca or
9531 # contain a buggy version.  If you still want to use their alloca,
9532 # use ar to extract alloca.o from them instead of compiling alloca.c.
9533
9534 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9535
9536 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9537
9538
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9540 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9541 if test "${ac_cv_os_cray+set}" = set; then :
9542   $as_echo_n "(cached) " >&6
9543 else
9544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h.  */
9546 #if defined CRAY && ! defined CRAY2
9547 webecray
9548 #else
9549 wenotbecray
9550 #endif
9551
9552 _ACEOF
9553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9554   $EGREP "webecray" >/dev/null 2>&1; then :
9555   ac_cv_os_cray=yes
9556 else
9557   ac_cv_os_cray=no
9558 fi
9559 rm -f conftest*
9560
9561 fi
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9563 $as_echo "$ac_cv_os_cray" >&6; }
9564 if test $ac_cv_os_cray = yes; then
9565   for ac_func in _getb67 GETB67 getb67; do
9566     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9567 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9568 eval as_val=\$$as_ac_var
9569    if test "x$as_val" = x""yes; then :
9570
9571 cat >>confdefs.h <<_ACEOF
9572 #define CRAY_STACKSEG_END $ac_func
9573 _ACEOF
9574
9575     break
9576 fi
9577
9578   done
9579 fi
9580
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9582 $as_echo_n "checking stack direction for C alloca... " >&6; }
9583 if test "${ac_cv_c_stack_direction+set}" = set; then :
9584   $as_echo_n "(cached) " >&6
9585 else
9586   if test "$cross_compiling" = yes; then :
9587   ac_cv_c_stack_direction=0
9588 else
9589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h.  */
9591 $ac_includes_default
9592 int
9593 find_stack_direction ()
9594 {
9595   static char *addr = 0;
9596   auto char dummy;
9597   if (addr == 0)
9598     {
9599       addr = &dummy;
9600       return find_stack_direction ();
9601     }
9602   else
9603     return (&dummy > addr) ? 1 : -1;
9604 }
9605
9606 int
9607 main ()
9608 {
9609   return find_stack_direction () < 0;
9610 }
9611 _ACEOF
9612 if ac_fn_c_try_run "$LINENO"; then :
9613   ac_cv_c_stack_direction=1
9614 else
9615   ac_cv_c_stack_direction=-1
9616 fi
9617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9618   conftest.$ac_objext conftest.beam conftest.$ac_ext
9619 fi
9620
9621 fi
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9623 $as_echo "$ac_cv_c_stack_direction" >&6; }
9624 cat >>confdefs.h <<_ACEOF
9625 #define STACK_DIRECTION $ac_cv_c_stack_direction
9626 _ACEOF
9627
9628
9629 fi
9630
9631 for ac_header in stdlib.h unistd.h
9632 do :
9633   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9634 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9635 eval as_val=\$$as_ac_Header
9636    if test "x$as_val" = x""yes; then :
9637   cat >>confdefs.h <<_ACEOF
9638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9639 _ACEOF
9640
9641 fi
9642
9643 done
9644
9645 for ac_func in getpagesize
9646 do :
9647   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9648 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9649   cat >>confdefs.h <<_ACEOF
9650 #define HAVE_GETPAGESIZE 1
9651 _ACEOF
9652
9653 fi
9654 done
9655
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9657 $as_echo_n "checking for working mmap... " >&6; }
9658 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9659   $as_echo_n "(cached) " >&6
9660 else
9661   if test "$cross_compiling" = yes; then :
9662   ac_cv_func_mmap_fixed_mapped=no
9663 else
9664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h.  */
9666 $ac_includes_default
9667 /* malloc might have been renamed as rpl_malloc. */
9668 #undef malloc
9669
9670 /* Thanks to Mike Haertel and Jim Avera for this test.
9671    Here is a matrix of mmap possibilities:
9672         mmap private not fixed
9673         mmap private fixed at somewhere currently unmapped
9674         mmap private fixed at somewhere already mapped
9675         mmap shared not fixed
9676         mmap shared fixed at somewhere currently unmapped
9677         mmap shared fixed at somewhere already mapped
9678    For private mappings, we should verify that changes cannot be read()
9679    back from the file, nor mmap's back from the file at a different
9680    address.  (There have been systems where private was not correctly
9681    implemented like the infamous i386 svr4.0, and systems where the
9682    VM page cache was not coherent with the file system buffer cache
9683    like early versions of FreeBSD and possibly contemporary NetBSD.)
9684    For shared mappings, we should conversely verify that changes get
9685    propagated back to all the places they're supposed to be.
9686
9687    Grep wants private fixed already mapped.
9688    The main things grep needs to know about mmap are:
9689    * does it exist and is it safe to write into the mmap'd area
9690    * how to use it (BSD variants)  */
9691
9692 #include <fcntl.h>
9693 #include <sys/mman.h>
9694
9695 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9696 char *malloc ();
9697 #endif
9698
9699 /* This mess was copied from the GNU getpagesize.h.  */
9700 #ifndef HAVE_GETPAGESIZE
9701 /* Assume that all systems that can run configure have sys/param.h.  */
9702 # ifndef HAVE_SYS_PARAM_H
9703 #  define HAVE_SYS_PARAM_H 1
9704 # endif
9705
9706 # ifdef _SC_PAGESIZE
9707 #  define getpagesize() sysconf(_SC_PAGESIZE)
9708 # else /* no _SC_PAGESIZE */
9709 #  ifdef HAVE_SYS_PARAM_H
9710 #   include <sys/param.h>
9711 #   ifdef EXEC_PAGESIZE
9712 #    define getpagesize() EXEC_PAGESIZE
9713 #   else /* no EXEC_PAGESIZE */
9714 #    ifdef NBPG
9715 #     define getpagesize() NBPG * CLSIZE
9716 #     ifndef CLSIZE
9717 #      define CLSIZE 1
9718 #     endif /* no CLSIZE */
9719 #    else /* no NBPG */
9720 #     ifdef NBPC
9721 #      define getpagesize() NBPC
9722 #     else /* no NBPC */
9723 #      ifdef PAGESIZE
9724 #       define getpagesize() PAGESIZE
9725 #      endif /* PAGESIZE */
9726 #     endif /* no NBPC */
9727 #    endif /* no NBPG */
9728 #   endif /* no EXEC_PAGESIZE */
9729 #  else /* no HAVE_SYS_PARAM_H */
9730 #   define getpagesize() 8192   /* punt totally */
9731 #  endif /* no HAVE_SYS_PARAM_H */
9732 # endif /* no _SC_PAGESIZE */
9733
9734 #endif /* no HAVE_GETPAGESIZE */
9735
9736 int
9737 main ()
9738 {
9739   char *data, *data2, *data3;
9740   int i, pagesize;
9741   int fd;
9742
9743   pagesize = getpagesize ();
9744
9745   /* First, make a file with some known garbage in it. */
9746   data = (char *) malloc (pagesize);
9747   if (!data)
9748     return 1;
9749   for (i = 0; i < pagesize; ++i)
9750     *(data + i) = rand ();
9751   umask (0);
9752   fd = creat ("conftest.mmap", 0600);
9753   if (fd < 0)
9754     return 1;
9755   if (write (fd, data, pagesize) != pagesize)
9756     return 1;
9757   close (fd);
9758
9759   /* Next, try to mmap the file at a fixed address which already has
9760      something else allocated at it.  If we can, also make sure that
9761      we see the same garbage.  */
9762   fd = open ("conftest.mmap", O_RDWR);
9763   if (fd < 0)
9764     return 1;
9765   data2 = (char *) malloc (2 * pagesize);
9766   if (!data2)
9767     return 1;
9768   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9769   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9770                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9771     return 1;
9772   for (i = 0; i < pagesize; ++i)
9773     if (*(data + i) != *(data2 + i))
9774       return 1;
9775
9776   /* Finally, make sure that changes to the mapped area do not
9777      percolate back to the file as seen by read().  (This is a bug on
9778      some variants of i386 svr4.0.)  */
9779   for (i = 0; i < pagesize; ++i)
9780     *(data2 + i) = *(data2 + i) + 1;
9781   data3 = (char *) malloc (pagesize);
9782   if (!data3)
9783     return 1;
9784   if (read (fd, data3, pagesize) != pagesize)
9785     return 1;
9786   for (i = 0; i < pagesize; ++i)
9787     if (*(data + i) != *(data3 + i))
9788       return 1;
9789   close (fd);
9790   return 0;
9791 }
9792 _ACEOF
9793 if ac_fn_c_try_run "$LINENO"; then :
9794   ac_cv_func_mmap_fixed_mapped=yes
9795 else
9796   ac_cv_func_mmap_fixed_mapped=no
9797 fi
9798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9799   conftest.$ac_objext conftest.beam conftest.$ac_ext
9800 fi
9801
9802 fi
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9804 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9805 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9806
9807 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9808
9809 fi
9810 rm -f conftest.mmap
9811
9812 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9813 if test "x$ac_cv_type_pid_t" = x""yes; then :
9814
9815 else
9816
9817 cat >>confdefs.h <<_ACEOF
9818 #define pid_t int
9819 _ACEOF
9820
9821 fi
9822
9823 for ac_header in vfork.h
9824 do :
9825   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9826 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9827   cat >>confdefs.h <<_ACEOF
9828 #define HAVE_VFORK_H 1
9829 _ACEOF
9830
9831 fi
9832
9833 done
9834
9835 for ac_func in fork vfork
9836 do :
9837   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9838 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9839 eval as_val=\$$as_ac_var
9840    if test "x$as_val" = x""yes; then :
9841   cat >>confdefs.h <<_ACEOF
9842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9843 _ACEOF
9844
9845 fi
9846 done
9847
9848 if test "x$ac_cv_func_fork" = xyes; then
9849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9850 $as_echo_n "checking for working fork... " >&6; }
9851 if test "${ac_cv_func_fork_works+set}" = set; then :
9852   $as_echo_n "(cached) " >&6
9853 else
9854   if test "$cross_compiling" = yes; then :
9855   ac_cv_func_fork_works=cross
9856 else
9857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h.  */
9859 $ac_includes_default
9860 int
9861 main ()
9862 {
9863
9864           /* By Ruediger Kuhlmann. */
9865           return fork () < 0;
9866
9867   ;
9868   return 0;
9869 }
9870 _ACEOF
9871 if ac_fn_c_try_run "$LINENO"; then :
9872   ac_cv_func_fork_works=yes
9873 else
9874   ac_cv_func_fork_works=no
9875 fi
9876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9877   conftest.$ac_objext conftest.beam conftest.$ac_ext
9878 fi
9879
9880 fi
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9882 $as_echo "$ac_cv_func_fork_works" >&6; }
9883
9884 else
9885   ac_cv_func_fork_works=$ac_cv_func_fork
9886 fi
9887 if test "x$ac_cv_func_fork_works" = xcross; then
9888   case $host in
9889     *-*-amigaos* | *-*-msdosdjgpp*)
9890       # Override, as these systems have only a dummy fork() stub
9891       ac_cv_func_fork_works=no
9892       ;;
9893     *)
9894       ac_cv_func_fork_works=yes
9895       ;;
9896   esac
9897   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9898 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9899 fi
9900 ac_cv_func_vfork_works=$ac_cv_func_vfork
9901 if test "x$ac_cv_func_vfork" = xyes; then
9902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9903 $as_echo_n "checking for working vfork... " >&6; }
9904 if test "${ac_cv_func_vfork_works+set}" = set; then :
9905   $as_echo_n "(cached) " >&6
9906 else
9907   if test "$cross_compiling" = yes; then :
9908   ac_cv_func_vfork_works=cross
9909 else
9910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h.  */
9912 /* Thanks to Paul Eggert for this test.  */
9913 $ac_includes_default
9914 #include <sys/wait.h>
9915 #ifdef HAVE_VFORK_H
9916 # include <vfork.h>
9917 #endif
9918 /* On some sparc systems, changes by the child to local and incoming
9919    argument registers are propagated back to the parent.  The compiler
9920    is told about this with #include <vfork.h>, but some compilers
9921    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9922    static variable whose address is put into a register that is
9923    clobbered by the vfork.  */
9924 static void
9925 #ifdef __cplusplus
9926 sparc_address_test (int arg)
9927 # else
9928 sparc_address_test (arg) int arg;
9929 #endif
9930 {
9931   static pid_t child;
9932   if (!child) {
9933     child = vfork ();
9934     if (child < 0) {
9935       perror ("vfork");
9936       _exit(2);
9937     }
9938     if (!child) {
9939       arg = getpid();
9940       write(-1, "", 0);
9941       _exit (arg);
9942     }
9943   }
9944 }
9945
9946 int
9947 main ()
9948 {
9949   pid_t parent = getpid ();
9950   pid_t child;
9951
9952   sparc_address_test (0);
9953
9954   child = vfork ();
9955
9956   if (child == 0) {
9957     /* Here is another test for sparc vfork register problems.  This
9958        test uses lots of local variables, at least as many local
9959        variables as main has allocated so far including compiler
9960        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9961        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9962        reuse the register of parent for one of the local variables,
9963        since it will think that parent can't possibly be used any more
9964        in this routine.  Assigning to the local variable will thus
9965        munge parent in the parent process.  */
9966     pid_t
9967       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9968       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9969     /* Convince the compiler that p..p7 are live; otherwise, it might
9970        use the same hardware register for all 8 local variables.  */
9971     if (p != p1 || p != p2 || p != p3 || p != p4
9972         || p != p5 || p != p6 || p != p7)
9973       _exit(1);
9974
9975     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9976        from child file descriptors.  If the child closes a descriptor
9977        before it execs or exits, this munges the parent's descriptor
9978        as well.  Test for this by closing stdout in the child.  */
9979     _exit(close(fileno(stdout)) != 0);
9980   } else {
9981     int status;
9982     struct stat st;
9983
9984     while (wait(&status) != child)
9985       ;
9986     return (
9987          /* Was there some problem with vforking?  */
9988          child < 0
9989
9990          /* Did the child fail?  (This shouldn't happen.)  */
9991          || status
9992
9993          /* Did the vfork/compiler bug occur?  */
9994          || parent != getpid()
9995
9996          /* Did the file descriptor bug occur?  */
9997          || fstat(fileno(stdout), &st) != 0
9998          );
9999   }
10000 }
10001 _ACEOF
10002 if ac_fn_c_try_run "$LINENO"; then :
10003   ac_cv_func_vfork_works=yes
10004 else
10005   ac_cv_func_vfork_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_vfork_works" >&5
10013 $as_echo "$ac_cv_func_vfork_works" >&6; }
10014
10015 fi;
10016 if test "x$ac_cv_func_fork_works" = xcross; then
10017   ac_cv_func_vfork_works=$ac_cv_func_vfork
10018   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10019 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10020 fi
10021
10022 if test "x$ac_cv_func_vfork_works" = xyes; then
10023
10024 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10025
10026 else
10027
10028 $as_echo "#define vfork fork" >>confdefs.h
10029
10030 fi
10031 if test "x$ac_cv_func_fork_works" = xyes; then
10032
10033 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10034
10035 fi
10036
10037 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
10038                 pipe poll pread pread64 pwrite readlink resize_term \
10039                 sbrk setpgid setpgrp setsid \
10040                 sigaction sigprocmask sigsetmask socketpair syscall \
10041                 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10042                 setrlimit getrlimit posix_madvise waitpid lstat
10043 do :
10044   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10045 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10046 eval as_val=\$$as_ac_var
10047    if test "x$as_val" = x""yes; then :
10048   cat >>confdefs.h <<_ACEOF
10049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10050 _ACEOF
10051
10052 fi
10053 done
10054
10055
10056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10057 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10058 if test "${am_cv_langinfo_codeset+set}" = set; then :
10059   $as_echo_n "(cached) " >&6
10060 else
10061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h.  */
10063 #include <langinfo.h>
10064 int
10065 main ()
10066 {
10067 char* cs = nl_langinfo(CODESET);
10068   ;
10069   return 0;
10070 }
10071 _ACEOF
10072 if ac_fn_c_try_link "$LINENO"; then :
10073   am_cv_langinfo_codeset=yes
10074 else
10075   am_cv_langinfo_codeset=no
10076 fi
10077 rm -f core conftest.err conftest.$ac_objext \
10078     conftest$ac_exeext conftest.$ac_ext
10079
10080 fi
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10082 $as_echo "$am_cv_langinfo_codeset" >&6; }
10083   if test $am_cv_langinfo_codeset = yes; then
10084
10085 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10086
10087   fi
10088
10089
10090 # Check the return and argument types of ptrace.  No canned test for
10091 # this, so roll our own.
10092 gdb_ptrace_headers='
10093 #if HAVE_SYS_TYPES_H
10094 # include <sys/types.h>
10095 #endif
10096 #if HAVE_SYS_PTRACE_H
10097 # include <sys/ptrace.h>
10098 #endif
10099 #if HAVE_UNISTD_H
10100 # include <unistd.h>
10101 #endif
10102 '
10103 # There is no point in checking if we don't have a prototype.
10104 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10105 "
10106 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
10107   ac_have_decl=1
10108 else
10109   ac_have_decl=0
10110 fi
10111
10112 cat >>confdefs.h <<_ACEOF
10113 #define HAVE_DECL_PTRACE $ac_have_decl
10114 _ACEOF
10115 if test $ac_have_decl = 1; then :
10116
10117 else
10118
10119   : ${gdb_cv_func_ptrace_ret='int'}
10120   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10121
10122 fi
10123
10124 # Check return type.  Varargs (used on GNU/Linux) conflict with the
10125 # empty argument list, so check for that explicitly.
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10127 $as_echo_n "checking return type of ptrace... " >&6; }
10128 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10129   $as_echo_n "(cached) " >&6
10130 else
10131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h.  */
10133 $gdb_ptrace_headers
10134 int
10135 main ()
10136 {
10137 extern long ptrace (enum __ptrace_request, ...);
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 if ac_fn_c_try_compile "$LINENO"; then :
10143   gdb_cv_func_ptrace_ret='long'
10144 else
10145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h.  */
10147 $gdb_ptrace_headers
10148 int
10149 main ()
10150 {
10151 extern int ptrace ();
10152   ;
10153   return 0;
10154 }
10155 _ACEOF
10156 if ac_fn_c_try_compile "$LINENO"; then :
10157   gdb_cv_func_ptrace_ret='int'
10158 else
10159   gdb_cv_func_ptrace_ret='long'
10160 fi
10161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10162 fi
10163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 fi
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10166 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10167
10168 cat >>confdefs.h <<_ACEOF
10169 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10170 _ACEOF
10171
10172 # Check argument types.
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10174 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10175 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
10176   $as_echo_n "(cached) " >&6
10177 else
10178
10179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h.  */
10181 $gdb_ptrace_headers
10182 int
10183 main ()
10184 {
10185 extern long ptrace (enum __ptrace_request, ...);
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 if ac_fn_c_try_compile "$LINENO"; then :
10191   gdb_cv_func_ptrace_args='int,int,long,long'
10192 else
10193
10194 for gdb_arg1 in 'int' 'long'; do
10195  for gdb_arg2 in 'pid_t' 'int' 'long'; do
10196   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10197    for gdb_arg4 in 'int' 'long'; do
10198      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h.  */
10200 $gdb_ptrace_headers
10201 int
10202 main ()
10203 {
10204
10205 extern $gdb_cv_func_ptrace_ret
10206   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10207
10208   ;
10209   return 0;
10210 }
10211 _ACEOF
10212 if ac_fn_c_try_compile "$LINENO"; then :
10213   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10214     break 4;
10215 fi
10216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10217     for gdb_arg5 in 'int *' 'int' 'long'; do
10218      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h.  */
10220 $gdb_ptrace_headers
10221 int
10222 main ()
10223 {
10224
10225 extern $gdb_cv_func_ptrace_ret
10226   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10227
10228   ;
10229   return 0;
10230 }
10231 _ACEOF
10232 if ac_fn_c_try_compile "$LINENO"; then :
10233
10234 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10235     break 5;
10236 fi
10237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10238     done
10239    done
10240   done
10241  done
10242 done
10243 # Provide a safe default value.
10244 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10245
10246 fi
10247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10248 fi
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10250 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10251 ac_save_IFS=$IFS; IFS=','
10252 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10253 IFS=$ac_save_IFS
10254 shift
10255
10256 cat >>confdefs.h <<_ACEOF
10257 #define PTRACE_TYPE_ARG3 $3
10258 _ACEOF
10259
10260 if test -n "$5"; then
10261
10262 cat >>confdefs.h <<_ACEOF
10263 #define PTRACE_TYPE_ARG5 $5
10264 _ACEOF
10265
10266 fi
10267
10268 if test "$cross_compiling" = no; then
10269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10270 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10271 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10272   $as_echo_n "(cached) " >&6
10273 else
10274   if test "$cross_compiling" = yes; then :
10275   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
10276 else
10277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h.  */
10279 $ac_includes_default
10280 int
10281 main ()
10282 {
10283 /* If this system has a BSD-style setpgrp which takes arguments,
10284   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10285   exit successfully. */
10286   return setpgrp (1,1) != -1;
10287   ;
10288   return 0;
10289 }
10290 _ACEOF
10291 if ac_fn_c_try_run "$LINENO"; then :
10292   ac_cv_func_setpgrp_void=no
10293 else
10294   ac_cv_func_setpgrp_void=yes
10295 fi
10296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10297   conftest.$ac_objext conftest.beam conftest.$ac_ext
10298 fi
10299
10300 fi
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10302 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10303 if test $ac_cv_func_setpgrp_void = yes; then
10304
10305 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10306
10307 fi
10308
10309 else
10310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10311 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10312 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10313   $as_echo_n "(cached) " >&6
10314 else
10315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h.  */
10317
10318 #include <unistd.h>
10319
10320 int
10321 main ()
10322 {
10323
10324   if (setpgrp(1,1) == -1)
10325     exit (0);
10326   else
10327     exit (1);
10328
10329   ;
10330   return 0;
10331 }
10332 _ACEOF
10333 if ac_fn_c_try_compile "$LINENO"; then :
10334   ac_cv_func_setpgrp_void=no
10335 else
10336   ac_cv_func_setpgrp_void=yes
10337 fi
10338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339 fi
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10341 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10342 if test $ac_cv_func_setpgrp_void = yes; then
10343   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10344
10345 fi
10346 fi
10347
10348 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
10349 # since sigsetjmp might only be defined as a macro.
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
10351 $as_echo_n "checking for sigsetjmp... " >&6; }
10352 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
10353   $as_echo_n "(cached) " >&6
10354 else
10355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h.  */
10357
10358 #include <setjmp.h>
10359
10360 int
10361 main ()
10362 {
10363 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
10364   ;
10365   return 0;
10366 }
10367 _ACEOF
10368 if ac_fn_c_try_compile "$LINENO"; then :
10369   gdb_cv_func_sigsetjmp=yes
10370 else
10371   gdb_cv_func_sigsetjmp=no
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10374 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
10376 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
10377 if test $gdb_cv_func_sigsetjmp = yes; then
10378
10379 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10380
10381 fi
10382
10383 # Assume we'll default to using the included libiberty regex.
10384 gdb_use_included_regex=yes
10385
10386 # However, if the system regex is GNU regex, then default to *not*
10387 # using the included regex.
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
10389 $as_echo_n "checking for GNU regex... " >&6; }
10390 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
10391   $as_echo_n "(cached) " >&6
10392 else
10393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h.  */
10395 #include <gnu-versions.h>
10396 int
10397 main ()
10398 {
10399 #define REGEX_INTERFACE_VERSION 1
10400 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
10401 # error "Version mismatch"
10402 #endif
10403   ;
10404   return 0;
10405 }
10406 _ACEOF
10407 if ac_fn_c_try_compile "$LINENO"; then :
10408   gdb_cv_have_gnu_regex=yes
10409 else
10410   gdb_cv_have_gnu_regex=no
10411 fi
10412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10413 fi
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
10415 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
10416 if test $gdb_cv_have_gnu_regex = yes; then
10417   gdb_use_included_regex=no
10418 fi
10419
10420
10421 # Check whether --with-included-regex was given.
10422 if test "${with_included_regex+set}" = set; then :
10423   withval=$with_included_regex; gdb_with_regex=$withval
10424 else
10425   gdb_with_regex=$gdb_use_included_regex
10426 fi
10427
10428 if test "$gdb_with_regex" = yes; then
10429
10430 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
10431
10432 fi
10433
10434 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
10435 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
10436 #include <sys/proc.h>
10437
10438 "
10439 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
10440
10441 cat >>confdefs.h <<_ACEOF
10442 #define HAVE_STRUCT_THREAD_TD_PCB 1
10443 _ACEOF
10444
10445
10446 fi
10447
10448
10449 # See if <sys/lwp.h> defines `struct lwp`.
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
10451 $as_echo_n "checking for struct lwp... " >&6; }
10452 if test "${gdb_cv_struct_lwp+set}" = set; then :
10453   $as_echo_n "(cached) " >&6
10454 else
10455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h.  */
10457 #include <sys/param.h>
10458 #include <sys/lwp.h>
10459 int
10460 main ()
10461 {
10462 struct lwp l;
10463   ;
10464   return 0;
10465 }
10466 _ACEOF
10467 if ac_fn_c_try_compile "$LINENO"; then :
10468   gdb_cv_struct_lwp=yes
10469 else
10470   gdb_cv_struct_lwp=no
10471 fi
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473 fi
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
10475 $as_echo "$gdb_cv_struct_lwp" >&6; }
10476 if test $gdb_cv_struct_lwp = yes; then
10477
10478 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
10479
10480 fi
10481
10482 # See if <machine/reg.h> degines `struct reg'.
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
10484 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
10485 if test "${gdb_cv_struct_reg+set}" = set; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h.  */
10490 #include <sys/types.h>
10491 #include <machine/reg.h>
10492 int
10493 main ()
10494 {
10495 struct reg r;
10496   ;
10497   return 0;
10498 }
10499 _ACEOF
10500 if ac_fn_c_try_compile "$LINENO"; then :
10501   gdb_cv_struct_reg=yes
10502 else
10503   gdb_cv_struct_reg=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_struct_reg" >&5
10508 $as_echo "$gdb_cv_struct_reg" >&6; }
10509 if test $gdb_cv_struct_reg = yes; then
10510
10511 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
10512
10513 fi
10514
10515 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
10516 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
10517 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
10518 "
10519 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
10520
10521 cat >>confdefs.h <<_ACEOF
10522 #define HAVE_STRUCT_REG_R_FS 1
10523 _ACEOF
10524
10525
10526 fi
10527 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
10528 "
10529 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
10530
10531 cat >>confdefs.h <<_ACEOF
10532 #define HAVE_STRUCT_REG_R_GS 1
10533 _ACEOF
10534
10535
10536 fi
10537
10538
10539 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10541 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10542 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
10543   $as_echo_n "(cached) " >&6
10544 else
10545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h.  */
10547 #include <sys/ptrace.h>
10548 int
10549 main ()
10550 {
10551 PTRACE_GETREGS;
10552   ;
10553   return 0;
10554 }
10555 _ACEOF
10556 if ac_fn_c_try_compile "$LINENO"; then :
10557   gdb_cv_have_ptrace_getregs=yes
10558 else
10559   gdb_cv_have_ptrace_getregs=no
10560 fi
10561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10562 fi
10563
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
10565 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
10566 if test $gdb_cv_have_ptrace_getregs = yes; then
10567
10568 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10569
10570 fi
10571
10572 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10574 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10575 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
10576   $as_echo_n "(cached) " >&6
10577 else
10578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h.  */
10580 #include <sys/ptrace.h>
10581 int
10582 main ()
10583 {
10584 PTRACE_GETFPXREGS;
10585   ;
10586   return 0;
10587 }
10588 _ACEOF
10589 if ac_fn_c_try_compile "$LINENO"; then :
10590   gdb_cv_have_ptrace_getfpxregs=yes
10591 else
10592   gdb_cv_have_ptrace_getfpxregs=no
10593 fi
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595 fi
10596
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
10598 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
10599 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
10600
10601 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10602
10603 fi
10604
10605 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
10607 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
10608 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
10609   $as_echo_n "(cached) " >&6
10610 else
10611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h.  */
10613 #include <sys/types.h>
10614 #include <sys/ptrace.h>
10615 int
10616 main ()
10617 {
10618 PT_GETDBREGS;
10619   ;
10620   return 0;
10621 }
10622 _ACEOF
10623 if ac_fn_c_try_compile "$LINENO"; then :
10624   gdb_cv_have_pt_getdbregs=yes
10625 else
10626   gdb_cv_have_pt_getdbregs=no
10627 fi
10628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10629 fi
10630
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
10632 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
10633 if test $gdb_cv_have_pt_getdbregs = yes; then
10634
10635 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
10636
10637 fi
10638
10639 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
10641 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
10642 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
10643   $as_echo_n "(cached) " >&6
10644 else
10645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h.  */
10647 #include <sys/types.h>
10648 #include <sys/ptrace.h>
10649 int
10650 main ()
10651 {
10652 PT_GETXMMREGS;
10653   ;
10654   return 0;
10655 }
10656 _ACEOF
10657 if ac_fn_c_try_compile "$LINENO"; then :
10658   gdb_cv_have_pt_getxmmregs=yes
10659 else
10660   gdb_cv_have_pt_getxmmregs=no
10661 fi
10662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 fi
10664
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
10666 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
10667 if test $gdb_cv_have_pt_getxmmregs = yes; then
10668
10669 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
10670
10671 fi
10672
10673 # Detect which type of /proc is in use, such as for Unixware or Solaris.
10674
10675 if test "${target}" = "${host}"; then
10676   case "${host}" in
10677   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
10678
10679 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10680
10681       ;;
10682   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
10683
10684 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10685
10686       ;;
10687   mips-sgi-irix5*)
10688       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
10689
10690 $as_echo "#define _KMEMUSER 1" >>confdefs.h
10691
10692       ;;
10693   esac
10694 fi
10695
10696 if test "$ac_cv_header_sys_procfs_h" = yes; then
10697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
10698 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
10699  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
10700   $as_echo_n "(cached) " >&6
10701 else
10702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h.  */
10704
10705 #define _SYSCALL32
10706 /* Needed for new procfs interface on sparc-solaris.  */
10707 #define _STRUCTURED_PROC 1
10708 #include <sys/procfs.h>
10709 int
10710 main ()
10711 {
10712 pstatus_t avar
10713   ;
10714   return 0;
10715 }
10716 _ACEOF
10717 if ac_fn_c_try_compile "$LINENO"; then :
10718   bfd_cv_have_sys_procfs_type_pstatus_t=yes
10719 else
10720   bfd_cv_have_sys_procfs_type_pstatus_t=no
10721
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724 fi
10725
10726  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10727
10728 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
10729
10730  fi
10731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10732 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
10733
10734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
10735 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
10736  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
10737   $as_echo_n "(cached) " >&6
10738 else
10739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h.  */
10741
10742 #define _SYSCALL32
10743 /* Needed for new procfs interface on sparc-solaris.  */
10744 #define _STRUCTURED_PROC 1
10745 #include <sys/procfs.h>
10746 int
10747 main ()
10748 {
10749 prrun_t avar
10750   ;
10751   return 0;
10752 }
10753 _ACEOF
10754 if ac_fn_c_try_compile "$LINENO"; then :
10755   bfd_cv_have_sys_procfs_type_prrun_t=yes
10756 else
10757   bfd_cv_have_sys_procfs_type_prrun_t=no
10758
10759 fi
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 fi
10762
10763  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
10764
10765 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
10766
10767  fi
10768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
10769 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
10770
10771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10772 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10773  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
10774   $as_echo_n "(cached) " >&6
10775 else
10776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h.  */
10778
10779 #define _SYSCALL32
10780 /* Needed for new procfs interface on sparc-solaris.  */
10781 #define _STRUCTURED_PROC 1
10782 #include <sys/procfs.h>
10783 int
10784 main ()
10785 {
10786 gregset_t avar
10787   ;
10788   return 0;
10789 }
10790 _ACEOF
10791 if ac_fn_c_try_compile "$LINENO"; then :
10792   bfd_cv_have_sys_procfs_type_gregset_t=yes
10793 else
10794   bfd_cv_have_sys_procfs_type_gregset_t=no
10795
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10798 fi
10799
10800  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10801
10802 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10803
10804  fi
10805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10806 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10807
10808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10809 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10810  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
10811   $as_echo_n "(cached) " >&6
10812 else
10813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h.  */
10815
10816 #define _SYSCALL32
10817 /* Needed for new procfs interface on sparc-solaris.  */
10818 #define _STRUCTURED_PROC 1
10819 #include <sys/procfs.h>
10820 int
10821 main ()
10822 {
10823 fpregset_t avar
10824   ;
10825   return 0;
10826 }
10827 _ACEOF
10828 if ac_fn_c_try_compile "$LINENO"; then :
10829   bfd_cv_have_sys_procfs_type_fpregset_t=yes
10830 else
10831   bfd_cv_have_sys_procfs_type_fpregset_t=no
10832
10833 fi
10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835 fi
10836
10837  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10838
10839 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10840
10841  fi
10842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10843 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10844
10845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10846 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10847  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
10848   $as_echo_n "(cached) " >&6
10849 else
10850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h.  */
10852
10853 #define _SYSCALL32
10854 /* Needed for new procfs interface on sparc-solaris.  */
10855 #define _STRUCTURED_PROC 1
10856 #include <sys/procfs.h>
10857 int
10858 main ()
10859 {
10860 prgregset_t avar
10861   ;
10862   return 0;
10863 }
10864 _ACEOF
10865 if ac_fn_c_try_compile "$LINENO"; then :
10866   bfd_cv_have_sys_procfs_type_prgregset_t=yes
10867 else
10868   bfd_cv_have_sys_procfs_type_prgregset_t=no
10869
10870 fi
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872 fi
10873
10874  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10875
10876 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10877
10878  fi
10879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10880 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10881
10882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10883 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10884  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
10885   $as_echo_n "(cached) " >&6
10886 else
10887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h.  */
10889
10890 #define _SYSCALL32
10891 /* Needed for new procfs interface on sparc-solaris.  */
10892 #define _STRUCTURED_PROC 1
10893 #include <sys/procfs.h>
10894 int
10895 main ()
10896 {
10897 prfpregset_t avar
10898   ;
10899   return 0;
10900 }
10901 _ACEOF
10902 if ac_fn_c_try_compile "$LINENO"; then :
10903   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
10904 else
10905   bfd_cv_have_sys_procfs_type_prfpregset_t=no
10906
10907 fi
10908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909 fi
10910
10911  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10912
10913 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10914
10915  fi
10916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10917 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10918
10919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10920 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10921  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
10922   $as_echo_n "(cached) " >&6
10923 else
10924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h.  */
10926
10927 #define _SYSCALL32
10928 /* Needed for new procfs interface on sparc-solaris.  */
10929 #define _STRUCTURED_PROC 1
10930 #include <sys/procfs.h>
10931 int
10932 main ()
10933 {
10934 prgregset32_t avar
10935   ;
10936   return 0;
10937 }
10938 _ACEOF
10939 if ac_fn_c_try_compile "$LINENO"; then :
10940   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
10941 else
10942   bfd_cv_have_sys_procfs_type_prgregset32_t=no
10943
10944 fi
10945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10946 fi
10947
10948  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10949
10950 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10951
10952  fi
10953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10954 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10955
10956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
10957 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
10958  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
10959   $as_echo_n "(cached) " >&6
10960 else
10961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h.  */
10963
10964 #define _SYSCALL32
10965 /* Needed for new procfs interface on sparc-solaris.  */
10966 #define _STRUCTURED_PROC 1
10967 #include <sys/procfs.h>
10968 int
10969 main ()
10970 {
10971 prfpregset32_t avar
10972   ;
10973   return 0;
10974 }
10975 _ACEOF
10976 if ac_fn_c_try_compile "$LINENO"; then :
10977   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
10978 else
10979   bfd_cv_have_sys_procfs_type_prfpregset32_t=no
10980
10981 fi
10982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10983 fi
10984
10985  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
10986
10987 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
10988
10989  fi
10990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
10991 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
10992
10993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10994 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10995  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
10996   $as_echo_n "(cached) " >&6
10997 else
10998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h.  */
11000
11001 #define _SYSCALL32
11002 /* Needed for new procfs interface on sparc-solaris.  */
11003 #define _STRUCTURED_PROC 1
11004 #include <sys/procfs.h>
11005 int
11006 main ()
11007 {
11008 lwpid_t avar
11009   ;
11010   return 0;
11011 }
11012 _ACEOF
11013 if ac_fn_c_try_compile "$LINENO"; then :
11014   bfd_cv_have_sys_procfs_type_lwpid_t=yes
11015 else
11016   bfd_cv_have_sys_procfs_type_lwpid_t=no
11017
11018 fi
11019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11020 fi
11021
11022  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11023
11024 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11025
11026  fi
11027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11028 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11029
11030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11031 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11032  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11033   $as_echo_n "(cached) " >&6
11034 else
11035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h.  */
11037
11038 #define _SYSCALL32
11039 /* Needed for new procfs interface on sparc-solaris.  */
11040 #define _STRUCTURED_PROC 1
11041 #include <sys/procfs.h>
11042 int
11043 main ()
11044 {
11045 psaddr_t avar
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 if ac_fn_c_try_compile "$LINENO"; then :
11051   bfd_cv_have_sys_procfs_type_psaddr_t=yes
11052 else
11053   bfd_cv_have_sys_procfs_type_psaddr_t=no
11054
11055 fi
11056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057 fi
11058
11059  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11060
11061 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11062
11063  fi
11064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11065 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11066
11067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11068 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11069  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11070   $as_echo_n "(cached) " >&6
11071 else
11072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h.  */
11074
11075 #define _SYSCALL32
11076 /* Needed for new procfs interface on sparc-solaris.  */
11077 #define _STRUCTURED_PROC 1
11078 #include <sys/procfs.h>
11079 int
11080 main ()
11081 {
11082 prsysent_t avar
11083   ;
11084   return 0;
11085 }
11086 _ACEOF
11087 if ac_fn_c_try_compile "$LINENO"; then :
11088   bfd_cv_have_sys_procfs_type_prsysent_t=yes
11089 else
11090   bfd_cv_have_sys_procfs_type_prsysent_t=no
11091
11092 fi
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094 fi
11095
11096  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11097
11098 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11099
11100  fi
11101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11102 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11103
11104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11105 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11106  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11107   $as_echo_n "(cached) " >&6
11108 else
11109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h.  */
11111
11112 #define _SYSCALL32
11113 /* Needed for new procfs interface on sparc-solaris.  */
11114 #define _STRUCTURED_PROC 1
11115 #include <sys/procfs.h>
11116 int
11117 main ()
11118 {
11119 pr_sigset_t avar
11120   ;
11121   return 0;
11122 }
11123 _ACEOF
11124 if ac_fn_c_try_compile "$LINENO"; then :
11125   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
11126 else
11127   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
11128
11129 fi
11130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131 fi
11132
11133  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11134
11135 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11136
11137  fi
11138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11139 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11140
11141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11142 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11143  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11144   $as_echo_n "(cached) " >&6
11145 else
11146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h.  */
11148
11149 #define _SYSCALL32
11150 /* Needed for new procfs interface on sparc-solaris.  */
11151 #define _STRUCTURED_PROC 1
11152 #include <sys/procfs.h>
11153 int
11154 main ()
11155 {
11156 pr_sigaction64_t avar
11157   ;
11158   return 0;
11159 }
11160 _ACEOF
11161 if ac_fn_c_try_compile "$LINENO"; then :
11162   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
11163 else
11164   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
11165
11166 fi
11167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11168 fi
11169
11170  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11171
11172 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11173
11174  fi
11175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11176 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11177
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11179 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11180  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11181   $as_echo_n "(cached) " >&6
11182 else
11183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h.  */
11185
11186 #define _SYSCALL32
11187 /* Needed for new procfs interface on sparc-solaris.  */
11188 #define _STRUCTURED_PROC 1
11189 #include <sys/procfs.h>
11190 int
11191 main ()
11192 {
11193 pr_siginfo64_t avar
11194   ;
11195   return 0;
11196 }
11197 _ACEOF
11198 if ac_fn_c_try_compile "$LINENO"; then :
11199   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
11200 else
11201   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
11202
11203 fi
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205 fi
11206
11207  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11208
11209 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11210
11211  fi
11212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11213 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11214
11215
11216
11217
11218
11219   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11221 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11222     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11223   $as_echo_n "(cached) " >&6
11224 else
11225   if test "$cross_compiling" = yes; then :
11226   gdb_cv_prfpregset_t_broken=yes
11227 else
11228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h.  */
11230 #include <sys/procfs.h>
11231        int main ()
11232        {
11233          if (sizeof (prfpregset_t) == sizeof (void *))
11234            return 1;
11235          return 0;
11236        }
11237 _ACEOF
11238 if ac_fn_c_try_run "$LINENO"; then :
11239   gdb_cv_prfpregset_t_broken=no
11240 else
11241   gdb_cv_prfpregset_t_broken=yes
11242 fi
11243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11244   conftest.$ac_objext conftest.beam conftest.$ac_ext
11245 fi
11246
11247 fi
11248
11249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
11250 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
11251     if test $gdb_cv_prfpregset_t_broken = yes; then
11252
11253 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
11254
11255     fi
11256   fi
11257
11258
11259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
11260 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
11261   if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
11262   $as_echo_n "(cached) " >&6
11263 else
11264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h.  */
11266 #include <unistd.h>
11267 #include <sys/types.h>
11268 #include <sys/procfs.h>
11269
11270 int
11271 main ()
11272 {
11273
11274     int dummy;;
11275     dummy = ioctl(0, PIOCSET, &dummy);
11276
11277   ;
11278   return 0;
11279 }
11280 _ACEOF
11281 if ac_fn_c_try_compile "$LINENO"; then :
11282   gdb_cv_have_procfs_piocset=yes
11283 else
11284   gdb_cv_have_procfs_piocset=no
11285 fi
11286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287 fi
11288
11289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
11290 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
11291   if test $gdb_cv_have_procfs_piocset = yes; then
11292
11293 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
11294
11295   fi
11296 fi
11297
11298 if test ${host} = ${target} ; then
11299
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
11301 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
11302   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
11303   $as_echo_n "(cached) " >&6
11304 else
11305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h.  */
11307 #include <link.h>
11308 int
11309 main ()
11310 {
11311 struct link_map lm; (void) lm.l_addr;
11312   ;
11313   return 0;
11314 }
11315 _ACEOF
11316 if ac_fn_c_try_compile "$LINENO"; then :
11317   gdb_cv_have_struct_link_map_with_l_members=yes
11318 else
11319   gdb_cv_have_struct_link_map_with_l_members=no
11320 fi
11321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11322 fi
11323
11324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
11325 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
11326   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
11327
11328 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
11329
11330   fi
11331
11332
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
11334 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
11335   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
11336   $as_echo_n "(cached) " >&6
11337 else
11338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h.  */
11340 #include <sys/types.h>
11341 #include <link.h>
11342 int
11343 main ()
11344 {
11345 struct link_map lm; (void) lm.lm_addr;
11346   ;
11347   return 0;
11348 }
11349 _ACEOF
11350 if ac_fn_c_try_compile "$LINENO"; then :
11351   gdb_cv_have_struct_link_map_with_lm_members=yes
11352 else
11353   gdb_cv_have_struct_link_map_with_lm_members=no
11354 fi
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356 fi
11357
11358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
11359 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
11360   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
11361
11362 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
11363
11364   fi
11365
11366
11367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
11368 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
11369   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
11370   $as_echo_n "(cached) " >&6
11371 else
11372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h.  */
11374 #include <sys/types.h>
11375 #ifdef HAVE_NLIST_H
11376 #include <nlist.h>
11377 #endif
11378 #include <link.h>
11379 int
11380 main ()
11381 {
11382 struct so_map lm; (void) lm.som_addr;
11383   ;
11384   return 0;
11385 }
11386 _ACEOF
11387 if ac_fn_c_try_compile "$LINENO"; then :
11388   gdb_cv_have_struct_so_map_with_som_members=yes
11389 else
11390   gdb_cv_have_struct_so_map_with_som_members=no
11391 fi
11392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11393 fi
11394
11395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
11396 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
11397   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
11398
11399 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
11400
11401   fi
11402
11403
11404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
11405 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
11406   if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
11407   $as_echo_n "(cached) " >&6
11408 else
11409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h.  */
11411 #define _SYSCALL32
11412 #include <sys/link.h>
11413 int
11414 main ()
11415 {
11416 struct link_map32 l;
11417   ;
11418   return 0;
11419 }
11420 _ACEOF
11421 if ac_fn_c_try_compile "$LINENO"; then :
11422   gdb_cv_have_struct_link_map32=yes
11423 else
11424   gdb_cv_have_struct_link_map32=no
11425 fi
11426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11427 fi
11428
11429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
11430 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
11431   if test $gdb_cv_have_struct_link_map32 = yes; then
11432
11433 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
11434
11435
11436 $as_echo "#define _SYSCALL32 1" >>confdefs.h
11437
11438   fi
11439 fi
11440
11441 # Check if the compiler supports the `long long' type.
11442
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
11444 $as_echo_n "checking for long long support in compiler... " >&6; }
11445 if test "${gdb_cv_c_long_long+set}" = set; then :
11446   $as_echo_n "(cached) " >&6
11447 else
11448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h.  */
11450 extern long long foo;
11451 int
11452 main ()
11453 {
11454 switch (foo & 2) { case 0: return 1; }
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 if ac_fn_c_try_compile "$LINENO"; then :
11460   gdb_cv_c_long_long=yes
11461 else
11462   gdb_cv_c_long_long=no
11463 fi
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
11467 $as_echo "$gdb_cv_c_long_long" >&6; }
11468 if test $gdb_cv_c_long_long = yes; then
11469
11470 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
11471
11472 fi
11473
11474 # Check if the compiler and runtime support printing long longs.
11475
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
11477 $as_echo_n "checking for long long support in printf... " >&6; }
11478 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
11479   $as_echo_n "(cached) " >&6
11480 else
11481   if test "$cross_compiling" = yes; then :
11482   gdb_cv_printf_has_long_long=no
11483 else
11484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h.  */
11486 $ac_includes_default
11487 int
11488 main ()
11489 {
11490 char buf[32];
11491   long long l = 0;
11492   l = (l << 16) + 0x0123;
11493   l = (l << 16) + 0x4567;
11494   l = (l << 16) + 0x89ab;
11495   l = (l << 16) + 0xcdef;
11496   sprintf (buf, "0x%016llx", l);
11497   return (strcmp ("0x0123456789abcdef", buf));
11498   ;
11499   return 0;
11500 }
11501 _ACEOF
11502 if ac_fn_c_try_run "$LINENO"; then :
11503   gdb_cv_printf_has_long_long=yes
11504 else
11505   gdb_cv_printf_has_long_long=no
11506 fi
11507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11508   conftest.$ac_objext conftest.beam conftest.$ac_ext
11509 fi
11510
11511 fi
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
11513 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
11514 if test $gdb_cv_printf_has_long_long = yes; then
11515
11516 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
11517
11518 fi
11519
11520 # Check if the compiler and runtime support printing decfloats.
11521
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
11523 $as_echo_n "checking for decfloat support in printf... " >&6; }
11524 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
11525   $as_echo_n "(cached) " >&6
11526 else
11527   if test "$cross_compiling" = yes; then :
11528   gdb_cv_printf_has_decfloat=no
11529 else
11530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h.  */
11532 $ac_includes_default
11533 int
11534 main ()
11535 {
11536 char buf[64];
11537   _Decimal32 d32 = 1.2345df;
11538   _Decimal64 d64 = 1.2345dd;
11539   _Decimal128 d128 = 1.2345dl;
11540   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
11541   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
11542   ;
11543   return 0;
11544 }
11545 _ACEOF
11546 if ac_fn_c_try_run "$LINENO"; then :
11547   gdb_cv_printf_has_decfloat=yes
11548 else
11549   gdb_cv_printf_has_decfloat=no
11550 fi
11551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11552   conftest.$ac_objext conftest.beam conftest.$ac_ext
11553 fi
11554
11555 fi
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
11557 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
11558 if test $gdb_cv_printf_has_decfloat = yes; then
11559
11560 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
11561
11562 fi
11563
11564 # Check if the compiler supports the `long double' type.  We can't use
11565 # AC_C_LONG_DOUBLE because that one does additional checks on the
11566 # constants defined in <float.h> that fail on some systems,
11567 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
11568
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
11570 $as_echo_n "checking for long double support in compiler... " >&6; }
11571 if test "${gdb_cv_c_long_double+set}" = set; then :
11572   $as_echo_n "(cached) " >&6
11573 else
11574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h.  */
11576 long double foo;
11577 _ACEOF
11578 if ac_fn_c_try_compile "$LINENO"; then :
11579   gdb_cv_c_long_double=yes
11580 else
11581   gdb_cv_c_long_double=no
11582 fi
11583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11584 fi
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
11586 $as_echo "$gdb_cv_c_long_double" >&6; }
11587 if test $gdb_cv_c_long_double = yes; then
11588
11589 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11590
11591 fi
11592
11593 # Check if the compiler and runtime support printing long doubles.
11594
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
11596 $as_echo_n "checking for long double support in printf... " >&6; }
11597 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
11598   $as_echo_n "(cached) " >&6
11599 else
11600   if test "$cross_compiling" = yes; then :
11601   gdb_cv_printf_has_long_double=no
11602 else
11603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11604 /* end confdefs.h.  */
11605 $ac_includes_default
11606 int
11607 main ()
11608 {
11609 char buf[16];
11610   long double f = 3.141592653;
11611   sprintf (buf, "%Lg", f);
11612   return (strncmp ("3.14159", buf, 7));
11613   ;
11614   return 0;
11615 }
11616 _ACEOF
11617 if ac_fn_c_try_run "$LINENO"; then :
11618   gdb_cv_printf_has_long_double=yes
11619 else
11620   gdb_cv_printf_has_long_double=no
11621 fi
11622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11623   conftest.$ac_objext conftest.beam conftest.$ac_ext
11624 fi
11625
11626 fi
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
11628 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
11629 if test $gdb_cv_printf_has_long_double = yes; then
11630
11631 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
11632
11633 fi
11634
11635 # Check if the compiler and runtime support scanning long doubles.
11636
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
11638 $as_echo_n "checking for long double support in scanf... " >&6; }
11639 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
11640   $as_echo_n "(cached) " >&6
11641 else
11642   if test "$cross_compiling" = yes; then :
11643   gdb_cv_scanf_has_long_double=no
11644 else
11645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h.  */
11647 #include <stdio.h>
11648 int
11649 main ()
11650 {
11651 char *buf = "3.141592653";
11652   long double f = 0;
11653   sscanf (buf, "%Lg", &f);
11654   return !(f > 3.14159 && f < 3.14160);
11655   ;
11656   return 0;
11657 }
11658 _ACEOF
11659 if ac_fn_c_try_run "$LINENO"; then :
11660   gdb_cv_scanf_has_long_double=yes
11661 else
11662   gdb_cv_scanf_has_long_double=no
11663 fi
11664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11665   conftest.$ac_objext conftest.beam conftest.$ac_ext
11666 fi
11667
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
11670 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
11671 if test $gdb_cv_scanf_has_long_double = yes; then
11672
11673 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
11674
11675 fi
11676
11677 case ${host_os} in
11678 aix*)
11679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11680 $as_echo_n "checking for -bbigtoc option... " >&6; }
11681 if test "${gdb_cv_bigtoc+set}" = set; then :
11682   $as_echo_n "(cached) " >&6
11683 else
11684
11685     SAVE_LDFLAGS=$LDFLAGS
11686
11687     case $GCC in
11688     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11689     *) gdb_cv_bigtoc=-bbigtoc ;;
11690     esac
11691
11692     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11693     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h.  */
11695
11696 int
11697 main ()
11698 {
11699 int i;
11700   ;
11701   return 0;
11702 }
11703 _ACEOF
11704 if ac_fn_c_try_link "$LINENO"; then :
11705
11706 else
11707   gdb_cv_bigtoc=
11708 fi
11709 rm -f core conftest.err conftest.$ac_objext \
11710     conftest$ac_exeext conftest.$ac_ext
11711     LDFLAGS="${SAVE_LDFLAGS}"
11712
11713 fi
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11715 $as_echo "$gdb_cv_bigtoc" >&6; }
11716   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
11717   ;;
11718 esac
11719
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
11721 $as_echo_n "checking for the dynamic export flag... " >&6; }
11722 dynamic_list=false
11723 if test "${gdb_native}" = yes; then
11724    # The dynamically loaded libthread_db needs access to symbols in the gdb
11725    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
11726    # may not be supported there.
11727    old_LDFLAGS="$LDFLAGS"
11728    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
11729    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
11730    LDFLAGS="$LDFLAGS $RDYNAMIC"
11731    if test "${have_libpython}" = no; then
11732      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h.  */
11734
11735 int
11736 main ()
11737 {
11738
11739   ;
11740   return 0;
11741 }
11742 _ACEOF
11743 if ac_fn_c_try_link "$LINENO"; then :
11744   dynamic_list=true
11745 fi
11746 rm -f core conftest.err conftest.$ac_objext \
11747     conftest$ac_exeext conftest.$ac_ext
11748    else
11749      # Workaround http://bugs.python.org/issue4434 where static
11750      # libpythonX.Y.a would get its symbols required for
11751      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
11752      # Problem does not happen for the recommended libpythonX.Y.so linkage.
11753      old_CFLAGS="$CFLAGS"
11754      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
11755      if test "$cross_compiling" = yes; then :
11756   true
11757 else
11758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h.  */
11760 #include "${have_libpython}/Python.h"
11761 int
11762 main ()
11763 {
11764 int err;
11765           Py_Initialize ();
11766           err = PyRun_SimpleString ("import itertools\n");
11767           Py_Finalize ();
11768           return err == 0 ? 0 : 1;
11769   ;
11770   return 0;
11771 }
11772 _ACEOF
11773 if ac_fn_c_try_run "$LINENO"; then :
11774   dynamic_list=true
11775 fi
11776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11777   conftest.$ac_objext conftest.beam conftest.$ac_ext
11778 fi
11779
11780      CFLAGS="$old_CFLAGS"
11781    fi
11782    LDFLAGS="$old_LDFLAGS"
11783 fi
11784 if $dynamic_list; then
11785   found="-Wl,--dynamic-list"
11786   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
11787 else
11788   found="-rdynamic"
11789   RDYNAMIC="-rdynamic"
11790 fi
11791
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
11793 $as_echo "$found" >&6; }
11794
11795
11796 if test ${build} = ${host} -a ${host} = ${target} ; then
11797    case ${host_os} in
11798    solaris*)
11799       # See if thread_db library is around for Solaris thread debugging.
11800       # Note that we must explicitly test for version 1 of the library
11801       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
11802       # the same API.
11803       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
11804 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
11805       if test -f /usr/lib/libthread_db.so.1 ; then
11806          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11807 $as_echo "yes" >&6; }
11808
11809 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
11810
11811          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
11812          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
11813          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11814 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11815 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11816   $as_echo_n "(cached) " >&6
11817 else
11818   ac_check_lib_save_LIBS=$LIBS
11819 LIBS="-ldl  $LIBS"
11820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h.  */
11822
11823 /* Override any GCC internal prototype to avoid an error.
11824    Use char because int might match the return type of a GCC
11825    builtin and then its argument prototype would still apply.  */
11826 #ifdef __cplusplus
11827 extern "C"
11828 #endif
11829 char dlopen ();
11830 int
11831 main ()
11832 {
11833 return dlopen ();
11834   ;
11835   return 0;
11836 }
11837 _ACEOF
11838 if ac_fn_c_try_link "$LINENO"; then :
11839   ac_cv_lib_dl_dlopen=yes
11840 else
11841   ac_cv_lib_dl_dlopen=no
11842 fi
11843 rm -f core conftest.err conftest.$ac_objext \
11844     conftest$ac_exeext conftest.$ac_ext
11845 LIBS=$ac_check_lib_save_LIBS
11846 fi
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11848 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11849 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11850   cat >>confdefs.h <<_ACEOF
11851 #define HAVE_LIBDL 1
11852 _ACEOF
11853
11854   LIBS="-ldl $LIBS"
11855
11856 fi
11857
11858          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
11859          # Sun randomly tweaked the prototypes in <proc_service.h>
11860          # at one point.
11861          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
11862 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
11863          if test "${gdb_cv_proc_service_is_old+set}" = set; then :
11864   $as_echo_n "(cached) " >&6
11865 else
11866
11867             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h.  */
11869
11870                 #include <proc_service.h>
11871                 ps_err_e ps_pdwrite
11872                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
11873
11874 int
11875 main ()
11876 {
11877
11878   ;
11879   return 0;
11880 }
11881 _ACEOF
11882 if ac_fn_c_try_compile "$LINENO"; then :
11883   gdb_cv_proc_service_is_old=no
11884 else
11885   gdb_cv_proc_service_is_old=yes
11886 fi
11887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11888
11889 fi
11890
11891          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
11892 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
11893          if test $gdb_cv_proc_service_is_old = yes; then
11894
11895 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
11896
11897          fi
11898       else
11899          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11901       fi
11902       ;;
11903    aix*)
11904       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
11905 $as_echo_n "checking for AiX thread debugging library... " >&6; }
11906       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
11907   $as_echo_n "(cached) " >&6
11908 else
11909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h.  */
11911 #include <sys/pthdebug.h>
11912 int
11913 main ()
11914 {
11915 #ifndef PTHDB_VERSION_3
11916                                     #error
11917                                     #endif
11918   ;
11919   return 0;
11920 }
11921 _ACEOF
11922 if ac_fn_c_try_compile "$LINENO"; then :
11923   gdb_cv_have_aix_thread_debug=yes
11924 else
11925   gdb_cv_have_aix_thread_debug=no
11926 fi
11927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11928 fi
11929
11930       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
11931 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
11932       if test $gdb_cv_have_aix_thread_debug = yes; then
11933          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
11934          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
11935          LIBS="$LIBS -lpthdebug"
11936
11937          # Older versions of AIX do not provide the declaration for
11938          # the getthrds function (it appears that it was introduced
11939          # with AIX 6.x).
11940          ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
11941 "
11942 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
11943   ac_have_decl=1
11944 else
11945   ac_have_decl=0
11946 fi
11947
11948 cat >>confdefs.h <<_ACEOF
11949 #define HAVE_DECL_GETTHRDS $ac_have_decl
11950 _ACEOF
11951
11952       fi
11953       ;;
11954    esac
11955
11956 fi
11957
11958 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
11959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
11960 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
11961 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
11962   $as_echo_n "(cached) " >&6
11963 else
11964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h.  */
11966 #include <thread_db.h>
11967 int
11968 main ()
11969 {
11970 int i = TD_NOTALLOC;
11971   ;
11972   return 0;
11973 }
11974 _ACEOF
11975 if ac_fn_c_try_compile "$LINENO"; then :
11976   gdb_cv_thread_db_h_has_td_notalloc=yes
11977 else
11978   gdb_cv_thread_db_h_has_td_notalloc=no
11979
11980 fi
11981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982
11983 fi
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
11985 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
11986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
11987 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
11988 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
11989   $as_echo_n "(cached) " >&6
11990 else
11991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h.  */
11993 #include <thread_db.h>
11994 int
11995 main ()
11996 {
11997 int i = TD_VERSION;
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 if ac_fn_c_try_compile "$LINENO"; then :
12003   gdb_cv_thread_db_h_has_td_version=yes
12004 else
12005   gdb_cv_thread_db_h_has_td_version=no
12006
12007 fi
12008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12009
12010 fi
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12012 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12013    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12014 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12015 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12016   $as_echo_n "(cached) " >&6
12017 else
12018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h.  */
12020 #include <thread_db.h>
12021 int
12022 main ()
12023 {
12024 int i = TD_NOTLS;
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 if ac_fn_c_try_compile "$LINENO"; then :
12030   gdb_cv_thread_db_h_has_td_notls=yes
12031 else
12032   gdb_cv_thread_db_h_has_td_notls=no
12033
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036
12037 fi
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12039 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12040 fi
12041 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12042
12043 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12044
12045 fi
12046 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12047
12048 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12049
12050 fi
12051 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12052
12053 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12054
12055 fi
12056
12057 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12059 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12060 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12061   $as_echo_n "(cached) " >&6
12062 else
12063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h.  */
12065 #include <sys/syscall.h>
12066 int
12067 main ()
12068 {
12069 int i = __NR_tkill;
12070   ;
12071   return 0;
12072 }
12073 _ACEOF
12074 if ac_fn_c_try_compile "$LINENO"; then :
12075   gdb_cv_sys_syscall_h_has_tkill=yes
12076 else
12077   gdb_cv_sys_syscall_h_has_tkill=no
12078
12079 fi
12080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081
12082 fi
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12084 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12085 fi
12086 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12087
12088 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12089
12090 fi
12091
12092 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12093 "
12094 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
12095   ac_have_decl=1
12096 else
12097   ac_have_decl=0
12098 fi
12099
12100 cat >>confdefs.h <<_ACEOF
12101 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12102 _ACEOF
12103
12104
12105 if test "$cross_compiling" = yes; then :
12106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h.  */
12108 #include <sys/personality.h>
12109 int
12110 main ()
12111 {
12112
12113 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
12114 #       define ADDR_NO_RANDOMIZE 0x0040000
12115 #      endif
12116        /* Test the flag could be set and stays set.  */
12117        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12118        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12119            return 1
12120   ;
12121   return 0;
12122 }
12123 _ACEOF
12124 if ac_fn_c_try_link "$LINENO"; then :
12125   have_personality=true
12126 else
12127   have_personality=false
12128 fi
12129 rm -f core conftest.err conftest.$ac_objext \
12130     conftest$ac_exeext conftest.$ac_ext
12131 else
12132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h.  */
12134 #include <sys/personality.h>
12135 int
12136 main ()
12137 {
12138
12139 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
12140 #       define ADDR_NO_RANDOMIZE 0x0040000
12141 #      endif
12142        /* Test the flag could be set and stays set.  */
12143        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12144        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12145            return 1
12146   ;
12147   return 0;
12148 }
12149 _ACEOF
12150 if ac_fn_c_try_run "$LINENO"; then :
12151   have_personality=true
12152 else
12153   have_personality=false
12154 fi
12155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12156   conftest.$ac_objext conftest.beam conftest.$ac_ext
12157 fi
12158
12159 if $have_personality
12160 then
12161
12162 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12163
12164 fi
12165
12166
12167 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12168 # except that the argument to --with-sysroot is optional.
12169 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12170 if test "x$with_sysroot" = xyes; then
12171   with_sysroot="${exec_prefix}/${target_alias}/sys-root"
12172 fi
12173
12174 # Check whether --with-sysroot was given.
12175 if test "${with_sysroot+set}" = set; then :
12176   withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
12177 else
12178   TARGET_SYSTEM_ROOT=
12179 fi
12180
12181
12182   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12183   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12184   ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
12185   ac_define_dir=`eval echo $ac_define_dir`
12186
12187 cat >>confdefs.h <<_ACEOF
12188 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12189 _ACEOF
12190
12191
12192
12193
12194   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12195      if test "x$prefix" = xNONE; then
12196         test_prefix=/usr/local
12197      else
12198         test_prefix=$prefix
12199      fi
12200   else
12201      test_prefix=$exec_prefix
12202   fi
12203   value=0
12204   case ${ac_define_dir} in
12205      "${test_prefix}"|"${test_prefix}/"*|\
12206         '${exec_prefix}'|'${exec_prefix}/'*)
12207      value=1
12208      ;;
12209   esac
12210
12211 cat >>confdefs.h <<_ACEOF
12212 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12213 _ACEOF
12214
12215
12216
12217
12218
12219 # Check whether --with-system-gdbinit was given.
12220 if test "${with_system_gdbinit+set}" = set; then :
12221   withval=$with_system_gdbinit;
12222     SYSTEM_GDBINIT=$withval
12223 else
12224   SYSTEM_GDBINIT=
12225 fi
12226
12227
12228   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12229   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12230   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
12231   ac_define_dir=`eval echo $ac_define_dir`
12232
12233 cat >>confdefs.h <<_ACEOF
12234 #define SYSTEM_GDBINIT "$ac_define_dir"
12235 _ACEOF
12236
12237
12238
12239
12240   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12241      if test "x$prefix" = xNONE; then
12242         test_prefix=/usr/local
12243      else
12244         test_prefix=$prefix
12245      fi
12246   else
12247      test_prefix=$exec_prefix
12248   fi
12249   value=0
12250   case ${ac_define_dir} in
12251      "${test_prefix}"|"${test_prefix}/"*|\
12252         '${exec_prefix}'|'${exec_prefix}/'*)
12253      value=1
12254      ;;
12255   esac
12256
12257 cat >>confdefs.h <<_ACEOF
12258 #define SYSTEM_GDBINIT_RELOCATABLE $value
12259 _ACEOF
12260
12261
12262
12263
12264 # Check whether --enable-werror was given.
12265 if test "${enable_werror+set}" = set; then :
12266   enableval=$enable_werror; case "${enableval}" in
12267      yes | y) ERROR_ON_WARNING="yes" ;;
12268      no | n)  ERROR_ON_WARNING="no" ;;
12269      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12270    esac
12271 fi
12272
12273
12274 # Enable -Werror by default when using gcc
12275 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12276     ERROR_ON_WARNING=yes
12277 fi
12278
12279 WERROR_CFLAGS=""
12280 if test "${ERROR_ON_WARNING}" = yes ; then
12281     WERROR_CFLAGS="-Werror"
12282 fi
12283
12284 # The entries after -Wno-pointer-sign are disabled warnings which may
12285 # be enabled in the future, which can not currently be used to build
12286 # GDB.
12287 # NOTE: If you change this list, remember to update
12288 # gdb/doc/gdbint.texinfo.
12289 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12290 -Wformat-nonliteral -Wno-pointer-sign \
12291 -Wno-unused -Wunused-value -Wunused-function \
12292 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
12293
12294 # Enable -Wno-format by default when using gcc on mingw since many
12295 # GCC versions complain about %I64.
12296 case "${host}" in
12297   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
12298 esac
12299
12300 # Check whether --enable-build-warnings was given.
12301 if test "${enable_build_warnings+set}" = set; then :
12302   enableval=$enable_build_warnings; case "${enableval}" in
12303   yes)  ;;
12304   no)   build_warnings="-w";;
12305   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12306         build_warnings="${build_warnings} ${t}";;
12307   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12308         build_warnings="${t} ${build_warnings}";;
12309   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12310 esac
12311 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12312   echo "Setting compiler warning flags = $build_warnings" 6>&1
12313 fi
12314 fi
12315 # Check whether --enable-gdb-build-warnings was given.
12316 if test "${enable_gdb_build_warnings+set}" = set; then :
12317   enableval=$enable_gdb_build_warnings; case "${enableval}" in
12318   yes)  ;;
12319   no)   build_warnings="-w";;
12320   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12321         build_warnings="${build_warnings} ${t}";;
12322   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12323         build_warnings="${t} ${build_warnings}";;
12324   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12325 esac
12326 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12327   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12328 fi
12329 fi
12330 WARN_CFLAGS=""
12331 if test "x${build_warnings}" != x -a "x$GCC" = xyes
12332 then
12333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12334 $as_echo_n "checking compiler warning flags... " >&6; }
12335     # Separate out the -Werror flag as some files just cannot be
12336     # compiled with it enabled.
12337     for w in ${build_warnings}; do
12338         case $w in
12339         -Werr*) WERROR_CFLAGS=-Werror ;;
12340         *) # Check that GCC accepts it
12341             saved_CFLAGS="$CFLAGS"
12342             CFLAGS="$CFLAGS $w"
12343             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h.  */
12345
12346 int
12347 main ()
12348 {
12349
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 if ac_fn_c_try_compile "$LINENO"; then :
12355   WARN_CFLAGS="${WARN_CFLAGS} $w"
12356 fi
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358             CFLAGS="$saved_CFLAGS"
12359         esac
12360     done
12361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12362 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12363 fi
12364
12365
12366
12367 # In the Cygwin environment, we need some additional flags.
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
12369 $as_echo_n "checking for cygwin... " >&6; }
12370 if test "${gdb_cv_os_cygwin+set}" = set; then :
12371   $as_echo_n "(cached) " >&6
12372 else
12373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h.  */
12375
12376 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12377 lose
12378 #endif
12379 _ACEOF
12380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12381   $EGREP "lose" >/dev/null 2>&1; then :
12382   gdb_cv_os_cygwin=yes
12383 else
12384   gdb_cv_os_cygwin=no
12385 fi
12386 rm -f conftest*
12387
12388 fi
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
12390 $as_echo "$gdb_cv_os_cygwin" >&6; }
12391
12392
12393 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
12394 case ${host} in
12395   *go32* ) SER_HARDWIRE=ser-go32.o ;;
12396   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
12397   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
12398 esac
12399
12400
12401 # libreadline needs libuser32.a in a cygwin environment
12402 WIN32LIBS=
12403 if test x$gdb_cv_os_cygwin = xyes; then
12404     WIN32LIBS="-luser32"
12405     case "${target}" in
12406         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
12407         ;;
12408     esac
12409 fi
12410
12411 # The ser-tcp.c module requires sockets.
12412 case ${host} in
12413   *mingw32*)
12414
12415 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12416
12417     WIN32LIBS="$WIN32LIBS -lws2_32"
12418     ;;
12419 esac
12420
12421
12422 # Add ELF support to GDB, but only if BFD includes ELF support.
12423 OLD_CFLAGS=$CFLAGS
12424 OLD_LDFLAGS=$LDFLAGS
12425 OLD_LIBS=$LIBS
12426 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12427 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
12428 # always want our bfd.
12429 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12430 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12431 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12432 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12433 if test "$plugins" = "yes"; then
12434   LIBS="-ldl $LIBS"
12435 fi
12436 LIBS="-lbfd -liberty $intl $LIBS"
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12438 $as_echo_n "checking for ELF support in BFD... " >&6; }
12439 if test "${gdb_cv_var_elf+set}" = set; then :
12440   $as_echo_n "(cached) " >&6
12441 else
12442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h.  */
12444 #include <stdlib.h>
12445 #include "bfd.h"
12446 #include "elf-bfd.h"
12447
12448 int
12449 main ()
12450 {
12451 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
12452   ;
12453   return 0;
12454 }
12455 _ACEOF
12456 if ac_fn_c_try_link "$LINENO"; then :
12457   gdb_cv_var_elf=yes
12458 else
12459   gdb_cv_var_elf=no
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext \
12462     conftest$ac_exeext conftest.$ac_ext
12463 fi
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
12465 $as_echo "$gdb_cv_var_elf" >&6; }
12466 if test $gdb_cv_var_elf = yes; then
12467   CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o"
12468
12469 $as_echo "#define HAVE_ELF 1" >>confdefs.h
12470
12471   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12472   if test "$plugins" = "yes"; then
12473     OLD_LIBS="-ldl $OLD_LIBS"
12474   fi
12475 fi
12476 CFLAGS=$OLD_CFLAGS
12477 LDFLAGS=$OLD_LDFLAGS
12478 LIBS=$OLD_LIBS
12479
12480 # Add any host-specific objects to GDB.
12481 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
12482
12483 LIBGUI="../libgui/src/libgui.a"
12484 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
12485
12486
12487
12488 WIN32LDAPP=
12489
12490
12491
12492 case "${host}" in
12493 *-*-cygwin* | *-*-mingw* )
12494     configdir="win"
12495     ;;
12496 *)
12497     configdir="unix"
12498     ;;
12499 esac
12500
12501 GDBTKLIBS=
12502 if test "${enable_gdbtk}" = "yes"; then
12503
12504     # Gdbtk must have an absolute path to srcdir in order to run
12505     # properly when not installed.
12506     here=`pwd`
12507     cd ${srcdir}
12508     GDBTK_SRC_DIR=`pwd`
12509     cd $here
12510
12511
12512     #
12513     # Ok, lets find the tcl configuration
12514     # First, look for one uninstalled.
12515     # the alternative search directory is invoked by --with-tcl
12516     #
12517
12518     if test x"${no_tcl}" = x ; then
12519         # we reset no_tcl in case something fails here
12520         no_tcl=true
12521
12522 # Check whether --with-tcl was given.
12523 if test "${with_tcl+set}" = set; then :
12524   withval=$with_tcl; with_tclconfig=${withval}
12525 fi
12526
12527         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12528 $as_echo_n "checking for Tcl configuration... " >&6; }
12529         if test "${ac_cv_c_tclconfig+set}" = set; then :
12530   $as_echo_n "(cached) " >&6
12531 else
12532
12533
12534             # First check to see if --with-tcl was specified.
12535             case "${host}" in
12536                 *-*-cygwin*) platDir="win" ;;
12537                 *) platDir="unix" ;;
12538             esac
12539             if test x"${with_tclconfig}" != x ; then
12540                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12541                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12542                 else
12543                     as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12544                 fi
12545             fi
12546
12547             # then check for a private Tcl installation
12548             if test x"${ac_cv_c_tclconfig}" = x ; then
12549                 for i in \
12550                         ../tcl \
12551                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12552                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12553                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12554                         ../../tcl \
12555                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12556                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12557                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12558                         ../../../tcl \
12559                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12560                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12561                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
12562                     if test -f "$i/$platDir/tclConfig.sh" ; then
12563                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
12564                         break
12565                     fi
12566                 done
12567             fi
12568
12569             # on Darwin, check in Framework installation locations
12570             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
12571                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
12572                         `ls -d /Library/Frameworks 2>/dev/null` \
12573                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
12574                         `ls -d /System/Library/Frameworks 2>/dev/null` \
12575                         ; do
12576                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
12577                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
12578                         break
12579                     fi
12580                 done
12581             fi
12582
12583             # check in a few common install locations
12584             if test x"${ac_cv_c_tclconfig}" = x ; then
12585                 for i in `ls -d ${libdir} 2>/dev/null` \
12586                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
12587                         `ls -d ${prefix}/lib 2>/dev/null` \
12588                         `ls -d /usr/local/lib 2>/dev/null` \
12589                         `ls -d /usr/contrib/lib 2>/dev/null` \
12590                         `ls -d /usr/lib 2>/dev/null` \
12591                         ; do
12592                     if test -f "$i/tclConfig.sh" ; then
12593                         ac_cv_c_tclconfig=`(cd $i; pwd)`
12594                         break
12595                     fi
12596                 done
12597             fi
12598
12599             # check in a few other private locations
12600             if test x"${ac_cv_c_tclconfig}" = x ; then
12601                 for i in \
12602                         ${srcdir}/../tcl \
12603                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12604                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12605                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
12606                     if test -f "$i/$platDir/tclConfig.sh" ; then
12607                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
12608                     break
12609                 fi
12610                 done
12611             fi
12612
12613 fi
12614
12615
12616         if test x"${ac_cv_c_tclconfig}" = x ; then
12617             TCL_BIN_DIR="# no Tcl configs found"
12618             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12619 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12620         else
12621             no_tcl=
12622             TCL_BIN_DIR=${ac_cv_c_tclconfig}
12623             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
12624 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12625         fi
12626     fi
12627
12628
12629     # If $no_tk is nonempty, then we can't do Tk, and there is no
12630     # point to doing Tcl.
12631
12632     #
12633     # Ok, lets find the tk configuration
12634     # First, look for one uninstalled.
12635     # the alternative search directory is invoked by --with-tk
12636     #
12637
12638     if test x"${no_tk}" = x ; then
12639         # we reset no_tk in case something fails here
12640         no_tk=true
12641
12642 # Check whether --with-tk was given.
12643 if test "${with_tk+set}" = set; then :
12644   withval=$with_tk; with_tkconfig=${withval}
12645 fi
12646
12647         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
12648 $as_echo_n "checking for Tk configuration... " >&6; }
12649         if test "${ac_cv_c_tkconfig+set}" = set; then :
12650   $as_echo_n "(cached) " >&6
12651 else
12652
12653
12654             # First check to see if --with-tkconfig was specified.
12655             if test x"${with_tkconfig}" != x ; then
12656                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
12657                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
12658                 else
12659                     as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
12660                 fi
12661             fi
12662
12663             # then check for a private Tk library
12664             case "${host}" in
12665                 *-*-cygwin*) platDir="win" ;;
12666                 *) platDir="unix" ;;
12667             esac
12668             if test x"${ac_cv_c_tkconfig}" = x ; then
12669                 for i in \
12670                         ../tk \
12671                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12672                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
12673                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
12674                         ../../tk \
12675                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12676                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
12677                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
12678                         ../../../tk \
12679                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12680                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
12681                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
12682                     if test -f "$i/$platDir/tkConfig.sh" ; then
12683                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
12684                         break
12685                     fi
12686                 done
12687             fi
12688
12689             # on Darwin, check in Framework installation locations
12690             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
12691                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
12692                         `ls -d /Library/Frameworks 2>/dev/null` \
12693                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
12694                         `ls -d /System/Library/Frameworks 2>/dev/null` \
12695                         ; do
12696                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
12697                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
12698                         break
12699                     fi
12700                 done
12701             fi
12702
12703             # check in a few common install locations
12704             if test x"${ac_cv_c_tkconfig}" = x ; then
12705                 for i in `ls -d ${libdir} 2>/dev/null` \
12706                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
12707                         `ls -d ${prefix}/lib 2>/dev/null` \
12708                         `ls -d /usr/local/lib 2>/dev/null` \
12709                         `ls -d /usr/contrib/lib 2>/dev/null` \
12710                         `ls -d /usr/lib 2>/dev/null` \
12711                         ; do
12712                     if test -f "$i/tkConfig.sh" ; then
12713                         ac_cv_c_tkconfig=`(cd $i; pwd)`
12714                         break
12715                     fi
12716                 done
12717             fi
12718             # check in a few other private locations
12719             if test x"${ac_cv_c_tkconfig}" = x ; then
12720                 for i in \
12721                         ${srcdir}/../tk \
12722                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12723                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
12724                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
12725                     if test -f "$i/$platDir/tkConfig.sh" ; then
12726                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
12727                         break
12728                     fi
12729                 done
12730             fi
12731
12732 fi
12733
12734
12735         if test x"${ac_cv_c_tkconfig}" = x ; then
12736             TK_BIN_DIR="# no Tk configs found"
12737             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
12738 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
12739         else
12740             no_tk=
12741             TK_BIN_DIR=${ac_cv_c_tkconfig}
12742             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
12743 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12744         fi
12745     fi
12746
12747
12748     if test -z "${no_tcl}" -a -z "${no_tk}"; then
12749
12750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
12751 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
12752
12753     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
12754         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12755 $as_echo "loading" >&6; }
12756         . ${TCL_BIN_DIR}/tclConfig.sh
12757     else
12758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
12759 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12760     fi
12761
12762     # eval is required to do the TCL_DBGX substitution
12763     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12764     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12765
12766     # If the TCL_BIN_DIR is the build directory (not the install directory),
12767     # then set the common variable name to the value of the build variables.
12768     # For example, the variable TCL_LIB_SPEC will be set to the value
12769     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12770     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12771     # installed and uninstalled version of Tcl.
12772     if test -f "${TCL_BIN_DIR}/Makefile" ; then
12773         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12774         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12775         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12776     elif test "`uname -s`" = "Darwin"; then
12777         # If Tcl was built as a framework, attempt to use the libraries
12778         # from the framework at the given location so that linking works
12779         # against Tcl.framework installed in an arbitary location.
12780         case ${TCL_DEFS} in
12781             *TCL_FRAMEWORK*)
12782                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
12783                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
12784                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
12785                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
12786                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
12787                             break
12788                         fi
12789                     done
12790                 fi
12791                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
12792                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
12793                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
12794                 fi
12795                 ;;
12796         esac
12797     fi
12798
12799     # eval is required to do the TCL_DBGX substitution
12800     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12801     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12802     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12803     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819         # Check for in-tree tcl
12820         here=`pwd`
12821         cd ${srcdir}/..
12822         topdir=`pwd`
12823         cd ${here}
12824
12825         intree="no"
12826         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
12827           intree="yes"
12828         fi
12829
12830         # Find Tcl private headers
12831         if test x"${intree}" = xno; then
12832
12833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
12834 $as_echo_n "checking for Tcl private headers... " >&6; }
12835   private_dir=""
12836   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
12837   if test -f ${dir}/tclInt.h ; then
12838     private_dir=${dir}
12839   fi
12840
12841   if test x"${private_dir}" = x; then
12842     as_fn_error "could not find private Tcl headers" "$LINENO" 5
12843   else
12844     TCL_PRIVATE_INCLUDE="-I${private_dir}"
12845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
12846 $as_echo "${private_dir}" >&6; }
12847   fi
12848
12849           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
12850           TCL_LIBRARY="${TCL_LIB_SPEC}"
12851           TCL_DEPS=""
12852         else
12853           # If building tcl in the same src tree, private headers
12854           # are not needed, but we need to be sure to use the right
12855           # headers library
12856           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
12857           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
12858           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
12859         fi
12860
12861
12862
12863
12864
12865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
12866 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
12867
12868     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
12869         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12870 $as_echo "loading" >&6; }
12871         . ${TK_BIN_DIR}/tkConfig.sh
12872     else
12873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
12874 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12875     fi
12876
12877     # eval is required to do the TK_DBGX substitution
12878     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
12879     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
12880
12881     # If the TK_BIN_DIR is the build directory (not the install directory),
12882     # then set the common variable name to the value of the build variables.
12883     # For example, the variable TK_LIB_SPEC will be set to the value
12884     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
12885     # instead of TK_BUILD_LIB_SPEC since it will work with both an
12886     # installed and uninstalled version of Tcl.
12887     if test -f "${TK_BIN_DIR}/Makefile" ; then
12888         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
12889         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
12890         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
12891     elif test "`uname -s`" = "Darwin"; then
12892         # If Tk was built as a framework, attempt to use the libraries
12893         # from the framework at the given location so that linking works
12894         # against Tk.framework installed in an arbitary location.
12895         case ${TK_DEFS} in
12896             *TK_FRAMEWORK*)
12897                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
12898                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
12899                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
12900                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
12901                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
12902                             break
12903                         fi
12904                     done
12905                 fi
12906                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
12907                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
12908                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
12909                 fi
12910                 ;;
12911         esac
12912     fi
12913
12914     # eval is required to do the TK_DBGX substitution
12915     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
12916     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
12917     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
12918     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933         # Check for in-tree Tk
12934         intree="no"
12935         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
12936           intree="yes"
12937         fi
12938
12939         # Find Tk private headers
12940         if test x"${intree}" = xno; then
12941
12942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
12943 $as_echo_n "checking for Tk private headers... " >&6; }
12944   private_dir=""
12945   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
12946   if test -f ${dir}/tkInt.h; then
12947     private_dir=${dir}
12948   fi
12949
12950   if test x"${private_dir}" = x; then
12951     as_fn_error "could not find Tk private headers" "$LINENO" 5
12952   else
12953     TK_PRIVATE_INCLUDE="-I${private_dir}"
12954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
12955 $as_echo "${private_dir}" >&6; }
12956   fi
12957
12958           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
12959           TK_LIBRARY=${TK_LIB_SPEC}
12960           TK_DEPS=""
12961         else
12962           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
12963           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
12964           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
12965         fi
12966
12967
12968
12969
12970
12971         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
12972
12973         # Include some libraries that Tcl and Tk want.
12974         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
12975         # Yes, the ordering seems wrong here.  But it isn't.
12976         # TK_LIBS is the list of libraries that need to be linked
12977         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
12978         # were in LIBS then any link tests after this point would
12979         # try to include things like `$(LIBGUI)', which wouldn't work.
12980         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
12981
12982         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
12983         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
12984         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
12985         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
12986         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
12987         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
12988         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
12989
12990         if test x$gdb_cv_os_cygwin = xyes; then
12991           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
12992           WIN32LDAPP="-Wl,--subsystem,console"
12993           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
12994         fi
12995
12996         subdirs="$subdirs gdbtk"
12997
12998     fi
12999 fi
13000
13001
13002
13003
13004
13005
13006
13007
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13009 $as_echo_n "checking for X... " >&6; }
13010
13011
13012 # Check whether --with-x was given.
13013 if test "${with_x+set}" = set; then :
13014   withval=$with_x;
13015 fi
13016
13017 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13018 if test "x$with_x" = xno; then
13019   # The user explicitly disabled X.
13020   have_x=disabled
13021 else
13022   case $x_includes,$x_libraries in #(
13023     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
13024     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
13025   $as_echo_n "(cached) " >&6
13026 else
13027   # One or both of the vars are not set, and there is no cached value.
13028 ac_x_includes=no ac_x_libraries=no
13029 rm -f -r conftest.dir
13030 if mkdir conftest.dir; then
13031   cd conftest.dir
13032   cat >Imakefile <<'_ACEOF'
13033 incroot:
13034         @echo incroot='${INCROOT}'
13035 usrlibdir:
13036         @echo usrlibdir='${USRLIBDIR}'
13037 libdir:
13038         @echo libdir='${LIBDIR}'
13039 _ACEOF
13040   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13041     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13042     for ac_var in incroot usrlibdir libdir; do
13043       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13044     done
13045     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13046     for ac_extension in a so sl dylib la dll; do
13047       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13048          test -f "$ac_im_libdir/libX11.$ac_extension"; then
13049         ac_im_usrlibdir=$ac_im_libdir; break
13050       fi
13051     done
13052     # Screen out bogus values from the imake configuration.  They are
13053     # bogus both because they are the default anyway, and because
13054     # using them would break gcc on systems where it needs fixed includes.
13055     case $ac_im_incroot in
13056         /usr/include) ac_x_includes= ;;
13057         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13058     esac
13059     case $ac_im_usrlibdir in
13060         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13061         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13062     esac
13063   fi
13064   cd ..
13065   rm -f -r conftest.dir
13066 fi
13067
13068 # Standard set of common directories for X headers.
13069 # Check X11 before X11Rn because it is often a symlink to the current release.
13070 ac_x_header_dirs='
13071 /usr/X11/include
13072 /usr/X11R7/include
13073 /usr/X11R6/include
13074 /usr/X11R5/include
13075 /usr/X11R4/include
13076
13077 /usr/include/X11
13078 /usr/include/X11R7
13079 /usr/include/X11R6
13080 /usr/include/X11R5
13081 /usr/include/X11R4
13082
13083 /usr/local/X11/include
13084 /usr/local/X11R7/include
13085 /usr/local/X11R6/include
13086 /usr/local/X11R5/include
13087 /usr/local/X11R4/include
13088
13089 /usr/local/include/X11
13090 /usr/local/include/X11R7
13091 /usr/local/include/X11R6
13092 /usr/local/include/X11R5
13093 /usr/local/include/X11R4
13094
13095 /usr/X386/include
13096 /usr/x386/include
13097 /usr/XFree86/include/X11
13098
13099 /usr/include
13100 /usr/local/include
13101 /usr/unsupported/include
13102 /usr/athena/include
13103 /usr/local/x11r5/include
13104 /usr/lpp/Xamples/include
13105
13106 /usr/openwin/include
13107 /usr/openwin/share/include'
13108
13109 if test "$ac_x_includes" = no; then
13110   # Guess where to find include files, by looking for Xlib.h.
13111   # First, try using that file with no special directory specified.
13112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h.  */
13114 #include <X11/Xlib.h>
13115 _ACEOF
13116 if ac_fn_c_try_cpp "$LINENO"; then :
13117   # We can compile using X headers with no special include directory.
13118 ac_x_includes=
13119 else
13120   for ac_dir in $ac_x_header_dirs; do
13121   if test -r "$ac_dir/X11/Xlib.h"; then
13122     ac_x_includes=$ac_dir
13123     break
13124   fi
13125 done
13126 fi
13127 rm -f conftest.err conftest.$ac_ext
13128 fi # $ac_x_includes = no
13129
13130 if test "$ac_x_libraries" = no; then
13131   # Check for the libraries.
13132   # See if we find them without any special options.
13133   # Don't add to $LIBS permanently.
13134   ac_save_LIBS=$LIBS
13135   LIBS="-lX11 $LIBS"
13136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h.  */
13138 #include <X11/Xlib.h>
13139 int
13140 main ()
13141 {
13142 XrmInitialize ()
13143   ;
13144   return 0;
13145 }
13146 _ACEOF
13147 if ac_fn_c_try_link "$LINENO"; then :
13148   LIBS=$ac_save_LIBS
13149 # We can link X programs with no special library path.
13150 ac_x_libraries=
13151 else
13152   LIBS=$ac_save_LIBS
13153 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13154 do
13155   # Don't even attempt the hair of trying to link an X program!
13156   for ac_extension in a so sl dylib la dll; do
13157     if test -r "$ac_dir/libX11.$ac_extension"; then
13158       ac_x_libraries=$ac_dir
13159       break 2
13160     fi
13161   done
13162 done
13163 fi
13164 rm -f core conftest.err conftest.$ac_objext \
13165     conftest$ac_exeext conftest.$ac_ext
13166 fi # $ac_x_libraries = no
13167
13168 case $ac_x_includes,$ac_x_libraries in #(
13169   no,* | *,no | *\'*)
13170     # Didn't find X, or a directory has "'" in its name.
13171     ac_cv_have_x="have_x=no";; #(
13172   *)
13173     # Record where we found X for the cache.
13174     ac_cv_have_x="have_x=yes\
13175         ac_x_includes='$ac_x_includes'\
13176         ac_x_libraries='$ac_x_libraries'"
13177 esac
13178 fi
13179 ;; #(
13180     *) have_x=yes;;
13181   esac
13182   eval "$ac_cv_have_x"
13183 fi # $with_x != no
13184
13185 if test "$have_x" != yes; then
13186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13187 $as_echo "$have_x" >&6; }
13188   no_x=yes
13189 else
13190   # If each of the values was on the command line, it overrides each guess.
13191   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13192   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13193   # Update the cache value to reflect the command line values.
13194   ac_cv_have_x="have_x=yes\
13195         ac_x_includes='$x_includes'\
13196         ac_x_libraries='$x_libraries'"
13197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13198 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13199 fi
13200
13201
13202 # Unlike the sim directory, whether a simulator is linked is controlled by
13203 # presence of a gdb_sim definition in the target configure.tgt entry.
13204 # This code just checks for a few cases where we'd like to ignore those
13205 # definitions, even when they're present in the '.mt' file.  These cases
13206 # are when --disable-sim is specified, or if the simulator directory is
13207 # not part of the source tree.
13208 #
13209 # Check whether --enable-sim was given.
13210 if test "${enable_sim+set}" = set; then :
13211   enableval=$enable_sim; echo "enable_sim = $enable_sim";
13212  echo "enableval = ${enableval}";
13213  case "${enableval}" in
13214   yes) ignore_sim=false ;;
13215   no)  ignore_sim=true ;;
13216   *)   ignore_sim=false ;;
13217  esac
13218 else
13219   ignore_sim=false
13220 fi
13221
13222
13223 if test ! -d "${srcdir}/../sim"; then
13224   ignore_sim=true
13225 fi
13226
13227 SIM=
13228 SIM_OBS=
13229 if test "${ignore_sim}" = "false"; then
13230   if test x"${gdb_sim}" != x ; then
13231     SIM="${gdb_sim}"
13232     SIM_OBS="remote-sim.o"
13233
13234 $as_echo "#define WITH_SIM 1" >>confdefs.h
13235
13236   fi
13237 fi
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252 # List of host floatformats.
13253
13254 cat >>confdefs.h <<_ACEOF
13255 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
13256 _ACEOF
13257
13258
13259 cat >>confdefs.h <<_ACEOF
13260 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
13261 _ACEOF
13262
13263
13264 cat >>confdefs.h <<_ACEOF
13265 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
13266 _ACEOF
13267
13268
13269 # target_subdir is used by the testsuite to find the target libraries.
13270 target_subdir=
13271 if test "${host}" != "${target}"; then
13272     target_subdir="${target_alias}/"
13273 fi
13274
13275
13276 frags=
13277 if test "${gdb_native}" = "yes"; then
13278   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
13279   if test ! -f ${host_makefile_frag}; then
13280     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
13281   fi
13282   frags="$frags $host_makefile_frag"
13283 else
13284   host_makefile_frag=/dev/null
13285 fi
13286
13287
13288
13289
13290 if test "${gdb_native}" = "yes"; then
13291 # We pick this up from the host configuration file (.mh) because we
13292 # do not have a native configuration Makefile fragment.
13293 nativefile=`sed -n '
13294 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
13295 ' ${host_makefile_frag}`
13296 fi
13297
13298
13299 if test x"${gdb_osabi}" != x ; then
13300
13301 cat >>confdefs.h <<_ACEOF
13302 #define GDB_OSABI_DEFAULT $gdb_osabi
13303 _ACEOF
13304
13305 fi
13306
13307 # Enable multi-ice-gdb-server.
13308 # Check whether --enable-multi-ice was given.
13309 if test "${enable_multi_ice+set}" = set; then :
13310   enableval=$enable_multi_ice; case $enableval in
13311     yes | no)
13312       ;;
13313     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
13314   esac
13315 fi
13316
13317 if test "x$enable_multi_ice" = xyes; then
13318    subdirs="$subdirs multi-ice"
13319
13320 fi
13321
13322 # Check whether --enable-gdbserver was given.
13323 if test "${enable_gdbserver+set}" = set; then :
13324   enableval=$enable_gdbserver; case "${enableval}" in
13325   yes| no|auto) ;;
13326   *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
13327 esac
13328 else
13329   enable_gdbserver=auto
13330 fi
13331
13332
13333 # We only build gdbserver automatically in a native configuration, and
13334 # only if the user did not explicitly disable its build.
13335 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
13336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
13337 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
13338   if test "x$build_gdbserver" = xyes; then
13339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13340 $as_echo "yes" >&6; }
13341     subdirs="$subdirs gdbserver"
13342
13343     gdbserver_build_enabled=yes
13344   else
13345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13347   fi
13348 fi
13349
13350 # If the user explicitly request the gdbserver to be built, verify that
13351 # we were in fact able to enable it.
13352 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
13353   as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
13354 fi
13355
13356 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
13357 # to an empty version.
13358
13359 files=
13360 links=
13361
13362 rm -f nm.h
13363 if test "${nativefile}" != ""; then
13364     case "${nativefile}" in
13365       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
13366       * ) GDB_NM_FILE="${nativefile}"
13367     esac
13368     files="${files} ${GDB_NM_FILE}"
13369     links="${links} nm.h"
13370
13371 cat >>confdefs.h <<_ACEOF
13372 #define GDB_NM_FILE "${GDB_NM_FILE}"
13373 _ACEOF
13374
13375 fi
13376
13377
13378 ac_sources="$files"
13379 ac_dests="$links"
13380 while test -n "$ac_sources"; do
13381   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
13382   set $ac_sources; ac_source=$1; shift; ac_sources=$*
13383   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
13384 done
13385 ac_config_links="$ac_config_links $ac_config_links_1"
13386
13387
13388
13389
13390
13391 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
13392
13393
13394 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
13395
13396 ac_config_commands="$ac_config_commands default"
13397
13398 cat >confcache <<\_ACEOF
13399 # This file is a shell script that caches the results of configure
13400 # tests run on this system so they can be shared between configure
13401 # scripts and configure runs, see configure's option --config-cache.
13402 # It is not useful on other systems.  If it contains results you don't
13403 # want to keep, you may remove or edit it.
13404 #
13405 # config.status only pays attention to the cache file if you give it
13406 # the --recheck option to rerun configure.
13407 #
13408 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13409 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13410 # following values.
13411
13412 _ACEOF
13413
13414 # The following way of writing the cache mishandles newlines in values,
13415 # but we know of no workaround that is simple, portable, and efficient.
13416 # So, we kill variables containing newlines.
13417 # Ultrix sh set writes to stderr and can't be redirected directly,
13418 # and sets the high bit in the cache file unless we assign to the vars.
13419 (
13420   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13421     eval ac_val=\$$ac_var
13422     case $ac_val in #(
13423     *${as_nl}*)
13424       case $ac_var in #(
13425       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13426 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13427       esac
13428       case $ac_var in #(
13429       _ | IFS | as_nl) ;; #(
13430       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13431       *) { eval $ac_var=; unset $ac_var;} ;;
13432       esac ;;
13433     esac
13434   done
13435
13436   (set) 2>&1 |
13437     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13438     *${as_nl}ac_space=\ *)
13439       # `set' does not quote correctly, so add quotes: double-quote
13440       # substitution turns \\\\ into \\, and sed turns \\ into \.
13441       sed -n \
13442         "s/'/'\\\\''/g;
13443           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13444       ;; #(
13445     *)
13446       # `set' quotes correctly as required by POSIX, so do not add quotes.
13447       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13448       ;;
13449     esac |
13450     sort
13451 ) |
13452   sed '
13453      /^ac_cv_env_/b end
13454      t clear
13455      :clear
13456      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13457      t end
13458      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13459      :end' >>confcache
13460 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13461   if test -w "$cache_file"; then
13462     test "x$cache_file" != "x/dev/null" &&
13463       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13464 $as_echo "$as_me: updating cache $cache_file" >&6;}
13465     cat confcache >$cache_file
13466   else
13467     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13468 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13469   fi
13470 fi
13471 rm -f confcache
13472
13473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13474 # Let make expand exec_prefix.
13475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13476
13477 DEFS=-DHAVE_CONFIG_H
13478
13479 ac_libobjs=
13480 ac_ltlibobjs=
13481 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13482   # 1. Remove the extension, and $U if already installed.
13483   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13484   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13485   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13486   #    will be set to the directory where LIBOBJS objects are built.
13487   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13488   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13489 done
13490 LIBOBJS=$ac_libobjs
13491
13492 LTLIBOBJS=$ac_ltlibobjs
13493
13494
13495 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13496   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13498 fi
13499 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
13500   as_fn_error "conditional \"GMAKE\" was never defined.
13501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13502 fi
13503
13504
13505 : ${CONFIG_STATUS=./config.status}
13506 ac_write_fail=0
13507 ac_clean_files_save=$ac_clean_files
13508 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13510 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13511 as_write_fail=0
13512 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13513 #! $SHELL
13514 # Generated by $as_me.
13515 # Run this file to recreate the current configuration.
13516 # Compiler output produced by configure, useful for debugging
13517 # configure, is in config.log if it exists.
13518
13519 debug=false
13520 ac_cs_recheck=false
13521 ac_cs_silent=false
13522
13523 SHELL=\${CONFIG_SHELL-$SHELL}
13524 export SHELL
13525 _ASEOF
13526 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13527 ## -------------------- ##
13528 ## M4sh Initialization. ##
13529 ## -------------------- ##
13530
13531 # Be more Bourne compatible
13532 DUALCASE=1; export DUALCASE # for MKS sh
13533 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13534   emulate sh
13535   NULLCMD=:
13536   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13537   # is contrary to our usage.  Disable this feature.
13538   alias -g '${1+"$@"}'='"$@"'
13539   setopt NO_GLOB_SUBST
13540 else
13541   case `(set -o) 2>/dev/null` in #(
13542   *posix*) :
13543     set -o posix ;; #(
13544   *) :
13545      ;;
13546 esac
13547 fi
13548
13549
13550 as_nl='
13551 '
13552 export as_nl
13553 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13554 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13556 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13557 # Prefer a ksh shell builtin over an external printf program on Solaris,
13558 # but without wasting forks for bash or zsh.
13559 if test -z "$BASH_VERSION$ZSH_VERSION" \
13560     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13561   as_echo='print -r --'
13562   as_echo_n='print -rn --'
13563 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13564   as_echo='printf %s\n'
13565   as_echo_n='printf %s'
13566 else
13567   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13568     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13569     as_echo_n='/usr/ucb/echo -n'
13570   else
13571     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13572     as_echo_n_body='eval
13573       arg=$1;
13574       case $arg in #(
13575       *"$as_nl"*)
13576         expr "X$arg" : "X\\(.*\\)$as_nl";
13577         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13578       esac;
13579       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13580     '
13581     export as_echo_n_body
13582     as_echo_n='sh -c $as_echo_n_body as_echo'
13583   fi
13584   export as_echo_body
13585   as_echo='sh -c $as_echo_body as_echo'
13586 fi
13587
13588 # The user is always right.
13589 if test "${PATH_SEPARATOR+set}" != set; then
13590   PATH_SEPARATOR=:
13591   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13592     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13593       PATH_SEPARATOR=';'
13594   }
13595 fi
13596
13597
13598 # IFS
13599 # We need space, tab and new line, in precisely that order.  Quoting is
13600 # there to prevent editors from complaining about space-tab.
13601 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13602 # splitting by setting IFS to empty value.)
13603 IFS=" ""        $as_nl"
13604
13605 # Find who we are.  Look in the path if we contain no directory separator.
13606 case $0 in #((
13607   *[\\/]* ) as_myself=$0 ;;
13608   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13609 for as_dir in $PATH
13610 do
13611   IFS=$as_save_IFS
13612   test -z "$as_dir" && as_dir=.
13613     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13614   done
13615 IFS=$as_save_IFS
13616
13617      ;;
13618 esac
13619 # We did not find ourselves, most probably we were run as `sh COMMAND'
13620 # in which case we are not to be found in the path.
13621 if test "x$as_myself" = x; then
13622   as_myself=$0
13623 fi
13624 if test ! -f "$as_myself"; then
13625   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13626   exit 1
13627 fi
13628
13629 # Unset variables that we do not need and which cause bugs (e.g. in
13630 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13631 # suppresses any "Segmentation fault" message there.  '((' could
13632 # trigger a bug in pdksh 5.2.14.
13633 for as_var in BASH_ENV ENV MAIL MAILPATH
13634 do eval test x\${$as_var+set} = xset \
13635   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13636 done
13637 PS1='$ '
13638 PS2='> '
13639 PS4='+ '
13640
13641 # NLS nuisances.
13642 LC_ALL=C
13643 export LC_ALL
13644 LANGUAGE=C
13645 export LANGUAGE
13646
13647 # CDPATH.
13648 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13649
13650
13651 # as_fn_error ERROR [LINENO LOG_FD]
13652 # ---------------------------------
13653 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13654 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13655 # script with status $?, using 1 if that was 0.
13656 as_fn_error ()
13657 {
13658   as_status=$?; test $as_status -eq 0 && as_status=1
13659   if test "$3"; then
13660     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13661     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13662   fi
13663   $as_echo "$as_me: error: $1" >&2
13664   as_fn_exit $as_status
13665 } # as_fn_error
13666
13667
13668 # as_fn_set_status STATUS
13669 # -----------------------
13670 # Set $? to STATUS, without forking.
13671 as_fn_set_status ()
13672 {
13673   return $1
13674 } # as_fn_set_status
13675
13676 # as_fn_exit STATUS
13677 # -----------------
13678 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13679 as_fn_exit ()
13680 {
13681   set +e
13682   as_fn_set_status $1
13683   exit $1
13684 } # as_fn_exit
13685
13686 # as_fn_unset VAR
13687 # ---------------
13688 # Portably unset VAR.
13689 as_fn_unset ()
13690 {
13691   { eval $1=; unset $1;}
13692 }
13693 as_unset=as_fn_unset
13694 # as_fn_append VAR VALUE
13695 # ----------------------
13696 # Append the text in VALUE to the end of the definition contained in VAR. Take
13697 # advantage of any shell optimizations that allow amortized linear growth over
13698 # repeated appends, instead of the typical quadratic growth present in naive
13699 # implementations.
13700 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13701   eval 'as_fn_append ()
13702   {
13703     eval $1+=\$2
13704   }'
13705 else
13706   as_fn_append ()
13707   {
13708     eval $1=\$$1\$2
13709   }
13710 fi # as_fn_append
13711
13712 # as_fn_arith ARG...
13713 # ------------------
13714 # Perform arithmetic evaluation on the ARGs, and store the result in the
13715 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13716 # must be portable across $(()) and expr.
13717 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13718   eval 'as_fn_arith ()
13719   {
13720     as_val=$(( $* ))
13721   }'
13722 else
13723   as_fn_arith ()
13724   {
13725     as_val=`expr "$@" || test $? -eq 1`
13726   }
13727 fi # as_fn_arith
13728
13729
13730 if expr a : '\(a\)' >/dev/null 2>&1 &&
13731    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13732   as_expr=expr
13733 else
13734   as_expr=false
13735 fi
13736
13737 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13738   as_basename=basename
13739 else
13740   as_basename=false
13741 fi
13742
13743 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13744   as_dirname=dirname
13745 else
13746   as_dirname=false
13747 fi
13748
13749 as_me=`$as_basename -- "$0" ||
13750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13751          X"$0" : 'X\(//\)$' \| \
13752          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13753 $as_echo X/"$0" |
13754     sed '/^.*\/\([^/][^/]*\)\/*$/{
13755             s//\1/
13756             q
13757           }
13758           /^X\/\(\/\/\)$/{
13759             s//\1/
13760             q
13761           }
13762           /^X\/\(\/\).*/{
13763             s//\1/
13764             q
13765           }
13766           s/.*/./; q'`
13767
13768 # Avoid depending upon Character Ranges.
13769 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13770 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13771 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13772 as_cr_digits='0123456789'
13773 as_cr_alnum=$as_cr_Letters$as_cr_digits
13774
13775 ECHO_C= ECHO_N= ECHO_T=
13776 case `echo -n x` in #(((((
13777 -n*)
13778   case `echo 'xy\c'` in
13779   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13780   xy)  ECHO_C='\c';;
13781   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13782        ECHO_T=' ';;
13783   esac;;
13784 *)
13785   ECHO_N='-n';;
13786 esac
13787
13788 rm -f conf$$ conf$$.exe conf$$.file
13789 if test -d conf$$.dir; then
13790   rm -f conf$$.dir/conf$$.file
13791 else
13792   rm -f conf$$.dir
13793   mkdir conf$$.dir 2>/dev/null
13794 fi
13795 if (echo >conf$$.file) 2>/dev/null; then
13796   if ln -s conf$$.file conf$$ 2>/dev/null; then
13797     as_ln_s='ln -s'
13798     # ... but there are two gotchas:
13799     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13800     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13801     # In both cases, we have to default to `cp -p'.
13802     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13803       as_ln_s='cp -p'
13804   elif ln conf$$.file conf$$ 2>/dev/null; then
13805     as_ln_s=ln
13806   else
13807     as_ln_s='cp -p'
13808   fi
13809 else
13810   as_ln_s='cp -p'
13811 fi
13812 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13813 rmdir conf$$.dir 2>/dev/null
13814
13815
13816 # as_fn_mkdir_p
13817 # -------------
13818 # Create "$as_dir" as a directory, including parents if necessary.
13819 as_fn_mkdir_p ()
13820 {
13821
13822   case $as_dir in #(
13823   -*) as_dir=./$as_dir;;
13824   esac
13825   test -d "$as_dir" || eval $as_mkdir_p || {
13826     as_dirs=
13827     while :; do
13828       case $as_dir in #(
13829       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13830       *) as_qdir=$as_dir;;
13831       esac
13832       as_dirs="'$as_qdir' $as_dirs"
13833       as_dir=`$as_dirname -- "$as_dir" ||
13834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13835          X"$as_dir" : 'X\(//\)[^/]' \| \
13836          X"$as_dir" : 'X\(//\)$' \| \
13837          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13838 $as_echo X"$as_dir" |
13839     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13840             s//\1/
13841             q
13842           }
13843           /^X\(\/\/\)[^/].*/{
13844             s//\1/
13845             q
13846           }
13847           /^X\(\/\/\)$/{
13848             s//\1/
13849             q
13850           }
13851           /^X\(\/\).*/{
13852             s//\1/
13853             q
13854           }
13855           s/.*/./; q'`
13856       test -d "$as_dir" && break
13857     done
13858     test -z "$as_dirs" || eval "mkdir $as_dirs"
13859   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13860
13861
13862 } # as_fn_mkdir_p
13863 if mkdir -p . 2>/dev/null; then
13864   as_mkdir_p='mkdir -p "$as_dir"'
13865 else
13866   test -d ./-p && rmdir ./-p
13867   as_mkdir_p=false
13868 fi
13869
13870 if test -x / >/dev/null 2>&1; then
13871   as_test_x='test -x'
13872 else
13873   if ls -dL / >/dev/null 2>&1; then
13874     as_ls_L_option=L
13875   else
13876     as_ls_L_option=
13877   fi
13878   as_test_x='
13879     eval sh -c '\''
13880       if test -d "$1"; then
13881         test -d "$1/.";
13882       else
13883         case $1 in #(
13884         -*)set "./$1";;
13885         esac;
13886         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13887         ???[sx]*):;;*)false;;esac;fi
13888     '\'' sh
13889   '
13890 fi
13891 as_executable_p=$as_test_x
13892
13893 # Sed expression to map a string onto a valid CPP name.
13894 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13895
13896 # Sed expression to map a string onto a valid variable name.
13897 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13898
13899
13900 exec 6>&1
13901 ## ----------------------------------- ##
13902 ## Main body of $CONFIG_STATUS script. ##
13903 ## ----------------------------------- ##
13904 _ASEOF
13905 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13906
13907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13908 # Save the log message, to keep $0 and so on meaningful, and to
13909 # report actual input values of CONFIG_FILES etc. instead of their
13910 # values after options handling.
13911 ac_log="
13912 This file was extended by $as_me, which was
13913 generated by GNU Autoconf 2.64.  Invocation command line was
13914
13915   CONFIG_FILES    = $CONFIG_FILES
13916   CONFIG_HEADERS  = $CONFIG_HEADERS
13917   CONFIG_LINKS    = $CONFIG_LINKS
13918   CONFIG_COMMANDS = $CONFIG_COMMANDS
13919   $ $0 $@
13920
13921 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13922 "
13923
13924 _ACEOF
13925
13926 case $ac_config_files in *"
13927 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13928 esac
13929
13930 case $ac_config_headers in *"
13931 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13932 esac
13933
13934
13935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13936 # Files that config.status was made for.
13937 config_files="$ac_config_files"
13938 config_headers="$ac_config_headers"
13939 config_links="$ac_config_links"
13940 config_commands="$ac_config_commands"
13941
13942 _ACEOF
13943
13944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13945 ac_cs_usage="\
13946 \`$as_me' instantiates files and other configuration actions
13947 from templates according to the current configuration.  Unless the files
13948 and actions are specified as TAGs, all are instantiated by default.
13949
13950 Usage: $0 [OPTION]... [TAG]...
13951
13952   -h, --help       print this help, then exit
13953   -V, --version    print version number and configuration settings, then exit
13954   -q, --quiet, --silent
13955                    do not print progress messages
13956   -d, --debug      don't remove temporary files
13957       --recheck    update $as_me by reconfiguring in the same conditions
13958       --file=FILE[:TEMPLATE]
13959                    instantiate the configuration file FILE
13960       --header=FILE[:TEMPLATE]
13961                    instantiate the configuration header FILE
13962
13963 Configuration files:
13964 $config_files
13965
13966 Configuration headers:
13967 $config_headers
13968
13969 Configuration links:
13970 $config_links
13971
13972 Configuration commands:
13973 $config_commands
13974
13975 Report bugs to the package provider."
13976
13977 _ACEOF
13978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13979 ac_cs_version="\\
13980 config.status
13981 configured by $0, generated by GNU Autoconf 2.64,
13982   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13983
13984 Copyright (C) 2009 Free Software Foundation, Inc.
13985 This config.status script is free software; the Free Software Foundation
13986 gives unlimited permission to copy, distribute and modify it."
13987
13988 ac_pwd='$ac_pwd'
13989 srcdir='$srcdir'
13990 INSTALL='$INSTALL'
13991 AWK='$AWK'
13992 test -n "\$AWK" || AWK=awk
13993 _ACEOF
13994
13995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13996 # The default lists apply if the user does not specify any file.
13997 ac_need_defaults=:
13998 while test $# != 0
13999 do
14000   case $1 in
14001   --*=*)
14002     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14003     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14004     ac_shift=:
14005     ;;
14006   *)
14007     ac_option=$1
14008     ac_optarg=$2
14009     ac_shift=shift
14010     ;;
14011   esac
14012
14013   case $ac_option in
14014   # Handling of the options.
14015   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14016     ac_cs_recheck=: ;;
14017   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14018     $as_echo "$ac_cs_version"; exit ;;
14019   --debug | --debu | --deb | --de | --d | -d )
14020     debug=: ;;
14021   --file | --fil | --fi | --f )
14022     $ac_shift
14023     case $ac_optarg in
14024     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14025     esac
14026     as_fn_append CONFIG_FILES " '$ac_optarg'"
14027     ac_need_defaults=false;;
14028   --header | --heade | --head | --hea )
14029     $ac_shift
14030     case $ac_optarg in
14031     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14032     esac
14033     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14034     ac_need_defaults=false;;
14035   --he | --h)
14036     # Conflict between --help and --header
14037     as_fn_error "ambiguous option: \`$1'
14038 Try \`$0 --help' for more information.";;
14039   --help | --hel | -h )
14040     $as_echo "$ac_cs_usage"; exit ;;
14041   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14042   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14043     ac_cs_silent=: ;;
14044
14045   # This is an error.
14046   -*) as_fn_error "unrecognized option: \`$1'
14047 Try \`$0 --help' for more information." ;;
14048
14049   *) as_fn_append ac_config_targets " $1"
14050      ac_need_defaults=false ;;
14051
14052   esac
14053   shift
14054 done
14055
14056 ac_configure_extra_args=
14057
14058 if $ac_cs_silent; then
14059   exec 6>/dev/null
14060   ac_configure_extra_args="$ac_configure_extra_args --silent"
14061 fi
14062
14063 _ACEOF
14064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14065 if \$ac_cs_recheck; then
14066   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14067   shift
14068   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14069   CONFIG_SHELL='$SHELL'
14070   export CONFIG_SHELL
14071   exec "\$@"
14072 fi
14073
14074 _ACEOF
14075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14076 exec 5>>config.log
14077 {
14078   echo
14079   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14080 ## Running $as_me. ##
14081 _ASBOX
14082   $as_echo "$ac_log"
14083 } >&5
14084
14085 _ACEOF
14086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14087 #
14088 # INIT-COMMANDS
14089 #
14090 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14091
14092 _ACEOF
14093
14094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14095
14096 # Handling of arguments.
14097 for ac_config_target in $ac_config_targets
14098 do
14099   case $ac_config_target in
14100     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14101     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
14102     "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
14103     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
14104     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14105     "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
14106     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14107     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
14108     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14109
14110   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14111   esac
14112 done
14113
14114
14115 # If the user did not use the arguments to specify the items to instantiate,
14116 # then the envvar interface is used.  Set only those that are not.
14117 # We use the long form for the default assignment because of an extremely
14118 # bizarre bug on SunOS 4.1.3.
14119 if $ac_need_defaults; then
14120   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14121   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14122   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14123   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14124 fi
14125
14126 # Have a temporary directory for convenience.  Make it in the build tree
14127 # simply because there is no reason against having it here, and in addition,
14128 # creating and moving files from /tmp can sometimes cause problems.
14129 # Hook for its removal unless debugging.
14130 # Note that there is a small window in which the directory will not be cleaned:
14131 # after its creation but before its name has been assigned to `$tmp'.
14132 $debug ||
14133 {
14134   tmp=
14135   trap 'exit_status=$?
14136   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14137 ' 0
14138   trap 'as_fn_exit 1' 1 2 13 15
14139 }
14140 # Create a (secure) tmp directory for tmp files.
14141
14142 {
14143   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14144   test -n "$tmp" && test -d "$tmp"
14145 }  ||
14146 {
14147   tmp=./conf$$-$RANDOM
14148   (umask 077 && mkdir "$tmp")
14149 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14150
14151 # Set up the scripts for CONFIG_FILES section.
14152 # No need to generate them if there are no CONFIG_FILES.
14153 # This happens for instance with `./config.status config.h'.
14154 if test -n "$CONFIG_FILES"; then
14155
14156 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14157   ac_cs_awk_getline=:
14158   ac_cs_awk_pipe_init=
14159   ac_cs_awk_read_file='
14160       while ((getline aline < (F[key])) > 0)
14161         print(aline)
14162       close(F[key])'
14163   ac_cs_awk_pipe_fini=
14164 else
14165   ac_cs_awk_getline=false
14166   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14167   ac_cs_awk_read_file='
14168       print "|#_!!_#|"
14169       print "cat " F[key] " &&"
14170       '$ac_cs_awk_pipe_init
14171   # The final `:' finishes the AND list.
14172   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14173 fi
14174 ac_cr=`echo X | tr X '\015'`
14175 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14176 # But we know of no other shell where ac_cr would be empty at this
14177 # point, so we can use a bashism as a fallback.
14178 if test "x$ac_cr" = x; then
14179   eval ac_cr=\$\'\\r\'
14180 fi
14181 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14182 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14183   ac_cs_awk_cr='\r'
14184 else
14185   ac_cs_awk_cr=$ac_cr
14186 fi
14187
14188 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14189 _ACEOF
14190
14191 # Create commands to substitute file output variables.
14192 {
14193   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14194   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14195   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14196   echo "_ACAWK" &&
14197   echo "_ACEOF"
14198 } >conf$$files.sh &&
14199 . ./conf$$files.sh ||
14200   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14201 rm -f conf$$files.sh
14202
14203 {
14204   echo "cat >conf$$subs.awk <<_ACEOF" &&
14205   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14206   echo "_ACEOF"
14207 } >conf$$subs.sh ||
14208   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14209 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14210 ac_delim='%!_!# '
14211 for ac_last_try in false false false false false :; do
14212   . ./conf$$subs.sh ||
14213     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14214
14215   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14216   if test $ac_delim_n = $ac_delim_num; then
14217     break
14218   elif $ac_last_try; then
14219     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14220   else
14221     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14222   fi
14223 done
14224 rm -f conf$$subs.sh
14225
14226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14227 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14228 _ACEOF
14229 sed -n '
14230 h
14231 s/^/S["/; s/!.*/"]=/
14232 p
14233 g
14234 s/^[^!]*!//
14235 :repl
14236 t repl
14237 s/'"$ac_delim"'$//
14238 t delim
14239 :nl
14240 h
14241 s/\(.\{148\}\).*/\1/
14242 t more1
14243 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14244 p
14245 n
14246 b repl
14247 :more1
14248 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14249 p
14250 g
14251 s/.\{148\}//
14252 t nl
14253 :delim
14254 h
14255 s/\(.\{148\}\).*/\1/
14256 t more2
14257 s/["\\]/\\&/g; s/^/"/; s/$/"/
14258 p
14259 b
14260 :more2
14261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14262 p
14263 g
14264 s/.\{148\}//
14265 t delim
14266 ' <conf$$subs.awk | sed '
14267 /^[^""]/{
14268   N
14269   s/\n//
14270 }
14271 ' >>$CONFIG_STATUS || ac_write_fail=1
14272 rm -f conf$$subs.awk
14273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14274 _ACAWK
14275 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14276   for (key in S) S_is_set[key] = 1
14277   FS = "\a"
14278   \$ac_cs_awk_pipe_init
14279 }
14280 {
14281   line = $ 0
14282   nfields = split(line, field, "@")
14283   substed = 0
14284   len = length(field[1])
14285   for (i = 2; i < nfields; i++) {
14286     key = field[i]
14287     keylen = length(key)
14288     if (S_is_set[key]) {
14289       value = S[key]
14290       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14291       len += length(value) + length(field[++i])
14292       substed = 1
14293     } else
14294       len += 1 + keylen
14295   }
14296   if (nfields == 3 && !substed) {
14297     key = field[2]
14298     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14299       \$ac_cs_awk_read_file
14300       next
14301     }
14302   }
14303   print line
14304 }
14305 \$ac_cs_awk_pipe_fini
14306 _ACAWK
14307 _ACEOF
14308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14309 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14310   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14311 else
14312   cat
14313 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14314   || as_fn_error "could not setup config files machinery" "$LINENO" 5
14315 _ACEOF
14316
14317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14319 # trailing colons and then remove the whole line if VPATH becomes empty
14320 # (actually we leave an empty line to preserve line numbers).
14321 if test "x$srcdir" = x.; then
14322   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14323 s/:*\$(srcdir):*/:/
14324 s/:*\${srcdir}:*/:/
14325 s/:*@srcdir@:*/:/
14326 s/^\([^=]*=[     ]*\):*/\1/
14327 s/:*$//
14328 s/^[^=]*=[       ]*$//
14329 }'
14330 fi
14331
14332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14333 fi # test -n "$CONFIG_FILES"
14334
14335 # Set up the scripts for CONFIG_HEADERS section.
14336 # No need to generate them if there are no CONFIG_HEADERS.
14337 # This happens for instance with `./config.status Makefile'.
14338 if test -n "$CONFIG_HEADERS"; then
14339 cat >"$tmp/defines.awk" <<\_ACAWK ||
14340 BEGIN {
14341 _ACEOF
14342
14343 # Transform confdefs.h into an awk script `defines.awk', embedded as
14344 # here-document in config.status, that substitutes the proper values into
14345 # config.h.in to produce config.h.
14346
14347 # Create a delimiter string that does not exist in confdefs.h, to ease
14348 # handling of long lines.
14349 ac_delim='%!_!# '
14350 for ac_last_try in false false :; do
14351   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14352   if test -z "$ac_t"; then
14353     break
14354   elif $ac_last_try; then
14355     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14356   else
14357     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14358   fi
14359 done
14360
14361 # For the awk script, D is an array of macro values keyed by name,
14362 # likewise P contains macro parameters if any.  Preserve backslash
14363 # newline sequences.
14364
14365 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14366 sed -n '
14367 s/.\{148\}/&'"$ac_delim"'/g
14368 t rset
14369 :rset
14370 s/^[     ]*#[    ]*define[       ][      ]*/ /
14371 t def
14372 d
14373 :def
14374 s/\\$//
14375 t bsnl
14376 s/["\\]/\\&/g
14377 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14378 D["\1"]=" \3"/p
14379 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14380 d
14381 :bsnl
14382 s/["\\]/\\&/g
14383 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14384 D["\1"]=" \3\\\\\\n"\\/p
14385 t cont
14386 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14387 t cont
14388 d
14389 :cont
14390 n
14391 s/.\{148\}/&'"$ac_delim"'/g
14392 t clear
14393 :clear
14394 s/\\$//
14395 t bsnlc
14396 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14397 d
14398 :bsnlc
14399 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14400 b cont
14401 ' <confdefs.h | sed '
14402 s/'"$ac_delim"'/"\\\
14403 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14404
14405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14406   for (key in D) D_is_set[key] = 1
14407   FS = "\a"
14408 }
14409 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14410   line = \$ 0
14411   split(line, arg, " ")
14412   if (arg[1] == "#") {
14413     defundef = arg[2]
14414     mac1 = arg[3]
14415   } else {
14416     defundef = substr(arg[1], 2)
14417     mac1 = arg[2]
14418   }
14419   split(mac1, mac2, "(") #)
14420   macro = mac2[1]
14421   prefix = substr(line, 1, index(line, defundef) - 1)
14422   if (D_is_set[macro]) {
14423     # Preserve the white space surrounding the "#".
14424     print prefix "define", macro P[macro] D[macro]
14425     next
14426   } else {
14427     # Replace #undef with comments.  This is necessary, for example,
14428     # in the case of _POSIX_SOURCE, which is predefined and required
14429     # on some systems where configure will not decide to define it.
14430     if (defundef == "undef") {
14431       print "/*", prefix defundef, macro, "*/"
14432       next
14433     }
14434   }
14435 }
14436 { print }
14437 _ACAWK
14438 _ACEOF
14439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14440   as_fn_error "could not setup config headers machinery" "$LINENO" 5
14441 fi # test -n "$CONFIG_HEADERS"
14442
14443
14444 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
14445 shift
14446 for ac_tag
14447 do
14448   case $ac_tag in
14449   :[FHLC]) ac_mode=$ac_tag; continue;;
14450   esac
14451   case $ac_mode$ac_tag in
14452   :[FHL]*:*);;
14453   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14454   :[FH]-) ac_tag=-:-;;
14455   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14456   esac
14457   ac_save_IFS=$IFS
14458   IFS=:
14459   set x $ac_tag
14460   IFS=$ac_save_IFS
14461   shift
14462   ac_file=$1
14463   shift
14464
14465   case $ac_mode in
14466   :L) ac_source=$1;;
14467   :[FH])
14468     ac_file_inputs=
14469     for ac_f
14470     do
14471       case $ac_f in
14472       -) ac_f="$tmp/stdin";;
14473       *) # Look for the file first in the build tree, then in the source tree
14474          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14475          # because $ac_f cannot contain `:'.
14476          test -f "$ac_f" ||
14477            case $ac_f in
14478            [\\/$]*) false;;
14479            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14480            esac ||
14481            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14482       esac
14483       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14484       as_fn_append ac_file_inputs " '$ac_f'"
14485     done
14486
14487     # Let's still pretend it is `configure' which instantiates (i.e., don't
14488     # use $as_me), people would be surprised to read:
14489     #    /* config.h.  Generated by config.status.  */
14490     configure_input='Generated from '`
14491           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14492         `' by configure.'
14493     if test x"$ac_file" != x-; then
14494       configure_input="$ac_file.  $configure_input"
14495       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14496 $as_echo "$as_me: creating $ac_file" >&6;}
14497     fi
14498     # Neutralize special characters interpreted by sed in replacement strings.
14499     case $configure_input in #(
14500     *\&* | *\|* | *\\* )
14501        ac_sed_conf_input=`$as_echo "$configure_input" |
14502        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14503     *) ac_sed_conf_input=$configure_input;;
14504     esac
14505
14506     case $ac_tag in
14507     *:-:* | *:-) cat >"$tmp/stdin" \
14508       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14509     esac
14510     ;;
14511   esac
14512
14513   ac_dir=`$as_dirname -- "$ac_file" ||
14514 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14515          X"$ac_file" : 'X\(//\)[^/]' \| \
14516          X"$ac_file" : 'X\(//\)$' \| \
14517          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14518 $as_echo X"$ac_file" |
14519     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14520             s//\1/
14521             q
14522           }
14523           /^X\(\/\/\)[^/].*/{
14524             s//\1/
14525             q
14526           }
14527           /^X\(\/\/\)$/{
14528             s//\1/
14529             q
14530           }
14531           /^X\(\/\).*/{
14532             s//\1/
14533             q
14534           }
14535           s/.*/./; q'`
14536   as_dir="$ac_dir"; as_fn_mkdir_p
14537   ac_builddir=.
14538
14539 case "$ac_dir" in
14540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14541 *)
14542   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14543   # A ".." for each directory in $ac_dir_suffix.
14544   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14545   case $ac_top_builddir_sub in
14546   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14547   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14548   esac ;;
14549 esac
14550 ac_abs_top_builddir=$ac_pwd
14551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14552 # for backward compatibility:
14553 ac_top_builddir=$ac_top_build_prefix
14554
14555 case $srcdir in
14556   .)  # We are building in place.
14557     ac_srcdir=.
14558     ac_top_srcdir=$ac_top_builddir_sub
14559     ac_abs_top_srcdir=$ac_pwd ;;
14560   [\\/]* | ?:[\\/]* )  # Absolute name.
14561     ac_srcdir=$srcdir$ac_dir_suffix;
14562     ac_top_srcdir=$srcdir
14563     ac_abs_top_srcdir=$srcdir ;;
14564   *) # Relative name.
14565     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14566     ac_top_srcdir=$ac_top_build_prefix$srcdir
14567     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14568 esac
14569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14570
14571
14572   case $ac_mode in
14573   :F)
14574   #
14575   # CONFIG_FILE
14576   #
14577
14578   case $INSTALL in
14579   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14580   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14581   esac
14582 _ACEOF
14583
14584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14585 # If the template does not know about datarootdir, expand it.
14586 # FIXME: This hack should be removed a few years after 2.60.
14587 ac_datarootdir_hack=; ac_datarootdir_seen=
14588 ac_sed_dataroot='
14589 /datarootdir/ {
14590   p
14591   q
14592 }
14593 /@datadir@/p
14594 /@docdir@/p
14595 /@infodir@/p
14596 /@localedir@/p
14597 /@mandir@/p'
14598 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14599 *datarootdir*) ac_datarootdir_seen=yes;;
14600 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14601   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14602 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14603 _ACEOF
14604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14605   ac_datarootdir_hack='
14606   s&@datadir@&$datadir&g
14607   s&@docdir@&$docdir&g
14608   s&@infodir@&$infodir&g
14609   s&@localedir@&$localedir&g
14610   s&@mandir@&$mandir&g
14611   s&\\\${datarootdir}&$datarootdir&g' ;;
14612 esac
14613 _ACEOF
14614
14615 # Neutralize VPATH when `$srcdir' = `.'.
14616 # Shell code in configure.ac might set extrasub.
14617 # FIXME: do we really want to maintain this feature?
14618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14619 ac_sed_extra="$ac_vpsub
14620 $extrasub
14621 _ACEOF
14622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14623 :t
14624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14625 s|@configure_input@|$ac_sed_conf_input|;t t
14626 s&@top_builddir@&$ac_top_builddir_sub&;t t
14627 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14628 s&@srcdir@&$ac_srcdir&;t t
14629 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14630 s&@top_srcdir@&$ac_top_srcdir&;t t
14631 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14632 s&@builddir@&$ac_builddir&;t t
14633 s&@abs_builddir@&$ac_abs_builddir&;t t
14634 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14635 s&@INSTALL@&$ac_INSTALL&;t t
14636 $ac_datarootdir_hack
14637 "
14638 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14639 if $ac_cs_awk_getline; then
14640   $AWK -f "$tmp/subs.awk"
14641 else
14642   $AWK -f "$tmp/subs.awk" | $SHELL
14643 fi >$tmp/out \
14644   || as_fn_error "could not create $ac_file" "$LINENO" 5
14645
14646 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14647   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14648   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14649   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14650 which seems to be undefined.  Please make sure it is defined." >&5
14651 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14652 which seems to be undefined.  Please make sure it is defined." >&2;}
14653
14654   rm -f "$tmp/stdin"
14655   case $ac_file in
14656   -) cat "$tmp/out" && rm -f "$tmp/out";;
14657   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14658   esac \
14659   || as_fn_error "could not create $ac_file" "$LINENO" 5
14660  ;;
14661   :H)
14662   #
14663   # CONFIG_HEADER
14664   #
14665   if test x"$ac_file" != x-; then
14666     {
14667       $as_echo "/* $configure_input  */" \
14668       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14669     } >"$tmp/config.h" \
14670       || as_fn_error "could not create $ac_file" "$LINENO" 5
14671     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14672       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14673 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14674     else
14675       rm -f "$ac_file"
14676       mv "$tmp/config.h" "$ac_file" \
14677         || as_fn_error "could not create $ac_file" "$LINENO" 5
14678     fi
14679   else
14680     $as_echo "/* $configure_input  */" \
14681       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14682       || as_fn_error "could not create -" "$LINENO" 5
14683   fi
14684  ;;
14685   :L)
14686   #
14687   # CONFIG_LINK
14688   #
14689
14690   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14691     :
14692   else
14693     # Prefer the file from the source tree if names are identical.
14694     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14695       ac_source=$srcdir/$ac_source
14696     fi
14697
14698     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14699 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14700
14701     if test ! -r "$ac_source"; then
14702       as_fn_error "$ac_source: file not found" "$LINENO" 5
14703     fi
14704     rm -f "$ac_file"
14705
14706     # Try a relative symlink, then a hard link, then a copy.
14707     case $srcdir in
14708     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14709         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14710     esac
14711     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14712       ln "$ac_source" "$ac_file" 2>/dev/null ||
14713       cp -p "$ac_source" "$ac_file" ||
14714       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14715   fi
14716  ;;
14717   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14718 $as_echo "$as_me: executing $ac_file commands" >&6;}
14719  ;;
14720   esac
14721
14722
14723   case $ac_file$ac_mode in
14724     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
14725     "default":C)
14726 case x$CONFIG_HEADERS in
14727 xconfig.h:config.in)
14728 echo > stamp-h ;;
14729 esac
14730  ;;
14731
14732   esac
14733 done # for ac_tag
14734
14735
14736 as_fn_exit 0
14737 _ACEOF
14738 ac_clean_files=$ac_clean_files_save
14739
14740 test $ac_write_fail = 0 ||
14741   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14742
14743
14744 # configure is writing to config.log, and then calls config.status.
14745 # config.status does its own redirection, appending to config.log.
14746 # Unfortunately, on DOS this fails, as config.log is still kept open
14747 # by configure, so config.status won't be able to write to it; its
14748 # output is simply discarded.  So we exec the FD to /dev/null,
14749 # effectively closing config.log, so it can be properly (re)opened and
14750 # appended to by config.status.  When coming back to configure, we
14751 # need to make the FD available again.
14752 if test "$no_create" != yes; then
14753   ac_cs_success=:
14754   ac_config_status_args=
14755   test "$silent" = yes &&
14756     ac_config_status_args="$ac_config_status_args --quiet"
14757   exec 5>/dev/null
14758   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14759   exec 5>>config.log
14760   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14761   # would make configure fail if this is the last instruction.
14762   $ac_cs_success || as_fn_exit $?
14763 fi
14764
14765 #
14766 # CONFIG_SUBDIRS section.
14767 #
14768 if test "$no_recursion" != yes; then
14769
14770   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14771   # so they do not pile up.
14772   ac_sub_configure_args=
14773   ac_prev=
14774   eval "set x $ac_configure_args"
14775   shift
14776   for ac_arg
14777   do
14778     if test -n "$ac_prev"; then
14779       ac_prev=
14780       continue
14781     fi
14782     case $ac_arg in
14783     -cache-file | --cache-file | --cache-fil | --cache-fi \
14784     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14785       ac_prev=cache_file ;;
14786     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14787     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14788     | --c=*)
14789       ;;
14790     --config-cache | -C)
14791       ;;
14792     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14793       ac_prev=srcdir ;;
14794     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14795       ;;
14796     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14797       ac_prev=prefix ;;
14798     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14799       ;;
14800     --disable-option-checking)
14801       ;;
14802     *)
14803       case $ac_arg in
14804       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14805       esac
14806       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14807     esac
14808   done
14809
14810   # Always prepend --prefix to ensure using the same prefix
14811   # in subdir configurations.
14812   ac_arg="--prefix=$prefix"
14813   case $ac_arg in
14814   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14815   esac
14816   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14817
14818   # Pass --silent
14819   if test "$silent" = yes; then
14820     ac_sub_configure_args="--silent $ac_sub_configure_args"
14821   fi
14822
14823   # Always prepend --disable-option-checking to silence warnings, since
14824   # different subdirs can have different --enable and --with options.
14825   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14826
14827   ac_popdir=`pwd`
14828   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14829
14830     # Do not complain, so a configure script can configure whichever
14831     # parts of a large source tree are present.
14832     test -d "$srcdir/$ac_dir" || continue
14833
14834     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14835     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14836     $as_echo "$ac_msg" >&6
14837     as_dir="$ac_dir"; as_fn_mkdir_p
14838     ac_builddir=.
14839
14840 case "$ac_dir" in
14841 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14842 *)
14843   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14844   # A ".." for each directory in $ac_dir_suffix.
14845   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14846   case $ac_top_builddir_sub in
14847   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14848   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14849   esac ;;
14850 esac
14851 ac_abs_top_builddir=$ac_pwd
14852 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14853 # for backward compatibility:
14854 ac_top_builddir=$ac_top_build_prefix
14855
14856 case $srcdir in
14857   .)  # We are building in place.
14858     ac_srcdir=.
14859     ac_top_srcdir=$ac_top_builddir_sub
14860     ac_abs_top_srcdir=$ac_pwd ;;
14861   [\\/]* | ?:[\\/]* )  # Absolute name.
14862     ac_srcdir=$srcdir$ac_dir_suffix;
14863     ac_top_srcdir=$srcdir
14864     ac_abs_top_srcdir=$srcdir ;;
14865   *) # Relative name.
14866     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14867     ac_top_srcdir=$ac_top_build_prefix$srcdir
14868     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14869 esac
14870 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14871
14872
14873     cd "$ac_dir"
14874
14875     # Check for guested configure; otherwise get Cygnus style configure.
14876     if test -f "$ac_srcdir/configure.gnu"; then
14877       ac_sub_configure=$ac_srcdir/configure.gnu
14878     elif test -f "$ac_srcdir/configure"; then
14879       ac_sub_configure=$ac_srcdir/configure
14880     elif test -f "$ac_srcdir/configure.in"; then
14881       # This should be Cygnus configure.
14882       ac_sub_configure=$ac_aux_dir/configure
14883     else
14884       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14885 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14886       ac_sub_configure=
14887     fi
14888
14889     # The recursion is here.
14890     if test -n "$ac_sub_configure"; then
14891       # Make the cache file name correct relative to the subdirectory.
14892       case $cache_file in
14893       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14894       *) # Relative name.
14895         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14896       esac
14897
14898       { $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
14899 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14900       # The eval makes quoting arguments work.
14901       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14902            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14903         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14904     fi
14905
14906     cd "$ac_popdir"
14907   done
14908 fi
14909 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14910   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14911 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14912 fi
14913
14914
14915 exit 0