Fail gdb configure if target is not supported.
[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 gl_header_list=
592 enable_option_checking=no
593 ac_subst_vars='am__EXEEXT_FALSE
594 am__EXEEXT_TRUE
595 gltests_LTLIBOBJS
596 gltests_LIBOBJS
597 gl_LTLIBOBJS
598 gl_LIBOBJS
599 LTLIBOBJS
600 LIBOBJS
601 GDB_NM_FILE
602 frags
603 target_subdir
604 CONFIG_UNINSTALL
605 CONFIG_INSTALL
606 CONFIG_CLEAN
607 CONFIG_ALL
608 CONFIG_SRCS
609 CONFIG_DEPS
610 CONFIG_OBS
611 PROFILE_CFLAGS
612 ENABLE_CFLAGS
613 SIM_OBS
614 SIM
615 XMKMF
616 GDBTK_SRC_DIR
617 GDBTK_CFLAGS
618 GDBTKLIBS
619 X_LIBS
620 X_LDFLAGS
621 X_CFLAGS
622 TK_XINCLUDES
623 TK_DEPS
624 TK_LIBRARY
625 TK_INCLUDE
626 TK_STUB_LIB_SPEC
627 TK_STUB_LIB_FLAG
628 TK_STUB_LIB_FILE
629 TK_LIB_SPEC
630 TK_LIB_FLAG
631 TK_LIB_FILE
632 TK_SRC_DIR
633 TK_BIN_DIR
634 TK_VERSION
635 TCL_DEPS
636 TCL_LIBRARY
637 TCL_INCLUDE
638 TCL_STUB_LIB_SPEC
639 TCL_STUB_LIB_FLAG
640 TCL_STUB_LIB_FILE
641 TCL_LIB_SPEC
642 TCL_LIB_FLAG
643 TCL_LIB_FILE
644 TCL_SRC_DIR
645 TCL_BIN_DIR
646 TCL_PATCH_LEVEL
647 TCL_VERSION
648 WIN32LDAPP
649 GUI_CFLAGS_X
650 LIBGUI
651 WIN32LIBS
652 SER_HARDWIRE
653 WERROR_CFLAGS
654 WARN_CFLAGS
655 SYSTEM_GDBINIT
656 TARGET_SYSTEM_ROOT_DEFINE
657 TARGET_SYSTEM_ROOT
658 CONFIG_LDFLAGS
659 ALLOCA
660 PYTHON_CFLAGS
661 LTLIBEXPAT
662 LIBEXPAT
663 HAVE_LIBEXPAT
664 READLINE_CFLAGS
665 READLINE_DEPS
666 READLINE
667 MIG
668 WINDRES
669 DLLTOOL
670 AR
671 YFLAGS
672 YACC
673 LN_S
674 REPORT_BUGS_TEXI
675 REPORT_BUGS_TO
676 PKGVERSION
677 TARGET_OBS
678 subdirs
679 GDB_DATADIR
680 DEBUGDIR
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 am__untar
689 am__tar
690 AMTAR
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 PACKAGE
709 GNULIB_STDINT_H
710 LIBGNU_LTLIBDEPS
711 LIBGNU_LIBDEPS
712 NEXT_WCHAR_H
713 HAVE_WCHAR_H
714 WCHAR_H
715 REPLACE_WCWIDTH
716 HAVE_DECL_WCWIDTH
717 GNULIB_WCWIDTH
718 NEXT_STRING_H
719 STDINT_H
720 WINT_T_SUFFIX
721 WCHAR_T_SUFFIX
722 SIZE_T_SUFFIX
723 SIG_ATOMIC_T_SUFFIX
724 PTRDIFF_T_SUFFIX
725 HAVE_SIGNED_WINT_T
726 HAVE_SIGNED_WCHAR_T
727 HAVE_SIGNED_SIG_ATOMIC_T
728 BITSIZEOF_WINT_T
729 BITSIZEOF_WCHAR_T
730 BITSIZEOF_SIZE_T
731 BITSIZEOF_SIG_ATOMIC_T
732 BITSIZEOF_PTRDIFF_T
733 HAVE_SYS_BITYPES_H
734 HAVE_SYS_INTTYPES_H
735 HAVE_STDINT_H
736 NEXT_STDINT_H
737 INCLUDE_NEXT
738 HAVE_SYS_TYPES_H
739 HAVE_INTTYPES_H
740 HAVE_UNSIGNED_LONG_LONG_INT
741 HAVE_LONG_LONG_INT
742 REPLACE_STRSTR
743 REPLACE_STRCASESTR
744 REPLACE_MEMMEM
745 REPLACE_STRSIGNAL
746 REPLACE_STRERROR
747 HAVE_DECL_STRSIGNAL
748 HAVE_DECL_STRERROR
749 HAVE_DECL_STRTOK_R
750 HAVE_STRCASESTR
751 HAVE_STRSEP
752 HAVE_STRPBRK
753 HAVE_DECL_STRNLEN
754 HAVE_DECL_STRNDUP
755 HAVE_STRNDUP
756 HAVE_DECL_STRDUP
757 HAVE_STRCHRNUL
758 HAVE_STPNCPY
759 HAVE_STPCPY
760 HAVE_DECL_MEMRCHR
761 HAVE_MEMPCPY
762 HAVE_DECL_MEMMEM
763 GNULIB_STRSIGNAL
764 GNULIB_STRERROR
765 GNULIB_MBSTOK_R
766 GNULIB_MBSSEP
767 GNULIB_MBSSPN
768 GNULIB_MBSPBRK
769 GNULIB_MBSCSPN
770 GNULIB_MBSCASESTR
771 GNULIB_MBSPCASECMP
772 GNULIB_MBSNCASECMP
773 GNULIB_MBSCASECMP
774 GNULIB_MBSSTR
775 GNULIB_MBSRCHR
776 GNULIB_MBSCHR
777 GNULIB_MBSNLEN
778 GNULIB_MBSLEN
779 GNULIB_STRTOK_R
780 GNULIB_STRCASESTR
781 GNULIB_STRSTR
782 GNULIB_STRSEP
783 GNULIB_STRPBRK
784 GNULIB_STRNLEN
785 GNULIB_STRNDUP
786 GNULIB_STRDUP
787 GNULIB_STRCHRNUL
788 GNULIB_STPNCPY
789 GNULIB_STPCPY
790 GNULIB_MEMRCHR
791 GNULIB_MEMPCPY
792 GNULIB_MEMMEM
793 GL_COND_LIBTOOL_FALSE
794 GL_COND_LIBTOOL_TRUE
795 CATOBJEXT
796 GENCAT
797 INSTOBJEXT
798 DATADIRNAME
799 CATALOGS
800 POSUB
801 GMSGFMT
802 XGETTEXT
803 INCINTL
804 LIBINTL_DEP
805 LIBINTL
806 USE_NLS
807 SET_MAKE
808 GMAKE_FALSE
809 GMAKE_TRUE
810 MAKE
811 CCDEPMODE
812 DEPDIR
813 am__leading_dot
814 target_os
815 target_vendor
816 target_cpu
817 target
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 RANLIB
827 EGREP
828 GREP
829 CPP
830 OBJEXT
831 EXEEXT
832 ac_ct_CC
833 CPPFLAGS
834 LDFLAGS
835 CFLAGS
836 CC
837 MAINT
838 MAINTAINER_MODE_FALSE
839 MAINTAINER_MODE_TRUE
840 target_alias
841 host_alias
842 build_alias
843 LIBS
844 ECHO_T
845 ECHO_N
846 ECHO_C
847 DEFS
848 mandir
849 localedir
850 libdir
851 psdir
852 pdfdir
853 dvidir
854 htmldir
855 infodir
856 docdir
857 oldincludedir
858 includedir
859 localstatedir
860 sharedstatedir
861 sysconfdir
862 datadir
863 datarootdir
864 libexecdir
865 sbindir
866 bindir
867 program_transform_name
868 prefix
869 exec_prefix
870 PACKAGE_URL
871 PACKAGE_BUGREPORT
872 PACKAGE_STRING
873 PACKAGE_VERSION
874 PACKAGE_TARNAME
875 PACKAGE_NAME
876 PATH_SEPARATOR
877 SHELL'
878 ac_subst_files='host_makefile_frag'
879 ac_user_opts='
880 enable_option_checking
881 enable_maintainer_mode
882 enable_plugins
883 enable_largefile
884 enable_dependency_tracking
885 with_separate_debug_dir
886 with_gdb_datadir
887 with_relocated_sources
888 enable_targets
889 enable_64_bit_bfd
890 enable_gdbcli
891 enable_gdbmi
892 enable_tui
893 enable_gdbtk
894 with_libunwind
895 with_curses
896 enable_profiling
897 with_pkgversion
898 with_bugurl
899 with_zlib
900 with_libiconv_prefix
901 with_system_readline
902 with_expat
903 with_gnu_ld
904 enable_rpath
905 with_libexpat_prefix
906 with_python
907 with_included_regex
908 with_sysroot
909 with_system_gdbinit
910 enable_werror
911 enable_build_warnings
912 enable_gdb_build_warnings
913 with_tcl
914 with_tk
915 with_x
916 enable_sim
917 enable_multi_ice
918 '
919       ac_precious_vars='build_alias
920 host_alias
921 target_alias
922 CC
923 CFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
927 CPP
928 YACC
929 YFLAGS
930 XMKMF'
931 ac_subdirs_all='doc testsuite
932 gdbtk
933 multi-ice
934 gdbserver'
935
936 # Initialize some variables set by options.
937 ac_init_help=
938 ac_init_version=false
939 ac_unrecognized_opts=
940 ac_unrecognized_sep=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
943 cache_file=/dev/null
944 exec_prefix=NONE
945 no_create=
946 no_recursion=
947 prefix=NONE
948 program_prefix=NONE
949 program_suffix=NONE
950 program_transform_name=s,x,x,
951 silent=
952 site=
953 srcdir=
954 verbose=
955 x_includes=NONE
956 x_libraries=NONE
957
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir='${exec_prefix}/bin'
965 sbindir='${exec_prefix}/sbin'
966 libexecdir='${exec_prefix}/libexec'
967 datarootdir='${prefix}/share'
968 datadir='${datarootdir}'
969 sysconfdir='${prefix}/etc'
970 sharedstatedir='${prefix}/com'
971 localstatedir='${prefix}/var'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
983
984 ac_prev=
985 ac_dashdash=
986 for ac_option
987 do
988   # If the previous option needs an argument, assign it.
989   if test -n "$ac_prev"; then
990     eval $ac_prev=\$ac_option
991     ac_prev=
992     continue
993   fi
994
995   case $ac_option in
996   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997   *)    ac_optarg=yes ;;
998   esac
999
1000   # Accept the important Cygnus configure options, so we can diagnose typos.
1001
1002   case $ac_dashdash$ac_option in
1003   --)
1004     ac_dashdash=yes ;;
1005
1006   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007     ac_prev=bindir ;;
1008   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009     bindir=$ac_optarg ;;
1010
1011   -build | --build | --buil | --bui | --bu)
1012     ac_prev=build_alias ;;
1013   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014     build_alias=$ac_optarg ;;
1015
1016   -cache-file | --cache-file | --cache-fil | --cache-fi \
1017   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018     ac_prev=cache_file ;;
1019   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021     cache_file=$ac_optarg ;;
1022
1023   --config-cache | -C)
1024     cache_file=config.cache ;;
1025
1026   -datadir | --datadir | --datadi | --datad)
1027     ac_prev=datadir ;;
1028   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1029     datadir=$ac_optarg ;;
1030
1031   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032   | --dataroo | --dataro | --datar)
1033     ac_prev=datarootdir ;;
1034   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036     datarootdir=$ac_optarg ;;
1037
1038   -disable-* | --disable-*)
1039     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040     # Reject names that are not valid shell variable names.
1041     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042       as_fn_error "invalid feature name: $ac_useropt"
1043     ac_useropt_orig=$ac_useropt
1044     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045     case $ac_user_opts in
1046       *"
1047 "enable_$ac_useropt"
1048 "*) ;;
1049       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1050          ac_unrecognized_sep=', ';;
1051     esac
1052     eval enable_$ac_useropt=no ;;
1053
1054   -docdir | --docdir | --docdi | --doc | --do)
1055     ac_prev=docdir ;;
1056   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057     docdir=$ac_optarg ;;
1058
1059   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060     ac_prev=dvidir ;;
1061   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062     dvidir=$ac_optarg ;;
1063
1064   -enable-* | --enable-*)
1065     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066     # Reject names that are not valid shell variable names.
1067     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068       as_fn_error "invalid feature name: $ac_useropt"
1069     ac_useropt_orig=$ac_useropt
1070     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071     case $ac_user_opts in
1072       *"
1073 "enable_$ac_useropt"
1074 "*) ;;
1075       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1076          ac_unrecognized_sep=', ';;
1077     esac
1078     eval enable_$ac_useropt=\$ac_optarg ;;
1079
1080   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082   | --exec | --exe | --ex)
1083     ac_prev=exec_prefix ;;
1084   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086   | --exec=* | --exe=* | --ex=*)
1087     exec_prefix=$ac_optarg ;;
1088
1089   -gas | --gas | --ga | --g)
1090     # Obsolete; use --with-gas.
1091     with_gas=yes ;;
1092
1093   -help | --help | --hel | --he | -h)
1094     ac_init_help=long ;;
1095   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096     ac_init_help=recursive ;;
1097   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098     ac_init_help=short ;;
1099
1100   -host | --host | --hos | --ho)
1101     ac_prev=host_alias ;;
1102   -host=* | --host=* | --hos=* | --ho=*)
1103     host_alias=$ac_optarg ;;
1104
1105   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106     ac_prev=htmldir ;;
1107   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108   | --ht=*)
1109     htmldir=$ac_optarg ;;
1110
1111   -includedir | --includedir | --includedi | --included | --include \
1112   | --includ | --inclu | --incl | --inc)
1113     ac_prev=includedir ;;
1114   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115   | --includ=* | --inclu=* | --incl=* | --inc=*)
1116     includedir=$ac_optarg ;;
1117
1118   -infodir | --infodir | --infodi | --infod | --info | --inf)
1119     ac_prev=infodir ;;
1120   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121     infodir=$ac_optarg ;;
1122
1123   -libdir | --libdir | --libdi | --libd)
1124     ac_prev=libdir ;;
1125   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126     libdir=$ac_optarg ;;
1127
1128   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129   | --libexe | --libex | --libe)
1130     ac_prev=libexecdir ;;
1131   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132   | --libexe=* | --libex=* | --libe=*)
1133     libexecdir=$ac_optarg ;;
1134
1135   -localedir | --localedir | --localedi | --localed | --locale)
1136     ac_prev=localedir ;;
1137   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138     localedir=$ac_optarg ;;
1139
1140   -localstatedir | --localstatedir | --localstatedi | --localstated \
1141   | --localstate | --localstat | --localsta | --localst | --locals)
1142     ac_prev=localstatedir ;;
1143   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145     localstatedir=$ac_optarg ;;
1146
1147   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148     ac_prev=mandir ;;
1149   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150     mandir=$ac_optarg ;;
1151
1152   -nfp | --nfp | --nf)
1153     # Obsolete; use --without-fp.
1154     with_fp=no ;;
1155
1156   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157   | --no-cr | --no-c | -n)
1158     no_create=yes ;;
1159
1160   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162     no_recursion=yes ;;
1163
1164   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166   | --oldin | --oldi | --old | --ol | --o)
1167     ac_prev=oldincludedir ;;
1168   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171     oldincludedir=$ac_optarg ;;
1172
1173   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174     ac_prev=prefix ;;
1175   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176     prefix=$ac_optarg ;;
1177
1178   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179   | --program-pre | --program-pr | --program-p)
1180     ac_prev=program_prefix ;;
1181   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183     program_prefix=$ac_optarg ;;
1184
1185   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186   | --program-suf | --program-su | --program-s)
1187     ac_prev=program_suffix ;;
1188   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190     program_suffix=$ac_optarg ;;
1191
1192   -program-transform-name | --program-transform-name \
1193   | --program-transform-nam | --program-transform-na \
1194   | --program-transform-n | --program-transform- \
1195   | --program-transform | --program-transfor \
1196   | --program-transfo | --program-transf \
1197   | --program-trans | --program-tran \
1198   | --progr-tra | --program-tr | --program-t)
1199     ac_prev=program_transform_name ;;
1200   -program-transform-name=* | --program-transform-name=* \
1201   | --program-transform-nam=* | --program-transform-na=* \
1202   | --program-transform-n=* | --program-transform-=* \
1203   | --program-transform=* | --program-transfor=* \
1204   | --program-transfo=* | --program-transf=* \
1205   | --program-trans=* | --program-tran=* \
1206   | --progr-tra=* | --program-tr=* | --program-t=*)
1207     program_transform_name=$ac_optarg ;;
1208
1209   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210     ac_prev=pdfdir ;;
1211   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212     pdfdir=$ac_optarg ;;
1213
1214   -psdir | --psdir | --psdi | --psd | --ps)
1215     ac_prev=psdir ;;
1216   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217     psdir=$ac_optarg ;;
1218
1219   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220   | -silent | --silent | --silen | --sile | --sil)
1221     silent=yes ;;
1222
1223   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224     ac_prev=sbindir ;;
1225   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226   | --sbi=* | --sb=*)
1227     sbindir=$ac_optarg ;;
1228
1229   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231   | --sharedst | --shareds | --shared | --share | --shar \
1232   | --sha | --sh)
1233     ac_prev=sharedstatedir ;;
1234   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237   | --sha=* | --sh=*)
1238     sharedstatedir=$ac_optarg ;;
1239
1240   -site | --site | --sit)
1241     ac_prev=site ;;
1242   -site=* | --site=* | --sit=*)
1243     site=$ac_optarg ;;
1244
1245   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246     ac_prev=srcdir ;;
1247   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248     srcdir=$ac_optarg ;;
1249
1250   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251   | --syscon | --sysco | --sysc | --sys | --sy)
1252     ac_prev=sysconfdir ;;
1253   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255     sysconfdir=$ac_optarg ;;
1256
1257   -target | --target | --targe | --targ | --tar | --ta | --t)
1258     ac_prev=target_alias ;;
1259   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260     target_alias=$ac_optarg ;;
1261
1262   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263     verbose=yes ;;
1264
1265   -version | --version | --versio | --versi | --vers | -V)
1266     ac_init_version=: ;;
1267
1268   -with-* | --with-*)
1269     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270     # Reject names that are not valid shell variable names.
1271     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272       as_fn_error "invalid package name: $ac_useropt"
1273     ac_useropt_orig=$ac_useropt
1274     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275     case $ac_user_opts in
1276       *"
1277 "with_$ac_useropt"
1278 "*) ;;
1279       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1280          ac_unrecognized_sep=', ';;
1281     esac
1282     eval with_$ac_useropt=\$ac_optarg ;;
1283
1284   -without-* | --without-*)
1285     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286     # Reject names that are not valid shell variable names.
1287     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288       as_fn_error "invalid package name: $ac_useropt"
1289     ac_useropt_orig=$ac_useropt
1290     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291     case $ac_user_opts in
1292       *"
1293 "with_$ac_useropt"
1294 "*) ;;
1295       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1296          ac_unrecognized_sep=', ';;
1297     esac
1298     eval with_$ac_useropt=no ;;
1299
1300   --x)
1301     # Obsolete; use --with-x.
1302     with_x=yes ;;
1303
1304   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1305   | --x-incl | --x-inc | --x-in | --x-i)
1306     ac_prev=x_includes ;;
1307   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1308   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1309     x_includes=$ac_optarg ;;
1310
1311   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1312   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1313     ac_prev=x_libraries ;;
1314   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1315   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1316     x_libraries=$ac_optarg ;;
1317
1318   -*) as_fn_error "unrecognized option: \`$ac_option'
1319 Try \`$0 --help' for more information."
1320     ;;
1321
1322   *=*)
1323     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324     # Reject names that are not valid shell variable names.
1325     case $ac_envvar in #(
1326       '' | [0-9]* | *[!_$as_cr_alnum]* )
1327       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1328     esac
1329     eval $ac_envvar=\$ac_optarg
1330     export $ac_envvar ;;
1331
1332   *)
1333     # FIXME: should be removed in autoconf 3.0.
1334     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338     ;;
1339
1340   esac
1341 done
1342
1343 if test -n "$ac_prev"; then
1344   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1345   as_fn_error "missing argument to $ac_option"
1346 fi
1347
1348 if test -n "$ac_unrecognized_opts"; then
1349   case $enable_option_checking in
1350     no) ;;
1351     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1352     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1353   esac
1354 fi
1355
1356 # Check all directory arguments for consistency.
1357 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358                 datadir sysconfdir sharedstatedir localstatedir includedir \
1359                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360                 libdir localedir mandir
1361 do
1362   eval ac_val=\$$ac_var
1363   # Remove trailing slashes.
1364   case $ac_val in
1365     */ )
1366       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1367       eval $ac_var=\$ac_val;;
1368   esac
1369   # Be sure to have absolute directory names.
1370   case $ac_val in
1371     [\\/$]* | ?:[\\/]* )  continue;;
1372     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1373   esac
1374   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1375 done
1376
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1380 build=$build_alias
1381 host=$host_alias
1382 target=$target_alias
1383
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x; then
1386   if test "x$build_alias" = x; then
1387     cross_compiling=maybe
1388     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389     If a cross compiler is detected then cross compile mode will be used." >&2
1390   elif test "x$build_alias" != "x$host_alias"; then
1391     cross_compiling=yes
1392   fi
1393 fi
1394
1395 ac_tool_prefix=
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397
1398 test "$silent" = yes && exec 6>/dev/null
1399
1400
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404   as_fn_error "working directory cannot be determined"
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406   as_fn_error "pwd does not report name of working directory"
1407
1408
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411   ac_srcdir_defaulted=yes
1412   # Try the directory containing this script, then the parent directory.
1413   ac_confdir=`$as_dirname -- "$as_myself" ||
1414 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415          X"$as_myself" : 'X\(//\)[^/]' \| \
1416          X"$as_myself" : 'X\(//\)$' \| \
1417          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1418 $as_echo X"$as_myself" |
1419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\/\)[^/].*/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\/\)$/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\).*/{
1432             s//\1/
1433             q
1434           }
1435           s/.*/./; q'`
1436   srcdir=$ac_confdir
1437   if test ! -r "$srcdir/$ac_unique_file"; then
1438     srcdir=..
1439   fi
1440 else
1441   ac_srcdir_defaulted=no
1442 fi
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1446 fi
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 ac_abs_confdir=`(
1449         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1450         pwd)`
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453   srcdir=.
1454 fi
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1458 case $srcdir in
1459 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 esac
1461 for ac_var in $ac_precious_vars; do
1462   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463   eval ac_env_${ac_var}_value=\$${ac_var}
1464   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 done
1467
1468 #
1469 # Report the --help message.
1470 #
1471 if test "$ac_init_help" = "long"; then
1472   # Omit some internal or obsolete options to make the list less imposing.
1473   # This message is too long to be a string in the A/UX 3.1 sh.
1474   cat <<_ACEOF
1475 \`configure' configures this package to adapt to many kinds of systems.
1476
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1478
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE.  See below for descriptions of some of the useful variables.
1481
1482 Defaults for the options are specified in brackets.
1483
1484 Configuration:
1485   -h, --help              display this help and exit
1486       --help=short        display options specific to this package
1487       --help=recursive    display the short help of all the included packages
1488   -V, --version           display version information and exit
1489   -q, --quiet, --silent   do not print \`checking...' messages
1490       --cache-file=FILE   cache test results in FILE [disabled]
1491   -C, --config-cache      alias for \`--cache-file=config.cache'
1492   -n, --no-create         do not create output files
1493       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1494
1495 Installation directories:
1496   --prefix=PREFIX         install architecture-independent files in PREFIX
1497                           [$ac_default_prefix]
1498   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1499                           [PREFIX]
1500
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1505
1506 For better control, use the options below.
1507
1508 Fine tuning of the installation directories:
1509   --bindir=DIR            user executables [EPREFIX/bin]
1510   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1511   --libexecdir=DIR        program executables [EPREFIX/libexec]
1512   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1513   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1514   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1515   --libdir=DIR            object code libraries [EPREFIX/lib]
1516   --includedir=DIR        C header files [PREFIX/include]
1517   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1518   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1519   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1520   --infodir=DIR           info documentation [DATAROOTDIR/info]
1521   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1522   --mandir=DIR            man documentation [DATAROOTDIR/man]
1523   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1524   --htmldir=DIR           html documentation [DOCDIR]
1525   --dvidir=DIR            dvi documentation [DOCDIR]
1526   --pdfdir=DIR            pdf documentation [DOCDIR]
1527   --psdir=DIR             ps documentation [DOCDIR]
1528 _ACEOF
1529
1530   cat <<\_ACEOF
1531
1532 Program names:
1533   --program-prefix=PREFIX            prepend PREFIX to installed program names
1534   --program-suffix=SUFFIX            append SUFFIX to installed program names
1535   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1536
1537 X features:
1538   --x-includes=DIR    X include files are in DIR
1539   --x-libraries=DIR   X library files are in DIR
1540
1541 System types:
1542   --build=BUILD     configure for building on BUILD [guessed]
1543   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1544   --target=TARGET   configure for building compilers for TARGET [HOST]
1545 _ACEOF
1546 fi
1547
1548 if test -n "$ac_init_help"; then
1549
1550   cat <<\_ACEOF
1551
1552 Optional Features:
1553   --disable-option-checking  ignore unrecognized --enable/--with options
1554   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1555   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1556   --enable-maintainer-mode  enable make rules and dependencies not useful
1557                           (and sometimes confusing) to the casual installer
1558   --enable-plugins        Enable support for plugins (defaults no)
1559   --disable-largefile     omit support for large files
1560   --disable-dependency-tracking  speeds up one-time build
1561   --enable-dependency-tracking   do not reject slow dependency extractors
1562   --enable-targets=TARGETS
1563                           alternative target configurations
1564   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1565   --disable-gdbcli        disable command-line interface (CLI)
1566   --disable-gdbmi         disable machine-interface (MI)
1567   --enable-tui            enable full-screen terminal user interface (TUI)
1568   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1569   --enable-profiling      enable profiling of GDB
1570   --disable-rpath         do not hardcode runtime library paths
1571   --enable-werror         treat compile warnings as errors
1572   --enable-build-warnings enable build-time compiler warnings if gcc is used
1573   --enable-gdb-build-warnings
1574                           enable GDB specific build-time compiler warnings if
1575                           gcc is used
1576   --enable-sim            link gdb with simulator
1577   --enable-multi-ice      build the multi-ice-gdb-server
1578
1579 Optional Packages:
1580   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1581   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1582   --with-separate-debug-dir=PATH
1583                           look for global separate debug info in this path
1584                           [LIBDIR/debug]
1585   --with-gdb-datadir=PATH look for global separate data files in this path
1586                           [DATADIR/gdb]
1587   --with-relocated-sources=PATH
1588                           automatically relocate this path for source files
1589   --with-libunwind        use libunwind frame unwinding support
1590   --with-curses           use the curses library instead of the termcap
1591                           library
1592   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1593   --with-bugurl=URL       Direct users to URL to report a bug
1594   --with-zlib             include zlib support (auto/yes/no) default=auto
1595   --with-libiconv-prefix=DIR
1596                           search for libiconv in DIR/include and DIR/lib
1597   --with-system-readline  use installed readline library
1598   --with-expat            include expat support (auto/yes/no)
1599   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1600   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1601   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1602   --with-python           include python support (auto/yes/no/<path>)
1603   --without-included-regex
1604                           don't use included regex; this is the default on
1605                           systems with version 2 of the GNU C library (use
1606                           with caution on other system)
1607   --with-sysroot[=DIR]    search for usr/lib et al within DIR
1608   --with-system-gdbinit=PATH
1609                           automatically load a system-wide gdbinit file
1610   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1611   --with-tk               directory containing tk configuration (tkConfig.sh)
1612   --with-x                use the X Window System
1613
1614 Some influential environment variables:
1615   CC          C compiler command
1616   CFLAGS      C compiler flags
1617   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1618               nonstandard directory <lib dir>
1619   LIBS        libraries to pass to the linker, e.g. -l<library>
1620   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1621               you have headers in a nonstandard directory <include dir>
1622   CPP         C preprocessor
1623   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1624               the first program found out of: `bison -y', `byacc', `yacc'.
1625   YFLAGS      The list of arguments that will be passed by default to $YACC.
1626               This script will default YFLAGS to the empty string to avoid a
1627               default value of `-d' given by some make applications.
1628   XMKMF       Path to xmkmf, Makefile generator for X Window System
1629
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1632
1633 Report bugs to the package provider.
1634 _ACEOF
1635 ac_status=$?
1636 fi
1637
1638 if test "$ac_init_help" = "recursive"; then
1639   # If there are subdirs, report their specific --help.
1640   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641     test -d "$ac_dir" ||
1642       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643       continue
1644     ac_builddir=.
1645
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *)
1649   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650   # A ".." for each directory in $ac_dir_suffix.
1651   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652   case $ac_top_builddir_sub in
1653   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655   esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1661
1662 case $srcdir in
1663   .)  # We are building in place.
1664     ac_srcdir=.
1665     ac_top_srcdir=$ac_top_builddir_sub
1666     ac_abs_top_srcdir=$ac_pwd ;;
1667   [\\/]* | ?:[\\/]* )  # Absolute name.
1668     ac_srcdir=$srcdir$ac_dir_suffix;
1669     ac_top_srcdir=$srcdir
1670     ac_abs_top_srcdir=$srcdir ;;
1671   *) # Relative name.
1672     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673     ac_top_srcdir=$ac_top_build_prefix$srcdir
1674     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678     cd "$ac_dir" || { ac_status=$?; continue; }
1679     # Check for guested configure.
1680     if test -f "$ac_srcdir/configure.gnu"; then
1681       echo &&
1682       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683     elif test -f "$ac_srcdir/configure"; then
1684       echo &&
1685       $SHELL "$ac_srcdir/configure" --help=recursive
1686     else
1687       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688     fi || ac_status=$?
1689     cd "$ac_pwd" || { ac_status=$?; break; }
1690   done
1691 fi
1692
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1695   cat <<\_ACEOF
1696 configure
1697 generated by GNU Autoconf 2.64
1698
1699 Copyright (C) 2009 Free Software Foundation, Inc.
1700 This configure script is free software; the Free Software Foundation
1701 gives unlimited permission to copy, distribute and modify it.
1702 _ACEOF
1703   exit
1704 fi
1705
1706 ## ------------------------ ##
1707 ## Autoconf initialization. ##
1708 ## ------------------------ ##
1709
1710 # ac_fn_c_try_compile LINENO
1711 # --------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_compile ()
1714 {
1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716   rm -f conftest.$ac_objext
1717   if { { ac_try="$ac_compile"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_compile") 2>conftest.err
1725   ac_status=$?
1726   if test -s conftest.err; then
1727     grep -v '^ *+' conftest.err >conftest.er1
1728     cat conftest.er1 >&5
1729     mv -f conftest.er1 conftest.err
1730   fi
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; } && {
1733          test -z "$ac_c_werror_flag" ||
1734          test ! -s conftest.err
1735        } && test -s conftest.$ac_objext; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741         ac_retval=1
1742 fi
1743   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744   return $ac_retval
1745
1746 } # ac_fn_c_try_compile
1747
1748 # ac_fn_c_try_cpp LINENO
1749 # ----------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_c_try_cpp ()
1752 {
1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754   if { { ac_try="$ac_cpp conftest.$ac_ext"
1755 case "(($ac_try" in
1756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757   *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762   ac_status=$?
1763   if test -s conftest.err; then
1764     grep -v '^ *+' conftest.err >conftest.er1
1765     cat conftest.er1 >&5
1766     mv -f conftest.er1 conftest.err
1767   fi
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; } >/dev/null && {
1770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1771          test ! -s conftest.err
1772        }; then :
1773   ac_retval=0
1774 else
1775   $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778     ac_retval=1
1779 fi
1780   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781   return $ac_retval
1782
1783 } # ac_fn_c_try_cpp
1784
1785 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788 # the include files in INCLUDES and setting the cache variable VAR
1789 # accordingly.
1790 ac_fn_c_check_header_mongrel ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797   $as_echo_n "(cached) " >&6
1798 fi
1799 eval ac_res=\$$3
1800                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 else
1803   # Is the header compilable?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805 $as_echo_n "checking $2 usability... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h.  */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812   ac_header_compiler=yes
1813 else
1814   ac_header_compiler=no
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818 $as_echo "$ac_header_compiler" >&6; }
1819
1820 # Is the header present?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822 $as_echo_n "checking $2 presence... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h.  */
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_cpp "$LINENO"; then :
1828   ac_header_preproc=yes
1829 else
1830   ac_header_preproc=no
1831 fi
1832 rm -f conftest.err conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834 $as_echo "$ac_header_preproc" >&6; }
1835
1836 # So?  What about this header?
1837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838   yes:no: )
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843     ;;
1844   no:yes:* )
1845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1848 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1852 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855     ;;
1856 esac
1857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860   $as_echo_n "(cached) " >&6
1861 else
1862   eval "$3=\$ac_header_compiler"
1863 fi
1864 eval ac_res=\$$3
1865                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 fi
1868   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869
1870 } # ac_fn_c_check_header_mongrel
1871
1872 # ac_fn_c_try_run LINENO
1873 # ----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1875 # that executables *can* be run.
1876 ac_fn_c_try_run ()
1877 {
1878   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879   if { { ac_try="$ac_link"
1880 case "(($ac_try" in
1881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882   *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886   (eval "$ac_link") 2>&5
1887   ac_status=$?
1888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1890   { { case "(($ac_try" in
1891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892   *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896   (eval "$ac_try") 2>&5
1897   ac_status=$?
1898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899   test $ac_status = 0; }; }; then :
1900   ac_retval=0
1901 else
1902   $as_echo "$as_me: program exited with status $ac_status" >&5
1903        $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1905
1906        ac_retval=$ac_status
1907 fi
1908   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1910   return $ac_retval
1911
1912 } # ac_fn_c_try_run
1913
1914 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists and can be compiled using the include files in
1917 # INCLUDES, setting the cache variable VAR accordingly.
1918 ac_fn_c_check_header_compile ()
1919 {
1920   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924   $as_echo_n "(cached) " >&6
1925 else
1926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h.  */
1928 $4
1929 #include <$2>
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932   eval "$3=yes"
1933 else
1934   eval "$3=no"
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 fi
1938 eval ac_res=\$$3
1939                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1942
1943 } # ac_fn_c_check_header_compile
1944
1945 # ac_fn_c_try_link LINENO
1946 # -----------------------
1947 # Try to link conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_c_try_link ()
1949 {
1950   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951   rm -f conftest.$ac_objext conftest$ac_exeext
1952   if { { ac_try="$ac_link"
1953 case "(($ac_try" in
1954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955   *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959   (eval "$ac_link") 2>conftest.err
1960   ac_status=$?
1961   if test -s conftest.err; then
1962     grep -v '^ *+' conftest.err >conftest.er1
1963     cat conftest.er1 >&5
1964     mv -f conftest.er1 conftest.err
1965   fi
1966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967   test $ac_status = 0; } && {
1968          test -z "$ac_c_werror_flag" ||
1969          test ! -s conftest.err
1970        } && test -s conftest$ac_exeext && {
1971          test "$cross_compiling" = yes ||
1972          $as_test_x conftest$ac_exeext
1973        }; then :
1974   ac_retval=0
1975 else
1976   $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979         ac_retval=1
1980 fi
1981   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1982   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1983   # interfere with the next link command; also delete a directory that is
1984   # left behind by Apple's compiler.  We do this before executing the actions.
1985   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987   return $ac_retval
1988
1989 } # ac_fn_c_try_link
1990
1991 # ac_fn_c_check_func LINENO FUNC VAR
1992 # ----------------------------------
1993 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1994 ac_fn_c_check_func ()
1995 {
1996   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2000   $as_echo_n "(cached) " >&6
2001 else
2002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h.  */
2004 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2006 #define $2 innocuous_$2
2007
2008 /* System header to define __stub macros and hopefully few prototypes,
2009     which can conflict with char $2 (); below.
2010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2011     <limits.h> exists even on freestanding compilers.  */
2012
2013 #ifdef __STDC__
2014 # include <limits.h>
2015 #else
2016 # include <assert.h>
2017 #endif
2018
2019 #undef $2
2020
2021 /* Override any GCC internal prototype to avoid an error.
2022    Use char because int might match the return type of a GCC
2023    builtin and then its argument prototype would still apply.  */
2024 #ifdef __cplusplus
2025 extern "C"
2026 #endif
2027 char $2 ();
2028 /* The GNU C library defines this for functions which it implements
2029     to always fail with ENOSYS.  Some functions are actually named
2030     something starting with __ and the normal name is an alias.  */
2031 #if defined __stub_$2 || defined __stub___$2
2032 choke me
2033 #endif
2034
2035 int
2036 main ()
2037 {
2038 return $2 ();
2039   ;
2040   return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_link "$LINENO"; then :
2044   eval "$3=yes"
2045 else
2046   eval "$3=no"
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext \
2049     conftest$ac_exeext conftest.$ac_ext
2050 fi
2051 eval ac_res=\$$3
2052                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055
2056 } # ac_fn_c_check_func
2057
2058 # ac_fn_c_check_decl LINENO SYMBOL VAR
2059 # ------------------------------------
2060 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2061 ac_fn_c_check_decl ()
2062 {
2063   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2065 $as_echo_n "checking whether $2 is declared... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067   $as_echo_n "(cached) " >&6
2068 else
2069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h.  */
2071 $4
2072 int
2073 main ()
2074 {
2075 #ifndef $2
2076   (void) $2;
2077 #endif
2078
2079   ;
2080   return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084   eval "$3=yes"
2085 else
2086   eval "$3=no"
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 fi
2090 eval ac_res=\$$3
2091                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094
2095 } # ac_fn_c_check_decl
2096
2097 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2098 # --------------------------------------------
2099 # Tries to find the compile-time value of EXPR in a program that includes
2100 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2101 # computed
2102 ac_fn_c_compute_int ()
2103 {
2104   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105   if test "$cross_compiling" = yes; then
2106     # Depending upon the size, compute the lo and hi bounds.
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) >= 0)];
2114 test_array [0] = 0
2115
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121   ac_lo=0 ac_mid=0
2122   while :; do
2123     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h.  */
2125 $4
2126 int
2127 main ()
2128 {
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 test_array [0] = 0
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137   ac_hi=$ac_mid; break
2138 else
2139   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2140                         if test $ac_lo -le $ac_mid; then
2141                           ac_lo= ac_hi=
2142                           break
2143                         fi
2144                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147   done
2148 else
2149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h.  */
2151 $4
2152 int
2153 main ()
2154 {
2155 static int test_array [1 - 2 * !(($2) < 0)];
2156 test_array [0] = 0
2157
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163   ac_hi=-1 ac_mid=-1
2164   while :; do
2165     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h.  */
2167 $4
2168 int
2169 main ()
2170 {
2171 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172 test_array [0] = 0
2173
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179   ac_lo=$ac_mid; break
2180 else
2181   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2182                         if test $ac_mid -le $ac_hi; then
2183                           ac_lo= ac_hi=
2184                           break
2185                         fi
2186                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2187 fi
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189   done
2190 else
2191   ac_lo= ac_hi=
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 # Binary search between lo and hi bounds.
2197 while test "x$ac_lo" != "x$ac_hi"; do
2198   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h.  */
2201 $4
2202 int
2203 main ()
2204 {
2205 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 test_array [0] = 0
2207
2208   ;
2209   return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213   ac_hi=$ac_mid
2214 else
2215   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 done
2219 case $ac_lo in #((
2220 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2221 '') ac_retval=1 ;;
2222 esac
2223   else
2224     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h.  */
2226 $4
2227 static long int longval () { return $2; }
2228 static unsigned long int ulongval () { return $2; }
2229 #include <stdio.h>
2230 #include <stdlib.h>
2231 int
2232 main ()
2233 {
2234
2235   FILE *f = fopen ("conftest.val", "w");
2236   if (! f)
2237     return 1;
2238   if (($2) < 0)
2239     {
2240       long int i = longval ();
2241       if (i != ($2))
2242         return 1;
2243       fprintf (f, "%ld", i);
2244     }
2245   else
2246     {
2247       unsigned long int i = ulongval ();
2248       if (i != ($2))
2249         return 1;
2250       fprintf (f, "%lu", i);
2251     }
2252   /* Do not output a trailing newline, as this causes \r\n confusion
2253      on some platforms.  */
2254   return ferror (f) || fclose (f) != 0;
2255
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_c_try_run "$LINENO"; then :
2261   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2262 else
2263   ac_retval=1
2264 fi
2265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2266   conftest.$ac_objext conftest.beam conftest.$ac_ext
2267 rm -f conftest.val
2268
2269   fi
2270   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2271   return $ac_retval
2272
2273 } # ac_fn_c_compute_int
2274
2275 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2276 # ----------------------------------------------------
2277 # Tries to find if the field MEMBER exists in type AGGR, after including
2278 # INCLUDES, setting cache variable VAR accordingly.
2279 ac_fn_c_check_member ()
2280 {
2281   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2283 $as_echo_n "checking for $2.$3... " >&6; }
2284 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2285   $as_echo_n "(cached) " >&6
2286 else
2287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h.  */
2289 $5
2290 int
2291 main ()
2292 {
2293 static $2 ac_aggr;
2294 if (ac_aggr.$3)
2295 return 0;
2296   ;
2297   return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301   eval "$4=yes"
2302 else
2303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h.  */
2305 $5
2306 int
2307 main ()
2308 {
2309 static $2 ac_aggr;
2310 if (sizeof ac_aggr.$3)
2311 return 0;
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317   eval "$4=yes"
2318 else
2319   eval "$4=no"
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 fi
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 fi
2325 eval ac_res=\$$4
2326                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 $as_echo "$ac_res" >&6; }
2328   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2329
2330 } # ac_fn_c_check_member
2331
2332 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2333 # -------------------------------------------
2334 # Tests whether TYPE exists after having included INCLUDES, setting cache
2335 # variable VAR accordingly.
2336 ac_fn_c_check_type ()
2337 {
2338   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2342   $as_echo_n "(cached) " >&6
2343 else
2344   eval "$3=no"
2345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h.  */
2347 $4
2348 int
2349 main ()
2350 {
2351 if (sizeof ($2))
2352          return 0;
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 if ac_fn_c_try_compile "$LINENO"; then :
2358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h.  */
2360 $4
2361 int
2362 main ()
2363 {
2364 if (sizeof (($2)))
2365             return 0;
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 if ac_fn_c_try_compile "$LINENO"; then :
2371
2372 else
2373   eval "$3=yes"
2374 fi
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 fi
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 fi
2379 eval ac_res=\$$3
2380                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2383
2384 } # ac_fn_c_check_type
2385 cat >config.log <<_ACEOF
2386 This file contains any messages produced by compilers while
2387 running configure, to aid debugging if configure makes a mistake.
2388
2389 It was created by $as_me, which was
2390 generated by GNU Autoconf 2.64.  Invocation command line was
2391
2392   $ $0 $@
2393
2394 _ACEOF
2395 exec 5>>config.log
2396 {
2397 cat <<_ASUNAME
2398 ## --------- ##
2399 ## Platform. ##
2400 ## --------- ##
2401
2402 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2403 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2404 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2405 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2406 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2407
2408 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2409 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2410
2411 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2412 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2413 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2414 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2415 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2416 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2417 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2418
2419 _ASUNAME
2420
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424   IFS=$as_save_IFS
2425   test -z "$as_dir" && as_dir=.
2426     $as_echo "PATH: $as_dir"
2427   done
2428 IFS=$as_save_IFS
2429
2430 } >&5
2431
2432 cat >&5 <<_ACEOF
2433
2434
2435 ## ----------- ##
2436 ## Core tests. ##
2437 ## ----------- ##
2438
2439 _ACEOF
2440
2441
2442 # Keep a trace of the command line.
2443 # Strip out --no-create and --no-recursion so they do not pile up.
2444 # Strip out --silent because we don't want to record it for future runs.
2445 # Also quote any args containing shell meta-characters.
2446 # Make two passes to allow for proper duplicate-argument suppression.
2447 ac_configure_args=
2448 ac_configure_args0=
2449 ac_configure_args1=
2450 ac_must_keep_next=false
2451 for ac_pass in 1 2
2452 do
2453   for ac_arg
2454   do
2455     case $ac_arg in
2456     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2457     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2458     | -silent | --silent | --silen | --sile | --sil)
2459       continue ;;
2460     *\'*)
2461       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2462     esac
2463     case $ac_pass in
2464     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2465     2)
2466       as_fn_append ac_configure_args1 " '$ac_arg'"
2467       if test $ac_must_keep_next = true; then
2468         ac_must_keep_next=false # Got value, back to normal.
2469       else
2470         case $ac_arg in
2471           *=* | --config-cache | -C | -disable-* | --disable-* \
2472           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2473           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2474           | -with-* | --with-* | -without-* | --without-* | --x)
2475             case "$ac_configure_args0 " in
2476               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2477             esac
2478             ;;
2479           -* ) ac_must_keep_next=true ;;
2480         esac
2481       fi
2482       as_fn_append ac_configure_args " '$ac_arg'"
2483       ;;
2484     esac
2485   done
2486 done
2487 { ac_configure_args0=; unset ac_configure_args0;}
2488 { ac_configure_args1=; unset ac_configure_args1;}
2489
2490 # When interrupted or exit'd, cleanup temporary files, and complete
2491 # config.log.  We remove comments because anyway the quotes in there
2492 # would cause problems or look ugly.
2493 # WARNING: Use '\'' to represent an apostrophe within the trap.
2494 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2495 trap 'exit_status=$?
2496   # Save into config.log some information that might help in debugging.
2497   {
2498     echo
2499
2500     cat <<\_ASBOX
2501 ## ---------------- ##
2502 ## Cache variables. ##
2503 ## ---------------- ##
2504 _ASBOX
2505     echo
2506     # The following way of writing the cache mishandles newlines in values,
2507 (
2508   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2509     eval ac_val=\$$ac_var
2510     case $ac_val in #(
2511     *${as_nl}*)
2512       case $ac_var in #(
2513       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2514 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2515       esac
2516       case $ac_var in #(
2517       _ | IFS | as_nl) ;; #(
2518       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2519       *) { eval $ac_var=; unset $ac_var;} ;;
2520       esac ;;
2521     esac
2522   done
2523   (set) 2>&1 |
2524     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2525     *${as_nl}ac_space=\ *)
2526       sed -n \
2527         "s/'\''/'\''\\\\'\'''\''/g;
2528           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2529       ;; #(
2530     *)
2531       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2532       ;;
2533     esac |
2534     sort
2535 )
2536     echo
2537
2538     cat <<\_ASBOX
2539 ## ----------------- ##
2540 ## Output variables. ##
2541 ## ----------------- ##
2542 _ASBOX
2543     echo
2544     for ac_var in $ac_subst_vars
2545     do
2546       eval ac_val=\$$ac_var
2547       case $ac_val in
2548       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2549       esac
2550       $as_echo "$ac_var='\''$ac_val'\''"
2551     done | sort
2552     echo
2553
2554     if test -n "$ac_subst_files"; then
2555       cat <<\_ASBOX
2556 ## ------------------- ##
2557 ## File substitutions. ##
2558 ## ------------------- ##
2559 _ASBOX
2560       echo
2561       for ac_var in $ac_subst_files
2562       do
2563         eval ac_val=\$$ac_var
2564         case $ac_val in
2565         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2566         esac
2567         $as_echo "$ac_var='\''$ac_val'\''"
2568       done | sort
2569       echo
2570     fi
2571
2572     if test -s confdefs.h; then
2573       cat <<\_ASBOX
2574 ## ----------- ##
2575 ## confdefs.h. ##
2576 ## ----------- ##
2577 _ASBOX
2578       echo
2579       cat confdefs.h
2580       echo
2581     fi
2582     test "$ac_signal" != 0 &&
2583       $as_echo "$as_me: caught signal $ac_signal"
2584     $as_echo "$as_me: exit $exit_status"
2585   } >&5
2586   rm -f core *.core core.conftest.* &&
2587     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2588     exit $exit_status
2589 ' 0
2590 for ac_signal in 1 2 13 15; do
2591   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2592 done
2593 ac_signal=0
2594
2595 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2596 rm -f -r conftest* confdefs.h
2597
2598 $as_echo "/* confdefs.h */" > confdefs.h
2599
2600 # Predefined preprocessor variables.
2601
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_NAME "$PACKAGE_NAME"
2604 _ACEOF
2605
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2608 _ACEOF
2609
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2612 _ACEOF
2613
2614 cat >>confdefs.h <<_ACEOF
2615 #define PACKAGE_STRING "$PACKAGE_STRING"
2616 _ACEOF
2617
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2620 _ACEOF
2621
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE_URL "$PACKAGE_URL"
2624 _ACEOF
2625
2626
2627 # Let the site file select an alternate cache file if it wants to.
2628 # Prefer an explicitly selected file to automatically selected ones.
2629 ac_site_file1=NONE
2630 ac_site_file2=NONE
2631 if test -n "$CONFIG_SITE"; then
2632   ac_site_file1=$CONFIG_SITE
2633 elif test "x$prefix" != xNONE; then
2634   ac_site_file1=$prefix/share/config.site
2635   ac_site_file2=$prefix/etc/config.site
2636 else
2637   ac_site_file1=$ac_default_prefix/share/config.site
2638   ac_site_file2=$ac_default_prefix/etc/config.site
2639 fi
2640 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2641 do
2642   test "x$ac_site_file" = xNONE && continue
2643   if test -r "$ac_site_file"; then
2644     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2645 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2646     sed 's/^/| /' "$ac_site_file" >&5
2647     . "$ac_site_file"
2648   fi
2649 done
2650
2651 if test -r "$cache_file"; then
2652   # Some versions of bash will fail to source /dev/null (special
2653   # files actually), so we avoid doing that.
2654   if test -f "$cache_file"; then
2655     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2656 $as_echo "$as_me: loading cache $cache_file" >&6;}
2657     case $cache_file in
2658       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2659       *)                      . "./$cache_file";;
2660     esac
2661   fi
2662 else
2663   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2664 $as_echo "$as_me: creating cache $cache_file" >&6;}
2665   >$cache_file
2666 fi
2667
2668 gl_header_list="$gl_header_list stdint.h"
2669 gl_header_list="$gl_header_list wchar.h"
2670 gl_header_list="$gl_header_list string.h"
2671 # Check that the precious variables saved in the cache have kept the same
2672 # value.
2673 ac_cache_corrupted=false
2674 for ac_var in $ac_precious_vars; do
2675   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2676   eval ac_new_set=\$ac_env_${ac_var}_set
2677   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2678   eval ac_new_val=\$ac_env_${ac_var}_value
2679   case $ac_old_set,$ac_new_set in
2680     set,)
2681       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2682 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2683       ac_cache_corrupted=: ;;
2684     ,set)
2685       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2686 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2687       ac_cache_corrupted=: ;;
2688     ,);;
2689     *)
2690       if test "x$ac_old_val" != "x$ac_new_val"; then
2691         # differences in whitespace do not lead to failure.
2692         ac_old_val_w=`echo x $ac_old_val`
2693         ac_new_val_w=`echo x $ac_new_val`
2694         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2695           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2696 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2697           ac_cache_corrupted=:
2698         else
2699           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2700 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2701           eval $ac_var=\$ac_old_val
2702         fi
2703         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2704 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2705         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2706 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2707       fi;;
2708   esac
2709   # Pass precious variables to config.status.
2710   if test "$ac_new_set" = set; then
2711     case $ac_new_val in
2712     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2713     *) ac_arg=$ac_var=$ac_new_val ;;
2714     esac
2715     case " $ac_configure_args " in
2716       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2717       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2718     esac
2719   fi
2720 done
2721 if $ac_cache_corrupted; then
2722   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2725 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2726   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2727 fi
2728 ## -------------------- ##
2729 ## Main body of script. ##
2730 ## -------------------- ##
2731
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738
2739
2740
2741
2742 ac_config_headers="$ac_config_headers config.h:config.in"
2743
2744
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2746 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2747     # Check whether --enable-maintainer-mode was given.
2748 if test "${enable_maintainer_mode+set}" = set; then :
2749   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2750 else
2751   USE_MAINTAINER_MODE=no
2752 fi
2753
2754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2755 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2756    if test $USE_MAINTAINER_MODE = yes; then
2757   MAINTAINER_MODE_TRUE=
2758   MAINTAINER_MODE_FALSE='#'
2759 else
2760   MAINTAINER_MODE_TRUE='#'
2761   MAINTAINER_MODE_FALSE=
2762 fi
2763
2764   MAINT=$MAINTAINER_MODE_TRUE
2765
2766
2767
2768 ac_ext=c
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773 if test -n "$ac_tool_prefix"; then
2774   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2775 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if test "${ac_cv_prog_CC+set}" = set; then :
2779   $as_echo_n "(cached) " >&6
2780 else
2781   if test -n "$CC"; then
2782   ac_cv_prog_CC="$CC" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787   IFS=$as_save_IFS
2788   test -z "$as_dir" && as_dir=.
2789     for ac_exec_ext in '' $ac_executable_extensions; do
2790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793     break 2
2794   fi
2795 done
2796   done
2797 IFS=$as_save_IFS
2798
2799 fi
2800 fi
2801 CC=$ac_cv_prog_CC
2802 if test -n "$CC"; then
2803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2804 $as_echo "$CC" >&6; }
2805 else
2806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2808 fi
2809
2810
2811 fi
2812 if test -z "$ac_cv_prog_CC"; then
2813   ac_ct_CC=$CC
2814   # Extract the first word of "gcc", so it can be a program name with args.
2815 set dummy gcc; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2819   $as_echo_n "(cached) " >&6
2820 else
2821   if test -n "$ac_ct_CC"; then
2822   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829     for ac_exec_ext in '' $ac_executable_extensions; do
2830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831     ac_cv_prog_ac_ct_CC="gcc"
2832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833     break 2
2834   fi
2835 done
2836   done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2842 if test -n "$ac_ct_CC"; then
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2844 $as_echo "$ac_ct_CC" >&6; }
2845 else
2846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2849
2850   if test "x$ac_ct_CC" = x; then
2851     CC=""
2852   else
2853     case $cross_compiling:$ac_tool_warned in
2854 yes:)
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857 ac_tool_warned=yes ;;
2858 esac
2859     CC=$ac_ct_CC
2860   fi
2861 else
2862   CC="$ac_cv_prog_CC"
2863 fi
2864
2865 if test -z "$CC"; then
2866           if test -n "$ac_tool_prefix"; then
2867     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}cc; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if test "${ac_cv_prog_CC+set}" = set; then :
2872   $as_echo_n "(cached) " >&6
2873 else
2874   if test -n "$CC"; then
2875   ac_cv_prog_CC="$CC" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880   IFS=$as_save_IFS
2881   test -z "$as_dir" && as_dir=.
2882     for ac_exec_ext in '' $ac_executable_extensions; do
2883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884     ac_cv_prog_CC="${ac_tool_prefix}cc"
2885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886     break 2
2887   fi
2888 done
2889   done
2890 IFS=$as_save_IFS
2891
2892 fi
2893 fi
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897 $as_echo "$CC" >&6; }
2898 else
2899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2901 fi
2902
2903
2904   fi
2905 fi
2906 if test -z "$CC"; then
2907   # Extract the first word of "cc", so it can be a program name with args.
2908 set dummy cc; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if test "${ac_cv_prog_CC+set}" = set; then :
2912   $as_echo_n "(cached) " >&6
2913 else
2914   if test -n "$CC"; then
2915   ac_cv_prog_CC="$CC" # Let the user override the test.
2916 else
2917   ac_prog_rejected=no
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921   IFS=$as_save_IFS
2922   test -z "$as_dir" && as_dir=.
2923     for ac_exec_ext in '' $ac_executable_extensions; do
2924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2926        ac_prog_rejected=yes
2927        continue
2928      fi
2929     ac_cv_prog_CC="cc"
2930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931     break 2
2932   fi
2933 done
2934   done
2935 IFS=$as_save_IFS
2936
2937 if test $ac_prog_rejected = yes; then
2938   # We found a bogon in the path, so make sure we never use it.
2939   set dummy $ac_cv_prog_CC
2940   shift
2941   if test $# != 0; then
2942     # We chose a different compiler from the bogus one.
2943     # However, it has the same basename, so the bogon will be chosen
2944     # first if we set CC to just the basename; use the full file name.
2945     shift
2946     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2947   fi
2948 fi
2949 fi
2950 fi
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954 $as_echo "$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 fi
2962 if test -z "$CC"; then
2963   if test -n "$ac_tool_prefix"; then
2964   for ac_prog in cl.exe
2965   do
2966     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2967 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then :
2971   $as_echo_n "(cached) " >&6
2972 else
2973   if test -n "$CC"; then
2974   ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979   IFS=$as_save_IFS
2980   test -z "$as_dir" && as_dir=.
2981     for ac_exec_ext in '' $ac_executable_extensions; do
2982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985     break 2
2986   fi
2987 done
2988   done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2997 else
2998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002
3003     test -n "$CC" && break
3004   done
3005 fi
3006 if test -z "$CC"; then
3007   ac_ct_CC=$CC
3008   for ac_prog in cl.exe
3009 do
3010   # Extract the first word of "$ac_prog", so it can be a program name with args.
3011 set dummy $ac_prog; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3015   $as_echo_n "(cached) " >&6
3016 else
3017   if test -n "$ac_ct_CC"; then
3018   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023   IFS=$as_save_IFS
3024   test -z "$as_dir" && as_dir=.
3025     for ac_exec_ext in '' $ac_executable_extensions; do
3026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027     ac_cv_prog_ac_ct_CC="$ac_prog"
3028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029     break 2
3030   fi
3031 done
3032   done
3033 IFS=$as_save_IFS
3034
3035 fi
3036 fi
3037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3038 if test -n "$ac_ct_CC"; then
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3040 $as_echo "$ac_ct_CC" >&6; }
3041 else
3042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044 fi
3045
3046
3047   test -n "$ac_ct_CC" && break
3048 done
3049
3050   if test "x$ac_ct_CC" = x; then
3051     CC=""
3052   else
3053     case $cross_compiling:$ac_tool_warned in
3054 yes:)
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3057 ac_tool_warned=yes ;;
3058 esac
3059     CC=$ac_ct_CC
3060   fi
3061 fi
3062
3063 fi
3064
3065
3066 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error "no acceptable C compiler found in \$PATH
3069 See \`config.log' for more details." "$LINENO" 5; }
3070
3071 # Provide some information about the compiler.
3072 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3073 set X $ac_compile
3074 ac_compiler=$2
3075 for ac_option in --version -v -V -qversion; do
3076   { { ac_try="$ac_compiler $ac_option >&5"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3084   ac_status=$?
3085   if test -s conftest.err; then
3086     sed '10a\
3087 ... rest of stderr output deleted ...
3088          10q' conftest.err >conftest.er1
3089     cat conftest.er1 >&5
3090     rm -f conftest.er1 conftest.err
3091   fi
3092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093   test $ac_status = 0; }
3094 done
3095
3096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h.  */
3098
3099 int
3100 main ()
3101 {
3102
3103   ;
3104   return 0;
3105 }
3106 _ACEOF
3107 ac_clean_files_save=$ac_clean_files
3108 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3109 # Try to create an executable without -o first, disregard a.out.
3110 # It will help us diagnose broken compilers, and finding out an intuition
3111 # of exeext.
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3113 $as_echo_n "checking for C compiler default output file name... " >&6; }
3114 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3115
3116 # The possible output files:
3117 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3118
3119 ac_rmfiles=
3120 for ac_file in $ac_files
3121 do
3122   case $ac_file in
3123     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3124     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3125   esac
3126 done
3127 rm -f $ac_rmfiles
3128
3129 if { { ac_try="$ac_link_default"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3135 $as_echo "$ac_try_echo"; } >&5
3136   (eval "$ac_link_default") 2>&5
3137   ac_status=$?
3138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139   test $ac_status = 0; }; then :
3140   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3141 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3142 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3143 # so that the user can short-circuit this test for compilers unknown to
3144 # Autoconf.
3145 for ac_file in $ac_files ''
3146 do
3147   test -f "$ac_file" || continue
3148   case $ac_file in
3149     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3150         ;;
3151     [ab].out )
3152         # We found the default executable, but exeext='' is most
3153         # certainly right.
3154         break;;
3155     *.* )
3156         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3157         then :; else
3158            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3159         fi
3160         # We set ac_cv_exeext here because the later test for it is not
3161         # safe: cross compilers may not add the suffix if given an `-o'
3162         # argument, so we may need to know it at that point already.
3163         # Even if this section looks crufty: it has the advantage of
3164         # actually working.
3165         break;;
3166     * )
3167         break;;
3168   esac
3169 done
3170 test "$ac_cv_exeext" = no && ac_cv_exeext=
3171
3172 else
3173   ac_file=''
3174 fi
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3176 $as_echo "$ac_file" >&6; }
3177 if test -z "$ac_file"; then :
3178   $as_echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 { as_fn_set_status 77
3184 as_fn_error "C compiler cannot create executables
3185 See \`config.log' for more details." "$LINENO" 5; }; }
3186 fi
3187 ac_exeext=$ac_cv_exeext
3188
3189 # Check that the compiler produces executables we can run.  If not, either
3190 # the compiler is broken, or we cross compile.
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3192 $as_echo_n "checking whether the C compiler works... " >&6; }
3193 # If not cross compiling, check that we can run a simple program.
3194 if test "$cross_compiling" != yes; then
3195   if { ac_try='./$ac_file'
3196   { { case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202   (eval "$ac_try") 2>&5
3203   ac_status=$?
3204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205   test $ac_status = 0; }; }; then
3206     cross_compiling=no
3207   else
3208     if test "$cross_compiling" = maybe; then
3209         cross_compiling=yes
3210     else
3211         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 as_fn_error "cannot run C compiled programs.
3214 If you meant to cross compile, use \`--host'.
3215 See \`config.log' for more details." "$LINENO" 5; }
3216     fi
3217   fi
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3221
3222 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3223 ac_clean_files=$ac_clean_files_save
3224 # Check that the compiler produces executables we can run.  If not, either
3225 # the compiler is broken, or we cross compile.
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3227 $as_echo_n "checking whether we are cross compiling... " >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3229 $as_echo "$cross_compiling" >&6; }
3230
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3232 $as_echo_n "checking for suffix of executables... " >&6; }
3233 if { { ac_try="$ac_link"
3234 case "(($ac_try" in
3235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236   *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240   (eval "$ac_link") 2>&5
3241   ac_status=$?
3242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243   test $ac_status = 0; }; then :
3244   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3245 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3246 # work properly (i.e., refer to `conftest.exe'), while it won't with
3247 # `rm'.
3248 for ac_file in conftest.exe conftest conftest.*; do
3249   test -f "$ac_file" || continue
3250   case $ac_file in
3251     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3252     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3253           break;;
3254     * ) break;;
3255   esac
3256 done
3257 else
3258   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error "cannot compute suffix of executables: cannot compile and link
3261 See \`config.log' for more details." "$LINENO" 5; }
3262 fi
3263 rm -f conftest$ac_cv_exeext
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3265 $as_echo "$ac_cv_exeext" >&6; }
3266
3267 rm -f conftest.$ac_ext
3268 EXEEXT=$ac_cv_exeext
3269 ac_exeext=$EXEEXT
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3271 $as_echo_n "checking for suffix of object files... " >&6; }
3272 if test "${ac_cv_objext+set}" = set; then :
3273   $as_echo_n "(cached) " >&6
3274 else
3275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h.  */
3277
3278 int
3279 main ()
3280 {
3281
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 rm -f conftest.o conftest.obj
3287 if { { ac_try="$ac_compile"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294   (eval "$ac_compile") 2>&5
3295   ac_status=$?
3296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297   test $ac_status = 0; }; then :
3298   for ac_file in conftest.o conftest.obj conftest.*; do
3299   test -f "$ac_file" || continue;
3300   case $ac_file in
3301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3302     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3303        break;;
3304   esac
3305 done
3306 else
3307   $as_echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error "cannot compute suffix of object files: cannot compile
3313 See \`config.log' for more details." "$LINENO" 5; }
3314 fi
3315 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3318 $as_echo "$ac_cv_objext" >&6; }
3319 OBJEXT=$ac_cv_objext
3320 ac_objext=$OBJEXT
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3322 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3323 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3324   $as_echo_n "(cached) " >&6
3325 else
3326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h.  */
3328
3329 int
3330 main ()
3331 {
3332 #ifndef __GNUC__
3333        choke me
3334 #endif
3335
3336   ;
3337   return 0;
3338 }
3339 _ACEOF
3340 if ac_fn_c_try_compile "$LINENO"; then :
3341   ac_compiler_gnu=yes
3342 else
3343   ac_compiler_gnu=no
3344 fi
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3347
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3350 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3351 if test $ac_compiler_gnu = yes; then
3352   GCC=yes
3353 else
3354   GCC=
3355 fi
3356 ac_test_CFLAGS=${CFLAGS+set}
3357 ac_save_CFLAGS=$CFLAGS
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3359 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3360 if test "${ac_cv_prog_cc_g+set}" = set; then :
3361   $as_echo_n "(cached) " >&6
3362 else
3363   ac_save_c_werror_flag=$ac_c_werror_flag
3364    ac_c_werror_flag=yes
3365    ac_cv_prog_cc_g=no
3366    CFLAGS="-g"
3367    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h.  */
3369
3370 int
3371 main ()
3372 {
3373
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 if ac_fn_c_try_compile "$LINENO"; then :
3379   ac_cv_prog_cc_g=yes
3380 else
3381   CFLAGS=""
3382       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h.  */
3384
3385 int
3386 main ()
3387 {
3388
3389   ;
3390   return 0;
3391 }
3392 _ACEOF
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394
3395 else
3396   ac_c_werror_flag=$ac_save_c_werror_flag
3397          CFLAGS="-g"
3398          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h.  */
3400
3401 int
3402 main ()
3403 {
3404
3405   ;
3406   return 0;
3407 }
3408 _ACEOF
3409 if ac_fn_c_try_compile "$LINENO"; then :
3410   ac_cv_prog_cc_g=yes
3411 fi
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 fi
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 fi
3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417    ac_c_werror_flag=$ac_save_c_werror_flag
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3420 $as_echo "$ac_cv_prog_cc_g" >&6; }
3421 if test "$ac_test_CFLAGS" = set; then
3422   CFLAGS=$ac_save_CFLAGS
3423 elif test $ac_cv_prog_cc_g = yes; then
3424   if test "$GCC" = yes; then
3425     CFLAGS="-g -O2"
3426   else
3427     CFLAGS="-g"
3428   fi
3429 else
3430   if test "$GCC" = yes; then
3431     CFLAGS="-O2"
3432   else
3433     CFLAGS=
3434   fi
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3437 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3438 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3439   $as_echo_n "(cached) " >&6
3440 else
3441   ac_cv_prog_cc_c89=no
3442 ac_save_CC=$CC
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h.  */
3445 #include <stdarg.h>
3446 #include <stdio.h>
3447 #include <sys/types.h>
3448 #include <sys/stat.h>
3449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3450 struct buf { int x; };
3451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3452 static char *e (p, i)
3453      char **p;
3454      int i;
3455 {
3456   return p[i];
3457 }
3458 static char *f (char * (*g) (char **, int), char **p, ...)
3459 {
3460   char *s;
3461   va_list v;
3462   va_start (v,p);
3463   s = g (p, va_arg (v,int));
3464   va_end (v);
3465   return s;
3466 }
3467
3468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3469    function prototypes and stuff, but not '\xHH' hex character constants.
3470    These don't provoke an error unfortunately, instead are silently treated
3471    as 'x'.  The following induces an error, until -std is added to get
3472    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3473    array size at least.  It's necessary to write '\x00'==0 to get something
3474    that's true only with -std.  */
3475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3476
3477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3478    inside strings and character constants.  */
3479 #define FOO(x) 'x'
3480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3481
3482 int test (int i, double x);
3483 struct s1 {int (*f) (int a);};
3484 struct s2 {int (*f) (double a);};
3485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3486 int argc;
3487 char **argv;
3488 int
3489 main ()
3490 {
3491 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3497         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3498 do
3499   CC="$ac_save_CC $ac_arg"
3500   if ac_fn_c_try_compile "$LINENO"; then :
3501   ac_cv_prog_cc_c89=$ac_arg
3502 fi
3503 rm -f core conftest.err conftest.$ac_objext
3504   test "x$ac_cv_prog_cc_c89" != "xno" && break
3505 done
3506 rm -f conftest.$ac_ext
3507 CC=$ac_save_CC
3508
3509 fi
3510 # AC_CACHE_VAL
3511 case "x$ac_cv_prog_cc_c89" in
3512   x)
3513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3514 $as_echo "none needed" >&6; } ;;
3515   xno)
3516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3517 $as_echo "unsupported" >&6; } ;;
3518   *)
3519     CC="$CC $ac_cv_prog_cc_c89"
3520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3521 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3522 esac
3523 if test "x$ac_cv_prog_cc_c89" != xno; then :
3524
3525 fi
3526
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3540 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3541 # On Suns, sometimes $CPP names a directory.
3542 if test -n "$CPP" && test -d "$CPP"; then
3543   CPP=
3544 fi
3545 if test -z "$CPP"; then
3546   if test "${ac_cv_prog_CPP+set}" = set; then :
3547   $as_echo_n "(cached) " >&6
3548 else
3549       # Double quotes because CPP needs to be expanded
3550     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3551     do
3552       ac_preproc_ok=false
3553 for ac_c_preproc_warn_flag in '' yes
3554 do
3555   # Use a header file that comes with gcc, so configuring glibc
3556   # with a fresh cross-compiler works.
3557   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3558   # <limits.h> exists even on freestanding compilers.
3559   # On the NeXT, cc -E runs the code through the compiler's parser,
3560   # not just through cpp. "Syntax error" is here to catch this case.
3561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h.  */
3563 #ifdef __STDC__
3564 # include <limits.h>
3565 #else
3566 # include <assert.h>
3567 #endif
3568                      Syntax error
3569 _ACEOF
3570 if ac_fn_c_try_cpp "$LINENO"; then :
3571
3572 else
3573   # Broken: fails on valid input.
3574 continue
3575 fi
3576 rm -f conftest.err conftest.$ac_ext
3577
3578   # OK, works on sane cases.  Now check whether nonexistent headers
3579   # can be detected and how.
3580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h.  */
3582 #include <ac_nonexistent.h>
3583 _ACEOF
3584 if ac_fn_c_try_cpp "$LINENO"; then :
3585   # Broken: success on invalid input.
3586 continue
3587 else
3588   # Passes both tests.
3589 ac_preproc_ok=:
3590 break
3591 fi
3592 rm -f conftest.err conftest.$ac_ext
3593
3594 done
3595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3596 rm -f conftest.err conftest.$ac_ext
3597 if $ac_preproc_ok; then :
3598   break
3599 fi
3600
3601     done
3602     ac_cv_prog_CPP=$CPP
3603
3604 fi
3605   CPP=$ac_cv_prog_CPP
3606 else
3607   ac_cv_prog_CPP=$CPP
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3610 $as_echo "$CPP" >&6; }
3611 ac_preproc_ok=false
3612 for ac_c_preproc_warn_flag in '' yes
3613 do
3614   # Use a header file that comes with gcc, so configuring glibc
3615   # with a fresh cross-compiler works.
3616   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3617   # <limits.h> exists even on freestanding compilers.
3618   # On the NeXT, cc -E runs the code through the compiler's parser,
3619   # not just through cpp. "Syntax error" is here to catch this case.
3620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h.  */
3622 #ifdef __STDC__
3623 # include <limits.h>
3624 #else
3625 # include <assert.h>
3626 #endif
3627                      Syntax error
3628 _ACEOF
3629 if ac_fn_c_try_cpp "$LINENO"; then :
3630
3631 else
3632   # Broken: fails on valid input.
3633 continue
3634 fi
3635 rm -f conftest.err conftest.$ac_ext
3636
3637   # OK, works on sane cases.  Now check whether nonexistent headers
3638   # can be detected and how.
3639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h.  */
3641 #include <ac_nonexistent.h>
3642 _ACEOF
3643 if ac_fn_c_try_cpp "$LINENO"; then :
3644   # Broken: success on invalid input.
3645 continue
3646 else
3647   # Passes both tests.
3648 ac_preproc_ok=:
3649 break
3650 fi
3651 rm -f conftest.err conftest.$ac_ext
3652
3653 done
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.err conftest.$ac_ext
3656 if $ac_preproc_ok; then :
3657
3658 else
3659   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3662 See \`config.log' for more details." "$LINENO" 5; }
3663 fi
3664
3665 ac_ext=c
3666 ac_cpp='$CPP $CPPFLAGS'
3667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670
3671
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3673 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3674 if test "${ac_cv_path_GREP+set}" = set; then :
3675   $as_echo_n "(cached) " >&6
3676 else
3677   if test -z "$GREP"; then
3678   ac_path_GREP_found=false
3679   # Loop through the user's path and test for each of PROGNAME-LIST
3680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685     for ac_prog in grep ggrep; do
3686     for ac_exec_ext in '' $ac_executable_extensions; do
3687       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3688       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3689 # Check for GNU ac_path_GREP and select it if it is found.
3690   # Check for GNU $ac_path_GREP
3691 case `"$ac_path_GREP" --version 2>&1` in
3692 *GNU*)
3693   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3694 *)
3695   ac_count=0
3696   $as_echo_n 0123456789 >"conftest.in"
3697   while :
3698   do
3699     cat "conftest.in" "conftest.in" >"conftest.tmp"
3700     mv "conftest.tmp" "conftest.in"
3701     cp "conftest.in" "conftest.nl"
3702     $as_echo 'GREP' >> "conftest.nl"
3703     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3704     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3705     as_fn_arith $ac_count + 1 && ac_count=$as_val
3706     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3707       # Best one so far, save it but keep looking for a better one
3708       ac_cv_path_GREP="$ac_path_GREP"
3709       ac_path_GREP_max=$ac_count
3710     fi
3711     # 10*(2^10) chars as input seems more than enough
3712     test $ac_count -gt 10 && break
3713   done
3714   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715 esac
3716
3717       $ac_path_GREP_found && break 3
3718     done
3719   done
3720   done
3721 IFS=$as_save_IFS
3722   if test -z "$ac_cv_path_GREP"; then
3723     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3724   fi
3725 else
3726   ac_cv_path_GREP=$GREP
3727 fi
3728
3729 fi
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3731 $as_echo "$ac_cv_path_GREP" >&6; }
3732  GREP="$ac_cv_path_GREP"
3733
3734
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3736 $as_echo_n "checking for egrep... " >&6; }
3737 if test "${ac_cv_path_EGREP+set}" = set; then :
3738   $as_echo_n "(cached) " >&6
3739 else
3740   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3741    then ac_cv_path_EGREP="$GREP -E"
3742    else
3743      if test -z "$EGREP"; then
3744   ac_path_EGREP_found=false
3745   # Loop through the user's path and test for each of PROGNAME-LIST
3746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748 do
3749   IFS=$as_save_IFS
3750   test -z "$as_dir" && as_dir=.
3751     for ac_prog in egrep; do
3752     for ac_exec_ext in '' $ac_executable_extensions; do
3753       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3755 # Check for GNU ac_path_EGREP and select it if it is found.
3756   # Check for GNU $ac_path_EGREP
3757 case `"$ac_path_EGREP" --version 2>&1` in
3758 *GNU*)
3759   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760 *)
3761   ac_count=0
3762   $as_echo_n 0123456789 >"conftest.in"
3763   while :
3764   do
3765     cat "conftest.in" "conftest.in" >"conftest.tmp"
3766     mv "conftest.tmp" "conftest.in"
3767     cp "conftest.in" "conftest.nl"
3768     $as_echo 'EGREP' >> "conftest.nl"
3769     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771     as_fn_arith $ac_count + 1 && ac_count=$as_val
3772     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773       # Best one so far, save it but keep looking for a better one
3774       ac_cv_path_EGREP="$ac_path_EGREP"
3775       ac_path_EGREP_max=$ac_count
3776     fi
3777     # 10*(2^10) chars as input seems more than enough
3778     test $ac_count -gt 10 && break
3779   done
3780   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781 esac
3782
3783       $ac_path_EGREP_found && break 3
3784     done
3785   done
3786   done
3787 IFS=$as_save_IFS
3788   if test -z "$ac_cv_path_EGREP"; then
3789     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3790   fi
3791 else
3792   ac_cv_path_EGREP=$EGREP
3793 fi
3794
3795    fi
3796 fi
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3798 $as_echo "$ac_cv_path_EGREP" >&6; }
3799  EGREP="$ac_cv_path_EGREP"
3800
3801
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3803 $as_echo_n "checking for ANSI C header files... " >&6; }
3804 if test "${ac_cv_header_stdc+set}" = set; then :
3805   $as_echo_n "(cached) " >&6
3806 else
3807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h.  */
3809 #include <stdlib.h>
3810 #include <stdarg.h>
3811 #include <string.h>
3812 #include <float.h>
3813
3814 int
3815 main ()
3816 {
3817
3818   ;
3819   return 0;
3820 }
3821 _ACEOF
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823   ac_cv_header_stdc=yes
3824 else
3825   ac_cv_header_stdc=no
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828
3829 if test $ac_cv_header_stdc = yes; then
3830   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h.  */
3833 #include <string.h>
3834
3835 _ACEOF
3836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3837   $EGREP "memchr" >/dev/null 2>&1; then :
3838
3839 else
3840   ac_cv_header_stdc=no
3841 fi
3842 rm -f conftest*
3843
3844 fi
3845
3846 if test $ac_cv_header_stdc = yes; then
3847   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h.  */
3850 #include <stdlib.h>
3851
3852 _ACEOF
3853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3854   $EGREP "free" >/dev/null 2>&1; then :
3855
3856 else
3857   ac_cv_header_stdc=no
3858 fi
3859 rm -f conftest*
3860
3861 fi
3862
3863 if test $ac_cv_header_stdc = yes; then
3864   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3865   if test "$cross_compiling" = yes; then :
3866   :
3867 else
3868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h.  */
3870 #include <ctype.h>
3871 #include <stdlib.h>
3872 #if ((' ' & 0x0FF) == 0x020)
3873 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3874 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3875 #else
3876 # define ISLOWER(c) \
3877                    (('a' <= (c) && (c) <= 'i') \
3878                      || ('j' <= (c) && (c) <= 'r') \
3879                      || ('s' <= (c) && (c) <= 'z'))
3880 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3881 #endif
3882
3883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3884 int
3885 main ()
3886 {
3887   int i;
3888   for (i = 0; i < 256; i++)
3889     if (XOR (islower (i), ISLOWER (i))
3890         || toupper (i) != TOUPPER (i))
3891       return 2;
3892   return 0;
3893 }
3894 _ACEOF
3895 if ac_fn_c_try_run "$LINENO"; then :
3896
3897 else
3898   ac_cv_header_stdc=no
3899 fi
3900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3901   conftest.$ac_objext conftest.beam conftest.$ac_ext
3902 fi
3903
3904 fi
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3907 $as_echo "$ac_cv_header_stdc" >&6; }
3908 if test $ac_cv_header_stdc = yes; then
3909
3910 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3911
3912 fi
3913
3914 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3915 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3916                   inttypes.h stdint.h unistd.h
3917 do :
3918   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3919 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3920 "
3921 eval as_val=\$$as_ac_Header
3922    if test "x$as_val" = x""yes; then :
3923   cat >>confdefs.h <<_ACEOF
3924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3925 _ACEOF
3926
3927 fi
3928
3929 done
3930
3931
3932
3933   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3934 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3935   MINIX=yes
3936 else
3937   MINIX=
3938 fi
3939
3940
3941   if test "$MINIX" = yes; then
3942
3943 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3944
3945
3946 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3947
3948
3949 $as_echo "#define _MINIX 1" >>confdefs.h
3950
3951   fi
3952
3953
3954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3955 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3956 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3957   $as_echo_n "(cached) " >&6
3958 else
3959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h.  */
3961
3962 #         define __EXTENSIONS__ 1
3963           $ac_includes_default
3964 int
3965 main ()
3966 {
3967
3968   ;
3969   return 0;
3970 }
3971 _ACEOF
3972 if ac_fn_c_try_compile "$LINENO"; then :
3973   ac_cv_safe_to_define___extensions__=yes
3974 else
3975   ac_cv_safe_to_define___extensions__=no
3976 fi
3977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3980 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3981   test $ac_cv_safe_to_define___extensions__ = yes &&
3982     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3983
3984   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3985
3986   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3987
3988   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3989
3990   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3991
3992
3993 if test -n "$ac_tool_prefix"; then
3994   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3995 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997 $as_echo_n "checking for $ac_word... " >&6; }
3998 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3999   $as_echo_n "(cached) " >&6
4000 else
4001   if test -n "$RANLIB"; then
4002   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4003 else
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH
4006 do
4007   IFS=$as_save_IFS
4008   test -z "$as_dir" && as_dir=.
4009     for ac_exec_ext in '' $ac_executable_extensions; do
4010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013     break 2
4014   fi
4015 done
4016   done
4017 IFS=$as_save_IFS
4018
4019 fi
4020 fi
4021 RANLIB=$ac_cv_prog_RANLIB
4022 if test -n "$RANLIB"; then
4023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4024 $as_echo "$RANLIB" >&6; }
4025 else
4026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 $as_echo "no" >&6; }
4028 fi
4029
4030
4031 fi
4032 if test -z "$ac_cv_prog_RANLIB"; then
4033   ac_ct_RANLIB=$RANLIB
4034   # Extract the first word of "ranlib", so it can be a program name with args.
4035 set dummy ranlib; ac_word=$2
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037 $as_echo_n "checking for $ac_word... " >&6; }
4038 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4039   $as_echo_n "(cached) " >&6
4040 else
4041   if test -n "$ac_ct_RANLIB"; then
4042   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4043 else
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047   IFS=$as_save_IFS
4048   test -z "$as_dir" && as_dir=.
4049     for ac_exec_ext in '' $ac_executable_extensions; do
4050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051     ac_cv_prog_ac_ct_RANLIB="ranlib"
4052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053     break 2
4054   fi
4055 done
4056   done
4057 IFS=$as_save_IFS
4058
4059 fi
4060 fi
4061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4062 if test -n "$ac_ct_RANLIB"; then
4063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4064 $as_echo "$ac_ct_RANLIB" >&6; }
4065 else
4066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4068 fi
4069
4070   if test "x$ac_ct_RANLIB" = x; then
4071     RANLIB=":"
4072   else
4073     case $cross_compiling:$ac_tool_warned in
4074 yes:)
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4077 ac_tool_warned=yes ;;
4078 esac
4079     RANLIB=$ac_ct_RANLIB
4080   fi
4081 else
4082   RANLIB="$ac_cv_prog_RANLIB"
4083 fi
4084
4085
4086
4087
4088
4089
4090 ac_aux_dir=
4091 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4092   for ac_t in install-sh install.sh shtool; do
4093     if test -f "$ac_dir/$ac_t"; then
4094       ac_aux_dir=$ac_dir
4095       ac_install_sh="$ac_aux_dir/$ac_t -c"
4096       break 2
4097     fi
4098   done
4099 done
4100 if test -z "$ac_aux_dir"; then
4101   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4102 fi
4103
4104 # These three variables are undocumented and unsupported,
4105 # and are intended to be withdrawn in a future Autoconf release.
4106 # They can cause serious problems if a builder's source tree is in a directory
4107 # whose full name contains unusual characters.
4108 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4109 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4110 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4111
4112
4113 # Make sure we can run config.sub.
4114 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4115   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4116
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4118 $as_echo_n "checking build system type... " >&6; }
4119 if test "${ac_cv_build+set}" = set; then :
4120   $as_echo_n "(cached) " >&6
4121 else
4122   ac_build_alias=$build_alias
4123 test "x$ac_build_alias" = x &&
4124   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4125 test "x$ac_build_alias" = x &&
4126   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4127 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4128   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4129
4130 fi
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4132 $as_echo "$ac_cv_build" >&6; }
4133 case $ac_cv_build in
4134 *-*-*) ;;
4135 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4136 esac
4137 build=$ac_cv_build
4138 ac_save_IFS=$IFS; IFS='-'
4139 set x $ac_cv_build
4140 shift
4141 build_cpu=$1
4142 build_vendor=$2
4143 shift; shift
4144 # Remember, the first character of IFS is used to create $*,
4145 # except with old shells:
4146 build_os=$*
4147 IFS=$ac_save_IFS
4148 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4149
4150
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4152 $as_echo_n "checking host system type... " >&6; }
4153 if test "${ac_cv_host+set}" = set; then :
4154   $as_echo_n "(cached) " >&6
4155 else
4156   if test "x$host_alias" = x; then
4157   ac_cv_host=$ac_cv_build
4158 else
4159   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4160     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4161 fi
4162
4163 fi
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4165 $as_echo "$ac_cv_host" >&6; }
4166 case $ac_cv_host in
4167 *-*-*) ;;
4168 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4169 esac
4170 host=$ac_cv_host
4171 ac_save_IFS=$IFS; IFS='-'
4172 set x $ac_cv_host
4173 shift
4174 host_cpu=$1
4175 host_vendor=$2
4176 shift; shift
4177 # Remember, the first character of IFS is used to create $*,
4178 # except with old shells:
4179 host_os=$*
4180 IFS=$ac_save_IFS
4181 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4182
4183
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4185 $as_echo_n "checking target system type... " >&6; }
4186 if test "${ac_cv_target+set}" = set; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   if test "x$target_alias" = x; then
4190   ac_cv_target=$ac_cv_host
4191 else
4192   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4193     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4194 fi
4195
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4198 $as_echo "$ac_cv_target" >&6; }
4199 case $ac_cv_target in
4200 *-*-*) ;;
4201 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4202 esac
4203 target=$ac_cv_target
4204 ac_save_IFS=$IFS; IFS='-'
4205 set x $ac_cv_target
4206 shift
4207 target_cpu=$1
4208 target_vendor=$2
4209 shift; shift
4210 # Remember, the first character of IFS is used to create $*,
4211 # except with old shells:
4212 target_os=$*
4213 IFS=$ac_save_IFS
4214 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4215
4216
4217 # The aliases save the names the user supplied, while $host etc.
4218 # will get canonicalized.
4219 test -n "$target_alias" &&
4220   test "$program_prefix$program_suffix$program_transform_name" = \
4221     NONENONEs,x,x, &&
4222   program_prefix=${target_alias}-
4223
4224 # The tests for host and target for $enable_largefile require
4225 # canonical names.
4226
4227
4228
4229 # As the $enable_largefile decision depends on --enable-plugins we must set it
4230 # even in directories otherwise not depending on the $plugins option.
4231
4232
4233 # Check whether --enable-plugins was given.
4234 if test "${enable_plugins+set}" = set; then :
4235   enableval=$enable_plugins; case "${enableval}" in
4236   yes | "") plugins=yes ;;
4237   no) plugins=no ;;
4238   *) plugins=yes ;;
4239  esac
4240 else
4241   plugins=no
4242 fi
4243
4244
4245
4246 case "${host}" in
4247   sparc-*-solaris*|i[3-7]86-*-solaris*)
4248     # On native 32bit sparc and ia32 solaris, large-file and procfs support
4249     # are mutually exclusive; and without procfs support, the bfd/ elf module
4250     # cannot provide certain routines such as elfcore_write_prpsinfo
4251     # or elfcore_write_prstatus.  So unless the user explicitly requested
4252     # large-file support through the --enable-largefile switch, disable
4253     # large-file support in favor of procfs support.
4254     test "${target}" = "${host}" -a "x$plugins" = xno \
4255       && : ${enable_largefile="no"}
4256     ;;
4257 esac
4258
4259 # Check whether --enable-largefile was given.
4260 if test "${enable_largefile+set}" = set; then :
4261   enableval=$enable_largefile;
4262 fi
4263
4264 if test "$enable_largefile" != no; then
4265
4266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4267 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4268 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4269   $as_echo_n "(cached) " >&6
4270 else
4271   ac_cv_sys_largefile_CC=no
4272      if test "$GCC" != yes; then
4273        ac_save_CC=$CC
4274        while :; do
4275          # IRIX 6.2 and later do not support large files by default,
4276          # so use the C compiler's -n32 option if that helps.
4277          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h.  */
4279 #include <sys/types.h>
4280  /* Check that off_t can represent 2**63 - 1 correctly.
4281     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4282     since some C++ compilers masquerading as C compilers
4283     incorrectly reject 9223372036854775807.  */
4284 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4285   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4286                        && LARGE_OFF_T % 2147483647 == 1)
4287                       ? 1 : -1];
4288 int
4289 main ()
4290 {
4291
4292   ;
4293   return 0;
4294 }
4295 _ACEOF
4296          if ac_fn_c_try_compile "$LINENO"; then :
4297   break
4298 fi
4299 rm -f core conftest.err conftest.$ac_objext
4300          CC="$CC -n32"
4301          if ac_fn_c_try_compile "$LINENO"; then :
4302   ac_cv_sys_largefile_CC=' -n32'; break
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext
4305          break
4306        done
4307        CC=$ac_save_CC
4308        rm -f conftest.$ac_ext
4309     fi
4310 fi
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4312 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4313   if test "$ac_cv_sys_largefile_CC" != no; then
4314     CC=$CC$ac_cv_sys_largefile_CC
4315   fi
4316
4317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4318 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4319 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   while :; do
4323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h.  */
4325 #include <sys/types.h>
4326  /* Check that off_t can represent 2**63 - 1 correctly.
4327     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4328     since some C++ compilers masquerading as C compilers
4329     incorrectly reject 9223372036854775807.  */
4330 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4331   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4332                        && LARGE_OFF_T % 2147483647 == 1)
4333                       ? 1 : -1];
4334 int
4335 main ()
4336 {
4337
4338   ;
4339   return 0;
4340 }
4341 _ACEOF
4342 if ac_fn_c_try_compile "$LINENO"; then :
4343   ac_cv_sys_file_offset_bits=no; break
4344 fi
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h.  */
4348 #define _FILE_OFFSET_BITS 64
4349 #include <sys/types.h>
4350  /* Check that off_t can represent 2**63 - 1 correctly.
4351     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4352     since some C++ compilers masquerading as C compilers
4353     incorrectly reject 9223372036854775807.  */
4354 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4355   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4356                        && LARGE_OFF_T % 2147483647 == 1)
4357                       ? 1 : -1];
4358 int
4359 main ()
4360 {
4361
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367   ac_cv_sys_file_offset_bits=64; break
4368 fi
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370   ac_cv_sys_file_offset_bits=unknown
4371   break
4372 done
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4375 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4376 case $ac_cv_sys_file_offset_bits in #(
4377   no | unknown) ;;
4378   *)
4379 cat >>confdefs.h <<_ACEOF
4380 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4381 _ACEOF
4382 ;;
4383 esac
4384 rm -rf conftest*
4385   if test $ac_cv_sys_file_offset_bits = unknown; then
4386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4387 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4388 if test "${ac_cv_sys_large_files+set}" = set; then :
4389   $as_echo_n "(cached) " >&6
4390 else
4391   while :; do
4392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h.  */
4394 #include <sys/types.h>
4395  /* Check that off_t can represent 2**63 - 1 correctly.
4396     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4397     since some C++ compilers masquerading as C compilers
4398     incorrectly reject 9223372036854775807.  */
4399 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4400   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4401                        && LARGE_OFF_T % 2147483647 == 1)
4402                       ? 1 : -1];
4403 int
4404 main ()
4405 {
4406
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412   ac_cv_sys_large_files=no; break
4413 fi
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h.  */
4417 #define _LARGE_FILES 1
4418 #include <sys/types.h>
4419  /* Check that off_t can represent 2**63 - 1 correctly.
4420     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4421     since some C++ compilers masquerading as C compilers
4422     incorrectly reject 9223372036854775807.  */
4423 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4424   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4425                        && LARGE_OFF_T % 2147483647 == 1)
4426                       ? 1 : -1];
4427 int
4428 main ()
4429 {
4430
4431   ;
4432   return 0;
4433 }
4434 _ACEOF
4435 if ac_fn_c_try_compile "$LINENO"; then :
4436   ac_cv_sys_large_files=1; break
4437 fi
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439   ac_cv_sys_large_files=unknown
4440   break
4441 done
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4444 $as_echo "$ac_cv_sys_large_files" >&6; }
4445 case $ac_cv_sys_large_files in #(
4446   no | unknown) ;;
4447   *)
4448 cat >>confdefs.h <<_ACEOF
4449 #define _LARGE_FILES $ac_cv_sys_large_files
4450 _ACEOF
4451 ;;
4452 esac
4453 rm -rf conftest*
4454   fi
4455 fi
4456
4457
4458
4459
4460
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4462 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4463 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4464   $as_echo_n "(cached) " >&6
4465 else
4466   am_cv_prog_cc_stdc=no
4467 ac_save_CC="$CC"
4468 # Don't try gcc -ansi; that turns off useful extensions and
4469 # breaks some systems' header files.
4470 # AIX                   -qlanglvl=ansi
4471 # Ultrix and OSF/1      -std1
4472 # HP-UX 10.20 and later -Ae
4473 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4474 # SVR4                  -Xc -D__EXTENSIONS__
4475 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4476 do
4477   CC="$ac_save_CC $ac_arg"
4478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h.  */
4480 #include <stdarg.h>
4481 #include <stdio.h>
4482 #include <sys/types.h>
4483 #include <sys/stat.h>
4484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4485 struct buf { int x; };
4486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4487 static char *e (p, i)
4488      char **p;
4489      int i;
4490 {
4491   return p[i];
4492 }
4493 static char *f (char * (*g) (char **, int), char **p, ...)
4494 {
4495   char *s;
4496   va_list v;
4497   va_start (v,p);
4498   s = g (p, va_arg (v,int));
4499   va_end (v);
4500   return s;
4501 }
4502 int test (int i, double x);
4503 struct s1 {int (*f) (int a);};
4504 struct s2 {int (*f) (double a);};
4505 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4506 int argc;
4507 char **argv;
4508
4509 int
4510 main ()
4511 {
4512
4513 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 if ac_fn_c_try_compile "$LINENO"; then :
4520   am_cv_prog_cc_stdc="$ac_arg"; break
4521 fi
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 done
4524 CC="$ac_save_CC"
4525
4526 fi
4527
4528 if test -z "$am_cv_prog_cc_stdc"; then
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4530 $as_echo "none needed" >&6; }
4531 else
4532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4533 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4534 fi
4535 case "x$am_cv_prog_cc_stdc" in
4536   x|xno) ;;
4537   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4538 esac
4539
4540
4541 ac_aux_dir=
4542 for ac_dir in .. "$srcdir"/..; do
4543   for ac_t in install-sh install.sh shtool; do
4544     if test -f "$ac_dir/$ac_t"; then
4545       ac_aux_dir=$ac_dir
4546       ac_install_sh="$ac_aux_dir/$ac_t -c"
4547       break 2
4548     fi
4549   done
4550 done
4551 if test -z "$ac_aux_dir"; then
4552   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4553 fi
4554
4555 # These three variables are undocumented and unsupported,
4556 # and are intended to be withdrawn in a future Autoconf release.
4557 # They can cause serious problems if a builder's source tree is in a directory
4558 # whose full name contains unusual characters.
4559 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4560 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4561 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4562
4563
4564
4565
4566 # Dependency checking.
4567 rm -rf .tst 2>/dev/null
4568 mkdir .tst 2>/dev/null
4569 if test -d .tst; then
4570   am__leading_dot=.
4571 else
4572   am__leading_dot=_
4573 fi
4574 rmdir .tst 2>/dev/null
4575
4576 DEPDIR="${am__leading_dot}deps"
4577
4578 ac_config_commands="$ac_config_commands depdir"
4579
4580
4581 depcc="$CC"   am_compiler_list=
4582
4583 am_depcomp=$ac_aux_dir/depcomp
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4585 $as_echo_n "checking dependency style of $depcc... " >&6; }
4586 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4587   $as_echo_n "(cached) " >&6
4588 else
4589   if test -f "$am_depcomp"; then
4590   # We make a subdir and do the tests there.  Otherwise we can end up
4591   # making bogus files that we don't know about and never remove.  For
4592   # instance it was reported that on HP-UX the gcc test will end up
4593   # making a dummy file named `D' -- because `-MD' means `put the output
4594   # in D'.
4595   mkdir conftest.dir
4596   # Copy depcomp to subdir because otherwise we won't find it if we're
4597   # using a relative directory.
4598   cp "$am_depcomp" conftest.dir
4599   cd conftest.dir
4600   # We will build objects and dependencies in a subdirectory because
4601   # it helps to detect inapplicable dependency modes.  For instance
4602   # both Tru64's cc and ICC support -MD to output dependencies as a
4603   # side effect of compilation, but ICC will put the dependencies in
4604   # the current directory while Tru64 will put them in the object
4605   # directory.
4606   mkdir sub
4607
4608   am_cv_CC_dependencies_compiler_type=none
4609   if test "$am_compiler_list" = ""; then
4610      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4611   fi
4612   for depmode in $am_compiler_list; do
4613     if test $depmode = none; then break; fi
4614
4615     $as_echo "$as_me:$LINENO: trying $depmode" >&5
4616     # Setup a source with many dependencies, because some compilers
4617     # like to wrap large dependency lists on column 80 (with \), and
4618     # we should not choose a depcomp mode which is confused by this.
4619     #
4620     # We need to recreate these files for each test, as the compiler may
4621     # overwrite some of them when testing with obscure command lines.
4622     # This happens at least with the AIX C compiler.
4623     : > sub/conftest.c
4624     for i in 1 2 3 4 5 6; do
4625       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4626       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4627       # Solaris 8's {/usr,}/bin/sh.
4628       touch sub/conftst$i.h
4629     done
4630     echo "include sub/conftest.Po" > confmf
4631
4632     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4633     # mode.  It turns out that the SunPro C++ compiler does not properly
4634     # handle `-M -o', and we need to detect this.
4635     depcmd="depmode=$depmode \
4636        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4637        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4638        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4639     echo "| $depcmd" | sed -e 's/  */ /g' >&5
4640     if env $depcmd > conftest.err 2>&1 &&
4641        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4642        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4643        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4644       # icc doesn't choke on unknown options, it will just issue warnings
4645       # or remarks (even with -Werror).  So we grep stderr for any message
4646       # that says an option was ignored or not supported.
4647       # When given -MP, icc 7.0 and 7.1 complain thusly:
4648       #   icc: Command line warning: ignoring option '-M'; no argument required
4649       # The diagnosis changed in icc 8.0:
4650       #   icc: Command line remark: option '-MP' not supported
4651       if (grep 'ignoring option' conftest.err ||
4652           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4653         am_cv_CC_dependencies_compiler_type=$depmode
4654         $as_echo "$as_me:$LINENO: success" >&5
4655         break
4656       fi
4657     fi
4658     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4659     sed -e 's/^/| /' < conftest.err >&5
4660   done
4661
4662   cd ..
4663   rm -rf conftest.dir
4664 else
4665   am_cv_CC_dependencies_compiler_type=none
4666 fi
4667
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4670 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4671 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4672 then as_fn_error "no usable dependency style found" "$LINENO" 5
4673 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4674
4675 fi
4676
4677
4678 # Check for the 'make' the user wants to use.
4679 for ac_prog in make
4680 do
4681   # Extract the first word of "$ac_prog", so it can be a program name with args.
4682 set dummy $ac_prog; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if test "${ac_cv_prog_MAKE+set}" = set; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688   if test -n "$MAKE"; then
4689   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694   IFS=$as_save_IFS
4695   test -z "$as_dir" && as_dir=.
4696     for ac_exec_ext in '' $ac_executable_extensions; do
4697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698     ac_cv_prog_MAKE="$ac_prog"
4699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700     break 2
4701   fi
4702 done
4703   done
4704 IFS=$as_save_IFS
4705
4706 fi
4707 fi
4708 MAKE=$ac_cv_prog_MAKE
4709 if test -n "$MAKE"; then
4710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4711 $as_echo "$MAKE" >&6; }
4712 else
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4715 fi
4716
4717
4718   test -n "$MAKE" && break
4719 done
4720
4721 MAKE_IS_GNU=
4722 case "`$MAKE --version 2>&1 | sed 1q`" in
4723   *GNU*)
4724     MAKE_IS_GNU=yes
4725     ;;
4726 esac
4727  if test "$MAKE_IS_GNU" = yes; then
4728   GMAKE_TRUE=
4729   GMAKE_FALSE='#'
4730 else
4731   GMAKE_TRUE='#'
4732   GMAKE_FALSE=
4733 fi
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4736 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4737 set x ${MAKE-make}
4738 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4739 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4740   $as_echo_n "(cached) " >&6
4741 else
4742   cat >conftest.make <<\_ACEOF
4743 SHELL = /bin/sh
4744 all:
4745         @echo '@@@%%%=$(MAKE)=@@@%%%'
4746 _ACEOF
4747 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4748 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4749   *@@@%%%=?*=@@@%%%*)
4750     eval ac_cv_prog_make_${ac_make}_set=yes;;
4751   *)
4752     eval ac_cv_prog_make_${ac_make}_set=no;;
4753 esac
4754 rm -f conftest.make
4755 fi
4756 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4758 $as_echo "yes" >&6; }
4759   SET_MAKE=
4760 else
4761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4763   SET_MAKE="MAKE=${MAKE-make}"
4764 fi
4765
4766
4767
4768 CONFIG_OBS=
4769 CONFIG_DEPS=
4770 CONFIG_SRCS=
4771 ENABLE_CFLAGS=
4772
4773 CONFIG_ALL=
4774 CONFIG_CLEAN=
4775 CONFIG_INSTALL=
4776 CONFIG_UNINSTALL=
4777
4778 # If we haven't got the data from the intl directory,
4779 # assume NLS is disabled.
4780 USE_NLS=no
4781 LIBINTL=
4782 LIBINTL_DEP=
4783 INCINTL=
4784 XGETTEXT=
4785 GMSGFMT=
4786 POSUB=
4787
4788 if test -f  ../intl/config.intl; then
4789   .  ../intl/config.intl
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4792 $as_echo_n "checking whether NLS is requested... " >&6; }
4793 if test x"$USE_NLS" != xyes; then
4794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4796 else
4797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4798 $as_echo "yes" >&6; }
4799
4800 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4801
4802
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4804 $as_echo_n "checking for catalogs to be installed... " >&6; }
4805   # Look for .po and .gmo files in the source directory.
4806   CATALOGS=
4807   XLINGUAS=
4808   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4809     # If there aren't any .gmo files the shell will give us the
4810     # literal string "../path/to/srcdir/po/*.gmo" which has to be
4811     # weeded out.
4812     case "$cat" in *\**)
4813       continue;;
4814     esac
4815     # The quadruple backslash is collapsed to a double backslash
4816     # by the backticks, then collapsed again by the double quotes,
4817     # leaving us with one backslash in the sed expression (right
4818     # before the dot that mustn't act as a wildcard).
4819     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4820     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4821     # The user is allowed to set LINGUAS to a list of languages to
4822     # install catalogs for.  If it's empty that means "all of them."
4823     if test "x$LINGUAS" = x; then
4824       CATALOGS="$CATALOGS $cat"
4825       XLINGUAS="$XLINGUAS $lang"
4826     else
4827       case "$LINGUAS" in *$lang*)
4828         CATALOGS="$CATALOGS $cat"
4829         XLINGUAS="$XLINGUAS $lang"
4830         ;;
4831       esac
4832     fi
4833   done
4834   LINGUAS="$XLINGUAS"
4835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4836 $as_echo "$LINGUAS" >&6; }
4837
4838
4839     DATADIRNAME=share
4840
4841   INSTOBJEXT=.mo
4842
4843   GENCAT=gencat
4844
4845   CATOBJEXT=.gmo
4846
4847 fi
4848
4849 localedir='${datadir}/locale'
4850
4851
4852 if test x"$USE_NLS" = xyes; then
4853    CONFIG_ALL="$CONFIG_ALL all-po"
4854    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4855    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4856    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4857 fi
4858
4859
4860   GNULIB_MEMMEM=0;
4861   GNULIB_MEMPCPY=0;
4862   GNULIB_MEMRCHR=0;
4863   GNULIB_STPCPY=0;
4864   GNULIB_STPNCPY=0;
4865   GNULIB_STRCHRNUL=0;
4866   GNULIB_STRDUP=0;
4867   GNULIB_STRNDUP=0;
4868   GNULIB_STRNLEN=0;
4869   GNULIB_STRPBRK=0;
4870   GNULIB_STRSEP=0;
4871   GNULIB_STRSTR=0;
4872   GNULIB_STRCASESTR=0;
4873   GNULIB_STRTOK_R=0;
4874   GNULIB_MBSLEN=0;
4875   GNULIB_MBSNLEN=0;
4876   GNULIB_MBSCHR=0;
4877   GNULIB_MBSRCHR=0;
4878   GNULIB_MBSSTR=0;
4879   GNULIB_MBSCASECMP=0;
4880   GNULIB_MBSNCASECMP=0;
4881   GNULIB_MBSPCASECMP=0;
4882   GNULIB_MBSCASESTR=0;
4883   GNULIB_MBSCSPN=0;
4884   GNULIB_MBSPBRK=0;
4885   GNULIB_MBSSPN=0;
4886   GNULIB_MBSSEP=0;
4887   GNULIB_MBSTOK_R=0;
4888   GNULIB_STRERROR=0;
4889   GNULIB_STRSIGNAL=0;
4890     HAVE_DECL_MEMMEM=1;
4891   HAVE_MEMPCPY=1;
4892   HAVE_DECL_MEMRCHR=1;
4893   HAVE_STPCPY=1;
4894   HAVE_STPNCPY=1;
4895   HAVE_STRCHRNUL=1;
4896   HAVE_DECL_STRDUP=1;
4897   HAVE_STRNDUP=1;
4898   HAVE_DECL_STRNDUP=1;
4899   HAVE_DECL_STRNLEN=1;
4900   HAVE_STRPBRK=1;
4901   HAVE_STRSEP=1;
4902   HAVE_STRCASESTR=1;
4903   HAVE_DECL_STRTOK_R=1;
4904   HAVE_DECL_STRERROR=1;
4905   HAVE_DECL_STRSIGNAL=1;
4906   REPLACE_STRERROR=0;
4907   REPLACE_STRSIGNAL=0;
4908   REPLACE_MEMMEM=0;
4909   REPLACE_STRCASESTR=0;
4910   REPLACE_STRSTR=0;
4911
4912
4913       ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
4914 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
4915   ac_have_decl=1
4916 else
4917   ac_have_decl=0
4918 fi
4919
4920 cat >>confdefs.h <<_ACEOF
4921 #define HAVE_DECL_MEMMEM $ac_have_decl
4922 _ACEOF
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936   for ac_func in memmem
4937 do :
4938   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
4939 if test "x$ac_cv_func_memmem" = x""yes; then :
4940   cat >>confdefs.h <<_ACEOF
4941 #define HAVE_MEMMEM 1
4942 _ACEOF
4943
4944 else
4945
4946     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4947
4948 fi
4949 done
4950
4951
4952
4953   :
4954
4955
4956
4957
4958
4959   if test $ac_cv_have_decl_memmem = no; then
4960     HAVE_DECL_MEMMEM=0
4961   fi
4962   :
4963
4964
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4966 $as_echo_n "checking for long long int... " >&6; }
4967 if test "${ac_cv_type_long_long_int+set}" = set; then :
4968   $as_echo_n "(cached) " >&6
4969 else
4970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h.  */
4972
4973   /* For now, do not test the preprocessor; as of 2007 there are too many
4974          implementations with broken preprocessors.  Perhaps this can
4975          be revisited in 2012.  In the meantime, code should not expect
4976          #if to work with literals wider than 32 bits.  */
4977       /* Test literals.  */
4978       long long int ll = 9223372036854775807ll;
4979       long long int nll = -9223372036854775807LL;
4980       unsigned long long int ull = 18446744073709551615ULL;
4981       /* Test constant expressions.   */
4982       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4983                      ? 1 : -1)];
4984       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4985                      ? 1 : -1)];
4986       int i = 63;
4987 int
4988 main ()
4989 {
4990 /* Test availability of runtime routines for shift and division.  */
4991       long long int llmax = 9223372036854775807ll;
4992       unsigned long long int ullmax = 18446744073709551615ull;
4993       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4994               | (llmax / ll) | (llmax % ll)
4995               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4996               | (ullmax / ull) | (ullmax % ull));
4997   ;
4998   return 0;
4999 }
5000
5001 _ACEOF
5002 if ac_fn_c_try_link "$LINENO"; then :
5003                         if test "$cross_compiling" = yes; then :
5004   ac_cv_type_long_long_int=yes
5005 else
5006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h.  */
5008 #include <limits.h>
5009                #ifndef LLONG_MAX
5010                # define HALF \
5011                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5012                # define LLONG_MAX (HALF - 1 + HALF)
5013                #endif
5014 int
5015 main ()
5016 {
5017 long long int n = 1;
5018                int i;
5019                for (i = 0; ; i++)
5020                  {
5021                    long long int m = n << i;
5022                    if (m >> i != n)
5023                      return 1;
5024                    if (LLONG_MAX / 2 < m)
5025                      break;
5026                  }
5027                return 0;
5028   ;
5029   return 0;
5030 }
5031 _ACEOF
5032 if ac_fn_c_try_run "$LINENO"; then :
5033   ac_cv_type_long_long_int=yes
5034 else
5035   ac_cv_type_long_long_int=no
5036 fi
5037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5038   conftest.$ac_objext conftest.beam conftest.$ac_ext
5039 fi
5040
5041 else
5042   ac_cv_type_long_long_int=no
5043 fi
5044 rm -f core conftest.err conftest.$ac_objext \
5045     conftest$ac_exeext conftest.$ac_ext
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5048 $as_echo "$ac_cv_type_long_long_int" >&6; }
5049   if test $ac_cv_type_long_long_int = yes; then
5050
5051 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5052
5053   fi
5054
5055
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5057 $as_echo_n "checking for unsigned long long int... " >&6; }
5058 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h.  */
5063
5064   /* For now, do not test the preprocessor; as of 2007 there are too many
5065          implementations with broken preprocessors.  Perhaps this can
5066          be revisited in 2012.  In the meantime, code should not expect
5067          #if to work with literals wider than 32 bits.  */
5068       /* Test literals.  */
5069       long long int ll = 9223372036854775807ll;
5070       long long int nll = -9223372036854775807LL;
5071       unsigned long long int ull = 18446744073709551615ULL;
5072       /* Test constant expressions.   */
5073       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5074                      ? 1 : -1)];
5075       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5076                      ? 1 : -1)];
5077       int i = 63;
5078 int
5079 main ()
5080 {
5081 /* Test availability of runtime routines for shift and division.  */
5082       long long int llmax = 9223372036854775807ll;
5083       unsigned long long int ullmax = 18446744073709551615ull;
5084       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5085               | (llmax / ll) | (llmax % ll)
5086               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5087               | (ullmax / ull) | (ullmax % ull));
5088   ;
5089   return 0;
5090 }
5091
5092 _ACEOF
5093 if ac_fn_c_try_link "$LINENO"; then :
5094   ac_cv_type_unsigned_long_long_int=yes
5095 else
5096   ac_cv_type_unsigned_long_long_int=no
5097 fi
5098 rm -f core conftest.err conftest.$ac_objext \
5099     conftest$ac_exeext conftest.$ac_ext
5100 fi
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5102 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5103   if test $ac_cv_type_unsigned_long_long_int = yes; then
5104
5105 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5106
5107   fi
5108
5109
5110
5111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5112 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5113 if test "${gl_cv_have_include_next+set}" = set; then :
5114   $as_echo_n "(cached) " >&6
5115 else
5116   rm -rf conftestd1 conftestd2
5117      mkdir conftestd1 conftestd2
5118      cat <<EOF > conftestd1/conftest.h
5119 #define DEFINED_IN_CONFTESTD1
5120 #include_next <conftest.h>
5121 #ifdef DEFINED_IN_CONFTESTD2
5122 int foo;
5123 #else
5124 #error "include_next doesn't work"
5125 #endif
5126 EOF
5127      cat <<EOF > conftestd2/conftest.h
5128 #ifndef DEFINED_IN_CONFTESTD1
5129 #error "include_next test doesn't work"
5130 #endif
5131 #define DEFINED_IN_CONFTESTD2
5132 EOF
5133      save_CPPFLAGS="$CPPFLAGS"
5134      CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
5135      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h.  */
5137 #include <conftest.h>
5138 _ACEOF
5139 if ac_fn_c_try_compile "$LINENO"; then :
5140   gl_cv_have_include_next=yes
5141 else
5142   gl_cv_have_include_next=no
5143 fi
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145      CPPFLAGS="$save_CPPFLAGS"
5146      rm -rf conftestd1 conftestd2
5147
5148 fi
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5150 $as_echo "$gl_cv_have_include_next" >&6; }
5151   if test $gl_cv_have_include_next = yes; then
5152
5153
5154 $as_echo "#define HAVE_INCLUDE_NEXT 1" >>confdefs.h
5155
5156
5157     INCLUDE_NEXT=include_next
5158   else
5159     INCLUDE_NEXT=include
5160   fi
5161
5162
5163
5164
5165
5166
5167   for ac_header in $gl_header_list
5168 do :
5169   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5171 eval as_val=\$$as_ac_Header
5172    if test "x$as_val" = x""yes; then :
5173   cat >>confdefs.h <<_ACEOF
5174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5175 _ACEOF
5176
5177 fi
5178
5179 done
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5191 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5192 if test "${ac_cv_c_restrict+set}" = set; then :
5193   $as_echo_n "(cached) " >&6
5194 else
5195   ac_cv_c_restrict=no
5196    # The order here caters to the fact that C++ does not require restrict.
5197    for ac_kw in __restrict __restrict__ _Restrict restrict; do
5198      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h.  */
5200 typedef int * int_ptr;
5201         int foo (int_ptr $ac_kw ip) {
5202         return ip[0];
5203        }
5204 int
5205 main ()
5206 {
5207 int s[1];
5208         int * $ac_kw t = s;
5209         t[0] = 0;
5210         return foo(t)
5211   ;
5212   return 0;
5213 }
5214 _ACEOF
5215 if ac_fn_c_try_compile "$LINENO"; then :
5216   ac_cv_c_restrict=$ac_kw
5217 fi
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219      test "$ac_cv_c_restrict" != no && break
5220    done
5221
5222 fi
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5224 $as_echo "$ac_cv_c_restrict" >&6; }
5225
5226  case $ac_cv_c_restrict in
5227    restrict) ;;
5228    no) $as_echo "#define restrict /**/" >>confdefs.h
5229  ;;
5230    *)  cat >>confdefs.h <<_ACEOF
5231 #define restrict $ac_cv_c_restrict
5232 _ACEOF
5233  ;;
5234  esac
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247   :
5248
5249
5250
5251
5252
5253
5254
5255      if test $gl_cv_have_include_next = yes; then
5256        gl_cv_next_string_h='<'string.h'>'
5257      else
5258        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5259 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5260 if test "${gl_cv_next_string_h+set}" = set; then :
5261   $as_echo_n "(cached) " >&6
5262 else
5263
5264           if test $ac_cv_header_string_h = yes; then
5265             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h.  */
5267 #include <string.h>
5268
5269 _ACEOF
5270                                     gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271                sed -n '\#/string.h#{
5272                  s#.*"\(.*/string.h\)".*#\1#
5273                  s#^/[^/]#//&#
5274                  p
5275                  q
5276                }'`'"'
5277           else
5278             gl_cv_next_string_h='<'string.h'>'
5279           fi
5280
5281 fi
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5283 $as_echo "$gl_cv_next_string_h" >&6; }
5284      fi
5285      NEXT_STRING_H=$gl_cv_next_string_h
5286
5287
5288
5289
5290
5291   GNULIB_WCWIDTH=0;
5292     HAVE_DECL_WCWIDTH=1;
5293   REPLACE_WCWIDTH=0;
5294   WCHAR_H=
5295
5296
5297
5298    if false; then
5299   GL_COND_LIBTOOL_TRUE=
5300   GL_COND_LIBTOOL_FALSE='#'
5301 else
5302   GL_COND_LIBTOOL_TRUE='#'
5303   GL_COND_LIBTOOL_FALSE=
5304 fi
5305
5306   gl_cond_libtool=false
5307   gl_libdeps=
5308   gl_ltlibdeps=
5309
5310
5311
5312   gl_source_base='gnulib'
5313
5314
5315
5316
5317
5318
5319
5320
5321   for ac_func in memchr
5322 do :
5323   ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
5324 if test "x$ac_cv_func_memchr" = x""yes; then :
5325   cat >>confdefs.h <<_ACEOF
5326 #define HAVE_MEMCHR 1
5327 _ACEOF
5328
5329 else
5330
5331     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5332
5333 fi
5334 done
5335
5336
5337   if test $ac_cv_func_memchr = no; then
5338
5339   for ac_header in bp-sym.h
5340 do :
5341   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5342 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5343   cat >>confdefs.h <<_ACEOF
5344 #define HAVE_BP_SYM_H 1
5345 _ACEOF
5346
5347 fi
5348
5349 done
5350
5351
5352   fi
5353
5354
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5356 $as_echo_n "checking for working memcmp... " >&6; }
5357 if test "${ac_cv_func_memcmp_working+set}" = set; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   if test "$cross_compiling" = yes; then :
5361   ac_cv_func_memcmp_working=no
5362 else
5363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h.  */
5365 $ac_includes_default
5366 int
5367 main ()
5368 {
5369
5370   /* Some versions of memcmp are not 8-bit clean.  */
5371   char c0 = '\100', c1 = '\200', c2 = '\201';
5372   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5373     return 1;
5374
5375   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5376      or more and with at least one buffer not starting on a 4-byte boundary.
5377      William Lewis provided this test program.   */
5378   {
5379     char foo[21];
5380     char bar[21];
5381     int i;
5382     for (i = 0; i < 4; i++)
5383       {
5384         char *a = foo + i;
5385         char *b = bar + i;
5386         strcpy (a, "--------01111111");
5387         strcpy (b, "--------10000000");
5388         if (memcmp (a, b, 16) >= 0)
5389           return 1;
5390       }
5391     return 0;
5392   }
5393
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_c_try_run "$LINENO"; then :
5399   ac_cv_func_memcmp_working=yes
5400 else
5401   ac_cv_func_memcmp_working=no
5402 fi
5403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5404   conftest.$ac_objext conftest.beam conftest.$ac_ext
5405 fi
5406
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5409 $as_echo "$ac_cv_func_memcmp_working" >&6; }
5410 test $ac_cv_func_memcmp_working = no &&
5411
5412
5413
5414
5415
5416
5417   gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5418
5419
5420     if test $ac_cv_func_memcmp_working = no; then
5421
5422 $as_echo "#define memcmp rpl_memcmp" >>confdefs.h
5423
5424     :
5425   fi
5426
5427
5428
5429   if test $ac_cv_have_decl_memmem = yes; then
5430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5431 $as_echo_n "checking whether memmem works in linear time... " >&6; }
5432 if test "${gl_cv_func_memmem_works+set}" = set; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435   if test "$cross_compiling" = yes; then :
5436                  gl_cv_func_memmem_works="guessing no"
5437 else
5438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h.  */
5440
5441 #include <string.h> /* for memmem */
5442 #include <stdlib.h> /* for malloc */
5443 #include <unistd.h> /* for alarm */
5444
5445 int
5446 main ()
5447 {
5448 size_t m = 1000000;
5449     char *haystack = (char *) malloc (2 * m + 1);
5450     char *needle = (char *) malloc (m + 1);
5451     void *result = 0;
5452     /* Failure to compile this test due to missing alarm is okay,
5453        since all such platforms (mingw) also lack memmem.  */
5454     alarm (5);
5455     /* Check for quadratic performance.  */
5456     if (haystack && needle)
5457       {
5458         memset (haystack, 'A', 2 * m);
5459         haystack[2 * m] = 'B';
5460         memset (needle, 'A', m);
5461         needle[m] = 'B';
5462         result = memmem (haystack, 2 * m + 1, needle, m + 1);
5463       }
5464     /* Check for empty needle behavior.  */
5465     return !result || !memmem ("a", 1, 0, 0);
5466   ;
5467   return 0;
5468 }
5469 _ACEOF
5470 if ac_fn_c_try_run "$LINENO"; then :
5471   gl_cv_func_memmem_works=yes
5472 else
5473   gl_cv_func_memmem_works=no
5474 fi
5475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5476   conftest.$ac_objext conftest.beam conftest.$ac_ext
5477 fi
5478
5479 fi
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
5481 $as_echo "$gl_cv_func_memmem_works" >&6; }
5482     if test "$gl_cv_func_memmem_works" != yes; then
5483       REPLACE_MEMMEM=1
5484
5485
5486
5487
5488
5489
5490
5491   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5492
5493     fi
5494   fi
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507   for ac_func in memmem
5508 do :
5509   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5510 if test "x$ac_cv_func_memmem" = x""yes; then :
5511   cat >>confdefs.h <<_ACEOF
5512 #define HAVE_MEMMEM 1
5513 _ACEOF
5514
5515 else
5516
5517     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5518
5519 fi
5520 done
5521
5522
5523
5524   :
5525
5526
5527
5528
5529
5530   if test $ac_cv_have_decl_memmem = no; then
5531     HAVE_DECL_MEMMEM=0
5532   fi
5533   :
5534
5535
5536
5537   GNULIB_MEMMEM=1
5538
5539
5540
5541
5542   if test $ac_cv_type_long_long_int = yes; then
5543     HAVE_LONG_LONG_INT=1
5544   else
5545     HAVE_LONG_LONG_INT=0
5546   fi
5547
5548
5549   if test $ac_cv_type_unsigned_long_long_int = yes; then
5550     HAVE_UNSIGNED_LONG_LONG_INT=1
5551   else
5552     HAVE_UNSIGNED_LONG_LONG_INT=0
5553   fi
5554
5555
5556       if test $ac_cv_header_inttypes_h = yes; then
5557     HAVE_INTTYPES_H=1
5558   else
5559     HAVE_INTTYPES_H=0
5560   fi
5561
5562
5563       if test $ac_cv_header_sys_types_h = yes; then
5564     HAVE_SYS_TYPES_H=1
5565   else
5566     HAVE_SYS_TYPES_H=0
5567   fi
5568
5569
5570
5571
5572
5573   :
5574
5575
5576
5577
5578
5579
5580
5581      if test $gl_cv_have_include_next = yes; then
5582        gl_cv_next_stdint_h='<'stdint.h'>'
5583      else
5584        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5585 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5586 if test "${gl_cv_next_stdint_h+set}" = set; then :
5587   $as_echo_n "(cached) " >&6
5588 else
5589
5590           if test $ac_cv_header_stdint_h = yes; then
5591             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h.  */
5593 #include <stdint.h>
5594
5595 _ACEOF
5596                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5597                sed -n '\#/stdint.h#{
5598                  s#.*"\(.*/stdint.h\)".*#\1#
5599                  s#^/[^/]#//&#
5600                  p
5601                  q
5602                }'`'"'
5603           else
5604             gl_cv_next_stdint_h='<'stdint.h'>'
5605           fi
5606
5607 fi
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5609 $as_echo "$gl_cv_next_stdint_h" >&6; }
5610      fi
5611      NEXT_STDINT_H=$gl_cv_next_stdint_h
5612
5613
5614
5615   if test $ac_cv_header_stdint_h = yes; then
5616     HAVE_STDINT_H=1
5617   else
5618     HAVE_STDINT_H=0
5619   fi
5620
5621
5622     if test $ac_cv_header_stdint_h = yes; then
5623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5624 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5625 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628   gl_cv_header_working_stdint_h=no
5629        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h.  */
5631
5632
5633 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5634 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5635 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5636 #include <stdint.h>
5637 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
5638 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5639 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5640 #endif
5641
5642
5643   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5644      included before <wchar.h>.  */
5645   #include <stddef.h>
5646   #include <signal.h>
5647   #if HAVE_WCHAR_H
5648   # include <stdio.h>
5649   # include <time.h>
5650   # include <wchar.h>
5651   #endif
5652
5653
5654 #ifdef INT8_MAX
5655 int8_t a1 = INT8_MAX;
5656 int8_t a1min = INT8_MIN;
5657 #endif
5658 #ifdef INT16_MAX
5659 int16_t a2 = INT16_MAX;
5660 int16_t a2min = INT16_MIN;
5661 #endif
5662 #ifdef INT32_MAX
5663 int32_t a3 = INT32_MAX;
5664 int32_t a3min = INT32_MIN;
5665 #endif
5666 #ifdef INT64_MAX
5667 int64_t a4 = INT64_MAX;
5668 int64_t a4min = INT64_MIN;
5669 #endif
5670 #ifdef UINT8_MAX
5671 uint8_t b1 = UINT8_MAX;
5672 #else
5673 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5674 #endif
5675 #ifdef UINT16_MAX
5676 uint16_t b2 = UINT16_MAX;
5677 #endif
5678 #ifdef UINT32_MAX
5679 uint32_t b3 = UINT32_MAX;
5680 #endif
5681 #ifdef UINT64_MAX
5682 uint64_t b4 = UINT64_MAX;
5683 #endif
5684 int_least8_t c1 = INT8_C (0x7f);
5685 int_least8_t c1max = INT_LEAST8_MAX;
5686 int_least8_t c1min = INT_LEAST8_MIN;
5687 int_least16_t c2 = INT16_C (0x7fff);
5688 int_least16_t c2max = INT_LEAST16_MAX;
5689 int_least16_t c2min = INT_LEAST16_MIN;
5690 int_least32_t c3 = INT32_C (0x7fffffff);
5691 int_least32_t c3max = INT_LEAST32_MAX;
5692 int_least32_t c3min = INT_LEAST32_MIN;
5693 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5694 int_least64_t c4max = INT_LEAST64_MAX;
5695 int_least64_t c4min = INT_LEAST64_MIN;
5696 uint_least8_t d1 = UINT8_C (0xff);
5697 uint_least8_t d1max = UINT_LEAST8_MAX;
5698 uint_least16_t d2 = UINT16_C (0xffff);
5699 uint_least16_t d2max = UINT_LEAST16_MAX;
5700 uint_least32_t d3 = UINT32_C (0xffffffff);
5701 uint_least32_t d3max = UINT_LEAST32_MAX;
5702 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5703 uint_least64_t d4max = UINT_LEAST64_MAX;
5704 int_fast8_t e1 = INT_FAST8_MAX;
5705 int_fast8_t e1min = INT_FAST8_MIN;
5706 int_fast16_t e2 = INT_FAST16_MAX;
5707 int_fast16_t e2min = INT_FAST16_MIN;
5708 int_fast32_t e3 = INT_FAST32_MAX;
5709 int_fast32_t e3min = INT_FAST32_MIN;
5710 int_fast64_t e4 = INT_FAST64_MAX;
5711 int_fast64_t e4min = INT_FAST64_MIN;
5712 uint_fast8_t f1 = UINT_FAST8_MAX;
5713 uint_fast16_t f2 = UINT_FAST16_MAX;
5714 uint_fast32_t f3 = UINT_FAST32_MAX;
5715 uint_fast64_t f4 = UINT_FAST64_MAX;
5716 #ifdef INTPTR_MAX
5717 intptr_t g = INTPTR_MAX;
5718 intptr_t gmin = INTPTR_MIN;
5719 #endif
5720 #ifdef UINTPTR_MAX
5721 uintptr_t h = UINTPTR_MAX;
5722 #endif
5723 intmax_t i = INTMAX_MAX;
5724 uintmax_t j = UINTMAX_MAX;
5725
5726 #include <limits.h> /* for CHAR_BIT */
5727 #define TYPE_MINIMUM(t) \
5728   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5729 #define TYPE_MAXIMUM(t) \
5730   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5731 struct s {
5732   int check_PTRDIFF:
5733       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5734       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5735       ? 1 : -1;
5736   /* Detect bug in FreeBSD 6.0 / ia64.  */
5737   int check_SIG_ATOMIC:
5738       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5739       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5740       ? 1 : -1;
5741   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5742   int check_WCHAR:
5743       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5744       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5745       ? 1 : -1;
5746   /* Detect bug in mingw.  */
5747   int check_WINT:
5748       WINT_MIN == TYPE_MINIMUM (wint_t)
5749       && WINT_MAX == TYPE_MAXIMUM (wint_t)
5750       ? 1 : -1;
5751
5752   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
5753   int check_UINT8_C:
5754         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5755   int check_UINT16_C:
5756         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5757
5758   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
5759 #ifdef UINT8_MAX
5760   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5761 #endif
5762 #ifdef UINT16_MAX
5763   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5764 #endif
5765 #ifdef UINT32_MAX
5766   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5767 #endif
5768 #ifdef UINT64_MAX
5769   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5770 #endif
5771   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5772   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5773   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5774   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5775   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5776   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5777   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5778   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5779   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5780   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5781   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5782 };
5783
5784 int
5785 main ()
5786 {
5787
5788   ;
5789   return 0;
5790 }
5791 _ACEOF
5792 if ac_fn_c_try_compile "$LINENO"; then :
5793   gl_cv_header_working_stdint_h=yes
5794 fi
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 fi
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5798 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5799   fi
5800   if test "$gl_cv_header_working_stdint_h" = yes; then
5801     STDINT_H=
5802   else
5803             for ac_header in sys/inttypes.h sys/bitypes.h
5804 do :
5805   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5806 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5807 eval as_val=\$$as_ac_Header
5808    if test "x$as_val" = x""yes; then :
5809   cat >>confdefs.h <<_ACEOF
5810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5811 _ACEOF
5812
5813 fi
5814
5815 done
5816
5817     if test $ac_cv_header_sys_inttypes_h = yes; then
5818       HAVE_SYS_INTTYPES_H=1
5819     else
5820       HAVE_SYS_INTTYPES_H=0
5821     fi
5822
5823     if test $ac_cv_header_sys_bitypes_h = yes; then
5824       HAVE_SYS_BITYPES_H=1
5825     else
5826       HAVE_SYS_BITYPES_H=0
5827     fi
5828
5829
5830
5831   :
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5843 $as_echo_n "checking for bit size of $gltype... " >&6; }
5844 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5845   $as_echo_n "(cached) " >&6
5846 else
5847   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
5848   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5849      included before <wchar.h>.  */
5850   #include <stddef.h>
5851   #include <signal.h>
5852   #if HAVE_WCHAR_H
5853   # include <stdio.h>
5854   # include <time.h>
5855   # include <wchar.h>
5856   #endif
5857
5858 #include <limits.h>"; then :
5859
5860 else
5861   result=unknown
5862 fi
5863
5864        eval gl_cv_bitsizeof_${gltype}=\$result
5865
5866 fi
5867 eval ac_res=\$gl_cv_bitsizeof_${gltype}
5868                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5869 $as_echo "$ac_res" >&6; }
5870     eval result=\$gl_cv_bitsizeof_${gltype}
5871     if test $result = unknown; then
5872                                                 result=0
5873     fi
5874     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5875     cat >>confdefs.h <<_ACEOF
5876 #define BITSIZEOF_${GLTYPE} $result
5877 _ACEOF
5878
5879     eval BITSIZEOF_${GLTYPE}=\$result
5880   done
5881
5882
5883
5884
5885   for gltype in sig_atomic_t wchar_t wint_t ; do
5886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5887 $as_echo_n "checking whether $gltype is signed... " >&6; }
5888 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5889   $as_echo_n "(cached) " >&6
5890 else
5891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h.  */
5893
5894   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5895      included before <wchar.h>.  */
5896   #include <stddef.h>
5897   #include <signal.h>
5898   #if HAVE_WCHAR_H
5899   # include <stdio.h>
5900   # include <time.h>
5901   # include <wchar.h>
5902   #endif
5903
5904             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5905 int
5906 main ()
5907 {
5908
5909   ;
5910   return 0;
5911 }
5912 _ACEOF
5913 if ac_fn_c_try_compile "$LINENO"; then :
5914   result=yes
5915 else
5916   result=no
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919        eval gl_cv_type_${gltype}_signed=\$result
5920
5921 fi
5922 eval ac_res=\$gl_cv_type_${gltype}_signed
5923                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5924 $as_echo "$ac_res" >&6; }
5925     eval result=\$gl_cv_type_${gltype}_signed
5926     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5927     if test "$result" = yes; then
5928       cat >>confdefs.h <<_ACEOF
5929 #define HAVE_SIGNED_${GLTYPE} 1
5930 _ACEOF
5931
5932       eval HAVE_SIGNED_${GLTYPE}=1
5933     else
5934       eval HAVE_SIGNED_${GLTYPE}=0
5935     fi
5936   done
5937
5938
5939   gl_cv_type_ptrdiff_t_signed=yes
5940   gl_cv_type_size_t_signed=no
5941
5942
5943   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5945 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5946 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5947   $as_echo_n "(cached) " >&6
5948 else
5949   eval gl_cv_type_${gltype}_suffix=no
5950        eval result=\$gl_cv_type_${gltype}_signed
5951        if test "$result" = yes; then
5952          glsufu=
5953        else
5954          glsufu=u
5955        fi
5956        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5957          case $glsuf in
5958            '')  gltype1='int';;
5959            l)   gltype1='long int';;
5960            ll)  gltype1='long long int';;
5961            i64) gltype1='__int64';;
5962            u)   gltype1='unsigned int';;
5963            ul)  gltype1='unsigned long int';;
5964            ull) gltype1='unsigned long long int';;
5965            ui64)gltype1='unsigned __int64';;
5966          esac
5967          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h.  */
5969
5970   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5971      included before <wchar.h>.  */
5972   #include <stddef.h>
5973   #include <signal.h>
5974   #if HAVE_WCHAR_H
5975   # include <stdio.h>
5976   # include <time.h>
5977   # include <wchar.h>
5978   #endif
5979
5980               extern $gltype foo;
5981               extern $gltype1 foo;
5982 int
5983 main ()
5984 {
5985
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991   eval gl_cv_type_${gltype}_suffix=\$glsuf
5992 fi
5993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994          eval result=\$gl_cv_type_${gltype}_suffix
5995          test "$result" != no && break
5996        done
5997 fi
5998 eval ac_res=\$gl_cv_type_${gltype}_suffix
5999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6000 $as_echo "$ac_res" >&6; }
6001     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6002     eval result=\$gl_cv_type_${gltype}_suffix
6003     test "$result" = no && result=
6004     eval ${GLTYPE}_SUFFIX=\$result
6005     cat >>confdefs.h <<_ACEOF
6006 #define ${GLTYPE}_SUFFIX $result
6007 _ACEOF
6008
6009   done
6010
6011
6012
6013     STDINT_H=stdint.h
6014   fi
6015
6016
6017
6018
6019
6020
6021
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
6023 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
6024 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
6025   $as_echo_n "(cached) " >&6
6026 else
6027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h.  */
6029 #include <wchar.h>
6030 wchar_t w;
6031 _ACEOF
6032 if ac_fn_c_try_compile "$LINENO"; then :
6033   gl_cv_header_wchar_h_standalone=yes
6034 else
6035   gl_cv_header_wchar_h_standalone=no
6036 fi
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 fi
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
6040 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
6041   if test $gl_cv_header_wchar_h_standalone != yes; then
6042     WCHAR_H=wchar.h
6043   fi
6044
6045
6046   :
6047
6048
6049
6050
6051
6052   if test $ac_cv_header_wchar_h = yes; then
6053     HAVE_WCHAR_H=1
6054   else
6055     HAVE_WCHAR_H=0
6056   fi
6057
6058
6059
6060
6061   :
6062
6063
6064
6065
6066
6067
6068
6069      if test $gl_cv_have_include_next = yes; then
6070        gl_cv_next_wchar_h='<'wchar.h'>'
6071      else
6072        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6073 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6074 if test "${gl_cv_next_wchar_h+set}" = set; then :
6075   $as_echo_n "(cached) " >&6
6076 else
6077
6078           if test $ac_cv_header_wchar_h = yes; then
6079             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h.  */
6081 #include <wchar.h>
6082
6083 _ACEOF
6084                                     gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6085                sed -n '\#/wchar.h#{
6086                  s#.*"\(.*/wchar.h\)".*#\1#
6087                  s#^/[^/]#//&#
6088                  p
6089                  q
6090                }'`'"'
6091           else
6092             gl_cv_next_wchar_h='<'wchar.h'>'
6093           fi
6094
6095 fi
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
6097 $as_echo "$gl_cv_next_wchar_h" >&6; }
6098      fi
6099      NEXT_WCHAR_H=$gl_cv_next_wchar_h
6100
6101
6102
6103
6104
6105
6106
6107
6108   gltests_libdeps=
6109   gltests_ltlibdeps=
6110
6111
6112
6113   gl_source_base='tests'
6114
6115
6116
6117
6118   LIBGNU_LIBDEPS="$gl_libdeps"
6119
6120   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6121
6122
6123
6124 # For Makefile dependencies.
6125 GNULIB_STDINT_H=
6126 if test x"$STDINT_H" != x; then
6127   GNULIB_STDINT_H=gnulib/$STDINT_H
6128 fi
6129
6130
6131 PACKAGE=gdb
6132
6133 cat >>confdefs.h <<_ACEOF
6134 #define PACKAGE "$PACKAGE"
6135 _ACEOF
6136
6137
6138
6139 # GDB does not use automake, but gnulib does.  This line lets us
6140 # generate its Makefile.in.
6141 am__api_version='1.11'
6142
6143 # Find a good install program.  We prefer a C program (faster),
6144 # so one script is as good as another.  But avoid the broken or
6145 # incompatible versions:
6146 # SysV /etc/install, /usr/sbin/install
6147 # SunOS /usr/etc/install
6148 # IRIX /sbin/install
6149 # AIX /bin/install
6150 # AmigaOS /C/install, which installs bootblocks on floppy discs
6151 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6152 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6153 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6154 # OS/2's system install, which has a completely different semantic
6155 # ./install, which can be erroneously created by make from ./install.sh.
6156 # Reject install programs that cannot install multiple files.
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6158 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6159 if test -z "$INSTALL"; then
6160 if test "${ac_cv_path_install+set}" = set; then :
6161   $as_echo_n "(cached) " >&6
6162 else
6163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6165 do
6166   IFS=$as_save_IFS
6167   test -z "$as_dir" && as_dir=.
6168     # Account for people who put trailing slashes in PATH elements.
6169 case $as_dir/ in #((
6170   ./ | .// | /[cC]/* | \
6171   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6172   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6173   /usr/ucb/* ) ;;
6174   *)
6175     # OSF1 and SCO ODT 3.0 have their own names for install.
6176     # Don't use installbsd from OSF since it installs stuff as root
6177     # by default.
6178     for ac_prog in ginstall scoinst install; do
6179       for ac_exec_ext in '' $ac_executable_extensions; do
6180         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6181           if test $ac_prog = install &&
6182             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6183             # AIX install.  It has an incompatible calling convention.
6184             :
6185           elif test $ac_prog = install &&
6186             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6187             # program-specific install script used by HP pwplus--don't use.
6188             :
6189           else
6190             rm -rf conftest.one conftest.two conftest.dir
6191             echo one > conftest.one
6192             echo two > conftest.two
6193             mkdir conftest.dir
6194             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6195               test -s conftest.one && test -s conftest.two &&
6196               test -s conftest.dir/conftest.one &&
6197               test -s conftest.dir/conftest.two
6198             then
6199               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6200               break 3
6201             fi
6202           fi
6203         fi
6204       done
6205     done
6206     ;;
6207 esac
6208
6209   done
6210 IFS=$as_save_IFS
6211
6212 rm -rf conftest.one conftest.two conftest.dir
6213
6214 fi
6215   if test "${ac_cv_path_install+set}" = set; then
6216     INSTALL=$ac_cv_path_install
6217   else
6218     # As a last resort, use the slow shell script.  Don't cache a
6219     # value for INSTALL within a source directory, because that will
6220     # break other packages using the cache if that directory is
6221     # removed, or if the value is a relative name.
6222     INSTALL=$ac_install_sh
6223   fi
6224 fi
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6226 $as_echo "$INSTALL" >&6; }
6227
6228 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6229 # It thinks the first close brace ends the variable substitution.
6230 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6231
6232 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6233
6234 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6235
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6237 $as_echo_n "checking whether build environment is sane... " >&6; }
6238 # Just in case
6239 sleep 1
6240 echo timestamp > conftest.file
6241 # Reject unsafe characters in $srcdir or the absolute working directory
6242 # name.  Accept space and tab only in the latter.
6243 am_lf='
6244 '
6245 case `pwd` in
6246   *[\\\"\#\$\&\'\`$am_lf]*)
6247     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
6248 esac
6249 case $srcdir in
6250   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
6251     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
6252 esac
6253
6254 # Do `set' in a subshell so we don't clobber the current shell's
6255 # arguments.  Must try -L first in case configure is actually a
6256 # symlink; some systems play weird games with the mod time of symlinks
6257 # (eg FreeBSD returns the mod time of the symlink's containing
6258 # directory).
6259 if (
6260    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6261    if test "$*" = "X"; then
6262       # -L didn't work.
6263       set X `ls -t "$srcdir/configure" conftest.file`
6264    fi
6265    rm -f conftest.file
6266    if test "$*" != "X $srcdir/configure conftest.file" \
6267       && test "$*" != "X conftest.file $srcdir/configure"; then
6268
6269       # If neither matched, then we have a broken ls.  This can happen
6270       # if, for instance, CONFIG_SHELL is bash and it inherits a
6271       # broken ls alias from the environment.  This has actually
6272       # happened.  Such a system could not be considered "sane".
6273       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
6274 alias in your environment" "$LINENO" 5
6275    fi
6276
6277    test "$2" = conftest.file
6278    )
6279 then
6280    # Ok.
6281    :
6282 else
6283    as_fn_error "newly created file is older than distributed files!
6284 Check your system clock" "$LINENO" 5
6285 fi
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6287 $as_echo "yes" >&6; }
6288 test "$program_prefix" != NONE &&
6289   program_transform_name="s&^&$program_prefix&;$program_transform_name"
6290 # Use a double $ so make ignores it.
6291 test "$program_suffix" != NONE &&
6292   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6293 # Double any \ or $.
6294 # By default was `s,x,x', remove it if useless.
6295 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6296 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6297
6298 # expand $ac_aux_dir to an absolute path
6299 am_aux_dir=`cd $ac_aux_dir && pwd`
6300
6301 if test x"${MISSING+set}" != xset; then
6302   case $am_aux_dir in
6303   *\ * | *\     *)
6304     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
6305   *)
6306     MISSING="\${SHELL} $am_aux_dir/missing" ;;
6307   esac
6308 fi
6309 # Use eval to expand $SHELL
6310 if eval "$MISSING --run true"; then
6311   am_missing_run="$MISSING --run "
6312 else
6313   am_missing_run=
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
6315 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6316 fi
6317
6318 if test x"${install_sh}" != xset; then
6319   case $am_aux_dir in
6320   *\ * | *\     *)
6321     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6322   *)
6323     install_sh="\${SHELL} $am_aux_dir/install-sh"
6324   esac
6325 fi
6326
6327 # Installed binaries are usually stripped using `strip' when the user
6328 # run `make install-strip'.  However `strip' might not be the right
6329 # tool to use in cross-compilation environments, therefore Automake
6330 # will honor the `STRIP' environment variable to overrule this program.
6331 if test "$cross_compiling" != no; then
6332   if test -n "$ac_tool_prefix"; then
6333   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6334 set dummy ${ac_tool_prefix}strip; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if test "${ac_cv_prog_STRIP+set}" = set; then :
6338   $as_echo_n "(cached) " >&6
6339 else
6340   if test -n "$STRIP"; then
6341   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346   IFS=$as_save_IFS
6347   test -z "$as_dir" && as_dir=.
6348     for ac_exec_ext in '' $ac_executable_extensions; do
6349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352     break 2
6353   fi
6354 done
6355   done
6356 IFS=$as_save_IFS
6357
6358 fi
6359 fi
6360 STRIP=$ac_cv_prog_STRIP
6361 if test -n "$STRIP"; then
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6363 $as_echo "$STRIP" >&6; }
6364 else
6365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6367 fi
6368
6369
6370 fi
6371 if test -z "$ac_cv_prog_STRIP"; then
6372   ac_ct_STRIP=$STRIP
6373   # Extract the first word of "strip", so it can be a program name with args.
6374 set dummy strip; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6378   $as_echo_n "(cached) " >&6
6379 else
6380   if test -n "$ac_ct_STRIP"; then
6381   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386   IFS=$as_save_IFS
6387   test -z "$as_dir" && as_dir=.
6388     for ac_exec_ext in '' $ac_executable_extensions; do
6389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390     ac_cv_prog_ac_ct_STRIP="strip"
6391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392     break 2
6393   fi
6394 done
6395   done
6396 IFS=$as_save_IFS
6397
6398 fi
6399 fi
6400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6401 if test -n "$ac_ct_STRIP"; then
6402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6403 $as_echo "$ac_ct_STRIP" >&6; }
6404 else
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6407 fi
6408
6409   if test "x$ac_ct_STRIP" = x; then
6410     STRIP=":"
6411   else
6412     case $cross_compiling:$ac_tool_warned in
6413 yes:)
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6416 ac_tool_warned=yes ;;
6417 esac
6418     STRIP=$ac_ct_STRIP
6419   fi
6420 else
6421   STRIP="$ac_cv_prog_STRIP"
6422 fi
6423
6424 fi
6425 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6426
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6428 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6429 if test -z "$MKDIR_P"; then
6430   if test "${ac_cv_path_mkdir+set}" = set; then :
6431   $as_echo_n "(cached) " >&6
6432 else
6433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6435 do
6436   IFS=$as_save_IFS
6437   test -z "$as_dir" && as_dir=.
6438     for ac_prog in mkdir gmkdir; do
6439          for ac_exec_ext in '' $ac_executable_extensions; do
6440            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6441            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6442              'mkdir (GNU coreutils) '* | \
6443              'mkdir (coreutils) '* | \
6444              'mkdir (fileutils) '4.1*)
6445                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6446                break 3;;
6447            esac
6448          done
6449        done
6450   done
6451 IFS=$as_save_IFS
6452
6453 fi
6454
6455   if test "${ac_cv_path_mkdir+set}" = set; then
6456     MKDIR_P="$ac_cv_path_mkdir -p"
6457   else
6458     # As a last resort, use the slow shell script.  Don't cache a
6459     # value for MKDIR_P within a source directory, because that will
6460     # break other packages using the cache if that directory is
6461     # removed, or if the value is a relative name.
6462     test -d ./--version && rmdir ./--version
6463     MKDIR_P="$ac_install_sh -d"
6464   fi
6465 fi
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6467 $as_echo "$MKDIR_P" >&6; }
6468
6469 mkdir_p="$MKDIR_P"
6470 case $mkdir_p in
6471   [\\/$]* | ?:[\\/]*) ;;
6472   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
6473 esac
6474
6475 for ac_prog in gawk mawk nawk awk
6476 do
6477   # Extract the first word of "$ac_prog", so it can be a program name with args.
6478 set dummy $ac_prog; ac_word=$2
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if test "${ac_cv_prog_AWK+set}" = set; then :
6482   $as_echo_n "(cached) " >&6
6483 else
6484   if test -n "$AWK"; then
6485   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492     for ac_exec_ext in '' $ac_executable_extensions; do
6493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494     ac_cv_prog_AWK="$ac_prog"
6495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499   done
6500 IFS=$as_save_IFS
6501
6502 fi
6503 fi
6504 AWK=$ac_cv_prog_AWK
6505 if test -n "$AWK"; then
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6507 $as_echo "$AWK" >&6; }
6508 else
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6512
6513
6514   test -n "$AWK" && break
6515 done
6516
6517 ac_config_commands="$ac_config_commands depfiles"
6518
6519
6520 am_make=${MAKE-make}
6521 cat > confinc << 'END'
6522 am__doit:
6523         @echo this is the am__doit target
6524 .PHONY: am__doit
6525 END
6526 # If we don't find an include directive, just comment out the code.
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6528 $as_echo_n "checking for style of include used by $am_make... " >&6; }
6529 am__include="#"
6530 am__quote=
6531 _am_result=none
6532 # First try GNU make style include.
6533 echo "include confinc" > confmf
6534 # Ignore all kinds of additional output from `make'.
6535 case `$am_make -s -f confmf 2> /dev/null` in #(
6536 *the\ am__doit\ target*)
6537   am__include=include
6538   am__quote=
6539   _am_result=GNU
6540   ;;
6541 esac
6542 # Now try BSD make style include.
6543 if test "$am__include" = "#"; then
6544    echo '.include "confinc"' > confmf
6545    case `$am_make -s -f confmf 2> /dev/null` in #(
6546    *the\ am__doit\ target*)
6547      am__include=.include
6548      am__quote="\""
6549      _am_result=BSD
6550      ;;
6551    esac
6552 fi
6553
6554
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6556 $as_echo "$_am_result" >&6; }
6557 rm -f confinc confmf
6558
6559 # Check whether --enable-dependency-tracking was given.
6560 if test "${enable_dependency_tracking+set}" = set; then :
6561   enableval=$enable_dependency_tracking;
6562 fi
6563
6564 if test "x$enable_dependency_tracking" != xno; then
6565   am_depcomp="$ac_aux_dir/depcomp"
6566   AMDEPBACKSLASH='\'
6567 fi
6568  if test "x$enable_dependency_tracking" != xno; then
6569   AMDEP_TRUE=
6570   AMDEP_FALSE='#'
6571 else
6572   AMDEP_TRUE='#'
6573   AMDEP_FALSE=
6574 fi
6575
6576
6577 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6578   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6579   # is not polluted with repeated "-I."
6580   am__isrc=' -I$(srcdir)'
6581   # test to see if srcdir already configured
6582   if test -f $srcdir/config.status; then
6583     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6584   fi
6585 fi
6586
6587 # test whether we have cygpath
6588 if test -z "$CYGPATH_W"; then
6589   if (cygpath --version) >/dev/null 2>/dev/null; then
6590     CYGPATH_W='cygpath -w'
6591   else
6592     CYGPATH_W=echo
6593   fi
6594 fi
6595
6596
6597 # Define the identity of the package.
6598  PACKAGE=gdb
6599  VERSION=UNUSED-VERSION
6600
6601
6602 # Some tools Automake needs.
6603
6604 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6605
6606
6607 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6608
6609
6610 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6611
6612
6613 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6614
6615
6616 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6617
6618 # We need awk for the "check" target.  The system "awk" is bad on
6619 # some platforms.
6620 # Always define AMTAR for backward compatibility.
6621
6622 AMTAR=${AMTAR-"${am_missing_run}tar"}
6623
6624 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6625
6626
6627
6628
6629 depcc="$CC"   am_compiler_list=
6630
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6632 $as_echo_n "checking dependency style of $depcc... " >&6; }
6633 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6634   $as_echo_n "(cached) " >&6
6635 else
6636   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6637   # We make a subdir and do the tests there.  Otherwise we can end up
6638   # making bogus files that we don't know about and never remove.  For
6639   # instance it was reported that on HP-UX the gcc test will end up
6640   # making a dummy file named `D' -- because `-MD' means `put the output
6641   # in D'.
6642   mkdir conftest.dir
6643   # Copy depcomp to subdir because otherwise we won't find it if we're
6644   # using a relative directory.
6645   cp "$am_depcomp" conftest.dir
6646   cd conftest.dir
6647   # We will build objects and dependencies in a subdirectory because
6648   # it helps to detect inapplicable dependency modes.  For instance
6649   # both Tru64's cc and ICC support -MD to output dependencies as a
6650   # side effect of compilation, but ICC will put the dependencies in
6651   # the current directory while Tru64 will put them in the object
6652   # directory.
6653   mkdir sub
6654
6655   am_cv_CC_dependencies_compiler_type=none
6656   if test "$am_compiler_list" = ""; then
6657      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6658   fi
6659   am__universal=false
6660   case " $depcc " in #(
6661      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6662      esac
6663
6664   for depmode in $am_compiler_list; do
6665     # Setup a source with many dependencies, because some compilers
6666     # like to wrap large dependency lists on column 80 (with \), and
6667     # we should not choose a depcomp mode which is confused by this.
6668     #
6669     # We need to recreate these files for each test, as the compiler may
6670     # overwrite some of them when testing with obscure command lines.
6671     # This happens at least with the AIX C compiler.
6672     : > sub/conftest.c
6673     for i in 1 2 3 4 5 6; do
6674       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6675       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6676       # Solaris 8's {/usr,}/bin/sh.
6677       touch sub/conftst$i.h
6678     done
6679     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6680
6681     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6682     # mode.  It turns out that the SunPro C++ compiler does not properly
6683     # handle `-M -o', and we need to detect this.  Also, some Intel
6684     # versions had trouble with output in subdirs
6685     am__obj=sub/conftest.${OBJEXT-o}
6686     am__minus_obj="-o $am__obj"
6687     case $depmode in
6688     gcc)
6689       # This depmode causes a compiler race in universal mode.
6690       test "$am__universal" = false || continue
6691       ;;
6692     nosideeffect)
6693       # after this tag, mechanisms are not by side-effect, so they'll
6694       # only be used when explicitly requested
6695       if test "x$enable_dependency_tracking" = xyes; then
6696         continue
6697       else
6698         break
6699       fi
6700       ;;
6701     msvisualcpp | msvcmsys)
6702       # This compiler won't grok `-c -o', but also, the minuso test has
6703       # not run yet.  These depmodes are late enough in the game, and
6704       # so weak that their functioning should not be impacted.
6705       am__obj=conftest.${OBJEXT-o}
6706       am__minus_obj=
6707       ;;
6708     none) break ;;
6709     esac
6710     if depmode=$depmode \
6711        source=sub/conftest.c object=$am__obj \
6712        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6713        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6714          >/dev/null 2>conftest.err &&
6715        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6716        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6717        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6718        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6719       # icc doesn't choke on unknown options, it will just issue warnings
6720       # or remarks (even with -Werror).  So we grep stderr for any message
6721       # that says an option was ignored or not supported.
6722       # When given -MP, icc 7.0 and 7.1 complain thusly:
6723       #   icc: Command line warning: ignoring option '-M'; no argument required
6724       # The diagnosis changed in icc 8.0:
6725       #   icc: Command line remark: option '-MP' not supported
6726       if (grep 'ignoring option' conftest.err ||
6727           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6728         am_cv_CC_dependencies_compiler_type=$depmode
6729         break
6730       fi
6731     fi
6732   done
6733
6734   cd ..
6735   rm -rf conftest.dir
6736 else
6737   am_cv_CC_dependencies_compiler_type=none
6738 fi
6739
6740 fi
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6742 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6743 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6744
6745  if
6746   test "x$enable_dependency_tracking" != xno \
6747   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6748   am__fastdepCC_TRUE=
6749   am__fastdepCC_FALSE='#'
6750 else
6751   am__fastdepCC_TRUE='#'
6752   am__fastdepCC_FALSE=
6753 fi
6754
6755
6756
6757
6758
6759
6760 # Check whether --with-separate-debug-dir was given.
6761 if test "${with_separate_debug_dir+set}" = set; then :
6762   withval=$with_separate_debug_dir;
6763     DEBUGDIR=$withval
6764 else
6765   DEBUGDIR=${libdir}/debug
6766 fi
6767
6768
6769   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6770   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6771   ac_define_dir=`eval echo $DEBUGDIR`
6772   ac_define_dir=`eval echo $ac_define_dir`
6773
6774 cat >>confdefs.h <<_ACEOF
6775 #define DEBUGDIR "$ac_define_dir"
6776 _ACEOF
6777
6778
6779
6780   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6781      if test "x$prefix" = xNONE; then
6782         test_prefix=/usr/local
6783      else
6784         test_prefix=$prefix
6785      fi
6786   else
6787      test_prefix=$exec_prefix
6788   fi
6789   value=0
6790   case ${ac_define_dir} in
6791      "${test_prefix}"|"${test_prefix}/"*|\
6792         '${exec_prefix}'|'${exec_prefix}/'*)
6793      value=1
6794      ;;
6795   esac
6796
6797 cat >>confdefs.h <<_ACEOF
6798 #define DEBUGDIR_RELOCATABLE $value
6799 _ACEOF
6800
6801
6802
6803 # GDB's datadir relocation
6804
6805
6806
6807 # Check whether --with-gdb-datadir was given.
6808 if test "${with_gdb_datadir+set}" = set; then :
6809   withval=$with_gdb_datadir;
6810     GDB_DATADIR=$withval
6811 else
6812   GDB_DATADIR=${datadir}/gdb
6813 fi
6814
6815
6816   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6817   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6818   ac_define_dir=`eval echo $GDB_DATADIR`
6819   ac_define_dir=`eval echo $ac_define_dir`
6820
6821 cat >>confdefs.h <<_ACEOF
6822 #define GDB_DATADIR "$ac_define_dir"
6823 _ACEOF
6824
6825
6826
6827   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6828      if test "x$prefix" = xNONE; then
6829         test_prefix=/usr/local
6830      else
6831         test_prefix=$prefix
6832      fi
6833   else
6834      test_prefix=$exec_prefix
6835   fi
6836   value=0
6837   case ${ac_define_dir} in
6838      "${test_prefix}"|"${test_prefix}/"*|\
6839         '${exec_prefix}'|'${exec_prefix}/'*)
6840      value=1
6841      ;;
6842   esac
6843
6844 cat >>confdefs.h <<_ACEOF
6845 #define GDB_DATADIR_RELOCATABLE $value
6846 _ACEOF
6847
6848
6849
6850
6851 # Check whether --with-relocated-sources was given.
6852 if test "${with_relocated_sources+set}" = set; then :
6853   withval=$with_relocated_sources; reloc_srcdir="${withval}"
6854
6855   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6856   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6857   ac_define_dir=`eval echo $reloc_srcdir`
6858   ac_define_dir=`eval echo $ac_define_dir`
6859
6860 cat >>confdefs.h <<_ACEOF
6861 #define RELOC_SRCDIR "$ac_define_dir"
6862 _ACEOF
6863
6864
6865
6866 fi
6867
6868
6869
6870
6871 subdirs="$subdirs doc testsuite"
6872
6873
6874 # Check whether to support alternative target configurations
6875 # Check whether --enable-targets was given.
6876 if test "${enable_targets+set}" = set; then :
6877   enableval=$enable_targets; case "${enableval}" in
6878   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
6879             ;;
6880   no)       enable_targets= ;;
6881   *)        enable_targets=$enableval ;;
6882 esac
6883 fi
6884
6885
6886 # Check whether to enable 64-bit support on 32-bit hosts
6887 # Check whether --enable-64-bit-bfd was given.
6888 if test "${enable_64_bit_bfd+set}" = set; then :
6889   enableval=$enable_64_bit_bfd; case "${enableval}" in
6890   yes)  want64=true  ;;
6891   no)   want64=false ;;
6892   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6893 esac
6894 else
6895   want64=false
6896 fi
6897
6898 # Provide defaults for some variables set by the per-host and per-target
6899 # configuration.
6900 gdb_host_obs=posix-hdep.o
6901
6902 if test "${target}" = "${host}"; then
6903   gdb_native=yes
6904 else
6905   gdb_native=no
6906 fi
6907
6908 . $srcdir/configure.host
6909
6910 # Accumulate some settings from configure.tgt over all enabled targets
6911
6912 TARGET_OBS=
6913 all_targets=
6914
6915 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6916 do
6917   if test "$targ_alias" = "all"; then
6918     all_targets=true
6919   else
6920     # Canonicalize the secondary target names.
6921     result=`$ac_config_sub $targ_alias 2>/dev/null`
6922     if test -n "$result"; then
6923         targ=$result
6924     else
6925         targ=$targ_alias
6926     fi
6927
6928     . ${srcdir}/configure.tgt
6929
6930     if test -z "${gdb_target_obs}"; then :
6931   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
6932 fi
6933
6934     # Target-specific object files
6935     for i in ${gdb_target_obs}; do
6936         case " $TARGET_OBS " in
6937         *" ${i} "*) ;;
6938         *)
6939           TARGET_OBS="$TARGET_OBS ${i}"
6940           ;;
6941         esac
6942     done
6943
6944     # Check whether this target needs 64-bit CORE_ADDR
6945     if test x${want64} = xfalse; then
6946       . ${srcdir}/../bfd/config.bfd
6947     fi
6948   fi
6949 done
6950
6951 if test x${all_targets} = xtrue; then
6952
6953   # We want all 64-bit targets if we either:
6954   #  - run on a 64-bit host  or
6955   #  - already require 64-bit support for some other target  or
6956   #  - the --enable-64-bit-bfd option was supplied
6957   # Otherwise we only support all 32-bit targets.
6958   #
6959   # NOTE: This test must be in sync with the corresponding
6960   #       tests in BFD!
6961
6962   if test x${want64} = xfalse; then
6963     # The cast to long int works around a bug in the HP C Compiler
6964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6966 # This bug is HP SR number 8606223364.
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6968 $as_echo_n "checking size of long... " >&6; }
6969 if test "${ac_cv_sizeof_long+set}" = set; then :
6970   $as_echo_n "(cached) " >&6
6971 else
6972   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6973
6974 else
6975   if test "$ac_cv_type_long" = yes; then
6976      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6978 { as_fn_set_status 77
6979 as_fn_error "cannot compute sizeof (long)
6980 See \`config.log' for more details." "$LINENO" 5; }; }
6981    else
6982      ac_cv_sizeof_long=0
6983    fi
6984 fi
6985
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6988 $as_echo "$ac_cv_sizeof_long" >&6; }
6989
6990
6991
6992 cat >>confdefs.h <<_ACEOF
6993 #define SIZEOF_LONG $ac_cv_sizeof_long
6994 _ACEOF
6995
6996
6997     if test "x${ac_cv_sizeof_long}" = "x8"; then
6998       want64=true
6999     fi
7000   fi
7001   if test x${want64} = xtrue; then
7002     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7003   else
7004     TARGET_OBS='$(ALL_TARGET_OBS)'
7005   fi
7006 fi
7007
7008
7009
7010 # For other settings, only the main target counts.
7011 gdb_sim=
7012 gdb_osabi=
7013 build_gdbserver=
7014 targ=$target; . ${srcdir}/configure.tgt
7015
7016 # Fetch the default architecture and default target vector from BFD.
7017 targ=$target; . $srcdir/../bfd/config.bfd
7018
7019 # We only want the first architecture, so strip off the others if
7020 # there is more than one.
7021 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7022
7023 if test "x$targ_archs" != x; then
7024
7025 cat >>confdefs.h <<_ACEOF
7026 #define DEFAULT_BFD_ARCH $targ_archs
7027 _ACEOF
7028
7029 fi
7030 if test "x$targ_defvec" != x; then
7031
7032 cat >>confdefs.h <<_ACEOF
7033 #define DEFAULT_BFD_VEC $targ_defvec
7034 _ACEOF
7035
7036 fi
7037
7038 # The CLI cannot be disabled yet, but may be in the future.
7039
7040 # Enable CLI.
7041 # Check whether --enable-gdbcli was given.
7042 if test "${enable_gdbcli+set}" = set; then :
7043   enableval=$enable_gdbcli; case $enableval in
7044     yes)
7045       ;;
7046     no)
7047       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
7048     *)
7049       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
7050   esac
7051 else
7052   enable_gdbcli=yes
7053 fi
7054
7055 if test x"$enable_gdbcli" = xyes; then
7056   if test -d $srcdir/cli; then
7057     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7058     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7059     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7060     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7061   fi
7062 fi
7063
7064 # Enable MI.
7065 # Check whether --enable-gdbmi was given.
7066 if test "${enable_gdbmi+set}" = set; then :
7067   enableval=$enable_gdbmi; case $enableval in
7068     yes | no)
7069       ;;
7070     *)
7071       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
7072   esac
7073 else
7074   enable_gdbmi=yes
7075 fi
7076
7077 if test x"$enable_gdbmi" = xyes; then
7078   if test -d $srcdir/mi; then
7079     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7080     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7081     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7082     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7083   fi
7084 fi
7085
7086 # Enable TUI.
7087 # Check whether --enable-tui was given.
7088 if test "${enable_tui+set}" = set; then :
7089   enableval=$enable_tui; case $enableval in
7090     yes | no | auto)
7091       ;;
7092     *)
7093       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
7094   esac
7095 else
7096   enable_tui=auto
7097 fi
7098
7099
7100 # Enable gdbtk.
7101 # Check whether --enable-gdbtk was given.
7102 if test "${enable_gdbtk+set}" = set; then :
7103   enableval=$enable_gdbtk; case $enableval in
7104     yes | no)
7105       ;;
7106     *)
7107       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
7108   esac
7109 else
7110   if test -d $srcdir/gdbtk; then
7111     enable_gdbtk=yes
7112   else
7113     enable_gdbtk=no
7114   fi
7115 fi
7116
7117 # We unconditionally disable gdbtk tests on selected platforms.
7118 case $host_os in
7119   go32* | windows*)
7120     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
7121 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7122     enable_gdbtk=no ;;
7123 esac
7124
7125 # Libunwind support.
7126
7127 # Check whether --with-libunwind was given.
7128 if test "${with_libunwind+set}" = set; then :
7129   withval=$with_libunwind; case "${withval}" in
7130   yes)  enable_libunwind=yes ;;
7131   no)   enable_libunwind=no ;;
7132   *)    as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
7133 esac
7134 else
7135
7136   for ac_header in libunwind.h libunwind-ia64.h
7137 do :
7138   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7140 eval as_val=\$$as_ac_Header
7141    if test "x$as_val" = x""yes; then :
7142   cat >>confdefs.h <<_ACEOF
7143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7144 _ACEOF
7145
7146 fi
7147
7148 done
7149
7150   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7151     enable_libunwind=yes;
7152   fi
7153
7154 fi
7155
7156
7157 if test x"$enable_libunwind" = xyes; then
7158   for ac_header in libunwind.h libunwind-ia64.h
7159 do :
7160   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7161 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7162 eval as_val=\$$as_ac_Header
7163    if test "x$as_val" = x""yes; then :
7164   cat >>confdefs.h <<_ACEOF
7165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7166 _ACEOF
7167
7168 fi
7169
7170 done
7171
7172
7173 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
7174
7175   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
7176   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
7177   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
7178 fi
7179
7180 opt_curses=no
7181
7182 # Check whether --with-curses was given.
7183 if test "${with_curses+set}" = set; then :
7184   withval=$with_curses; opt_curses=$withval
7185 fi
7186
7187
7188 prefer_curses=no
7189 if test "$opt_curses" = "yes"; then
7190   prefer_curses=yes
7191 fi
7192
7193 # Profiling support.
7194 # Check whether --enable-profiling was given.
7195 if test "${enable_profiling+set}" = set; then :
7196   enableval=$enable_profiling; case $enableval in
7197     yes | no)
7198       ;;
7199     *)
7200       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7201   esac
7202 else
7203   enable_profiling=no
7204 fi
7205
7206
7207 for ac_func in monstartup _mcleanup
7208 do :
7209   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7210 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7211 eval as_val=\$$as_ac_var
7212    if test "x$as_val" = x""yes; then :
7213   cat >>confdefs.h <<_ACEOF
7214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7215 _ACEOF
7216
7217 fi
7218 done
7219
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7221 $as_echo_n "checking for _etext... " >&6; }
7222 if test "${ac_cv_var__etext+set}" = set; then :
7223   $as_echo_n "(cached) " >&6
7224 else
7225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h.  */
7227 #include <stdlib.h>
7228 extern char _etext;
7229
7230 int
7231 main ()
7232 {
7233 free (&_etext);
7234   ;
7235   return 0;
7236 }
7237 _ACEOF
7238 if ac_fn_c_try_link "$LINENO"; then :
7239   ac_cv_var__etext=yes
7240 else
7241   ac_cv_var__etext=no
7242 fi
7243 rm -f core conftest.err conftest.$ac_objext \
7244     conftest$ac_exeext conftest.$ac_ext
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7247 $as_echo "$ac_cv_var__etext" >&6; }
7248 if test $ac_cv_var__etext = yes; then
7249
7250 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7251
7252 fi
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7254 $as_echo_n "checking for etext... " >&6; }
7255 if test "${ac_cv_var_etext+set}" = set; then :
7256   $as_echo_n "(cached) " >&6
7257 else
7258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h.  */
7260 #include <stdlib.h>
7261 extern char etext;
7262
7263 int
7264 main ()
7265 {
7266 free (&etext);
7267   ;
7268   return 0;
7269 }
7270 _ACEOF
7271 if ac_fn_c_try_link "$LINENO"; then :
7272   ac_cv_var_etext=yes
7273 else
7274   ac_cv_var_etext=no
7275 fi
7276 rm -f core conftest.err conftest.$ac_objext \
7277     conftest$ac_exeext conftest.$ac_ext
7278 fi
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7280 $as_echo "$ac_cv_var_etext" >&6; }
7281 if test $ac_cv_var_etext = yes; then
7282
7283 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7284
7285 fi
7286 if test "$enable_profiling" = yes ; then
7287   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
7288     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7289   fi
7290   PROFILE_CFLAGS=-pg
7291   OLD_CFLAGS="$CFLAGS"
7292   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
7293
7294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7295 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7296 if test "${ac_cv_cc_supports_pg+set}" = set; then :
7297   $as_echo_n "(cached) " >&6
7298 else
7299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h.  */
7301
7302 int
7303 main ()
7304 {
7305 int x;
7306   ;
7307   return 0;
7308 }
7309 _ACEOF
7310 if ac_fn_c_try_compile "$LINENO"; then :
7311   ac_cv_cc_supports_pg=yes
7312 else
7313   ac_cv_cc_supports_pg=no
7314 fi
7315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316 fi
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7318 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7319
7320   if test $ac_cv_cc_supports_pg = no; then
7321     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7322   fi
7323
7324   CFLAGS="$OLD_CFLAGS"
7325 fi
7326
7327
7328
7329 # Check whether --with-pkgversion was given.
7330 if test "${with_pkgversion+set}" = set; then :
7331   withval=$with_pkgversion; case "$withval" in
7332       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7333       no)  PKGVERSION= ;;
7334       *)   PKGVERSION="($withval) " ;;
7335      esac
7336 else
7337   PKGVERSION="(GDB) "
7338
7339 fi
7340
7341
7342
7343
7344
7345 # Check whether --with-bugurl was given.
7346 if test "${with_bugurl+set}" = set; then :
7347   withval=$with_bugurl; case "$withval" in
7348       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7349       no)  BUGURL=
7350            ;;
7351       *)   BUGURL="$withval"
7352            ;;
7353      esac
7354 else
7355   BUGURL="http://www.gnu.org/software/gdb/bugs/"
7356
7357 fi
7358
7359   case ${BUGURL} in
7360   "")
7361     REPORT_BUGS_TO=
7362     REPORT_BUGS_TEXI=
7363     ;;
7364   *)
7365     REPORT_BUGS_TO="<$BUGURL>"
7366     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7367     ;;
7368   esac;
7369
7370
7371
7372
7373 cat >>confdefs.h <<_ACEOF
7374 #define PKGVERSION "$PKGVERSION"
7375 _ACEOF
7376
7377
7378 cat >>confdefs.h <<_ACEOF
7379 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7380 _ACEOF
7381
7382
7383 # --------------------- #
7384 # Checks for programs.  #
7385 # --------------------- #
7386
7387 for ac_prog in gawk mawk nawk awk
7388 do
7389   # Extract the first word of "$ac_prog", so it can be a program name with args.
7390 set dummy $ac_prog; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if test "${ac_cv_prog_AWK+set}" = set; then :
7394   $as_echo_n "(cached) " >&6
7395 else
7396   if test -n "$AWK"; then
7397   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402   IFS=$as_save_IFS
7403   test -z "$as_dir" && as_dir=.
7404     for ac_exec_ext in '' $ac_executable_extensions; do
7405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406     ac_cv_prog_AWK="$ac_prog"
7407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408     break 2
7409   fi
7410 done
7411   done
7412 IFS=$as_save_IFS
7413
7414 fi
7415 fi
7416 AWK=$ac_cv_prog_AWK
7417 if test -n "$AWK"; then
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7419 $as_echo "$AWK" >&6; }
7420 else
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7423 fi
7424
7425
7426   test -n "$AWK" && break
7427 done
7428
7429
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7431 $as_echo_n "checking whether ln -s works... " >&6; }
7432 LN_S=$as_ln_s
7433 if test "$LN_S" = "ln -s"; then
7434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7435 $as_echo "yes" >&6; }
7436 else
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7438 $as_echo "no, using $LN_S" >&6; }
7439 fi
7440
7441 if test -n "$ac_tool_prefix"; then
7442   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7443 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7447   $as_echo_n "(cached) " >&6
7448 else
7449   if test -n "$RANLIB"; then
7450   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457     for ac_exec_ext in '' $ac_executable_extensions; do
7458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464   done
7465 IFS=$as_save_IFS
7466
7467 fi
7468 fi
7469 RANLIB=$ac_cv_prog_RANLIB
7470 if test -n "$RANLIB"; then
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7472 $as_echo "$RANLIB" >&6; }
7473 else
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477
7478
7479 fi
7480 if test -z "$ac_cv_prog_RANLIB"; then
7481   ac_ct_RANLIB=$RANLIB
7482   # Extract the first word of "ranlib", so it can be a program name with args.
7483 set dummy ranlib; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7487   $as_echo_n "(cached) " >&6
7488 else
7489   if test -n "$ac_ct_RANLIB"; then
7490   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7491 else
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7494 do
7495   IFS=$as_save_IFS
7496   test -z "$as_dir" && as_dir=.
7497     for ac_exec_ext in '' $ac_executable_extensions; do
7498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7499     ac_cv_prog_ac_ct_RANLIB="ranlib"
7500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501     break 2
7502   fi
7503 done
7504   done
7505 IFS=$as_save_IFS
7506
7507 fi
7508 fi
7509 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7510 if test -n "$ac_ct_RANLIB"; then
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7512 $as_echo "$ac_ct_RANLIB" >&6; }
7513 else
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7516 fi
7517
7518   if test "x$ac_ct_RANLIB" = x; then
7519     RANLIB=":"
7520   else
7521     case $cross_compiling:$ac_tool_warned in
7522 yes:)
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525 ac_tool_warned=yes ;;
7526 esac
7527     RANLIB=$ac_ct_RANLIB
7528   fi
7529 else
7530   RANLIB="$ac_cv_prog_RANLIB"
7531 fi
7532
7533 for ac_prog in 'bison -y' byacc
7534 do
7535   # Extract the first word of "$ac_prog", so it can be a program name with args.
7536 set dummy $ac_prog; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if test "${ac_cv_prog_YACC+set}" = set; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   if test -n "$YACC"; then
7543   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550     for ac_exec_ext in '' $ac_executable_extensions; do
7551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552     ac_cv_prog_YACC="$ac_prog"
7553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557   done
7558 IFS=$as_save_IFS
7559
7560 fi
7561 fi
7562 YACC=$ac_cv_prog_YACC
7563 if test -n "$YACC"; then
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7565 $as_echo "$YACC" >&6; }
7566 else
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7569 fi
7570
7571
7572   test -n "$YACC" && break
7573 done
7574 test -n "$YACC" || YACC="yacc"
7575
7576
7577 if test -n "$ac_tool_prefix"; then
7578   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7579 set dummy ${ac_tool_prefix}ar; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if test "${ac_cv_prog_AR+set}" = set; then :
7583   $as_echo_n "(cached) " >&6
7584 else
7585   if test -n "$AR"; then
7586   ac_cv_prog_AR="$AR" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591   IFS=$as_save_IFS
7592   test -z "$as_dir" && as_dir=.
7593     for ac_exec_ext in '' $ac_executable_extensions; do
7594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595     ac_cv_prog_AR="${ac_tool_prefix}ar"
7596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597     break 2
7598   fi
7599 done
7600   done
7601 IFS=$as_save_IFS
7602
7603 fi
7604 fi
7605 AR=$ac_cv_prog_AR
7606 if test -n "$AR"; then
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7608 $as_echo "$AR" >&6; }
7609 else
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612 fi
7613
7614
7615 fi
7616 if test -z "$ac_cv_prog_AR"; then
7617   ac_ct_AR=$AR
7618   # Extract the first word of "ar", so it can be a program name with args.
7619 set dummy ar; ac_word=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7623   $as_echo_n "(cached) " >&6
7624 else
7625   if test -n "$ac_ct_AR"; then
7626   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7627 else
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 for as_dir in $PATH
7630 do
7631   IFS=$as_save_IFS
7632   test -z "$as_dir" && as_dir=.
7633     for ac_exec_ext in '' $ac_executable_extensions; do
7634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7635     ac_cv_prog_ac_ct_AR="ar"
7636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637     break 2
7638   fi
7639 done
7640   done
7641 IFS=$as_save_IFS
7642
7643 fi
7644 fi
7645 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7646 if test -n "$ac_ct_AR"; then
7647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7648 $as_echo "$ac_ct_AR" >&6; }
7649 else
7650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7652 fi
7653
7654   if test "x$ac_ct_AR" = x; then
7655     AR=""
7656   else
7657     case $cross_compiling:$ac_tool_warned in
7658 yes:)
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7661 ac_tool_warned=yes ;;
7662 esac
7663     AR=$ac_ct_AR
7664   fi
7665 else
7666   AR="$ac_cv_prog_AR"
7667 fi
7668
7669 if test -n "$ac_tool_prefix"; then
7670   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7671 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7675   $as_echo_n "(cached) " >&6
7676 else
7677   if test -n "$DLLTOOL"; then
7678   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685     for ac_exec_ext in '' $ac_executable_extensions; do
7686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689     break 2
7690   fi
7691 done
7692   done
7693 IFS=$as_save_IFS
7694
7695 fi
7696 fi
7697 DLLTOOL=$ac_cv_prog_DLLTOOL
7698 if test -n "$DLLTOOL"; then
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7700 $as_echo "$DLLTOOL" >&6; }
7701 else
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7704 fi
7705
7706
7707 fi
7708 if test -z "$ac_cv_prog_DLLTOOL"; then
7709   ac_ct_DLLTOOL=$DLLTOOL
7710   # Extract the first word of "dlltool", so it can be a program name with args.
7711 set dummy dlltool; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7715   $as_echo_n "(cached) " >&6
7716 else
7717   if test -n "$ac_ct_DLLTOOL"; then
7718   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723   IFS=$as_save_IFS
7724   test -z "$as_dir" && as_dir=.
7725     for ac_exec_ext in '' $ac_executable_extensions; do
7726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729     break 2
7730   fi
7731 done
7732   done
7733 IFS=$as_save_IFS
7734
7735 fi
7736 fi
7737 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7738 if test -n "$ac_ct_DLLTOOL"; then
7739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7740 $as_echo "$ac_ct_DLLTOOL" >&6; }
7741 else
7742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745
7746   if test "x$ac_ct_DLLTOOL" = x; then
7747     DLLTOOL=""
7748   else
7749     case $cross_compiling:$ac_tool_warned in
7750 yes:)
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7753 ac_tool_warned=yes ;;
7754 esac
7755     DLLTOOL=$ac_ct_DLLTOOL
7756   fi
7757 else
7758   DLLTOOL="$ac_cv_prog_DLLTOOL"
7759 fi
7760
7761 if test -n "$ac_tool_prefix"; then
7762   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7763 set dummy ${ac_tool_prefix}windres; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if test "${ac_cv_prog_WINDRES+set}" = set; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   if test -n "$WINDRES"; then
7770   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777     for ac_exec_ext in '' $ac_executable_extensions; do
7778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784   done
7785 IFS=$as_save_IFS
7786
7787 fi
7788 fi
7789 WINDRES=$ac_cv_prog_WINDRES
7790 if test -n "$WINDRES"; then
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7792 $as_echo "$WINDRES" >&6; }
7793 else
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797
7798
7799 fi
7800 if test -z "$ac_cv_prog_WINDRES"; then
7801   ac_ct_WINDRES=$WINDRES
7802   # Extract the first word of "windres", so it can be a program name with args.
7803 set dummy windres; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
7807   $as_echo_n "(cached) " >&6
7808 else
7809   if test -n "$ac_ct_WINDRES"; then
7810   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815   IFS=$as_save_IFS
7816   test -z "$as_dir" && as_dir=.
7817     for ac_exec_ext in '' $ac_executable_extensions; do
7818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819     ac_cv_prog_ac_ct_WINDRES="windres"
7820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821     break 2
7822   fi
7823 done
7824   done
7825 IFS=$as_save_IFS
7826
7827 fi
7828 fi
7829 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7830 if test -n "$ac_ct_WINDRES"; then
7831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7832 $as_echo "$ac_ct_WINDRES" >&6; }
7833 else
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7836 fi
7837
7838   if test "x$ac_ct_WINDRES" = x; then
7839     WINDRES=""
7840   else
7841     case $cross_compiling:$ac_tool_warned in
7842 yes:)
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7845 ac_tool_warned=yes ;;
7846 esac
7847     WINDRES=$ac_ct_WINDRES
7848   fi
7849 else
7850   WINDRES="$ac_cv_prog_WINDRES"
7851 fi
7852
7853
7854 # Needed for GNU/Hurd.
7855 if test -n "$ac_tool_prefix"; then
7856   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7857 set dummy ${ac_tool_prefix}mig; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if test "${ac_cv_prog_MIG+set}" = set; then :
7861   $as_echo_n "(cached) " >&6
7862 else
7863   if test -n "$MIG"; then
7864   ac_cv_prog_MIG="$MIG" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869   IFS=$as_save_IFS
7870   test -z "$as_dir" && as_dir=.
7871     for ac_exec_ext in '' $ac_executable_extensions; do
7872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7873     ac_cv_prog_MIG="${ac_tool_prefix}mig"
7874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875     break 2
7876   fi
7877 done
7878   done
7879 IFS=$as_save_IFS
7880
7881 fi
7882 fi
7883 MIG=$ac_cv_prog_MIG
7884 if test -n "$MIG"; then
7885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7886 $as_echo "$MIG" >&6; }
7887 else
7888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7890 fi
7891
7892
7893 fi
7894 if test -z "$ac_cv_prog_MIG"; then
7895   ac_ct_MIG=$MIG
7896   # Extract the first word of "mig", so it can be a program name with args.
7897 set dummy mig; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
7901   $as_echo_n "(cached) " >&6
7902 else
7903   if test -n "$ac_ct_MIG"; then
7904   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7908 do
7909   IFS=$as_save_IFS
7910   test -z "$as_dir" && as_dir=.
7911     for ac_exec_ext in '' $ac_executable_extensions; do
7912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7913     ac_cv_prog_ac_ct_MIG="mig"
7914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915     break 2
7916   fi
7917 done
7918   done
7919 IFS=$as_save_IFS
7920
7921 fi
7922 fi
7923 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7924 if test -n "$ac_ct_MIG"; then
7925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7926 $as_echo "$ac_ct_MIG" >&6; }
7927 else
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7930 fi
7931
7932   if test "x$ac_ct_MIG" = x; then
7933     MIG=""
7934   else
7935     case $cross_compiling:$ac_tool_warned in
7936 yes:)
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7939 ac_tool_warned=yes ;;
7940 esac
7941     MIG=$ac_ct_MIG
7942   fi
7943 else
7944   MIG="$ac_cv_prog_MIG"
7945 fi
7946
7947
7948 # ---------------------- #
7949 # Checks for libraries.  #
7950 # ---------------------- #
7951
7952 # We might need to link with -lm; most simulators need it.
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7954 $as_echo_n "checking for main in -lm... " >&6; }
7955 if test "${ac_cv_lib_m_main+set}" = set; then :
7956   $as_echo_n "(cached) " >&6
7957 else
7958   ac_check_lib_save_LIBS=$LIBS
7959 LIBS="-lm  $LIBS"
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h.  */
7962
7963
7964 int
7965 main ()
7966 {
7967 return main ();
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 if ac_fn_c_try_link "$LINENO"; then :
7973   ac_cv_lib_m_main=yes
7974 else
7975   ac_cv_lib_m_main=no
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext \
7978     conftest$ac_exeext conftest.$ac_ext
7979 LIBS=$ac_check_lib_save_LIBS
7980 fi
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7982 $as_echo "$ac_cv_lib_m_main" >&6; }
7983 if test "x$ac_cv_lib_m_main" = x""yes; then :
7984   cat >>confdefs.h <<_ACEOF
7985 #define HAVE_LIBM 1
7986 _ACEOF
7987
7988   LIBS="-lm $LIBS"
7989
7990 fi
7991
7992
7993 # We need to link with -lw to get `wctype' on Solaris before Solaris
7994 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
7995 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7996 # is known to have this problem).  Therefore we avoid libw if we can.
7997 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
7998 if test "x$ac_cv_func_wctype" = x""yes; then :
7999
8000 else
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
8002 $as_echo_n "checking for wctype in -lw... " >&6; }
8003 if test "${ac_cv_lib_w_wctype+set}" = set; then :
8004   $as_echo_n "(cached) " >&6
8005 else
8006   ac_check_lib_save_LIBS=$LIBS
8007 LIBS="-lw  $LIBS"
8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h.  */
8010
8011 /* Override any GCC internal prototype to avoid an error.
8012    Use char because int might match the return type of a GCC
8013    builtin and then its argument prototype would still apply.  */
8014 #ifdef __cplusplus
8015 extern "C"
8016 #endif
8017 char wctype ();
8018 int
8019 main ()
8020 {
8021 return wctype ();
8022   ;
8023   return 0;
8024 }
8025 _ACEOF
8026 if ac_fn_c_try_link "$LINENO"; then :
8027   ac_cv_lib_w_wctype=yes
8028 else
8029   ac_cv_lib_w_wctype=no
8030 fi
8031 rm -f core conftest.err conftest.$ac_objext \
8032     conftest$ac_exeext conftest.$ac_ext
8033 LIBS=$ac_check_lib_save_LIBS
8034 fi
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
8036 $as_echo "$ac_cv_lib_w_wctype" >&6; }
8037 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
8038   cat >>confdefs.h <<_ACEOF
8039 #define HAVE_LIBW 1
8040 _ACEOF
8041
8042   LIBS="-lw $LIBS"
8043
8044 fi
8045
8046 fi
8047
8048
8049 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8051 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8052 if test "${ac_cv_search_gethostbyname+set}" = set; then :
8053   $as_echo_n "(cached) " >&6
8054 else
8055   ac_func_search_save_LIBS=$LIBS
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h.  */
8058
8059 /* Override any GCC internal prototype to avoid an error.
8060    Use char because int might match the return type of a GCC
8061    builtin and then its argument prototype would still apply.  */
8062 #ifdef __cplusplus
8063 extern "C"
8064 #endif
8065 char gethostbyname ();
8066 int
8067 main ()
8068 {
8069 return gethostbyname ();
8070   ;
8071   return 0;
8072 }
8073 _ACEOF
8074 for ac_lib in '' nsl; do
8075   if test -z "$ac_lib"; then
8076     ac_res="none required"
8077   else
8078     ac_res=-l$ac_lib
8079     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8080   fi
8081   if ac_fn_c_try_link "$LINENO"; then :
8082   ac_cv_search_gethostbyname=$ac_res
8083 fi
8084 rm -f core conftest.err conftest.$ac_objext \
8085     conftest$ac_exeext
8086   if test "${ac_cv_search_gethostbyname+set}" = set; then :
8087   break
8088 fi
8089 done
8090 if test "${ac_cv_search_gethostbyname+set}" = set; then :
8091
8092 else
8093   ac_cv_search_gethostbyname=no
8094 fi
8095 rm conftest.$ac_ext
8096 LIBS=$ac_func_search_save_LIBS
8097 fi
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8099 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8100 ac_res=$ac_cv_search_gethostbyname
8101 if test "$ac_res" != no; then :
8102   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8103
8104 fi
8105
8106
8107 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8109 $as_echo_n "checking for library containing socketpair... " >&6; }
8110 if test "${ac_cv_search_socketpair+set}" = set; then :
8111   $as_echo_n "(cached) " >&6
8112 else
8113   ac_func_search_save_LIBS=$LIBS
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h.  */
8116
8117 /* Override any GCC internal prototype to avoid an error.
8118    Use char because int might match the return type of a GCC
8119    builtin and then its argument prototype would still apply.  */
8120 #ifdef __cplusplus
8121 extern "C"
8122 #endif
8123 char socketpair ();
8124 int
8125 main ()
8126 {
8127 return socketpair ();
8128   ;
8129   return 0;
8130 }
8131 _ACEOF
8132 for ac_lib in '' socket; do
8133   if test -z "$ac_lib"; then
8134     ac_res="none required"
8135   else
8136     ac_res=-l$ac_lib
8137     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8138   fi
8139   if ac_fn_c_try_link "$LINENO"; then :
8140   ac_cv_search_socketpair=$ac_res
8141 fi
8142 rm -f core conftest.err conftest.$ac_objext \
8143     conftest$ac_exeext
8144   if test "${ac_cv_search_socketpair+set}" = set; then :
8145   break
8146 fi
8147 done
8148 if test "${ac_cv_search_socketpair+set}" = set; then :
8149
8150 else
8151   ac_cv_search_socketpair=no
8152 fi
8153 rm conftest.$ac_ext
8154 LIBS=$ac_func_search_save_LIBS
8155 fi
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8157 $as_echo "$ac_cv_search_socketpair" >&6; }
8158 ac_res=$ac_cv_search_socketpair
8159 if test "$ac_res" != no; then :
8160   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8161
8162 fi
8163
8164
8165 # Link in zlib if we can.  This allows us to read compressed debug sections.
8166
8167   # See if the user specified whether he wants zlib support or not.
8168
8169 # Check whether --with-zlib was given.
8170 if test "${with_zlib+set}" = set; then :
8171   withval=$with_zlib;
8172 else
8173   with_zlib=auto
8174 fi
8175
8176
8177   if test "$with_zlib" != "no"; then
8178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
8179 $as_echo_n "checking for library containing zlibVersion... " >&6; }
8180 if test "${ac_cv_search_zlibVersion+set}" = set; then :
8181   $as_echo_n "(cached) " >&6
8182 else
8183   ac_func_search_save_LIBS=$LIBS
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h.  */
8186
8187 /* Override any GCC internal prototype to avoid an error.
8188    Use char because int might match the return type of a GCC
8189    builtin and then its argument prototype would still apply.  */
8190 #ifdef __cplusplus
8191 extern "C"
8192 #endif
8193 char zlibVersion ();
8194 int
8195 main ()
8196 {
8197 return zlibVersion ();
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 for ac_lib in '' z; do
8203   if test -z "$ac_lib"; then
8204     ac_res="none required"
8205   else
8206     ac_res=-l$ac_lib
8207     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8208   fi
8209   if ac_fn_c_try_link "$LINENO"; then :
8210   ac_cv_search_zlibVersion=$ac_res
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext \
8213     conftest$ac_exeext
8214   if test "${ac_cv_search_zlibVersion+set}" = set; then :
8215   break
8216 fi
8217 done
8218 if test "${ac_cv_search_zlibVersion+set}" = set; then :
8219
8220 else
8221   ac_cv_search_zlibVersion=no
8222 fi
8223 rm conftest.$ac_ext
8224 LIBS=$ac_func_search_save_LIBS
8225 fi
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
8227 $as_echo "$ac_cv_search_zlibVersion" >&6; }
8228 ac_res=$ac_cv_search_zlibVersion
8229 if test "$ac_res" != no; then :
8230   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8231   for ac_header in zlib.h
8232 do :
8233   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8234 if test "x$ac_cv_header_zlib_h" = x""yes; then :
8235   cat >>confdefs.h <<_ACEOF
8236 #define HAVE_ZLIB_H 1
8237 _ACEOF
8238
8239 fi
8240
8241 done
8242
8243 fi
8244
8245     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
8246       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
8247     fi
8248   fi
8249
8250
8251 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
8253 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
8254 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8255   $as_echo_n "(cached) " >&6
8256 else
8257   ac_func_search_save_LIBS=$LIBS
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h.  */
8260
8261 /* Override any GCC internal prototype to avoid an error.
8262    Use char because int might match the return type of a GCC
8263    builtin and then its argument prototype would still apply.  */
8264 #ifdef __cplusplus
8265 extern "C"
8266 #endif
8267 char dlgetmodinfo ();
8268 int
8269 main ()
8270 {
8271 return dlgetmodinfo ();
8272   ;
8273   return 0;
8274 }
8275 _ACEOF
8276 for ac_lib in '' dl xpdl; do
8277   if test -z "$ac_lib"; then
8278     ac_res="none required"
8279   else
8280     ac_res=-l$ac_lib
8281     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8282   fi
8283   if ac_fn_c_try_link "$LINENO"; then :
8284   ac_cv_search_dlgetmodinfo=$ac_res
8285 fi
8286 rm -f core conftest.err conftest.$ac_objext \
8287     conftest$ac_exeext
8288   if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8289   break
8290 fi
8291 done
8292 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8293
8294 else
8295   ac_cv_search_dlgetmodinfo=no
8296 fi
8297 rm conftest.$ac_ext
8298 LIBS=$ac_func_search_save_LIBS
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
8301 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
8302 ac_res=$ac_cv_search_dlgetmodinfo
8303 if test "$ac_res" != no; then :
8304   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8305
8306 fi
8307
8308
8309
8310
8311
8312 # Check whether --with-libiconv-prefix was given.
8313 if test "${with_libiconv_prefix+set}" = set; then :
8314   withval=$with_libiconv_prefix;
8315     for dir in `echo "$withval" | tr : ' '`; do
8316       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
8317       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
8318     done
8319
8320 fi
8321
8322
8323   BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
8324   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
8325
8326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8327 $as_echo_n "checking for iconv... " >&6; }
8328 if test "${am_cv_func_iconv+set}" = set; then :
8329   $as_echo_n "(cached) " >&6
8330 else
8331
8332     am_cv_func_iconv="no, consider installing GNU libiconv"
8333     am_cv_lib_iconv=no
8334     am_cv_use_build_libiconv=no
8335     am_cv_build_libiconv_path=
8336
8337     # If libiconv is part of the build tree, then try using it over
8338     # any system iconv.
8339     if test -d ../libiconv; then
8340       for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
8341         am_save_LIBS="$LIBS"
8342         am_save_CPPFLAGS="$CPPFLAGS"
8343         LIBS="$LIBS $lib_dir/libiconv.a"
8344         CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
8345         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h.  */
8347 #include <stdlib.h>
8348 #include <iconv.h>
8349 int
8350 main ()
8351 {
8352 iconv_t cd = iconv_open("","");
8353            iconv(cd,NULL,NULL,NULL,NULL);
8354            iconv_close(cd);
8355   ;
8356   return 0;
8357 }
8358 _ACEOF
8359 if ac_fn_c_try_link "$LINENO"; then :
8360   am_cv_use_build_libiconv=yes
8361           am_cv_build_libiconv_path=$lib_dir/libiconv.a
8362           am_cv_lib_iconv=yes
8363           am_cv_func_iconv=yes
8364 fi
8365 rm -f core conftest.err conftest.$ac_objext \
8366     conftest$ac_exeext conftest.$ac_ext
8367         LIBS="$am_save_LIBS"
8368         CPPFLAGS="$am_save_CPPFLAGS"
8369         if test "$am_cv_use_build_libiconv" = "yes"; then
8370           break
8371         fi
8372       done
8373     fi
8374
8375     # Next, try to find iconv in libc.
8376     if test "$am_cv_func_iconv" != yes; then
8377       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h.  */
8379 #include <stdlib.h>
8380 #include <iconv.h>
8381 int
8382 main ()
8383 {
8384 iconv_t cd = iconv_open("","");
8385          iconv(cd,NULL,NULL,NULL,NULL);
8386          iconv_close(cd);
8387   ;
8388   return 0;
8389 }
8390 _ACEOF
8391 if ac_fn_c_try_link "$LINENO"; then :
8392   am_cv_func_iconv=yes
8393 fi
8394 rm -f core conftest.err conftest.$ac_objext \
8395     conftest$ac_exeext conftest.$ac_ext
8396     fi
8397
8398     # If iconv was not in libc, try -liconv.  In this case, arrange to
8399     # look in the libiconv prefix, if it was specified by the user.
8400     if test "$am_cv_func_iconv" != yes; then
8401       am_save_CPPFLAGS="$CPPFLAGS"
8402       am_save_LIBS="$LIBS"
8403       if test -n "$LIBICONV_INCLUDE"; then
8404         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
8405         LIBS="$LIBS $LIBICONV_LIBDIR"
8406       fi
8407       LIBS="$LIBS -liconv"
8408       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h.  */
8410 #include <stdlib.h>
8411 #include <iconv.h>
8412 int
8413 main ()
8414 {
8415 iconv_t cd = iconv_open("","");
8416          iconv(cd,NULL,NULL,NULL,NULL);
8417          iconv_close(cd);
8418   ;
8419   return 0;
8420 }
8421 _ACEOF
8422 if ac_fn_c_try_link "$LINENO"; then :
8423   am_cv_lib_iconv=yes
8424         am_cv_func_iconv=yes
8425 fi
8426 rm -f core conftest.err conftest.$ac_objext \
8427     conftest$ac_exeext conftest.$ac_ext
8428       LIBS="$am_save_LIBS"
8429       CPPFLAGS="$am_save_CPPFLAGS"
8430     fi
8431
8432 fi
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8434 $as_echo "$am_cv_func_iconv" >&6; }
8435
8436   # Set the various flags based on the cache variables.  We can't rely
8437   # on the flags to remain set from the above code, due to caching.
8438   LIBICONV=
8439   if test "$am_cv_lib_iconv" = yes; then
8440     LIBICONV="-liconv"
8441   else
8442     LIBICONV_LIBDIR=
8443     LIBICONV_INCLUDE=
8444   fi
8445   if test "$am_cv_use_build_libiconv" = yes; then
8446     LIBICONV="$am_cv_build_libiconv_path"
8447     LIBICONV_LIBDIR=""
8448     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
8449   fi
8450   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
8451   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
8452
8453   if test "$am_cv_func_iconv" = yes; then
8454
8455 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8456
8457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8458 $as_echo_n "checking for iconv declaration... " >&6; }
8459     if test "${am_cv_proto_iconv+set}" = set; then :
8460   $as_echo_n "(cached) " >&6
8461 else
8462
8463       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h.  */
8465
8466 #include <stdlib.h>
8467 #include <iconv.h>
8468 extern
8469 #ifdef __cplusplus
8470 "C"
8471 #endif
8472 #if defined(__STDC__) || defined(__cplusplus)
8473 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8474 #else
8475 size_t iconv();
8476 #endif
8477
8478 int
8479 main ()
8480 {
8481
8482   ;
8483   return 0;
8484 }
8485 _ACEOF
8486 if ac_fn_c_try_compile "$LINENO"; then :
8487   am_cv_proto_iconv_arg1=""
8488 else
8489   am_cv_proto_iconv_arg1="const"
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492       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);"
8493 fi
8494
8495     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8497          }$am_cv_proto_iconv" >&5
8498 $as_echo "${ac_t:-
8499          }$am_cv_proto_iconv" >&6; }
8500
8501 cat >>confdefs.h <<_ACEOF
8502 #define ICONV_CONST $am_cv_proto_iconv_arg1
8503 _ACEOF
8504
8505   fi
8506
8507
8508 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
8509 # There is a very specific comment in /usr/include/curses.h explaining that
8510 # termcap routines built into libcurses must not be used.
8511 #
8512 # The symptoms we observed so far is GDB unexpectedly changing
8513 # the terminal settings when tgetent is called - this is particularly
8514 # visible as the output is missing carriage returns, and so rapidly
8515 # becomes very hard to read.
8516 #
8517 # The readline configure script has already decided that libtermcap
8518 # was enough for its purposes, and so decided to build readline using
8519 # libtermcap.  Since the TUI mode requires curses, building GDB with
8520 # TUI enabled results in both libraries to be used at the same time,
8521 # which is not allowed.  This basically means that GDB with TUI is
8522 # broken on alpha-osf.
8523
8524 case $host_os in
8525   osf* )
8526     if test x"$enable_tui" = xyes; then
8527       as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
8528     fi
8529     if test x"$enable_tui" = xauto; then
8530       enable_tui=no
8531     fi
8532     ;;
8533 esac
8534
8535 # For the TUI, we need enhanced curses functionality.
8536 if test x"$enable_tui" != xno; then
8537   prefer_curses=yes
8538 fi
8539
8540 curses_found=no
8541 if test x"$prefer_curses" = xyes; then
8542   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8543   # curses library because the latter might not provide all the
8544   # functionality we need.  However, this leads to problems on systems
8545   # where the linker searches /usr/local/lib, but the compiler doesn't
8546   # search /usr/local/include, if ncurses is installed in /usr/local.  A
8547   # default installation of ncurses on alpha*-dec-osf* will lead to such
8548   # a situation.
8549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8550 $as_echo_n "checking for library containing waddstr... " >&6; }
8551 if test "${ac_cv_search_waddstr+set}" = set; then :
8552   $as_echo_n "(cached) " >&6
8553 else
8554   ac_func_search_save_LIBS=$LIBS
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h.  */
8557
8558 /* Override any GCC internal prototype to avoid an error.
8559    Use char because int might match the return type of a GCC
8560    builtin and then its argument prototype would still apply.  */
8561 #ifdef __cplusplus
8562 extern "C"
8563 #endif
8564 char waddstr ();
8565 int
8566 main ()
8567 {
8568 return waddstr ();
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 for ac_lib in '' ncurses cursesX curses; do
8574   if test -z "$ac_lib"; then
8575     ac_res="none required"
8576   else
8577     ac_res=-l$ac_lib
8578     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8579   fi
8580   if ac_fn_c_try_link "$LINENO"; then :
8581   ac_cv_search_waddstr=$ac_res
8582 fi
8583 rm -f core conftest.err conftest.$ac_objext \
8584     conftest$ac_exeext
8585   if test "${ac_cv_search_waddstr+set}" = set; then :
8586   break
8587 fi
8588 done
8589 if test "${ac_cv_search_waddstr+set}" = set; then :
8590
8591 else
8592   ac_cv_search_waddstr=no
8593 fi
8594 rm conftest.$ac_ext
8595 LIBS=$ac_func_search_save_LIBS
8596 fi
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8598 $as_echo "$ac_cv_search_waddstr" >&6; }
8599 ac_res=$ac_cv_search_waddstr
8600 if test "$ac_res" != no; then :
8601   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8602
8603 fi
8604
8605
8606   if test "$ac_cv_search_waddstr" != no; then
8607     curses_found=yes
8608   fi
8609 fi
8610
8611 # Check whether we should enable the TUI, but only do so if we really
8612 # can.
8613 if test x"$enable_tui" != xno; then
8614   if test -d $srcdir/tui; then
8615     if test "$curses_found" != no; then
8616       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8617       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8618       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8619       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8620       CONFIG_ALL="${CONFIG_ALL} all-tui"
8621       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
8622       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
8623       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
8624     else
8625       if test x"$enable_tui" = xyes; then
8626         as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
8627       else
8628         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8629 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8630       fi
8631     fi
8632   fi
8633 fi
8634
8635 # Since GDB uses Readline, we need termcap functionality.  In many
8636 # cases this will be provided by the curses library, but some systems
8637 # have a seperate termcap library, or no curses library at all.
8638
8639 case $host_os in
8640   cygwin*)
8641     if test -d $srcdir/libtermcap; then
8642       LIBS="../libtermcap/libtermcap.a $LIBS"
8643       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8644     fi ;;
8645   go32* | *djgpp*)
8646     ac_cv_search_tgetent="none required"
8647     ;;
8648   *mingw32*)
8649     ac_cv_search_tgetent="none required"
8650     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
8651     ;;
8652 esac
8653
8654 # These are the libraries checked by Readline.
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8656 $as_echo_n "checking for library containing tgetent... " >&6; }
8657 if test "${ac_cv_search_tgetent+set}" = set; then :
8658   $as_echo_n "(cached) " >&6
8659 else
8660   ac_func_search_save_LIBS=$LIBS
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h.  */
8663
8664 /* Override any GCC internal prototype to avoid an error.
8665    Use char because int might match the return type of a GCC
8666    builtin and then its argument prototype would still apply.  */
8667 #ifdef __cplusplus
8668 extern "C"
8669 #endif
8670 char tgetent ();
8671 int
8672 main ()
8673 {
8674 return tgetent ();
8675   ;
8676   return 0;
8677 }
8678 _ACEOF
8679 for ac_lib in '' termcap tinfo curses ncurses; do
8680   if test -z "$ac_lib"; then
8681     ac_res="none required"
8682   else
8683     ac_res=-l$ac_lib
8684     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8685   fi
8686   if ac_fn_c_try_link "$LINENO"; then :
8687   ac_cv_search_tgetent=$ac_res
8688 fi
8689 rm -f core conftest.err conftest.$ac_objext \
8690     conftest$ac_exeext
8691   if test "${ac_cv_search_tgetent+set}" = set; then :
8692   break
8693 fi
8694 done
8695 if test "${ac_cv_search_tgetent+set}" = set; then :
8696
8697 else
8698   ac_cv_search_tgetent=no
8699 fi
8700 rm conftest.$ac_ext
8701 LIBS=$ac_func_search_save_LIBS
8702 fi
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8704 $as_echo "$ac_cv_search_tgetent" >&6; }
8705 ac_res=$ac_cv_search_tgetent
8706 if test "$ac_res" != no; then :
8707   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8708
8709 fi
8710
8711
8712 if test "$ac_cv_search_tgetent" = no; then
8713   as_fn_error "no termcap library found" "$LINENO" 5
8714 fi
8715
8716
8717 # Check whether --with-system-readline was given.
8718 if test "${with_system_readline+set}" = set; then :
8719   withval=$with_system_readline;
8720 fi
8721
8722
8723 if test "$with_system_readline" = yes; then
8724   READLINE=-lreadline
8725   READLINE_DEPS=
8726   READLINE_CFLAGS=
8727
8728   # readline-6.0 started to use the name `_rl_echoing_p'.
8729   # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
8730
8731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
8732 $as_echo_n "checking for readline_echoing_p... " >&6; }
8733   save_LIBS=$LIBS
8734   LIBS="$LIBS $READLINE"
8735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h.  */
8737
8738 int
8739 main ()
8740 {
8741 extern int readline_echoing_p;
8742                                     return readline_echoing_p;
8743   ;
8744   return 0;
8745 }
8746 _ACEOF
8747 if ac_fn_c_try_link "$LINENO"; then :
8748   READLINE_ECHOING_P=yes
8749 else
8750   READLINE_ECHOING_P=no
8751
8752 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
8753
8754 fi
8755 rm -f core conftest.err conftest.$ac_objext \
8756     conftest$ac_exeext conftest.$ac_ext
8757   LIBS="$save_LIBS"
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
8759 $as_echo "$READLINE_ECHOING_P" >&6; }
8760 else
8761   READLINE='$(READLINE_DIR)/libreadline.a'
8762   READLINE_DEPS='$(READLINE)'
8763   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
8764 fi
8765
8766
8767
8768
8769
8770 # Check whether --with-expat was given.
8771 if test "${with_expat+set}" = set; then :
8772   withval=$with_expat;
8773 else
8774   with_expat=auto
8775 fi
8776
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8778 $as_echo_n "checking whether to use expat... " >&6; }
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8780 $as_echo "$with_expat" >&6; }
8781
8782 if test "${with_expat}" = no; then
8783   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8784 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8785   HAVE_LIBEXPAT=no
8786 else
8787
8788       if test "X$prefix" = "XNONE"; then
8789     acl_final_prefix="$ac_default_prefix"
8790   else
8791     acl_final_prefix="$prefix"
8792   fi
8793   if test "X$exec_prefix" = "XNONE"; then
8794     acl_final_exec_prefix='${prefix}'
8795   else
8796     acl_final_exec_prefix="$exec_prefix"
8797   fi
8798   acl_save_prefix="$prefix"
8799   prefix="$acl_final_prefix"
8800   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8801   prefix="$acl_save_prefix"
8802
8803
8804 # Check whether --with-gnu-ld was given.
8805 if test "${with_gnu_ld+set}" = set; then :
8806   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8807 else
8808   with_gnu_ld=no
8809 fi
8810
8811 # Prepare PATH_SEPARATOR.
8812 # The user is always right.
8813 if test "${PATH_SEPARATOR+set}" != set; then
8814   echo "#! /bin/sh" >conf$$.sh
8815   echo  "exit 0"   >>conf$$.sh
8816   chmod +x conf$$.sh
8817   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8818     PATH_SEPARATOR=';'
8819   else
8820     PATH_SEPARATOR=:
8821   fi
8822   rm -f conf$$.sh
8823 fi
8824 ac_prog=ld
8825 if test "$GCC" = yes; then
8826   # Check if gcc -print-prog-name=ld gives a path.
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8828 $as_echo_n "checking for ld used by GCC... " >&6; }
8829   case $host in
8830   *-*-mingw*)
8831     # gcc leaves a trailing carriage return which upsets mingw
8832     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8833   *)
8834     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8835   esac
8836   case $ac_prog in
8837     # Accept absolute paths.
8838     [\\/]* | [A-Za-z]:[\\/]*)
8839       re_direlt='/[^/][^/]*/\.\./'
8840       # Canonicalize the path of ld
8841       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8842       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8843         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8844       done
8845       test -z "$LD" && LD="$ac_prog"
8846       ;;
8847   "")
8848     # If it fails, then pretend we aren't using GCC.
8849     ac_prog=ld
8850     ;;
8851   *)
8852     # If it is relative, then search for the first ld in PATH.
8853     with_gnu_ld=unknown
8854     ;;
8855   esac
8856 elif test "$with_gnu_ld" = yes; then
8857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8858 $as_echo_n "checking for GNU ld... " >&6; }
8859 else
8860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8861 $as_echo_n "checking for non-GNU ld... " >&6; }
8862 fi
8863 if test "${acl_cv_path_LD+set}" = set; then :
8864   $as_echo_n "(cached) " >&6
8865 else
8866   if test -z "$LD"; then
8867   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8868   for ac_dir in $PATH; do
8869     test -z "$ac_dir" && ac_dir=.
8870     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8871       acl_cv_path_LD="$ac_dir/$ac_prog"
8872       # Check to see if the program is GNU ld.  I'd rather use --version,
8873       # but apparently some GNU ld's only accept -v.
8874       # Break only if it was the GNU/non-GNU ld that we prefer.
8875       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8876         test "$with_gnu_ld" != no && break
8877       else
8878         test "$with_gnu_ld" != yes && break
8879       fi
8880     fi
8881   done
8882   IFS="$ac_save_ifs"
8883 else
8884   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8885 fi
8886 fi
8887
8888 LD="$acl_cv_path_LD"
8889 if test -n "$LD"; then
8890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8891 $as_echo "$LD" >&6; }
8892 else
8893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 $as_echo "no" >&6; }
8895 fi
8896 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8898 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8899 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8903 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8904   acl_cv_prog_gnu_ld=yes
8905 else
8906   acl_cv_prog_gnu_ld=no
8907 fi
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8910 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8911 with_gnu_ld=$acl_cv_prog_gnu_ld
8912
8913
8914
8915                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8916 $as_echo_n "checking for shared library run path origin... " >&6; }
8917 if test "${acl_cv_rpath+set}" = set; then :
8918   $as_echo_n "(cached) " >&6
8919 else
8920
8921     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8922     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8923     . ./conftest.sh
8924     rm -f ./conftest.sh
8925     acl_cv_rpath=done
8926
8927 fi
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8929 $as_echo "$acl_cv_rpath" >&6; }
8930   wl="$acl_cv_wl"
8931   libext="$acl_cv_libext"
8932   shlibext="$acl_cv_shlibext"
8933   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8934   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8935   hardcode_direct="$acl_cv_hardcode_direct"
8936   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8937     # Check whether --enable-rpath was given.
8938 if test "${enable_rpath+set}" = set; then :
8939   enableval=$enable_rpath; :
8940 else
8941   enable_rpath=yes
8942 fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953     use_additional=yes
8954
8955   acl_save_prefix="$prefix"
8956   prefix="$acl_final_prefix"
8957   acl_save_exec_prefix="$exec_prefix"
8958   exec_prefix="$acl_final_exec_prefix"
8959
8960     eval additional_includedir=\"$includedir\"
8961     eval additional_libdir=\"$libdir\"
8962
8963   exec_prefix="$acl_save_exec_prefix"
8964   prefix="$acl_save_prefix"
8965
8966
8967 # Check whether --with-libexpat-prefix was given.
8968 if test "${with_libexpat_prefix+set}" = set; then :
8969   withval=$with_libexpat_prefix;
8970     if test "X$withval" = "Xno"; then
8971       use_additional=no
8972     else
8973       if test "X$withval" = "X"; then
8974
8975   acl_save_prefix="$prefix"
8976   prefix="$acl_final_prefix"
8977   acl_save_exec_prefix="$exec_prefix"
8978   exec_prefix="$acl_final_exec_prefix"
8979
8980           eval additional_includedir=\"$includedir\"
8981           eval additional_libdir=\"$libdir\"
8982
8983   exec_prefix="$acl_save_exec_prefix"
8984   prefix="$acl_save_prefix"
8985
8986       else
8987         additional_includedir="$withval/include"
8988         additional_libdir="$withval/lib"
8989       fi
8990     fi
8991
8992 fi
8993
8994       LIBEXPAT=
8995   LTLIBEXPAT=
8996   INCEXPAT=
8997   rpathdirs=
8998   ltrpathdirs=
8999   names_already_handled=
9000   names_next_round='expat '
9001   while test -n "$names_next_round"; do
9002     names_this_round="$names_next_round"
9003     names_next_round=
9004     for name in $names_this_round; do
9005       already_handled=
9006       for n in $names_already_handled; do
9007         if test "$n" = "$name"; then
9008           already_handled=yes
9009           break
9010         fi
9011       done
9012       if test -z "$already_handled"; then
9013         names_already_handled="$names_already_handled $name"
9014                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9015         eval value=\"\$HAVE_LIB$uppername\"
9016         if test -n "$value"; then
9017           if test "$value" = yes; then
9018             eval value=\"\$LIB$uppername\"
9019             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
9020             eval value=\"\$LTLIB$uppername\"
9021             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9022           else
9023                                     :
9024           fi
9025         else
9026                               found_dir=
9027           found_la=
9028           found_so=
9029           found_a=
9030           if test $use_additional = yes; then
9031             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9032               found_dir="$additional_libdir"
9033               found_so="$additional_libdir/lib$name.$shlibext"
9034               if test -f "$additional_libdir/lib$name.la"; then
9035                 found_la="$additional_libdir/lib$name.la"
9036               fi
9037             else
9038               if test -f "$additional_libdir/lib$name.$libext"; then
9039                 found_dir="$additional_libdir"
9040                 found_a="$additional_libdir/lib$name.$libext"
9041                 if test -f "$additional_libdir/lib$name.la"; then
9042                   found_la="$additional_libdir/lib$name.la"
9043                 fi
9044               fi
9045             fi
9046           fi
9047           if test "X$found_dir" = "X"; then
9048             for x in $LDFLAGS $LTLIBEXPAT; do
9049
9050   acl_save_prefix="$prefix"
9051   prefix="$acl_final_prefix"
9052   acl_save_exec_prefix="$exec_prefix"
9053   exec_prefix="$acl_final_exec_prefix"
9054   eval x=\"$x\"
9055   exec_prefix="$acl_save_exec_prefix"
9056   prefix="$acl_save_prefix"
9057
9058               case "$x" in
9059                 -L*)
9060                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9061                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9062                     found_dir="$dir"
9063                     found_so="$dir/lib$name.$shlibext"
9064                     if test -f "$dir/lib$name.la"; then
9065                       found_la="$dir/lib$name.la"
9066                     fi
9067                   else
9068                     if test -f "$dir/lib$name.$libext"; then
9069                       found_dir="$dir"
9070                       found_a="$dir/lib$name.$libext"
9071                       if test -f "$dir/lib$name.la"; then
9072                         found_la="$dir/lib$name.la"
9073                       fi
9074                     fi
9075                   fi
9076                   ;;
9077               esac
9078               if test "X$found_dir" != "X"; then
9079                 break
9080               fi
9081             done
9082           fi
9083           if test "X$found_dir" != "X"; then
9084                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9085             if test "X$found_so" != "X"; then
9086                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9087                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9088               else
9089                                                                                 haveit=
9090                 for x in $ltrpathdirs; do
9091                   if test "X$x" = "X$found_dir"; then
9092                     haveit=yes
9093                     break
9094                   fi
9095                 done
9096                 if test -z "$haveit"; then
9097                   ltrpathdirs="$ltrpathdirs $found_dir"
9098                 fi
9099                                 if test "$hardcode_direct" = yes; then
9100                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9101                 else
9102                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9103                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9104                                                             haveit=
9105                     for x in $rpathdirs; do
9106                       if test "X$x" = "X$found_dir"; then
9107                         haveit=yes
9108                         break
9109                       fi
9110                     done
9111                     if test -z "$haveit"; then
9112                       rpathdirs="$rpathdirs $found_dir"
9113                     fi
9114                   else
9115                                                                                 haveit=
9116                     for x in $LDFLAGS $LIBEXPAT; do
9117
9118   acl_save_prefix="$prefix"
9119   prefix="$acl_final_prefix"
9120   acl_save_exec_prefix="$exec_prefix"
9121   exec_prefix="$acl_final_exec_prefix"
9122   eval x=\"$x\"
9123   exec_prefix="$acl_save_exec_prefix"
9124   prefix="$acl_save_prefix"
9125
9126                       if test "X$x" = "X-L$found_dir"; then
9127                         haveit=yes
9128                         break
9129                       fi
9130                     done
9131                     if test -z "$haveit"; then
9132                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9133                     fi
9134                     if test "$hardcode_minus_L" != no; then
9135                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9136                     else
9137                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9138                     fi
9139                   fi
9140                 fi
9141               fi
9142             else
9143               if test "X$found_a" != "X"; then
9144                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9145               else
9146                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9147               fi
9148             fi
9149                         additional_includedir=
9150             case "$found_dir" in
9151               */lib | */lib/)
9152                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9153                 additional_includedir="$basedir/include"
9154                 ;;
9155             esac
9156             if test "X$additional_includedir" != "X"; then
9157                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9158                 haveit=
9159                 if test "X$additional_includedir" = "X/usr/local/include"; then
9160                   if test -n "$GCC"; then
9161                     case $host_os in
9162                       linux*) haveit=yes;;
9163                     esac
9164                   fi
9165                 fi
9166                 if test -z "$haveit"; then
9167                   for x in $CPPFLAGS $INCEXPAT; do
9168
9169   acl_save_prefix="$prefix"
9170   prefix="$acl_final_prefix"
9171   acl_save_exec_prefix="$exec_prefix"
9172   exec_prefix="$acl_final_exec_prefix"
9173   eval x=\"$x\"
9174   exec_prefix="$acl_save_exec_prefix"
9175   prefix="$acl_save_prefix"
9176
9177                     if test "X$x" = "X-I$additional_includedir"; then
9178                       haveit=yes
9179                       break
9180                     fi
9181                   done
9182                   if test -z "$haveit"; then
9183                     if test -d "$additional_includedir"; then
9184                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9185                     fi
9186                   fi
9187                 fi
9188               fi
9189             fi
9190                         if test -n "$found_la"; then
9191                                                         save_libdir="$libdir"
9192               case "$found_la" in
9193                 */* | *\\*) . "$found_la" ;;
9194                 *) . "./$found_la" ;;
9195               esac
9196               libdir="$save_libdir"
9197                             for dep in $dependency_libs; do
9198                 case "$dep" in
9199                   -L*)
9200                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9201                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9202                       haveit=
9203                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9204                         if test -n "$GCC"; then
9205                           case $host_os in
9206                             linux*) haveit=yes;;
9207                           esac
9208                         fi
9209                       fi
9210                       if test -z "$haveit"; then
9211                         haveit=
9212                         for x in $LDFLAGS $LIBEXPAT; do
9213
9214   acl_save_prefix="$prefix"
9215   prefix="$acl_final_prefix"
9216   acl_save_exec_prefix="$exec_prefix"
9217   exec_prefix="$acl_final_exec_prefix"
9218   eval x=\"$x\"
9219   exec_prefix="$acl_save_exec_prefix"
9220   prefix="$acl_save_prefix"
9221
9222                           if test "X$x" = "X-L$additional_libdir"; then
9223                             haveit=yes
9224                             break
9225                           fi
9226                         done
9227                         if test -z "$haveit"; then
9228                           if test -d "$additional_libdir"; then
9229                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9230                           fi
9231                         fi
9232                         haveit=
9233                         for x in $LDFLAGS $LTLIBEXPAT; do
9234
9235   acl_save_prefix="$prefix"
9236   prefix="$acl_final_prefix"
9237   acl_save_exec_prefix="$exec_prefix"
9238   exec_prefix="$acl_final_exec_prefix"
9239   eval x=\"$x\"
9240   exec_prefix="$acl_save_exec_prefix"
9241   prefix="$acl_save_prefix"
9242
9243                           if test "X$x" = "X-L$additional_libdir"; then
9244                             haveit=yes
9245                             break
9246                           fi
9247                         done
9248                         if test -z "$haveit"; then
9249                           if test -d "$additional_libdir"; then
9250                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9251                           fi
9252                         fi
9253                       fi
9254                     fi
9255                     ;;
9256                   -R*)
9257                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9258                     if test "$enable_rpath" != no; then
9259                                                                   haveit=
9260                       for x in $rpathdirs; do
9261                         if test "X$x" = "X$dir"; then
9262                           haveit=yes
9263                           break
9264                         fi
9265                       done
9266                       if test -z "$haveit"; then
9267                         rpathdirs="$rpathdirs $dir"
9268                       fi
9269                                                                   haveit=
9270                       for x in $ltrpathdirs; do
9271                         if test "X$x" = "X$dir"; then
9272                           haveit=yes
9273                           break
9274                         fi
9275                       done
9276                       if test -z "$haveit"; then
9277                         ltrpathdirs="$ltrpathdirs $dir"
9278                       fi
9279                     fi
9280                     ;;
9281                   -l*)
9282                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9283                     ;;
9284                   *.la)
9285                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9286                     ;;
9287                   *)
9288                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9289                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9290                     ;;
9291                 esac
9292               done
9293             fi
9294           else
9295                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9296             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9297           fi
9298         fi
9299       fi
9300     done
9301   done
9302   if test "X$rpathdirs" != "X"; then
9303     if test -n "$hardcode_libdir_separator"; then
9304                         alldirs=
9305       for found_dir in $rpathdirs; do
9306         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9307       done
9308             acl_save_libdir="$libdir"
9309       libdir="$alldirs"
9310       eval flag=\"$hardcode_libdir_flag_spec\"
9311       libdir="$acl_save_libdir"
9312       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9313     else
9314             for found_dir in $rpathdirs; do
9315         acl_save_libdir="$libdir"
9316         libdir="$found_dir"
9317         eval flag=\"$hardcode_libdir_flag_spec\"
9318         libdir="$acl_save_libdir"
9319         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9320       done
9321     fi
9322   fi
9323   if test "X$ltrpathdirs" != "X"; then
9324             for found_dir in $ltrpathdirs; do
9325       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9326     done
9327   fi
9328
9329
9330         ac_save_CPPFLAGS="$CPPFLAGS"
9331
9332   for element in $INCEXPAT; do
9333     haveit=
9334     for x in $CPPFLAGS; do
9335
9336   acl_save_prefix="$prefix"
9337   prefix="$acl_final_prefix"
9338   acl_save_exec_prefix="$exec_prefix"
9339   exec_prefix="$acl_final_exec_prefix"
9340   eval x=\"$x\"
9341   exec_prefix="$acl_save_exec_prefix"
9342   prefix="$acl_save_prefix"
9343
9344       if test "X$x" = "X$element"; then
9345         haveit=yes
9346         break
9347       fi
9348     done
9349     if test -z "$haveit"; then
9350       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9351     fi
9352   done
9353
9354
9355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9356 $as_echo_n "checking for libexpat... " >&6; }
9357 if test "${ac_cv_libexpat+set}" = set; then :
9358   $as_echo_n "(cached) " >&6
9359 else
9360
9361     ac_save_LIBS="$LIBS"
9362     LIBS="$LIBS $LIBEXPAT"
9363     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h.  */
9365 #include "expat.h"
9366 int
9367 main ()
9368 {
9369 XML_Parser p = XML_ParserCreate (0);
9370   ;
9371   return 0;
9372 }
9373 _ACEOF
9374 if ac_fn_c_try_link "$LINENO"; then :
9375   ac_cv_libexpat=yes
9376 else
9377   ac_cv_libexpat=no
9378 fi
9379 rm -f core conftest.err conftest.$ac_objext \
9380     conftest$ac_exeext conftest.$ac_ext
9381     LIBS="$ac_save_LIBS"
9382
9383 fi
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9385 $as_echo "$ac_cv_libexpat" >&6; }
9386   if test "$ac_cv_libexpat" = yes; then
9387     HAVE_LIBEXPAT=yes
9388
9389 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9390
9391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9392 $as_echo_n "checking how to link with libexpat... " >&6; }
9393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9394 $as_echo "$LIBEXPAT" >&6; }
9395   else
9396     HAVE_LIBEXPAT=no
9397             CPPFLAGS="$ac_save_CPPFLAGS"
9398     LIBEXPAT=
9399     LTLIBEXPAT=
9400   fi
9401
9402
9403
9404
9405
9406
9407   if test "$HAVE_LIBEXPAT" != yes; then
9408     if test "$with_expat" = yes; then
9409       as_fn_error "expat is missing or unusable" "$LINENO" 5
9410     else
9411       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9412 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9413     fi
9414   else
9415     save_LIBS=$LIBS
9416     LIBS="$LIBS $LIBEXPAT"
9417     for ac_func in XML_StopParser
9418 do :
9419   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9420 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
9421   cat >>confdefs.h <<_ACEOF
9422 #define HAVE_XML_STOPPARSER 1
9423 _ACEOF
9424
9425 fi
9426 done
9427
9428     LIBS=$save_LIBS
9429   fi
9430 fi
9431
9432
9433
9434
9435 # Check whether --with-python was given.
9436 if test "${with_python+set}" = set; then :
9437   withval=$with_python;
9438 else
9439   with_python=auto
9440 fi
9441
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
9443 $as_echo_n "checking whether to use python... " >&6; }
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
9445 $as_echo "$with_python" >&6; }
9446
9447 if test "${with_python}" = no; then
9448   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
9449 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
9450   have_libpython=no
9451 else
9452   case "${with_python}" in
9453   yes | auto)
9454     # Leave as empty, use defaults.
9455     python_includes=
9456     python_libs=
9457     ;;
9458   /*)
9459     python_includes="-I${with_python}/include"
9460     python_libs="-L${with_python}/lib"
9461     ;;
9462   *)
9463     as_fn_error "invalid value for --with-python" "$LINENO" 5
9464     ;;
9465   esac
9466
9467   save_CPPFLAGS=$CPPFLAGS
9468   CPPFLAGS="$CPPFLAGS ${python_includes}"
9469   save_LIBS=$LIBS
9470   LIBS="$LIBS ${python_libs}"
9471   have_libpython=no
9472   if test "${have_libpython}" = no; then
9473
9474   version=python2.6
9475
9476
9477   HAVE_LIBPYTHON2_6=no
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9479 $as_echo_n "checking for ${version}... " >&6; }
9480   save_LIBS=$LIBS
9481   LIBS="$LIBS -l${version}"
9482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h.  */
9484 #include "${version}/Python.h"
9485 int
9486 main ()
9487 {
9488 Py_Initialize ();
9489   ;
9490   return 0;
9491 }
9492 _ACEOF
9493 if ac_fn_c_try_link "$LINENO"; then :
9494   HAVE_LIBPYTHON2_6=yes
9495                   have_libpython=yes
9496 else
9497   LIBS=$save_LIBS
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext \
9500     conftest$ac_exeext conftest.$ac_ext
9501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_6" >&5
9502 $as_echo "$HAVE_LIBPYTHON2_6" >&6; }
9503
9504     if test "${HAVE_LIBPYTHON2_6}" = yes; then
9505
9506 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9507
9508     fi
9509   fi
9510   if test ${have_libpython} = no; then
9511
9512   version=python2.5
9513
9514
9515   HAVE_LIBPYTHON2_5=no
9516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9517 $as_echo_n "checking for ${version}... " >&6; }
9518   save_LIBS=$LIBS
9519   LIBS="$LIBS -l${version}"
9520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h.  */
9522 #include "${version}/Python.h"
9523 int
9524 main ()
9525 {
9526 Py_Initialize ();
9527   ;
9528   return 0;
9529 }
9530 _ACEOF
9531 if ac_fn_c_try_link "$LINENO"; then :
9532   HAVE_LIBPYTHON2_5=yes
9533                   have_libpython=yes
9534 else
9535   LIBS=$save_LIBS
9536 fi
9537 rm -f core conftest.err conftest.$ac_objext \
9538     conftest$ac_exeext conftest.$ac_ext
9539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_5" >&5
9540 $as_echo "$HAVE_LIBPYTHON2_5" >&6; }
9541
9542     if test "${HAVE_LIBPYTHON2_5}" = yes; then
9543
9544 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9545
9546     fi
9547   fi
9548   if test ${have_libpython} = no; then
9549
9550   version=python2.4
9551
9552
9553   HAVE_LIBPYTHON2_4=no
9554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9555 $as_echo_n "checking for ${version}... " >&6; }
9556   save_LIBS=$LIBS
9557   LIBS="$LIBS -l${version}"
9558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h.  */
9560 #include "${version}/Python.h"
9561 int
9562 main ()
9563 {
9564 Py_Initialize ();
9565   ;
9566   return 0;
9567 }
9568 _ACEOF
9569 if ac_fn_c_try_link "$LINENO"; then :
9570   HAVE_LIBPYTHON2_4=yes
9571                   have_libpython=yes
9572 else
9573   LIBS=$save_LIBS
9574 fi
9575 rm -f core conftest.err conftest.$ac_objext \
9576     conftest$ac_exeext conftest.$ac_ext
9577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_4" >&5
9578 $as_echo "$HAVE_LIBPYTHON2_4" >&6; }
9579
9580     if test "${HAVE_LIBPYTHON2_4}" = yes; then
9581
9582 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9583
9584     fi
9585   fi
9586   if test ${have_libpython} = no; then
9587     case "${with_python}" in
9588     yes)
9589       as_fn_error "python is missing or unusable" "$LINENO" 5
9590       ;;
9591     auto)
9592       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9593 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9594       ;;
9595     *)
9596       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
9597       ;;
9598     esac
9599     CPPFLAGS=$save_CPPFLAGS
9600     LIBS=$save_LIBS
9601   fi
9602 fi
9603
9604 if test "${have_libpython}" = yes; then
9605
9606 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9607
9608   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9609   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9610   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9611   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9612
9613   # Flags needed to compile Python code (taken from python-config --cflags).
9614   # We cannot call python-config directly because it will output whatever was
9615   # used when compiling the Python interpreter itself, including flags which
9616   # would make the python-related objects be compiled differently from the
9617   # rest of GDB (e.g., -O2 and -fPIC).
9618   if test "${GCC}" = yes; then
9619     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
9620   fi
9621
9622   if test "x${tentative_python_cflags}" != x; then
9623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9624 $as_echo_n "checking compiler flags for python code... " >&6; }
9625     for flag in ${tentative_python_cflags}; do
9626       # Check that the compiler accepts it
9627       saved_CFLAGS="$CFLAGS"
9628       CFLAGS="$CFLAGS $flag"
9629       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h.  */
9631
9632 int
9633 main ()
9634 {
9635
9636   ;
9637   return 0;
9638 }
9639 _ACEOF
9640 if ac_fn_c_try_compile "$LINENO"; then :
9641   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
9642 fi
9643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9644       CFLAGS="$saved_CFLAGS"
9645     done
9646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9647 $as_echo "${PYTHON_CFLAGS}" >&6; }
9648   fi
9649 else
9650   # Even if Python support is not compiled in, we need to have these files
9651   # included in order to recognize the GDB command "python".
9652   CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o"
9653   CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c python/py-prettyprint.c"
9654 fi
9655
9656
9657 # ------------------------- #
9658 # Checks for header files.  #
9659 # ------------------------- #
9660
9661 ac_header_dirent=no
9662 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9663   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9665 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9667   $as_echo_n "(cached) " >&6
9668 else
9669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h.  */
9671 #include <sys/types.h>
9672 #include <$ac_hdr>
9673
9674 int
9675 main ()
9676 {
9677 if ((DIR *) 0)
9678 return 0;
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 if ac_fn_c_try_compile "$LINENO"; then :
9684   eval "$as_ac_Header=yes"
9685 else
9686   eval "$as_ac_Header=no"
9687 fi
9688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689 fi
9690 eval ac_res=\$$as_ac_Header
9691                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9692 $as_echo "$ac_res" >&6; }
9693 eval as_val=\$$as_ac_Header
9694    if test "x$as_val" = x""yes; then :
9695   cat >>confdefs.h <<_ACEOF
9696 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9697 _ACEOF
9698
9699 ac_header_dirent=$ac_hdr; break
9700 fi
9701
9702 done
9703 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9704 if test $ac_header_dirent = dirent.h; then
9705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9706 $as_echo_n "checking for library containing opendir... " >&6; }
9707 if test "${ac_cv_search_opendir+set}" = set; then :
9708   $as_echo_n "(cached) " >&6
9709 else
9710   ac_func_search_save_LIBS=$LIBS
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h.  */
9713
9714 /* Override any GCC internal prototype to avoid an error.
9715    Use char because int might match the return type of a GCC
9716    builtin and then its argument prototype would still apply.  */
9717 #ifdef __cplusplus
9718 extern "C"
9719 #endif
9720 char opendir ();
9721 int
9722 main ()
9723 {
9724 return opendir ();
9725   ;
9726   return 0;
9727 }
9728 _ACEOF
9729 for ac_lib in '' dir; do
9730   if test -z "$ac_lib"; then
9731     ac_res="none required"
9732   else
9733     ac_res=-l$ac_lib
9734     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9735   fi
9736   if ac_fn_c_try_link "$LINENO"; then :
9737   ac_cv_search_opendir=$ac_res
9738 fi
9739 rm -f core conftest.err conftest.$ac_objext \
9740     conftest$ac_exeext
9741   if test "${ac_cv_search_opendir+set}" = set; then :
9742   break
9743 fi
9744 done
9745 if test "${ac_cv_search_opendir+set}" = set; then :
9746
9747 else
9748   ac_cv_search_opendir=no
9749 fi
9750 rm conftest.$ac_ext
9751 LIBS=$ac_func_search_save_LIBS
9752 fi
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9754 $as_echo "$ac_cv_search_opendir" >&6; }
9755 ac_res=$ac_cv_search_opendir
9756 if test "$ac_res" != no; then :
9757   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9758
9759 fi
9760
9761 else
9762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9763 $as_echo_n "checking for library containing opendir... " >&6; }
9764 if test "${ac_cv_search_opendir+set}" = set; then :
9765   $as_echo_n "(cached) " >&6
9766 else
9767   ac_func_search_save_LIBS=$LIBS
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h.  */
9770
9771 /* Override any GCC internal prototype to avoid an error.
9772    Use char because int might match the return type of a GCC
9773    builtin and then its argument prototype would still apply.  */
9774 #ifdef __cplusplus
9775 extern "C"
9776 #endif
9777 char opendir ();
9778 int
9779 main ()
9780 {
9781 return opendir ();
9782   ;
9783   return 0;
9784 }
9785 _ACEOF
9786 for ac_lib in '' x; do
9787   if test -z "$ac_lib"; then
9788     ac_res="none required"
9789   else
9790     ac_res=-l$ac_lib
9791     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9792   fi
9793   if ac_fn_c_try_link "$LINENO"; then :
9794   ac_cv_search_opendir=$ac_res
9795 fi
9796 rm -f core conftest.err conftest.$ac_objext \
9797     conftest$ac_exeext
9798   if test "${ac_cv_search_opendir+set}" = set; then :
9799   break
9800 fi
9801 done
9802 if test "${ac_cv_search_opendir+set}" = set; then :
9803
9804 else
9805   ac_cv_search_opendir=no
9806 fi
9807 rm conftest.$ac_ext
9808 LIBS=$ac_func_search_save_LIBS
9809 fi
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9811 $as_echo "$ac_cv_search_opendir" >&6; }
9812 ac_res=$ac_cv_search_opendir
9813 if test "$ac_res" != no; then :
9814   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9815
9816 fi
9817
9818 fi
9819
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9821 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9822 if test "${ac_cv_header_stat_broken+set}" = set; then :
9823   $as_echo_n "(cached) " >&6
9824 else
9825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h.  */
9827 #include <sys/types.h>
9828 #include <sys/stat.h>
9829
9830 #if defined S_ISBLK && defined S_IFDIR
9831 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9832 #endif
9833
9834 #if defined S_ISBLK && defined S_IFCHR
9835 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9836 #endif
9837
9838 #if defined S_ISLNK && defined S_IFREG
9839 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9840 #endif
9841
9842 #if defined S_ISSOCK && defined S_IFREG
9843 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9844 #endif
9845
9846 _ACEOF
9847 if ac_fn_c_try_compile "$LINENO"; then :
9848   ac_cv_header_stat_broken=no
9849 else
9850   ac_cv_header_stat_broken=yes
9851 fi
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853 fi
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9855 $as_echo "$ac_cv_header_stat_broken" >&6; }
9856 if test $ac_cv_header_stat_broken = yes; then
9857
9858 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9859
9860 fi
9861
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9863 $as_echo_n "checking for ANSI C header files... " >&6; }
9864 if test "${ac_cv_header_stdc+set}" = set; then :
9865   $as_echo_n "(cached) " >&6
9866 else
9867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h.  */
9869 #include <stdlib.h>
9870 #include <stdarg.h>
9871 #include <string.h>
9872 #include <float.h>
9873
9874 int
9875 main ()
9876 {
9877
9878   ;
9879   return 0;
9880 }
9881 _ACEOF
9882 if ac_fn_c_try_compile "$LINENO"; then :
9883   ac_cv_header_stdc=yes
9884 else
9885   ac_cv_header_stdc=no
9886 fi
9887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9888
9889 if test $ac_cv_header_stdc = yes; then
9890   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h.  */
9893 #include <string.h>
9894
9895 _ACEOF
9896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9897   $EGREP "memchr" >/dev/null 2>&1; then :
9898
9899 else
9900   ac_cv_header_stdc=no
9901 fi
9902 rm -f conftest*
9903
9904 fi
9905
9906 if test $ac_cv_header_stdc = yes; then
9907   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h.  */
9910 #include <stdlib.h>
9911
9912 _ACEOF
9913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9914   $EGREP "free" >/dev/null 2>&1; then :
9915
9916 else
9917   ac_cv_header_stdc=no
9918 fi
9919 rm -f conftest*
9920
9921 fi
9922
9923 if test $ac_cv_header_stdc = yes; then
9924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9925   if test "$cross_compiling" = yes; then :
9926   :
9927 else
9928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929 /* end confdefs.h.  */
9930 #include <ctype.h>
9931 #include <stdlib.h>
9932 #if ((' ' & 0x0FF) == 0x020)
9933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9935 #else
9936 # define ISLOWER(c) \
9937                    (('a' <= (c) && (c) <= 'i') \
9938                      || ('j' <= (c) && (c) <= 'r') \
9939                      || ('s' <= (c) && (c) <= 'z'))
9940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9941 #endif
9942
9943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9944 int
9945 main ()
9946 {
9947   int i;
9948   for (i = 0; i < 256; i++)
9949     if (XOR (islower (i), ISLOWER (i))
9950         || toupper (i) != TOUPPER (i))
9951       return 2;
9952   return 0;
9953 }
9954 _ACEOF
9955 if ac_fn_c_try_run "$LINENO"; then :
9956
9957 else
9958   ac_cv_header_stdc=no
9959 fi
9960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9961   conftest.$ac_objext conftest.beam conftest.$ac_ext
9962 fi
9963
9964 fi
9965 fi
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9967 $as_echo "$ac_cv_header_stdc" >&6; }
9968 if test $ac_cv_header_stdc = yes; then
9969
9970 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9971
9972 fi
9973
9974 # elf_hp.h is for HP/UX 64-bit shared library support.
9975 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
9976 # unconditionally, so what's the point in checking these?
9977 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
9978                   thread_db.h gnu/libc-version.h signal.h stddef.h \
9979                   stdlib.h string.h memory.h strings.h sys/fault.h \
9980                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
9981                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
9982                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
9983                   sys/types.h sys/wait.h wait.h termios.h termio.h \
9984                   sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
9985 do :
9986   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9987 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9988 eval as_val=\$$as_ac_Header
9989    if test "x$as_val" = x""yes; then :
9990   cat >>confdefs.h <<_ACEOF
9991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9992 _ACEOF
9993
9994 fi
9995
9996 done
9997
9998 for ac_header in link.h
9999 do :
10000   ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
10001 # include <sys/types.h>
10002 #endif
10003 #if HAVE_NLIST_H
10004 # include <nlist.h>
10005 #endif
10006
10007 "
10008 if test "x$ac_cv_header_link_h" = x""yes; then :
10009   cat >>confdefs.h <<_ACEOF
10010 #define HAVE_LINK_H 1
10011 _ACEOF
10012
10013 fi
10014
10015 done
10016
10017 for ac_header in sys/proc.h
10018 do :
10019   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10020 # include <sys/param.h>
10021 #endif
10022
10023 "
10024 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
10025   cat >>confdefs.h <<_ACEOF
10026 #define HAVE_SYS_PROC_H 1
10027 _ACEOF
10028
10029 fi
10030
10031 done
10032
10033 for ac_header in sys/user.h
10034 do :
10035   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10036 # include <sys/param.h>
10037 #endif
10038
10039 "
10040 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
10041   cat >>confdefs.h <<_ACEOF
10042 #define HAVE_SYS_USER_H 1
10043 _ACEOF
10044
10045 fi
10046
10047 done
10048
10049
10050 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10051 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10052 # think that we don't have <curses.h> if we're using GCC.
10053 case $host_os in
10054   solaris2.[789])
10055     if test "$GCC" = yes; then
10056
10057 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10058
10059     fi ;;
10060 esac
10061 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
10062 do :
10063   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10064 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10065 eval as_val=\$$as_ac_Header
10066    if test "x$as_val" = x""yes; then :
10067   cat >>confdefs.h <<_ACEOF
10068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10069 _ACEOF
10070
10071 fi
10072
10073 done
10074
10075 for ac_header in term.h
10076 do :
10077   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10078 # include <curses.h>
10079 #endif
10080
10081 "
10082 if test "x$ac_cv_header_term_h" = x""yes; then :
10083   cat >>confdefs.h <<_ACEOF
10084 #define HAVE_TERM_H 1
10085 _ACEOF
10086
10087 fi
10088
10089 done
10090
10091
10092 # ------------------------- #
10093 # Checks for declarations.  #
10094 # ------------------------- #
10095
10096 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10097 if test "x$ac_cv_have_decl_free" = x""yes; then :
10098   ac_have_decl=1
10099 else
10100   ac_have_decl=0
10101 fi
10102
10103 cat >>confdefs.h <<_ACEOF
10104 #define HAVE_DECL_FREE $ac_have_decl
10105 _ACEOF
10106 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10107 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
10108   ac_have_decl=1
10109 else
10110   ac_have_decl=0
10111 fi
10112
10113 cat >>confdefs.h <<_ACEOF
10114 #define HAVE_DECL_MALLOC $ac_have_decl
10115 _ACEOF
10116 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10117 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
10118   ac_have_decl=1
10119 else
10120   ac_have_decl=0
10121 fi
10122
10123 cat >>confdefs.h <<_ACEOF
10124 #define HAVE_DECL_REALLOC $ac_have_decl
10125 _ACEOF
10126 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
10127 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
10128   ac_have_decl=1
10129 else
10130   ac_have_decl=0
10131 fi
10132
10133 cat >>confdefs.h <<_ACEOF
10134 #define HAVE_DECL_STRERROR $ac_have_decl
10135 _ACEOF
10136 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
10137 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
10138   ac_have_decl=1
10139 else
10140   ac_have_decl=0
10141 fi
10142
10143 cat >>confdefs.h <<_ACEOF
10144 #define HAVE_DECL_STRSTR $ac_have_decl
10145 _ACEOF
10146 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
10147 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
10148   ac_have_decl=1
10149 else
10150   ac_have_decl=0
10151 fi
10152
10153 cat >>confdefs.h <<_ACEOF
10154 #define HAVE_DECL_GETOPT $ac_have_decl
10155 _ACEOF
10156 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10157 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10158   ac_have_decl=1
10159 else
10160   ac_have_decl=0
10161 fi
10162
10163 cat >>confdefs.h <<_ACEOF
10164 #define HAVE_DECL_SNPRINTF $ac_have_decl
10165 _ACEOF
10166 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10167 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
10168   ac_have_decl=1
10169 else
10170   ac_have_decl=0
10171 fi
10172
10173 cat >>confdefs.h <<_ACEOF
10174 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10175 _ACEOF
10176
10177
10178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10179 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10180 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10181   $as_echo_n "(cached) " >&6
10182 else
10183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h.  */
10185 #include <locale.h>
10186 int
10187 main ()
10188 {
10189 return LC_MESSAGES
10190   ;
10191   return 0;
10192 }
10193 _ACEOF
10194 if ac_fn_c_try_link "$LINENO"; then :
10195   am_cv_val_LC_MESSAGES=yes
10196 else
10197   am_cv_val_LC_MESSAGES=no
10198 fi
10199 rm -f core conftest.err conftest.$ac_objext \
10200     conftest$ac_exeext conftest.$ac_ext
10201 fi
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10203 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10204   if test $am_cv_val_LC_MESSAGES = yes; then
10205
10206 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10207
10208   fi
10209
10210
10211 # ----------------------- #
10212 # Checks for structures.  #
10213 # ----------------------- #
10214
10215 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10216 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
10217
10218 cat >>confdefs.h <<_ACEOF
10219 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10220 _ACEOF
10221
10222
10223 fi
10224 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10225 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
10226
10227 cat >>confdefs.h <<_ACEOF
10228 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10229 _ACEOF
10230
10231
10232 fi
10233
10234
10235 # ------------------ #
10236 # Checks for types.  #
10237 # ------------------ #
10238
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10240 $as_echo_n "checking return type of signal handlers... " >&6; }
10241 if test "${ac_cv_type_signal+set}" = set; then :
10242   $as_echo_n "(cached) " >&6
10243 else
10244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h.  */
10246 #include <sys/types.h>
10247 #include <signal.h>
10248
10249 int
10250 main ()
10251 {
10252 return *(signal (0, 0)) (0) == 1;
10253   ;
10254   return 0;
10255 }
10256 _ACEOF
10257 if ac_fn_c_try_compile "$LINENO"; then :
10258   ac_cv_type_signal=int
10259 else
10260   ac_cv_type_signal=void
10261 fi
10262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10263 fi
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10265 $as_echo "$ac_cv_type_signal" >&6; }
10266
10267 cat >>confdefs.h <<_ACEOF
10268 #define RETSIGTYPE $ac_cv_type_signal
10269 _ACEOF
10270
10271
10272 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10273 #include <sys/socket.h>
10274
10275 "
10276 if test "x$ac_cv_type_socklen_t" = x""yes; then :
10277
10278 cat >>confdefs.h <<_ACEOF
10279 #define HAVE_SOCKLEN_T 1
10280 _ACEOF
10281
10282
10283 fi
10284
10285
10286 # ------------------------------------- #
10287 # Checks for compiler characteristics.  #
10288 # ------------------------------------- #
10289
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10291 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10292 if test "${ac_cv_c_const+set}" = set; then :
10293   $as_echo_n "(cached) " >&6
10294 else
10295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h.  */
10297
10298 int
10299 main ()
10300 {
10301 /* FIXME: Include the comments suggested by Paul. */
10302 #ifndef __cplusplus
10303   /* Ultrix mips cc rejects this.  */
10304   typedef int charset[2];
10305   const charset cs;
10306   /* SunOS 4.1.1 cc rejects this.  */
10307   char const *const *pcpcc;
10308   char **ppc;
10309   /* NEC SVR4.0.2 mips cc rejects this.  */
10310   struct point {int x, y;};
10311   static struct point const zero = {0,0};
10312   /* AIX XL C 1.02.0.0 rejects this.
10313      It does not let you subtract one const X* pointer from another in
10314      an arm of an if-expression whose if-part is not a constant
10315      expression */
10316   const char *g = "string";
10317   pcpcc = &g + (g ? g-g : 0);
10318   /* HPUX 7.0 cc rejects these. */
10319   ++pcpcc;
10320   ppc = (char**) pcpcc;
10321   pcpcc = (char const *const *) ppc;
10322   { /* SCO 3.2v4 cc rejects this.  */
10323     char *t;
10324     char const *s = 0 ? (char *) 0 : (char const *) 0;
10325
10326     *t++ = 0;
10327     if (s) return 0;
10328   }
10329   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10330     int x[] = {25, 17};
10331     const int *foo = &x[0];
10332     ++foo;
10333   }
10334   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10335     typedef const int *iptr;
10336     iptr p = 0;
10337     ++p;
10338   }
10339   { /* AIX XL C 1.02.0.0 rejects this saying
10340        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10341     struct s { int j; const int *ap[3]; };
10342     struct s *b; b->j = 5;
10343   }
10344   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10345     const int foo = 10;
10346     if (!foo) return 0;
10347   }
10348   return !cs[0] && !zero.x;
10349 #endif
10350
10351   ;
10352   return 0;
10353 }
10354 _ACEOF
10355 if ac_fn_c_try_compile "$LINENO"; then :
10356   ac_cv_c_const=yes
10357 else
10358   ac_cv_c_const=no
10359 fi
10360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10361 fi
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10363 $as_echo "$ac_cv_c_const" >&6; }
10364 if test $ac_cv_c_const = no; then
10365
10366 $as_echo "#define const /**/" >>confdefs.h
10367
10368 fi
10369
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10371 $as_echo_n "checking for inline... " >&6; }
10372 if test "${ac_cv_c_inline+set}" = set; then :
10373   $as_echo_n "(cached) " >&6
10374 else
10375   ac_cv_c_inline=no
10376 for ac_kw in inline __inline__ __inline; do
10377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h.  */
10379 #ifndef __cplusplus
10380 typedef int foo_t;
10381 static $ac_kw foo_t static_foo () {return 0; }
10382 $ac_kw foo_t foo () {return 0; }
10383 #endif
10384
10385 _ACEOF
10386 if ac_fn_c_try_compile "$LINENO"; then :
10387   ac_cv_c_inline=$ac_kw
10388 fi
10389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10390   test "$ac_cv_c_inline" != no && break
10391 done
10392
10393 fi
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10395 $as_echo "$ac_cv_c_inline" >&6; }
10396
10397 case $ac_cv_c_inline in
10398   inline | yes) ;;
10399   *)
10400     case $ac_cv_c_inline in
10401       no) ac_val=;;
10402       *) ac_val=$ac_cv_c_inline;;
10403     esac
10404     cat >>confdefs.h <<_ACEOF
10405 #ifndef __cplusplus
10406 #define inline $ac_val
10407 #endif
10408 _ACEOF
10409     ;;
10410 esac
10411
10412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10413 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10414 if test "${ac_cv_c_bigendian+set}" = set; then :
10415   $as_echo_n "(cached) " >&6
10416 else
10417   ac_cv_c_bigendian=unknown
10418     # See if we're dealing with a universal compiler.
10419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420 /* end confdefs.h.  */
10421 #ifndef __APPLE_CC__
10422                not a universal capable compiler
10423              #endif
10424              typedef int dummy;
10425
10426 _ACEOF
10427 if ac_fn_c_try_compile "$LINENO"; then :
10428
10429         # Check for potential -arch flags.  It is not universal unless
10430         # there are at least two -arch flags with different values.
10431         ac_arch=
10432         ac_prev=
10433         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10434          if test -n "$ac_prev"; then
10435            case $ac_word in
10436              i?86 | x86_64 | ppc | ppc64)
10437                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10438                  ac_arch=$ac_word
10439                else
10440                  ac_cv_c_bigendian=universal
10441                  break
10442                fi
10443                ;;
10444            esac
10445            ac_prev=
10446          elif test "x$ac_word" = "x-arch"; then
10447            ac_prev=arch
10448          fi
10449        done
10450 fi
10451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10452     if test $ac_cv_c_bigendian = unknown; then
10453       # See if sys/param.h defines the BYTE_ORDER macro.
10454       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h.  */
10456 #include <sys/types.h>
10457              #include <sys/param.h>
10458
10459 int
10460 main ()
10461 {
10462 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10463                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10464                      && LITTLE_ENDIAN)
10465               bogus endian macros
10466              #endif
10467
10468   ;
10469   return 0;
10470 }
10471 _ACEOF
10472 if ac_fn_c_try_compile "$LINENO"; then :
10473   # It does; now see whether it defined to BIG_ENDIAN or not.
10474          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h.  */
10476 #include <sys/types.h>
10477                 #include <sys/param.h>
10478
10479 int
10480 main ()
10481 {
10482 #if BYTE_ORDER != BIG_ENDIAN
10483                  not big endian
10484                 #endif
10485
10486   ;
10487   return 0;
10488 }
10489 _ACEOF
10490 if ac_fn_c_try_compile "$LINENO"; then :
10491   ac_cv_c_bigendian=yes
10492 else
10493   ac_cv_c_bigendian=no
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496 fi
10497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10498     fi
10499     if test $ac_cv_c_bigendian = unknown; then
10500       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10501       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h.  */
10503 #include <limits.h>
10504
10505 int
10506 main ()
10507 {
10508 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10509               bogus endian macros
10510              #endif
10511
10512   ;
10513   return 0;
10514 }
10515 _ACEOF
10516 if ac_fn_c_try_compile "$LINENO"; then :
10517   # It does; now see whether it defined to _BIG_ENDIAN or not.
10518          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519 /* end confdefs.h.  */
10520 #include <limits.h>
10521
10522 int
10523 main ()
10524 {
10525 #ifndef _BIG_ENDIAN
10526                  not big endian
10527                 #endif
10528
10529   ;
10530   return 0;
10531 }
10532 _ACEOF
10533 if ac_fn_c_try_compile "$LINENO"; then :
10534   ac_cv_c_bigendian=yes
10535 else
10536   ac_cv_c_bigendian=no
10537 fi
10538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10539 fi
10540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10541     fi
10542     if test $ac_cv_c_bigendian = unknown; then
10543       # Compile a test program.
10544       if test "$cross_compiling" = yes; then :
10545   # Try to guess by grepping values from an object file.
10546          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h.  */
10548 short int ascii_mm[] =
10549                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10550                 short int ascii_ii[] =
10551                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10552                 int use_ascii (int i) {
10553                   return ascii_mm[i] + ascii_ii[i];
10554                 }
10555                 short int ebcdic_ii[] =
10556                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10557                 short int ebcdic_mm[] =
10558                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10559                 int use_ebcdic (int i) {
10560                   return ebcdic_mm[i] + ebcdic_ii[i];
10561                 }
10562                 extern int foo;
10563
10564 int
10565 main ()
10566 {
10567 return use_ascii (foo) == use_ebcdic (foo);
10568   ;
10569   return 0;
10570 }
10571 _ACEOF
10572 if ac_fn_c_try_compile "$LINENO"; then :
10573   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10574               ac_cv_c_bigendian=yes
10575             fi
10576             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10577               if test "$ac_cv_c_bigendian" = unknown; then
10578                 ac_cv_c_bigendian=no
10579               else
10580                 # finding both strings is unlikely to happen, but who knows?
10581                 ac_cv_c_bigendian=unknown
10582               fi
10583             fi
10584 fi
10585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10586 else
10587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588 /* end confdefs.h.  */
10589 $ac_includes_default
10590 int
10591 main ()
10592 {
10593
10594              /* Are we little or big endian?  From Harbison&Steele.  */
10595              union
10596              {
10597                long int l;
10598                char c[sizeof (long int)];
10599              } u;
10600              u.l = 1;
10601              return u.c[sizeof (long int) - 1] == 1;
10602
10603   ;
10604   return 0;
10605 }
10606 _ACEOF
10607 if ac_fn_c_try_run "$LINENO"; then :
10608   ac_cv_c_bigendian=no
10609 else
10610   ac_cv_c_bigendian=yes
10611 fi
10612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10613   conftest.$ac_objext conftest.beam conftest.$ac_ext
10614 fi
10615
10616     fi
10617 fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10619 $as_echo "$ac_cv_c_bigendian" >&6; }
10620  case $ac_cv_c_bigendian in #(
10621    yes)
10622      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10623 ;; #(
10624    no)
10625       ;; #(
10626    universal)
10627
10628 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10629
10630      ;; #(
10631    *)
10632      as_fn_error "unknown endianness
10633  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10634  esac
10635
10636
10637 # ------------------------------ #
10638 # Checks for library functions.  #
10639 # ------------------------------ #
10640
10641 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10642 # for constant arguments.  Useless!
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10644 $as_echo_n "checking for working alloca.h... " >&6; }
10645 if test "${ac_cv_working_alloca_h+set}" = set; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h.  */
10650 #include <alloca.h>
10651 int
10652 main ()
10653 {
10654 char *p = (char *) alloca (2 * sizeof (int));
10655                           if (p) return 0;
10656   ;
10657   return 0;
10658 }
10659 _ACEOF
10660 if ac_fn_c_try_link "$LINENO"; then :
10661   ac_cv_working_alloca_h=yes
10662 else
10663   ac_cv_working_alloca_h=no
10664 fi
10665 rm -f core conftest.err conftest.$ac_objext \
10666     conftest$ac_exeext conftest.$ac_ext
10667 fi
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10669 $as_echo "$ac_cv_working_alloca_h" >&6; }
10670 if test $ac_cv_working_alloca_h = yes; then
10671
10672 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10673
10674 fi
10675
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10677 $as_echo_n "checking for alloca... " >&6; }
10678 if test "${ac_cv_func_alloca_works+set}" = set; then :
10679   $as_echo_n "(cached) " >&6
10680 else
10681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h.  */
10683 #ifdef __GNUC__
10684 # define alloca __builtin_alloca
10685 #else
10686 # ifdef _MSC_VER
10687 #  include <malloc.h>
10688 #  define alloca _alloca
10689 # else
10690 #  ifdef HAVE_ALLOCA_H
10691 #   include <alloca.h>
10692 #  else
10693 #   ifdef _AIX
10694  #pragma alloca
10695 #   else
10696 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10697 char *alloca ();
10698 #    endif
10699 #   endif
10700 #  endif
10701 # endif
10702 #endif
10703
10704 int
10705 main ()
10706 {
10707 char *p = (char *) alloca (1);
10708                                     if (p) return 0;
10709   ;
10710   return 0;
10711 }
10712 _ACEOF
10713 if ac_fn_c_try_link "$LINENO"; then :
10714   ac_cv_func_alloca_works=yes
10715 else
10716   ac_cv_func_alloca_works=no
10717 fi
10718 rm -f core conftest.err conftest.$ac_objext \
10719     conftest$ac_exeext conftest.$ac_ext
10720 fi
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10722 $as_echo "$ac_cv_func_alloca_works" >&6; }
10723
10724 if test $ac_cv_func_alloca_works = yes; then
10725
10726 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10727
10728 else
10729   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10730 # that cause trouble.  Some versions do not even contain alloca or
10731 # contain a buggy version.  If you still want to use their alloca,
10732 # use ar to extract alloca.o from them instead of compiling alloca.c.
10733
10734 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10735
10736 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10737
10738
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10740 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10741 if test "${ac_cv_os_cray+set}" = set; then :
10742   $as_echo_n "(cached) " >&6
10743 else
10744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h.  */
10746 #if defined CRAY && ! defined CRAY2
10747 webecray
10748 #else
10749 wenotbecray
10750 #endif
10751
10752 _ACEOF
10753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10754   $EGREP "webecray" >/dev/null 2>&1; then :
10755   ac_cv_os_cray=yes
10756 else
10757   ac_cv_os_cray=no
10758 fi
10759 rm -f conftest*
10760
10761 fi
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10763 $as_echo "$ac_cv_os_cray" >&6; }
10764 if test $ac_cv_os_cray = yes; then
10765   for ac_func in _getb67 GETB67 getb67; do
10766     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10767 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10768 eval as_val=\$$as_ac_var
10769    if test "x$as_val" = x""yes; then :
10770
10771 cat >>confdefs.h <<_ACEOF
10772 #define CRAY_STACKSEG_END $ac_func
10773 _ACEOF
10774
10775     break
10776 fi
10777
10778   done
10779 fi
10780
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10782 $as_echo_n "checking stack direction for C alloca... " >&6; }
10783 if test "${ac_cv_c_stack_direction+set}" = set; then :
10784   $as_echo_n "(cached) " >&6
10785 else
10786   if test "$cross_compiling" = yes; then :
10787   ac_cv_c_stack_direction=0
10788 else
10789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h.  */
10791 $ac_includes_default
10792 int
10793 find_stack_direction ()
10794 {
10795   static char *addr = 0;
10796   auto char dummy;
10797   if (addr == 0)
10798     {
10799       addr = &dummy;
10800       return find_stack_direction ();
10801     }
10802   else
10803     return (&dummy > addr) ? 1 : -1;
10804 }
10805
10806 int
10807 main ()
10808 {
10809   return find_stack_direction () < 0;
10810 }
10811 _ACEOF
10812 if ac_fn_c_try_run "$LINENO"; then :
10813   ac_cv_c_stack_direction=1
10814 else
10815   ac_cv_c_stack_direction=-1
10816 fi
10817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10818   conftest.$ac_objext conftest.beam conftest.$ac_ext
10819 fi
10820
10821 fi
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10823 $as_echo "$ac_cv_c_stack_direction" >&6; }
10824 cat >>confdefs.h <<_ACEOF
10825 #define STACK_DIRECTION $ac_cv_c_stack_direction
10826 _ACEOF
10827
10828
10829 fi
10830
10831 for ac_header in stdlib.h unistd.h
10832 do :
10833   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10834 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10835 eval as_val=\$$as_ac_Header
10836    if test "x$as_val" = x""yes; then :
10837   cat >>confdefs.h <<_ACEOF
10838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10839 _ACEOF
10840
10841 fi
10842
10843 done
10844
10845 for ac_func in getpagesize
10846 do :
10847   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10848 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10849   cat >>confdefs.h <<_ACEOF
10850 #define HAVE_GETPAGESIZE 1
10851 _ACEOF
10852
10853 fi
10854 done
10855
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10857 $as_echo_n "checking for working mmap... " >&6; }
10858 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10859   $as_echo_n "(cached) " >&6
10860 else
10861   if test "$cross_compiling" = yes; then :
10862   ac_cv_func_mmap_fixed_mapped=no
10863 else
10864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h.  */
10866 $ac_includes_default
10867 /* malloc might have been renamed as rpl_malloc. */
10868 #undef malloc
10869
10870 /* Thanks to Mike Haertel and Jim Avera for this test.
10871    Here is a matrix of mmap possibilities:
10872         mmap private not fixed
10873         mmap private fixed at somewhere currently unmapped
10874         mmap private fixed at somewhere already mapped
10875         mmap shared not fixed
10876         mmap shared fixed at somewhere currently unmapped
10877         mmap shared fixed at somewhere already mapped
10878    For private mappings, we should verify that changes cannot be read()
10879    back from the file, nor mmap's back from the file at a different
10880    address.  (There have been systems where private was not correctly
10881    implemented like the infamous i386 svr4.0, and systems where the
10882    VM page cache was not coherent with the file system buffer cache
10883    like early versions of FreeBSD and possibly contemporary NetBSD.)
10884    For shared mappings, we should conversely verify that changes get
10885    propagated back to all the places they're supposed to be.
10886
10887    Grep wants private fixed already mapped.
10888    The main things grep needs to know about mmap are:
10889    * does it exist and is it safe to write into the mmap'd area
10890    * how to use it (BSD variants)  */
10891
10892 #include <fcntl.h>
10893 #include <sys/mman.h>
10894
10895 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10896 char *malloc ();
10897 #endif
10898
10899 /* This mess was copied from the GNU getpagesize.h.  */
10900 #ifndef HAVE_GETPAGESIZE
10901 /* Assume that all systems that can run configure have sys/param.h.  */
10902 # ifndef HAVE_SYS_PARAM_H
10903 #  define HAVE_SYS_PARAM_H 1
10904 # endif
10905
10906 # ifdef _SC_PAGESIZE
10907 #  define getpagesize() sysconf(_SC_PAGESIZE)
10908 # else /* no _SC_PAGESIZE */
10909 #  ifdef HAVE_SYS_PARAM_H
10910 #   include <sys/param.h>
10911 #   ifdef EXEC_PAGESIZE
10912 #    define getpagesize() EXEC_PAGESIZE
10913 #   else /* no EXEC_PAGESIZE */
10914 #    ifdef NBPG
10915 #     define getpagesize() NBPG * CLSIZE
10916 #     ifndef CLSIZE
10917 #      define CLSIZE 1
10918 #     endif /* no CLSIZE */
10919 #    else /* no NBPG */
10920 #     ifdef NBPC
10921 #      define getpagesize() NBPC
10922 #     else /* no NBPC */
10923 #      ifdef PAGESIZE
10924 #       define getpagesize() PAGESIZE
10925 #      endif /* PAGESIZE */
10926 #     endif /* no NBPC */
10927 #    endif /* no NBPG */
10928 #   endif /* no EXEC_PAGESIZE */
10929 #  else /* no HAVE_SYS_PARAM_H */
10930 #   define getpagesize() 8192   /* punt totally */
10931 #  endif /* no HAVE_SYS_PARAM_H */
10932 # endif /* no _SC_PAGESIZE */
10933
10934 #endif /* no HAVE_GETPAGESIZE */
10935
10936 int
10937 main ()
10938 {
10939   char *data, *data2, *data3;
10940   int i, pagesize;
10941   int fd;
10942
10943   pagesize = getpagesize ();
10944
10945   /* First, make a file with some known garbage in it. */
10946   data = (char *) malloc (pagesize);
10947   if (!data)
10948     return 1;
10949   for (i = 0; i < pagesize; ++i)
10950     *(data + i) = rand ();
10951   umask (0);
10952   fd = creat ("conftest.mmap", 0600);
10953   if (fd < 0)
10954     return 1;
10955   if (write (fd, data, pagesize) != pagesize)
10956     return 1;
10957   close (fd);
10958
10959   /* Next, try to mmap the file at a fixed address which already has
10960      something else allocated at it.  If we can, also make sure that
10961      we see the same garbage.  */
10962   fd = open ("conftest.mmap", O_RDWR);
10963   if (fd < 0)
10964     return 1;
10965   data2 = (char *) malloc (2 * pagesize);
10966   if (!data2)
10967     return 1;
10968   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10969   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10970                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10971     return 1;
10972   for (i = 0; i < pagesize; ++i)
10973     if (*(data + i) != *(data2 + i))
10974       return 1;
10975
10976   /* Finally, make sure that changes to the mapped area do not
10977      percolate back to the file as seen by read().  (This is a bug on
10978      some variants of i386 svr4.0.)  */
10979   for (i = 0; i < pagesize; ++i)
10980     *(data2 + i) = *(data2 + i) + 1;
10981   data3 = (char *) malloc (pagesize);
10982   if (!data3)
10983     return 1;
10984   if (read (fd, data3, pagesize) != pagesize)
10985     return 1;
10986   for (i = 0; i < pagesize; ++i)
10987     if (*(data + i) != *(data3 + i))
10988       return 1;
10989   close (fd);
10990   return 0;
10991 }
10992 _ACEOF
10993 if ac_fn_c_try_run "$LINENO"; then :
10994   ac_cv_func_mmap_fixed_mapped=yes
10995 else
10996   ac_cv_func_mmap_fixed_mapped=no
10997 fi
10998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10999   conftest.$ac_objext conftest.beam conftest.$ac_ext
11000 fi
11001
11002 fi
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11004 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11005 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11006
11007 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11008
11009 fi
11010 rm -f conftest.mmap
11011
11012 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11013 if test "x$ac_cv_type_pid_t" = x""yes; then :
11014
11015 else
11016
11017 cat >>confdefs.h <<_ACEOF
11018 #define pid_t int
11019 _ACEOF
11020
11021 fi
11022
11023 for ac_header in vfork.h
11024 do :
11025   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11026 if test "x$ac_cv_header_vfork_h" = x""yes; then :
11027   cat >>confdefs.h <<_ACEOF
11028 #define HAVE_VFORK_H 1
11029 _ACEOF
11030
11031 fi
11032
11033 done
11034
11035 for ac_func in fork vfork
11036 do :
11037   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11039 eval as_val=\$$as_ac_var
11040    if test "x$as_val" = x""yes; then :
11041   cat >>confdefs.h <<_ACEOF
11042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11043 _ACEOF
11044
11045 fi
11046 done
11047
11048 if test "x$ac_cv_func_fork" = xyes; then
11049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11050 $as_echo_n "checking for working fork... " >&6; }
11051 if test "${ac_cv_func_fork_works+set}" = set; then :
11052   $as_echo_n "(cached) " >&6
11053 else
11054   if test "$cross_compiling" = yes; then :
11055   ac_cv_func_fork_works=cross
11056 else
11057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h.  */
11059 $ac_includes_default
11060 int
11061 main ()
11062 {
11063
11064           /* By Ruediger Kuhlmann. */
11065           return fork () < 0;
11066
11067   ;
11068   return 0;
11069 }
11070 _ACEOF
11071 if ac_fn_c_try_run "$LINENO"; then :
11072   ac_cv_func_fork_works=yes
11073 else
11074   ac_cv_func_fork_works=no
11075 fi
11076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11077   conftest.$ac_objext conftest.beam conftest.$ac_ext
11078 fi
11079
11080 fi
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11082 $as_echo "$ac_cv_func_fork_works" >&6; }
11083
11084 else
11085   ac_cv_func_fork_works=$ac_cv_func_fork
11086 fi
11087 if test "x$ac_cv_func_fork_works" = xcross; then
11088   case $host in
11089     *-*-amigaos* | *-*-msdosdjgpp*)
11090       # Override, as these systems have only a dummy fork() stub
11091       ac_cv_func_fork_works=no
11092       ;;
11093     *)
11094       ac_cv_func_fork_works=yes
11095       ;;
11096   esac
11097   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11098 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11099 fi
11100 ac_cv_func_vfork_works=$ac_cv_func_vfork
11101 if test "x$ac_cv_func_vfork" = xyes; then
11102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11103 $as_echo_n "checking for working vfork... " >&6; }
11104 if test "${ac_cv_func_vfork_works+set}" = set; then :
11105   $as_echo_n "(cached) " >&6
11106 else
11107   if test "$cross_compiling" = yes; then :
11108   ac_cv_func_vfork_works=cross
11109 else
11110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h.  */
11112 /* Thanks to Paul Eggert for this test.  */
11113 $ac_includes_default
11114 #include <sys/wait.h>
11115 #ifdef HAVE_VFORK_H
11116 # include <vfork.h>
11117 #endif
11118 /* On some sparc systems, changes by the child to local and incoming
11119    argument registers are propagated back to the parent.  The compiler
11120    is told about this with #include <vfork.h>, but some compilers
11121    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
11122    static variable whose address is put into a register that is
11123    clobbered by the vfork.  */
11124 static void
11125 #ifdef __cplusplus
11126 sparc_address_test (int arg)
11127 # else
11128 sparc_address_test (arg) int arg;
11129 #endif
11130 {
11131   static pid_t child;
11132   if (!child) {
11133     child = vfork ();
11134     if (child < 0) {
11135       perror ("vfork");
11136       _exit(2);
11137     }
11138     if (!child) {
11139       arg = getpid();
11140       write(-1, "", 0);
11141       _exit (arg);
11142     }
11143   }
11144 }
11145
11146 int
11147 main ()
11148 {
11149   pid_t parent = getpid ();
11150   pid_t child;
11151
11152   sparc_address_test (0);
11153
11154   child = vfork ();
11155
11156   if (child == 0) {
11157     /* Here is another test for sparc vfork register problems.  This
11158        test uses lots of local variables, at least as many local
11159        variables as main has allocated so far including compiler
11160        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
11161        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
11162        reuse the register of parent for one of the local variables,
11163        since it will think that parent can't possibly be used any more
11164        in this routine.  Assigning to the local variable will thus
11165        munge parent in the parent process.  */
11166     pid_t
11167       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11168       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11169     /* Convince the compiler that p..p7 are live; otherwise, it might
11170        use the same hardware register for all 8 local variables.  */
11171     if (p != p1 || p != p2 || p != p3 || p != p4
11172         || p != p5 || p != p6 || p != p7)
11173       _exit(1);
11174
11175     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11176        from child file descriptors.  If the child closes a descriptor
11177        before it execs or exits, this munges the parent's descriptor
11178        as well.  Test for this by closing stdout in the child.  */
11179     _exit(close(fileno(stdout)) != 0);
11180   } else {
11181     int status;
11182     struct stat st;
11183
11184     while (wait(&status) != child)
11185       ;
11186     return (
11187          /* Was there some problem with vforking?  */
11188          child < 0
11189
11190          /* Did the child fail?  (This shouldn't happen.)  */
11191          || status
11192
11193          /* Did the vfork/compiler bug occur?  */
11194          || parent != getpid()
11195
11196          /* Did the file descriptor bug occur?  */
11197          || fstat(fileno(stdout), &st) != 0
11198          );
11199   }
11200 }
11201 _ACEOF
11202 if ac_fn_c_try_run "$LINENO"; then :
11203   ac_cv_func_vfork_works=yes
11204 else
11205   ac_cv_func_vfork_works=no
11206 fi
11207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11208   conftest.$ac_objext conftest.beam conftest.$ac_ext
11209 fi
11210
11211 fi
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11213 $as_echo "$ac_cv_func_vfork_works" >&6; }
11214
11215 fi;
11216 if test "x$ac_cv_func_fork_works" = xcross; then
11217   ac_cv_func_vfork_works=$ac_cv_func_vfork
11218   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11219 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11220 fi
11221
11222 if test "x$ac_cv_func_vfork_works" = xyes; then
11223
11224 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11225
11226 else
11227
11228 $as_echo "#define vfork fork" >>confdefs.h
11229
11230 fi
11231 if test "x$ac_cv_func_fork_works" = xyes; then
11232
11233 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11234
11235 fi
11236
11237 for ac_func in canonicalize_file_name realpath getrusage getuid \
11238                 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
11239                 sigaction sigprocmask sigsetmask socketpair syscall \
11240                 ttrace wborder setlocale iconvlist libiconvlist btowc \
11241                 setrlimit getrlimit posix_madvise
11242 do :
11243   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11244 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11245 eval as_val=\$$as_ac_var
11246    if test "x$as_val" = x""yes; then :
11247   cat >>confdefs.h <<_ACEOF
11248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11249 _ACEOF
11250
11251 fi
11252 done
11253
11254
11255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11256 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11257 if test "${am_cv_langinfo_codeset+set}" = set; then :
11258   $as_echo_n "(cached) " >&6
11259 else
11260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h.  */
11262 #include <langinfo.h>
11263 int
11264 main ()
11265 {
11266 char* cs = nl_langinfo(CODESET);
11267   ;
11268   return 0;
11269 }
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"; then :
11272   am_cv_langinfo_codeset=yes
11273 else
11274   am_cv_langinfo_codeset=no
11275 fi
11276 rm -f core conftest.err conftest.$ac_objext \
11277     conftest$ac_exeext conftest.$ac_ext
11278
11279 fi
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11281 $as_echo "$am_cv_langinfo_codeset" >&6; }
11282   if test $am_cv_langinfo_codeset = yes; then
11283
11284 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11285
11286   fi
11287
11288
11289 # Check the return and argument types of ptrace.  No canned test for
11290 # this, so roll our own.
11291 gdb_ptrace_headers='
11292 #if HAVE_SYS_TYPES_H
11293 # include <sys/types.h>
11294 #endif
11295 #if HAVE_SYS_PTRACE_H
11296 # include <sys/ptrace.h>
11297 #endif
11298 #if HAVE_UNISTD_H
11299 # include <unistd.h>
11300 #endif
11301 '
11302 # There is no point in checking if we don't have a prototype.
11303 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11304 "
11305 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
11306   ac_have_decl=1
11307 else
11308   ac_have_decl=0
11309 fi
11310
11311 cat >>confdefs.h <<_ACEOF
11312 #define HAVE_DECL_PTRACE $ac_have_decl
11313 _ACEOF
11314 if test $ac_have_decl = 1; then :
11315
11316 else
11317
11318   : ${gdb_cv_func_ptrace_ret='int'}
11319   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11320
11321 fi
11322
11323 # Check return type.  Varargs (used on GNU/Linux) conflict with the
11324 # empty argument list, so check for that explicitly.
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11326 $as_echo_n "checking return type of ptrace... " >&6; }
11327 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11328   $as_echo_n "(cached) " >&6
11329 else
11330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h.  */
11332 $gdb_ptrace_headers
11333 int
11334 main ()
11335 {
11336 extern long ptrace (enum __ptrace_request, ...);
11337   ;
11338   return 0;
11339 }
11340 _ACEOF
11341 if ac_fn_c_try_compile "$LINENO"; then :
11342   gdb_cv_func_ptrace_ret='long'
11343 else
11344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h.  */
11346 $gdb_ptrace_headers
11347 int
11348 main ()
11349 {
11350 extern int ptrace ();
11351   ;
11352   return 0;
11353 }
11354 _ACEOF
11355 if ac_fn_c_try_compile "$LINENO"; then :
11356   gdb_cv_func_ptrace_ret='int'
11357 else
11358   gdb_cv_func_ptrace_ret='long'
11359 fi
11360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11361 fi
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 fi
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11365 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11366
11367 cat >>confdefs.h <<_ACEOF
11368 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11369 _ACEOF
11370
11371 # Check argument types.
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11373 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11374 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11375   $as_echo_n "(cached) " >&6
11376 else
11377
11378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h.  */
11380 $gdb_ptrace_headers
11381 int
11382 main ()
11383 {
11384 extern long ptrace (enum __ptrace_request, ...);
11385   ;
11386   return 0;
11387 }
11388 _ACEOF
11389 if ac_fn_c_try_compile "$LINENO"; then :
11390   gdb_cv_func_ptrace_args='int,int,long,long'
11391 else
11392
11393 for gdb_arg1 in 'int' 'long'; do
11394  for gdb_arg2 in 'pid_t' 'int' 'long'; do
11395   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11396    for gdb_arg4 in 'int' 'long'; do
11397      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h.  */
11399 $gdb_ptrace_headers
11400 int
11401 main ()
11402 {
11403
11404 extern $gdb_cv_func_ptrace_ret
11405   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11406
11407   ;
11408   return 0;
11409 }
11410 _ACEOF
11411 if ac_fn_c_try_compile "$LINENO"; then :
11412   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11413     break 4;
11414 fi
11415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11416     for gdb_arg5 in 'int *' 'int' 'long'; do
11417      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h.  */
11419 $gdb_ptrace_headers
11420 int
11421 main ()
11422 {
11423
11424 extern $gdb_cv_func_ptrace_ret
11425   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11426
11427   ;
11428   return 0;
11429 }
11430 _ACEOF
11431 if ac_fn_c_try_compile "$LINENO"; then :
11432
11433 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11434     break 5;
11435 fi
11436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11437     done
11438    done
11439   done
11440  done
11441 done
11442 # Provide a safe default value.
11443 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11444
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11447 fi
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11449 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11450 ac_save_IFS=$IFS; IFS=','
11451 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11452 IFS=$ac_save_IFS
11453 shift
11454
11455 cat >>confdefs.h <<_ACEOF
11456 #define PTRACE_TYPE_ARG3 $3
11457 _ACEOF
11458
11459 if test -n "$5"; then
11460
11461 cat >>confdefs.h <<_ACEOF
11462 #define PTRACE_TYPE_ARG5 $5
11463 _ACEOF
11464
11465 fi
11466
11467 if test "$cross_compiling" = no; then
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11469 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11470 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11471   $as_echo_n "(cached) " >&6
11472 else
11473   if test "$cross_compiling" = yes; then :
11474   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
11475 else
11476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h.  */
11478 $ac_includes_default
11479 int
11480 main ()
11481 {
11482 /* If this system has a BSD-style setpgrp which takes arguments,
11483   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11484   exit successfully. */
11485   return setpgrp (1,1) != -1;
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_run "$LINENO"; then :
11491   ac_cv_func_setpgrp_void=no
11492 else
11493   ac_cv_func_setpgrp_void=yes
11494 fi
11495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11496   conftest.$ac_objext conftest.beam conftest.$ac_ext
11497 fi
11498
11499 fi
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11501 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11502 if test $ac_cv_func_setpgrp_void = yes; then
11503
11504 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11505
11506 fi
11507
11508 else
11509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11510 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11511 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11512   $as_echo_n "(cached) " >&6
11513 else
11514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h.  */
11516
11517 #include <unistd.h>
11518
11519 int
11520 main ()
11521 {
11522
11523   if (setpgrp(1,1) == -1)
11524     exit (0);
11525   else
11526     exit (1);
11527
11528   ;
11529   return 0;
11530 }
11531 _ACEOF
11532 if ac_fn_c_try_compile "$LINENO"; then :
11533   ac_cv_func_setpgrp_void=no
11534 else
11535   ac_cv_func_setpgrp_void=yes
11536 fi
11537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11538 fi
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11540 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11541 if test $ac_cv_func_setpgrp_void = yes; then
11542   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11543
11544 fi
11545 fi
11546
11547 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
11548 # since sigsetjmp might only be defined as a macro.
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11550 $as_echo_n "checking for sigsetjmp... " >&6; }
11551 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11552   $as_echo_n "(cached) " >&6
11553 else
11554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h.  */
11556
11557 #include <setjmp.h>
11558
11559 int
11560 main ()
11561 {
11562 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11563   ;
11564   return 0;
11565 }
11566 _ACEOF
11567 if ac_fn_c_try_compile "$LINENO"; then :
11568   gdb_cv_func_sigsetjmp=yes
11569 else
11570   gdb_cv_func_sigsetjmp=no
11571 fi
11572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11573 fi
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11575 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11576 if test $gdb_cv_func_sigsetjmp = yes; then
11577
11578 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11579
11580 fi
11581
11582 # Assume we'll default to using the included libiberty regex.
11583 gdb_use_included_regex=yes
11584
11585 # However, if the system regex is GNU regex, then default to *not*
11586 # using the included regex.
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11588 $as_echo_n "checking for GNU regex... " >&6; }
11589 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11590   $as_echo_n "(cached) " >&6
11591 else
11592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h.  */
11594 #include <gnu-versions.h>
11595 int
11596 main ()
11597 {
11598 #define REGEX_INTERFACE_VERSION 1
11599 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11600 # error "Version mismatch"
11601 #endif
11602   ;
11603   return 0;
11604 }
11605 _ACEOF
11606 if ac_fn_c_try_compile "$LINENO"; then :
11607   gdb_cv_have_gnu_regex=yes
11608 else
11609   gdb_cv_have_gnu_regex=no
11610 fi
11611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11612 fi
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11614 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11615 if test $gdb_cv_have_gnu_regex = yes; then
11616   gdb_use_included_regex=no
11617 fi
11618
11619
11620 # Check whether --with-included-regex was given.
11621 if test "${with_included_regex+set}" = set; then :
11622   withval=$with_included_regex; gdb_with_regex=$withval
11623 else
11624   gdb_with_regex=$gdb_use_included_regex
11625 fi
11626
11627 if test "$gdb_with_regex" = yes; then
11628
11629 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11630
11631 fi
11632
11633 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11634 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11635 #include <sys/proc.h>
11636
11637 "
11638 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
11639
11640 cat >>confdefs.h <<_ACEOF
11641 #define HAVE_STRUCT_THREAD_TD_PCB 1
11642 _ACEOF
11643
11644
11645 fi
11646
11647
11648 # See if <sys/lwp.h> defines `struct lwp`.
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11650 $as_echo_n "checking for struct lwp... " >&6; }
11651 if test "${gdb_cv_struct_lwp+set}" = set; then :
11652   $as_echo_n "(cached) " >&6
11653 else
11654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h.  */
11656 #include <sys/param.h>
11657 #include <sys/lwp.h>
11658 int
11659 main ()
11660 {
11661 struct lwp l;
11662   ;
11663   return 0;
11664 }
11665 _ACEOF
11666 if ac_fn_c_try_compile "$LINENO"; then :
11667   gdb_cv_struct_lwp=yes
11668 else
11669   gdb_cv_struct_lwp=no
11670 fi
11671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11672 fi
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11674 $as_echo "$gdb_cv_struct_lwp" >&6; }
11675 if test $gdb_cv_struct_lwp = yes; then
11676
11677 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11678
11679 fi
11680
11681 # See if <machine/reg.h> degines `struct reg'.
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11683 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11684 if test "${gdb_cv_struct_reg+set}" = set; then :
11685   $as_echo_n "(cached) " >&6
11686 else
11687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h.  */
11689 #include <sys/types.h>
11690 #include <machine/reg.h>
11691 int
11692 main ()
11693 {
11694 struct reg r;
11695   ;
11696   return 0;
11697 }
11698 _ACEOF
11699 if ac_fn_c_try_compile "$LINENO"; then :
11700   gdb_cv_struct_reg=yes
11701 else
11702   gdb_cv_struct_reg=no
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705 fi
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11707 $as_echo "$gdb_cv_struct_reg" >&6; }
11708 if test $gdb_cv_struct_reg = yes; then
11709
11710 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11711
11712 fi
11713
11714 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11715 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11716 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11717 "
11718 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
11719
11720 cat >>confdefs.h <<_ACEOF
11721 #define HAVE_STRUCT_REG_R_FS 1
11722 _ACEOF
11723
11724
11725 fi
11726 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11727 "
11728 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
11729
11730 cat >>confdefs.h <<_ACEOF
11731 #define HAVE_STRUCT_REG_R_GS 1
11732 _ACEOF
11733
11734
11735 fi
11736
11737
11738 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11740 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11741 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11742   $as_echo_n "(cached) " >&6
11743 else
11744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h.  */
11746 #include <sys/ptrace.h>
11747 int
11748 main ()
11749 {
11750 PTRACE_GETREGS;
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 if ac_fn_c_try_compile "$LINENO"; then :
11756   gdb_cv_have_ptrace_getregs=yes
11757 else
11758   gdb_cv_have_ptrace_getregs=no
11759 fi
11760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761 fi
11762
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11764 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11765 if test $gdb_cv_have_ptrace_getregs = yes; then
11766
11767 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11768
11769 fi
11770
11771 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11773 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11774 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11775   $as_echo_n "(cached) " >&6
11776 else
11777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778 /* end confdefs.h.  */
11779 #include <sys/ptrace.h>
11780 int
11781 main ()
11782 {
11783 PTRACE_GETFPXREGS;
11784   ;
11785   return 0;
11786 }
11787 _ACEOF
11788 if ac_fn_c_try_compile "$LINENO"; then :
11789   gdb_cv_have_ptrace_getfpxregs=yes
11790 else
11791   gdb_cv_have_ptrace_getfpxregs=no
11792 fi
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 fi
11795
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11797 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11798 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11799
11800 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11801
11802 fi
11803
11804 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11806 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11807 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11808   $as_echo_n "(cached) " >&6
11809 else
11810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h.  */
11812 #include <sys/types.h>
11813 #include <sys/ptrace.h>
11814 int
11815 main ()
11816 {
11817 PT_GETDBREGS;
11818   ;
11819   return 0;
11820 }
11821 _ACEOF
11822 if ac_fn_c_try_compile "$LINENO"; then :
11823   gdb_cv_have_pt_getdbregs=yes
11824 else
11825   gdb_cv_have_pt_getdbregs=no
11826 fi
11827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 fi
11829
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11831 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11832 if test $gdb_cv_have_pt_getdbregs = yes; then
11833
11834 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11835
11836 fi
11837
11838 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11840 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11841 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11842   $as_echo_n "(cached) " >&6
11843 else
11844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h.  */
11846 #include <sys/types.h>
11847 #include <sys/ptrace.h>
11848 int
11849 main ()
11850 {
11851 PT_GETXMMREGS;
11852   ;
11853   return 0;
11854 }
11855 _ACEOF
11856 if ac_fn_c_try_compile "$LINENO"; then :
11857   gdb_cv_have_pt_getxmmregs=yes
11858 else
11859   gdb_cv_have_pt_getxmmregs=no
11860 fi
11861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862 fi
11863
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11865 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11866 if test $gdb_cv_have_pt_getxmmregs = yes; then
11867
11868 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11869
11870 fi
11871
11872 # Detect which type of /proc is in use, such as for Unixware or Solaris.
11873
11874 if test "${target}" = "${host}"; then
11875   case "${host}" in
11876   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
11877
11878 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11879
11880       ;;
11881   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
11882
11883 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11884
11885       ;;
11886   mips-sgi-irix5*)
11887       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11888
11889 $as_echo "#define _KMEMUSER 1" >>confdefs.h
11890
11891       ;;
11892   esac
11893 fi
11894
11895 if test "$ac_cv_header_sys_procfs_h" = yes; then
11896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
11897 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
11898  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
11899   $as_echo_n "(cached) " >&6
11900 else
11901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h.  */
11903
11904 #define _SYSCALL32
11905 /* Needed for new procfs interface on sparc-solaris.  */
11906 #define _STRUCTURED_PROC 1
11907 #include <sys/procfs.h>
11908 int
11909 main ()
11910 {
11911 pstatus_t avar
11912   ;
11913   return 0;
11914 }
11915 _ACEOF
11916 if ac_fn_c_try_compile "$LINENO"; then :
11917   bfd_cv_have_sys_procfs_type_pstatus_t=yes
11918 else
11919   bfd_cv_have_sys_procfs_type_pstatus_t=no
11920
11921 fi
11922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11923 fi
11924
11925  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
11926
11927 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
11928
11929  fi
11930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11931 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
11932
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
11934 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
11935  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
11936   $as_echo_n "(cached) " >&6
11937 else
11938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h.  */
11940
11941 #define _SYSCALL32
11942 /* Needed for new procfs interface on sparc-solaris.  */
11943 #define _STRUCTURED_PROC 1
11944 #include <sys/procfs.h>
11945 int
11946 main ()
11947 {
11948 prrun_t avar
11949   ;
11950   return 0;
11951 }
11952 _ACEOF
11953 if ac_fn_c_try_compile "$LINENO"; then :
11954   bfd_cv_have_sys_procfs_type_prrun_t=yes
11955 else
11956   bfd_cv_have_sys_procfs_type_prrun_t=no
11957
11958 fi
11959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960 fi
11961
11962  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
11963
11964 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
11965
11966  fi
11967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
11968 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
11969
11970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11971 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11972  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11973   $as_echo_n "(cached) " >&6
11974 else
11975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11976 /* end confdefs.h.  */
11977
11978 #define _SYSCALL32
11979 /* Needed for new procfs interface on sparc-solaris.  */
11980 #define _STRUCTURED_PROC 1
11981 #include <sys/procfs.h>
11982 int
11983 main ()
11984 {
11985 gregset_t avar
11986   ;
11987   return 0;
11988 }
11989 _ACEOF
11990 if ac_fn_c_try_compile "$LINENO"; then :
11991   bfd_cv_have_sys_procfs_type_gregset_t=yes
11992 else
11993   bfd_cv_have_sys_procfs_type_gregset_t=no
11994
11995 fi
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 fi
11998
11999  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
12000
12001 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
12002
12003  fi
12004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
12005 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
12006
12007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
12008 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
12009  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
12010   $as_echo_n "(cached) " >&6
12011 else
12012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h.  */
12014
12015 #define _SYSCALL32
12016 /* Needed for new procfs interface on sparc-solaris.  */
12017 #define _STRUCTURED_PROC 1
12018 #include <sys/procfs.h>
12019 int
12020 main ()
12021 {
12022 fpregset_t avar
12023   ;
12024   return 0;
12025 }
12026 _ACEOF
12027 if ac_fn_c_try_compile "$LINENO"; then :
12028   bfd_cv_have_sys_procfs_type_fpregset_t=yes
12029 else
12030   bfd_cv_have_sys_procfs_type_fpregset_t=no
12031
12032 fi
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034 fi
12035
12036  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
12037
12038 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
12039
12040  fi
12041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
12042 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
12043
12044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
12045 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
12046  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
12047   $as_echo_n "(cached) " >&6
12048 else
12049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h.  */
12051
12052 #define _SYSCALL32
12053 /* Needed for new procfs interface on sparc-solaris.  */
12054 #define _STRUCTURED_PROC 1
12055 #include <sys/procfs.h>
12056 int
12057 main ()
12058 {
12059 prgregset_t avar
12060   ;
12061   return 0;
12062 }
12063 _ACEOF
12064 if ac_fn_c_try_compile "$LINENO"; then :
12065   bfd_cv_have_sys_procfs_type_prgregset_t=yes
12066 else
12067   bfd_cv_have_sys_procfs_type_prgregset_t=no
12068
12069 fi
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12071 fi
12072
12073  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
12074
12075 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
12076
12077  fi
12078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
12079 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
12080
12081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
12082 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
12083  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
12084   $as_echo_n "(cached) " >&6
12085 else
12086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h.  */
12088
12089 #define _SYSCALL32
12090 /* Needed for new procfs interface on sparc-solaris.  */
12091 #define _STRUCTURED_PROC 1
12092 #include <sys/procfs.h>
12093 int
12094 main ()
12095 {
12096 prfpregset_t avar
12097   ;
12098   return 0;
12099 }
12100 _ACEOF
12101 if ac_fn_c_try_compile "$LINENO"; then :
12102   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
12103 else
12104   bfd_cv_have_sys_procfs_type_prfpregset_t=no
12105
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 fi
12109
12110  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12111
12112 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
12113
12114  fi
12115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
12116 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
12117
12118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
12119 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
12120  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
12121   $as_echo_n "(cached) " >&6
12122 else
12123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h.  */
12125
12126 #define _SYSCALL32
12127 /* Needed for new procfs interface on sparc-solaris.  */
12128 #define _STRUCTURED_PROC 1
12129 #include <sys/procfs.h>
12130 int
12131 main ()
12132 {
12133 prgregset32_t avar
12134   ;
12135   return 0;
12136 }
12137 _ACEOF
12138 if ac_fn_c_try_compile "$LINENO"; then :
12139   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
12140 else
12141   bfd_cv_have_sys_procfs_type_prgregset32_t=no
12142
12143 fi
12144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12145 fi
12146
12147  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
12148
12149 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
12150
12151  fi
12152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
12153 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
12154
12155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
12156 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
12157  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
12158   $as_echo_n "(cached) " >&6
12159 else
12160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h.  */
12162
12163 #define _SYSCALL32
12164 /* Needed for new procfs interface on sparc-solaris.  */
12165 #define _STRUCTURED_PROC 1
12166 #include <sys/procfs.h>
12167 int
12168 main ()
12169 {
12170 prfpregset32_t avar
12171   ;
12172   return 0;
12173 }
12174 _ACEOF
12175 if ac_fn_c_try_compile "$LINENO"; then :
12176   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
12177 else
12178   bfd_cv_have_sys_procfs_type_prfpregset32_t=no
12179
12180 fi
12181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182 fi
12183
12184  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
12185
12186 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
12187
12188  fi
12189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
12190 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
12191
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
12193 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
12194  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
12195   $as_echo_n "(cached) " >&6
12196 else
12197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198 /* end confdefs.h.  */
12199
12200 #define _SYSCALL32
12201 /* Needed for new procfs interface on sparc-solaris.  */
12202 #define _STRUCTURED_PROC 1
12203 #include <sys/procfs.h>
12204 int
12205 main ()
12206 {
12207 lwpid_t avar
12208   ;
12209   return 0;
12210 }
12211 _ACEOF
12212 if ac_fn_c_try_compile "$LINENO"; then :
12213   bfd_cv_have_sys_procfs_type_lwpid_t=yes
12214 else
12215   bfd_cv_have_sys_procfs_type_lwpid_t=no
12216
12217 fi
12218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219 fi
12220
12221  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
12222
12223 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
12224
12225  fi
12226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
12227 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
12228
12229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
12230 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
12231  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
12232   $as_echo_n "(cached) " >&6
12233 else
12234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h.  */
12236
12237 #define _SYSCALL32
12238 /* Needed for new procfs interface on sparc-solaris.  */
12239 #define _STRUCTURED_PROC 1
12240 #include <sys/procfs.h>
12241 int
12242 main ()
12243 {
12244 psaddr_t avar
12245   ;
12246   return 0;
12247 }
12248 _ACEOF
12249 if ac_fn_c_try_compile "$LINENO"; then :
12250   bfd_cv_have_sys_procfs_type_psaddr_t=yes
12251 else
12252   bfd_cv_have_sys_procfs_type_psaddr_t=no
12253
12254 fi
12255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256 fi
12257
12258  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
12259
12260 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
12261
12262  fi
12263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
12264 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
12265
12266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
12267 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
12268  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
12269   $as_echo_n "(cached) " >&6
12270 else
12271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h.  */
12273
12274 #define _SYSCALL32
12275 /* Needed for new procfs interface on sparc-solaris.  */
12276 #define _STRUCTURED_PROC 1
12277 #include <sys/procfs.h>
12278 int
12279 main ()
12280 {
12281 prsysent_t avar
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 if ac_fn_c_try_compile "$LINENO"; then :
12287   bfd_cv_have_sys_procfs_type_prsysent_t=yes
12288 else
12289   bfd_cv_have_sys_procfs_type_prsysent_t=no
12290
12291 fi
12292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12293 fi
12294
12295  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
12296
12297 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
12298
12299  fi
12300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
12301 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
12302
12303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
12304 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
12305  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
12306   $as_echo_n "(cached) " >&6
12307 else
12308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h.  */
12310
12311 #define _SYSCALL32
12312 /* Needed for new procfs interface on sparc-solaris.  */
12313 #define _STRUCTURED_PROC 1
12314 #include <sys/procfs.h>
12315 int
12316 main ()
12317 {
12318 pr_sigset_t avar
12319   ;
12320   return 0;
12321 }
12322 _ACEOF
12323 if ac_fn_c_try_compile "$LINENO"; then :
12324   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
12325 else
12326   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
12327
12328 fi
12329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330 fi
12331
12332  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12333
12334 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12335
12336  fi
12337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12338 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12339
12340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12341 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12342  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12343   $as_echo_n "(cached) " >&6
12344 else
12345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h.  */
12347
12348 #define _SYSCALL32
12349 /* Needed for new procfs interface on sparc-solaris.  */
12350 #define _STRUCTURED_PROC 1
12351 #include <sys/procfs.h>
12352 int
12353 main ()
12354 {
12355 pr_sigaction64_t avar
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 if ac_fn_c_try_compile "$LINENO"; then :
12361   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
12362 else
12363   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
12364
12365 fi
12366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12367 fi
12368
12369  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12370
12371 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12372
12373  fi
12374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12375 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12376
12377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12378 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12379  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12380   $as_echo_n "(cached) " >&6
12381 else
12382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h.  */
12384
12385 #define _SYSCALL32
12386 /* Needed for new procfs interface on sparc-solaris.  */
12387 #define _STRUCTURED_PROC 1
12388 #include <sys/procfs.h>
12389 int
12390 main ()
12391 {
12392 pr_siginfo64_t avar
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_c_try_compile "$LINENO"; then :
12398   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
12399 else
12400   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
12401
12402 fi
12403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12404 fi
12405
12406  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12407
12408 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12409
12410  fi
12411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12412 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12413
12414
12415
12416
12417
12418   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12420 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12421     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12422   $as_echo_n "(cached) " >&6
12423 else
12424   if test "$cross_compiling" = yes; then :
12425   gdb_cv_prfpregset_t_broken=yes
12426 else
12427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h.  */
12429 #include <sys/procfs.h>
12430        int main ()
12431        {
12432          if (sizeof (prfpregset_t) == sizeof (void *))
12433            return 1;
12434          return 0;
12435        }
12436 _ACEOF
12437 if ac_fn_c_try_run "$LINENO"; then :
12438   gdb_cv_prfpregset_t_broken=no
12439 else
12440   gdb_cv_prfpregset_t_broken=yes
12441 fi
12442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12443   conftest.$ac_objext conftest.beam conftest.$ac_ext
12444 fi
12445
12446 fi
12447
12448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12449 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12450     if test $gdb_cv_prfpregset_t_broken = yes; then
12451
12452 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12453
12454     fi
12455   fi
12456
12457
12458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
12459 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
12460   if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
12461   $as_echo_n "(cached) " >&6
12462 else
12463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h.  */
12465 #include <unistd.h>
12466 #include <sys/types.h>
12467 #include <sys/procfs.h>
12468
12469 int
12470 main ()
12471 {
12472
12473     int dummy;;
12474     dummy = ioctl(0, PIOCSET, &dummy);
12475
12476   ;
12477   return 0;
12478 }
12479 _ACEOF
12480 if ac_fn_c_try_compile "$LINENO"; then :
12481   gdb_cv_have_procfs_piocset=yes
12482 else
12483   gdb_cv_have_procfs_piocset=no
12484 fi
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486 fi
12487
12488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
12489 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
12490   if test $gdb_cv_have_procfs_piocset = yes; then
12491
12492 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
12493
12494   fi
12495 fi
12496
12497 if test ${host} = ${target} ; then
12498
12499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
12500 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
12501   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
12502   $as_echo_n "(cached) " >&6
12503 else
12504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h.  */
12506 #include <link.h>
12507 int
12508 main ()
12509 {
12510 struct link_map lm; (void) lm.l_addr;
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 if ac_fn_c_try_compile "$LINENO"; then :
12516   gdb_cv_have_struct_link_map_with_l_members=yes
12517 else
12518   gdb_cv_have_struct_link_map_with_l_members=no
12519 fi
12520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12521 fi
12522
12523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
12524 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
12525   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
12526
12527 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
12528
12529   fi
12530
12531
12532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
12533 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
12534   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
12535   $as_echo_n "(cached) " >&6
12536 else
12537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h.  */
12539 #include <sys/types.h>
12540 #include <link.h>
12541 int
12542 main ()
12543 {
12544 struct link_map lm; (void) lm.lm_addr;
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 if ac_fn_c_try_compile "$LINENO"; then :
12550   gdb_cv_have_struct_link_map_with_lm_members=yes
12551 else
12552   gdb_cv_have_struct_link_map_with_lm_members=no
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555 fi
12556
12557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
12558 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
12559   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
12560
12561 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
12562
12563   fi
12564
12565
12566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
12567 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
12568   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
12569   $as_echo_n "(cached) " >&6
12570 else
12571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h.  */
12573 #include <sys/types.h>
12574 #ifdef HAVE_NLIST_H
12575 #include <nlist.h>
12576 #endif
12577 #include <link.h>
12578 int
12579 main ()
12580 {
12581 struct so_map lm; (void) lm.som_addr;
12582   ;
12583   return 0;
12584 }
12585 _ACEOF
12586 if ac_fn_c_try_compile "$LINENO"; then :
12587   gdb_cv_have_struct_so_map_with_som_members=yes
12588 else
12589   gdb_cv_have_struct_so_map_with_som_members=no
12590 fi
12591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12592 fi
12593
12594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
12595 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
12596   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
12597
12598 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
12599
12600   fi
12601
12602
12603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
12604 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
12605   if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
12606   $as_echo_n "(cached) " >&6
12607 else
12608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h.  */
12610 #define _SYSCALL32
12611 #include <sys/link.h>
12612 int
12613 main ()
12614 {
12615 struct link_map32 l;
12616   ;
12617   return 0;
12618 }
12619 _ACEOF
12620 if ac_fn_c_try_compile "$LINENO"; then :
12621   gdb_cv_have_struct_link_map32=yes
12622 else
12623   gdb_cv_have_struct_link_map32=no
12624 fi
12625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12626 fi
12627
12628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
12629 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
12630   if test $gdb_cv_have_struct_link_map32 = yes; then
12631
12632 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
12633
12634
12635 $as_echo "#define _SYSCALL32 1" >>confdefs.h
12636
12637   fi
12638 fi
12639
12640 # Check if the compiler supports the `long long' type.
12641
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12643 $as_echo_n "checking for long long support in compiler... " >&6; }
12644 if test "${gdb_cv_c_long_long+set}" = set; then :
12645   $as_echo_n "(cached) " >&6
12646 else
12647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h.  */
12649 extern long long foo;
12650 int
12651 main ()
12652 {
12653 switch (foo & 2) { case 0: return 1; }
12654   ;
12655   return 0;
12656 }
12657 _ACEOF
12658 if ac_fn_c_try_compile "$LINENO"; then :
12659   gdb_cv_c_long_long=yes
12660 else
12661   gdb_cv_c_long_long=no
12662 fi
12663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 fi
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12666 $as_echo "$gdb_cv_c_long_long" >&6; }
12667 if test $gdb_cv_c_long_long = yes; then
12668
12669 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12670
12671 fi
12672
12673 # Check if the compiler and runtime support printing long longs.
12674
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12676 $as_echo_n "checking for long long support in printf... " >&6; }
12677 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12678   $as_echo_n "(cached) " >&6
12679 else
12680   if test "$cross_compiling" = yes; then :
12681   gdb_cv_printf_has_long_long=no
12682 else
12683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h.  */
12685 $ac_includes_default
12686 int
12687 main ()
12688 {
12689 char buf[32];
12690   long long l = 0;
12691   l = (l << 16) + 0x0123;
12692   l = (l << 16) + 0x4567;
12693   l = (l << 16) + 0x89ab;
12694   l = (l << 16) + 0xcdef;
12695   sprintf (buf, "0x%016llx", l);
12696   return (strcmp ("0x0123456789abcdef", buf));
12697   ;
12698   return 0;
12699 }
12700 _ACEOF
12701 if ac_fn_c_try_run "$LINENO"; then :
12702   gdb_cv_printf_has_long_long=yes
12703 else
12704   gdb_cv_printf_has_long_long=no
12705 fi
12706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12707   conftest.$ac_objext conftest.beam conftest.$ac_ext
12708 fi
12709
12710 fi
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12712 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12713 if test $gdb_cv_printf_has_long_long = yes; then
12714
12715 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12716
12717 fi
12718
12719 # Check if the compiler and runtime support printing decfloats.
12720
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12722 $as_echo_n "checking for decfloat support in printf... " >&6; }
12723 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12724   $as_echo_n "(cached) " >&6
12725 else
12726   if test "$cross_compiling" = yes; then :
12727   gdb_cv_printf_has_decfloat=no
12728 else
12729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h.  */
12731 $ac_includes_default
12732 int
12733 main ()
12734 {
12735 char buf[64];
12736   _Decimal32 d32 = 1.2345df;
12737   _Decimal64 d64 = 1.2345dd;
12738   _Decimal128 d128 = 1.2345dl;
12739   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12740   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12741   ;
12742   return 0;
12743 }
12744 _ACEOF
12745 if ac_fn_c_try_run "$LINENO"; then :
12746   gdb_cv_printf_has_decfloat=yes
12747 else
12748   gdb_cv_printf_has_decfloat=no
12749 fi
12750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12751   conftest.$ac_objext conftest.beam conftest.$ac_ext
12752 fi
12753
12754 fi
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12756 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12757 if test $gdb_cv_printf_has_decfloat = yes; then
12758
12759 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12760
12761 fi
12762
12763 # Check if the compiler supports the `long double' type.  We can't use
12764 # AC_C_LONG_DOUBLE because that one does additional checks on the
12765 # constants defined in <float.h> that fail on some systems,
12766 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12767
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12769 $as_echo_n "checking for long double support in compiler... " >&6; }
12770 if test "${gdb_cv_c_long_double+set}" = set; then :
12771   $as_echo_n "(cached) " >&6
12772 else
12773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h.  */
12775 long double foo;
12776 _ACEOF
12777 if ac_fn_c_try_compile "$LINENO"; then :
12778   gdb_cv_c_long_double=yes
12779 else
12780   gdb_cv_c_long_double=no
12781 fi
12782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12783 fi
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12785 $as_echo "$gdb_cv_c_long_double" >&6; }
12786 if test $gdb_cv_c_long_double = yes; then
12787
12788 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12789
12790 fi
12791
12792 # Check if the compiler and runtime support printing long doubles.
12793
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12795 $as_echo_n "checking for long double support in printf... " >&6; }
12796 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12797   $as_echo_n "(cached) " >&6
12798 else
12799   if test "$cross_compiling" = yes; then :
12800   gdb_cv_printf_has_long_double=no
12801 else
12802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h.  */
12804 $ac_includes_default
12805 int
12806 main ()
12807 {
12808 char buf[16];
12809   long double f = 3.141592653;
12810   sprintf (buf, "%Lg", f);
12811   return (strncmp ("3.14159", buf, 7));
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 if ac_fn_c_try_run "$LINENO"; then :
12817   gdb_cv_printf_has_long_double=yes
12818 else
12819   gdb_cv_printf_has_long_double=no
12820 fi
12821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12822   conftest.$ac_objext conftest.beam conftest.$ac_ext
12823 fi
12824
12825 fi
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12827 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12828 if test $gdb_cv_printf_has_long_double = yes; then
12829
12830 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12831
12832 fi
12833
12834 # Check if the compiler and runtime support scanning long doubles.
12835
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12837 $as_echo_n "checking for long double support in scanf... " >&6; }
12838 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12839   $as_echo_n "(cached) " >&6
12840 else
12841   if test "$cross_compiling" = yes; then :
12842   gdb_cv_scanf_has_long_double=no
12843 else
12844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h.  */
12846 #include <stdio.h>
12847 int
12848 main ()
12849 {
12850 char *buf = "3.141592653";
12851   long double f = 0;
12852   sscanf (buf, "%Lg", &f);
12853   return !(f > 3.14159 && f < 3.14160);
12854   ;
12855   return 0;
12856 }
12857 _ACEOF
12858 if ac_fn_c_try_run "$LINENO"; then :
12859   gdb_cv_scanf_has_long_double=yes
12860 else
12861   gdb_cv_scanf_has_long_double=no
12862 fi
12863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12864   conftest.$ac_objext conftest.beam conftest.$ac_ext
12865 fi
12866
12867 fi
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12869 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12870 if test $gdb_cv_scanf_has_long_double = yes; then
12871
12872 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12873
12874 fi
12875
12876 case ${host_os} in
12877 aix*)
12878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12879 $as_echo_n "checking for -bbigtoc option... " >&6; }
12880 if test "${gdb_cv_bigtoc+set}" = set; then :
12881   $as_echo_n "(cached) " >&6
12882 else
12883
12884     SAVE_LDFLAGS=$LDFLAGS
12885
12886     case $GCC in
12887     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
12888     *) gdb_cv_bigtoc=-bbigtoc ;;
12889     esac
12890
12891     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
12892     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h.  */
12894
12895 int
12896 main ()
12897 {
12898 int i;
12899   ;
12900   return 0;
12901 }
12902 _ACEOF
12903 if ac_fn_c_try_link "$LINENO"; then :
12904
12905 else
12906   gdb_cv_bigtoc=
12907 fi
12908 rm -f core conftest.err conftest.$ac_objext \
12909     conftest$ac_exeext conftest.$ac_ext
12910     LDFLAGS="${SAVE_LDFLAGS}"
12911
12912 fi
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12914 $as_echo "$gdb_cv_bigtoc" >&6; }
12915   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12916   ;;
12917 esac
12918
12919
12920
12921 if test ${build} = ${host} -a ${host} = ${target} ; then
12922    case ${host_os} in
12923    hpux*)
12924       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
12925 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
12926       if test -f /usr/include/dce/cma_config.h ; then
12927          if test "$GCC" = "yes" ; then
12928             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12929 $as_echo "yes" >&6; }
12930
12931 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
12932
12933             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
12934             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
12935          else
12936             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
12937 $as_echo "no (suppressed because you are not using GCC)" >&6; }
12938          fi
12939       else
12940          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12942       fi
12943       ;;
12944    solaris*)
12945       # See if thread_db library is around for Solaris thread debugging.
12946       # Note that we must explicitly test for version 1 of the library
12947       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12948       # the same API.
12949       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12950 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12951       if test -f /usr/lib/libthread_db.so.1 ; then
12952          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12953 $as_echo "yes" >&6; }
12954
12955 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12956
12957          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
12958          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
12959          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12960 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12961 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12962   $as_echo_n "(cached) " >&6
12963 else
12964   ac_check_lib_save_LIBS=$LIBS
12965 LIBS="-ldl  $LIBS"
12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12967 /* end confdefs.h.  */
12968
12969 /* Override any GCC internal prototype to avoid an error.
12970    Use char because int might match the return type of a GCC
12971    builtin and then its argument prototype would still apply.  */
12972 #ifdef __cplusplus
12973 extern "C"
12974 #endif
12975 char dlopen ();
12976 int
12977 main ()
12978 {
12979 return dlopen ();
12980   ;
12981   return 0;
12982 }
12983 _ACEOF
12984 if ac_fn_c_try_link "$LINENO"; then :
12985   ac_cv_lib_dl_dlopen=yes
12986 else
12987   ac_cv_lib_dl_dlopen=no
12988 fi
12989 rm -f core conftest.err conftest.$ac_objext \
12990     conftest$ac_exeext conftest.$ac_ext
12991 LIBS=$ac_check_lib_save_LIBS
12992 fi
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12994 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12995 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12996   cat >>confdefs.h <<_ACEOF
12997 #define HAVE_LIBDL 1
12998 _ACEOF
12999
13000   LIBS="-ldl $LIBS"
13001
13002 fi
13003
13004          if test "$GCC" = "yes" ; then
13005             # The GNU linker requires the -export-dynamic option to make
13006             # all symbols visible in the dynamic symbol table.
13007             hold_ldflags=$LDFLAGS
13008             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
13009 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
13010             LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
13011             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h.  */
13013
13014 int
13015 main ()
13016 {
13017 int i;
13018   ;
13019   return 0;
13020 }
13021 _ACEOF
13022 if ac_fn_c_try_link "$LINENO"; then :
13023   found=yes
13024 else
13025   found=no
13026 fi
13027 rm -f core conftest.err conftest.$ac_objext \
13028     conftest$ac_exeext conftest.$ac_ext
13029             LDFLAGS=$hold_ldflags
13030             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13031 $as_echo "$found" >&6; }
13032             if test $found = yes; then
13033                CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
13034             fi
13035          fi
13036          # Sun randomly tweaked the prototypes in <proc_service.h>
13037          # at one point.
13038          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13039 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
13040          if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13041   $as_echo_n "(cached) " >&6
13042 else
13043
13044             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h.  */
13046
13047                 #include <proc_service.h>
13048                 ps_err_e ps_pdwrite
13049                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
13050
13051 int
13052 main ()
13053 {
13054
13055   ;
13056   return 0;
13057 }
13058 _ACEOF
13059 if ac_fn_c_try_compile "$LINENO"; then :
13060   gdb_cv_proc_service_is_old=no
13061 else
13062   gdb_cv_proc_service_is_old=yes
13063 fi
13064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065
13066 fi
13067
13068          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13069 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13070          if test $gdb_cv_proc_service_is_old = yes; then
13071
13072 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13073
13074          fi
13075       else
13076          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13078       fi
13079       ;;
13080    aix*)
13081       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13082 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13083       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13084   $as_echo_n "(cached) " >&6
13085 else
13086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h.  */
13088 #include <sys/pthdebug.h>
13089 int
13090 main ()
13091 {
13092 #ifndef PTHDB_VERSION_3
13093                                     #error
13094                                     #endif
13095   ;
13096   return 0;
13097 }
13098 _ACEOF
13099 if ac_fn_c_try_compile "$LINENO"; then :
13100   gdb_cv_have_aix_thread_debug=yes
13101 else
13102   gdb_cv_have_aix_thread_debug=no
13103 fi
13104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105 fi
13106
13107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13108 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13109       if test $gdb_cv_have_aix_thread_debug = yes; then
13110          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
13111          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
13112          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
13113       fi
13114       ;;
13115    esac
13116
13117 fi
13118
13119 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13120    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13121 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13122 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13123   $as_echo_n "(cached) " >&6
13124 else
13125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h.  */
13127 #include <thread_db.h>
13128 int
13129 main ()
13130 {
13131 int i = TD_NOTALLOC;
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 if ac_fn_c_try_compile "$LINENO"; then :
13137   gdb_cv_thread_db_h_has_td_notalloc=yes
13138 else
13139   gdb_cv_thread_db_h_has_td_notalloc=no
13140
13141 fi
13142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13143
13144 fi
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13146 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13148 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13149 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13150   $as_echo_n "(cached) " >&6
13151 else
13152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h.  */
13154 #include <thread_db.h>
13155 int
13156 main ()
13157 {
13158 int i = TD_VERSION;
13159   ;
13160   return 0;
13161 }
13162 _ACEOF
13163 if ac_fn_c_try_compile "$LINENO"; then :
13164   gdb_cv_thread_db_h_has_td_version=yes
13165 else
13166   gdb_cv_thread_db_h_has_td_version=no
13167
13168 fi
13169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170
13171 fi
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13173 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
13175 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
13176 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13177   $as_echo_n "(cached) " >&6
13178 else
13179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13180 /* end confdefs.h.  */
13181 #include <thread_db.h>
13182 int
13183 main ()
13184 {
13185 int i = TD_NOTLS;
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 if ac_fn_c_try_compile "$LINENO"; then :
13191   gdb_cv_thread_db_h_has_td_notls=yes
13192 else
13193   gdb_cv_thread_db_h_has_td_notls=no
13194
13195 fi
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13197
13198 fi
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
13200 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
13201 fi
13202 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
13203
13204 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
13205
13206 fi
13207 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
13208
13209 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
13210
13211 fi
13212 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
13213
13214 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
13215
13216 fi
13217
13218 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
13219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
13220 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
13221 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
13222   $as_echo_n "(cached) " >&6
13223 else
13224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h.  */
13226 #include <sys/syscall.h>
13227 int
13228 main ()
13229 {
13230 int i = __NR_tkill;
13231   ;
13232   return 0;
13233 }
13234 _ACEOF
13235 if ac_fn_c_try_compile "$LINENO"; then :
13236   gdb_cv_sys_syscall_h_has_tkill=yes
13237 else
13238   gdb_cv_sys_syscall_h_has_tkill=no
13239
13240 fi
13241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242
13243 fi
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
13245 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
13246 fi
13247 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
13248
13249 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
13250
13251 fi
13252
13253 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13254 "
13255 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
13256   ac_have_decl=1
13257 else
13258   ac_have_decl=0
13259 fi
13260
13261 cat >>confdefs.h <<_ACEOF
13262 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13263 _ACEOF
13264
13265
13266 if test "$cross_compiling" = yes; then :
13267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h.  */
13269 #include <sys/personality.h>
13270 int
13271 main ()
13272 {
13273
13274 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
13275 #       define ADDR_NO_RANDOMIZE 0x0040000
13276 #      endif
13277        /* Test the flag could be set and stays set.  */
13278        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13279        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13280            return 1
13281   ;
13282   return 0;
13283 }
13284 _ACEOF
13285 if ac_fn_c_try_link "$LINENO"; then :
13286   have_personality=true
13287 else
13288   have_personality=false
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext \
13291     conftest$ac_exeext conftest.$ac_ext
13292 else
13293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h.  */
13295 #include <sys/personality.h>
13296 int
13297 main ()
13298 {
13299
13300 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
13301 #       define ADDR_NO_RANDOMIZE 0x0040000
13302 #      endif
13303        /* Test the flag could be set and stays set.  */
13304        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13305        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13306            return 1
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 if ac_fn_c_try_run "$LINENO"; then :
13312   have_personality=true
13313 else
13314   have_personality=false
13315 fi
13316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13317   conftest.$ac_objext conftest.beam conftest.$ac_ext
13318 fi
13319
13320 if $have_personality
13321 then
13322
13323 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13324
13325 fi
13326
13327
13328 target_sysroot_reloc=0
13329
13330 # Check whether --with-sysroot was given.
13331 if test "${with_sysroot+set}" = set; then :
13332   withval=$with_sysroot;
13333  case ${with_sysroot} in
13334  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
13335  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
13336  esac
13337
13338  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
13339
13340  if test "x$prefix" = xNONE; then
13341   test_prefix=/usr/local
13342  else
13343   test_prefix=$prefix
13344  fi
13345  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
13346   test_exec_prefix=$test_prefix
13347  else
13348   test_exec_prefix=$exec_prefix
13349  fi
13350  case ${TARGET_SYSTEM_ROOT} in
13351  "${test_prefix}"|"${test_prefix}/"*|\
13352  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
13353  '${prefix}'|'${prefix}/'*|\
13354  '${exec_prefix}'|'${exec_prefix}/'*)
13355    target_sysroot_reloc=1
13356    ;;
13357  esac
13358
13359 else
13360
13361  TARGET_SYSTEM_ROOT=
13362  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
13363
13364 fi
13365
13366 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
13367
13368
13369
13370
13371
13372 # Check whether --with-system-gdbinit was given.
13373 if test "${with_system_gdbinit+set}" = set; then :
13374   withval=$with_system_gdbinit;
13375     SYSTEM_GDBINIT=$withval
13376 else
13377   SYSTEM_GDBINIT=
13378 fi
13379
13380
13381   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
13382   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13383   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
13384   ac_define_dir=`eval echo $ac_define_dir`
13385
13386 cat >>confdefs.h <<_ACEOF
13387 #define SYSTEM_GDBINIT "$ac_define_dir"
13388 _ACEOF
13389
13390
13391
13392   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
13393      if test "x$prefix" = xNONE; then
13394         test_prefix=/usr/local
13395      else
13396         test_prefix=$prefix
13397      fi
13398   else
13399      test_prefix=$exec_prefix
13400   fi
13401   value=0
13402   case ${ac_define_dir} in
13403      "${test_prefix}"|"${test_prefix}/"*|\
13404         '${exec_prefix}'|'${exec_prefix}/'*)
13405      value=1
13406      ;;
13407   esac
13408
13409 cat >>confdefs.h <<_ACEOF
13410 #define SYSTEM_GDBINIT_RELOCATABLE $value
13411 _ACEOF
13412
13413
13414
13415 # Check whether --enable-werror was given.
13416 if test "${enable_werror+set}" = set; then :
13417   enableval=$enable_werror; case "${enableval}" in
13418      yes | y) ERROR_ON_WARNING="yes" ;;
13419      no | n)  ERROR_ON_WARNING="no" ;;
13420      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13421    esac
13422 fi
13423
13424
13425 # Enable -Werror by default when using gcc
13426 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13427     ERROR_ON_WARNING=yes
13428 fi
13429
13430 WERROR_CFLAGS=""
13431 if test "${ERROR_ON_WARNING}" = yes ; then
13432     WERROR_CFLAGS="-Werror"
13433 fi
13434
13435 # The entries after -Wno-pointer-sign are disabled warnings which may
13436 # be enabled in the future, which can not currently be used to build
13437 # GDB.
13438 # NOTE: If you change this list, remember to update
13439 # gdb/doc/gdbint.texinfo.
13440 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13441 -Wformat-nonliteral -Wno-pointer-sign \
13442 -Wno-unused -Wunused-value -Wunused-function \
13443 -Wno-switch -Wno-char-subscripts"
13444
13445 # Enable -Wno-format by default when using gcc on mingw since many
13446 # GCC versions complain about %I64.
13447 case "${host}" in
13448   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13449 esac
13450
13451 # Check whether --enable-build-warnings was given.
13452 if test "${enable_build_warnings+set}" = set; then :
13453   enableval=$enable_build_warnings; case "${enableval}" in
13454   yes)  ;;
13455   no)   build_warnings="-w";;
13456   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13457         build_warnings="${build_warnings} ${t}";;
13458   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13459         build_warnings="${t} ${build_warnings}";;
13460   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13461 esac
13462 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13463   echo "Setting compiler warning flags = $build_warnings" 6>&1
13464 fi
13465 fi
13466 # Check whether --enable-gdb-build-warnings was given.
13467 if test "${enable_gdb_build_warnings+set}" = set; then :
13468   enableval=$enable_gdb_build_warnings; case "${enableval}" in
13469   yes)  ;;
13470   no)   build_warnings="-w";;
13471   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13472         build_warnings="${build_warnings} ${t}";;
13473   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13474         build_warnings="${t} ${build_warnings}";;
13475   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13476 esac
13477 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13478   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13479 fi
13480 fi
13481 WARN_CFLAGS=""
13482 if test "x${build_warnings}" != x -a "x$GCC" = xyes
13483 then
13484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13485 $as_echo_n "checking compiler warning flags... " >&6; }
13486     # Separate out the -Werror flag as some files just cannot be
13487     # compiled with it enabled.
13488     for w in ${build_warnings}; do
13489         case $w in
13490         -Werr*) WERROR_CFLAGS=-Werror ;;
13491         *) # Check that GCC accepts it
13492             saved_CFLAGS="$CFLAGS"
13493             CFLAGS="$CFLAGS $w"
13494             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h.  */
13496
13497 int
13498 main ()
13499 {
13500
13501   ;
13502   return 0;
13503 }
13504 _ACEOF
13505 if ac_fn_c_try_compile "$LINENO"; then :
13506   WARN_CFLAGS="${WARN_CFLAGS} $w"
13507 fi
13508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13509             CFLAGS="$saved_CFLAGS"
13510         esac
13511     done
13512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13513 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13514 fi
13515
13516
13517
13518 # In the Cygwin environment, we need some additional flags.
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13520 $as_echo_n "checking for cygwin... " >&6; }
13521 if test "${gdb_cv_os_cygwin+set}" = set; then :
13522   $as_echo_n "(cached) " >&6
13523 else
13524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h.  */
13526
13527 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13528 lose
13529 #endif
13530 _ACEOF
13531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13532   $EGREP "lose" >/dev/null 2>&1; then :
13533   gdb_cv_os_cygwin=yes
13534 else
13535   gdb_cv_os_cygwin=no
13536 fi
13537 rm -f conftest*
13538
13539 fi
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
13541 $as_echo "$gdb_cv_os_cygwin" >&6; }
13542
13543
13544 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
13545 case ${host} in
13546   *go32* ) SER_HARDWIRE=ser-go32.o ;;
13547   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13548   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
13549 esac
13550
13551
13552 # libreadline needs libuser32.a in a cygwin environment
13553 WIN32LIBS=
13554 if test x$gdb_cv_os_cygwin = xyes; then
13555     WIN32LIBS="-luser32"
13556     case "${target}" in
13557         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13558         ;;
13559     esac
13560 fi
13561
13562 # The ser-tcp.c module requires sockets.
13563 case ${host} in
13564   *mingw32*)
13565
13566 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13567
13568     WIN32LIBS="$WIN32LIBS -lws2_32"
13569     ;;
13570 esac
13571
13572
13573 # Add ELF support to GDB, but only if BFD includes ELF support.
13574 OLD_CFLAGS=$CFLAGS
13575 OLD_LDFLAGS=$LDFLAGS
13576 OLD_LIBS=$LIBS
13577 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
13578 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
13579 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13580 LIBS="-lbfd -liberty $intl $LIBS"
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13582 $as_echo_n "checking for ELF support in BFD... " >&6; }
13583 if test "${gdb_cv_var_elf+set}" = set; then :
13584   $as_echo_n "(cached) " >&6
13585 else
13586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h.  */
13588 #include <stdlib.h>
13589 #include "bfd.h"
13590 #include "elf-bfd.h"
13591
13592 int
13593 main ()
13594 {
13595 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
13596   ;
13597   return 0;
13598 }
13599 _ACEOF
13600 if ac_fn_c_try_link "$LINENO"; then :
13601   gdb_cv_var_elf=yes
13602 else
13603   gdb_cv_var_elf=no
13604 fi
13605 rm -f core conftest.err conftest.$ac_objext \
13606     conftest$ac_exeext conftest.$ac_ext
13607 fi
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13609 $as_echo "$gdb_cv_var_elf" >&6; }
13610 if test $gdb_cv_var_elf = yes; then
13611   CONFIG_OBS="$CONFIG_OBS elfread.o"
13612
13613 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13614
13615 fi
13616 CFLAGS=$OLD_CFLAGS
13617 LDFLAGS=$OLD_LDFLAGS
13618 LIBS=$OLD_LIBS
13619
13620 # Add any host-specific objects to GDB.
13621 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
13622
13623 LIBGUI="../libgui/src/libgui.a"
13624 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
13625
13626
13627
13628 WIN32LDAPP=
13629
13630
13631
13632 case "${host}" in
13633 *-*-cygwin* | *-*-mingw* )
13634     configdir="win"
13635     ;;
13636 *)
13637     configdir="unix"
13638     ;;
13639 esac
13640
13641 GDBTKLIBS=
13642 if test "${enable_gdbtk}" = "yes"; then
13643
13644     # Gdbtk must have an absolute path to srcdir in order to run
13645     # properly when not installed.
13646     here=`pwd`
13647     cd ${srcdir}
13648     GDBTK_SRC_DIR=`pwd`
13649     cd $here
13650
13651
13652     #
13653     # Ok, lets find the tcl configuration
13654     # First, look for one uninstalled.
13655     # the alternative search directory is invoked by --with-tcl
13656     #
13657
13658     if test x"${no_tcl}" = x ; then
13659         # we reset no_tcl in case something fails here
13660         no_tcl=true
13661
13662 # Check whether --with-tcl was given.
13663 if test "${with_tcl+set}" = set; then :
13664   withval=$with_tcl; with_tclconfig=${withval}
13665 fi
13666
13667         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13668 $as_echo_n "checking for Tcl configuration... " >&6; }
13669         if test "${ac_cv_c_tclconfig+set}" = set; then :
13670   $as_echo_n "(cached) " >&6
13671 else
13672
13673
13674             # First check to see if --with-tcl was specified.
13675             case "${host}" in
13676                 *-*-cygwin*) platDir="win" ;;
13677                 *) platDir="unix" ;;
13678             esac
13679             if test x"${with_tclconfig}" != x ; then
13680                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13681                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
13682                 else
13683                     as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13684                 fi
13685             fi
13686
13687             # then check for a private Tcl installation
13688             if test x"${ac_cv_c_tclconfig}" = x ; then
13689                 for i in \
13690                         ../tcl \
13691                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13692                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13693                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13694                         ../../tcl \
13695                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13696                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13697                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13698                         ../../../tcl \
13699                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13700                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13701                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13702                     if test -f "$i/$platDir/tclConfig.sh" ; then
13703                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13704                         break
13705                     fi
13706                 done
13707             fi
13708
13709             # on Darwin, check in Framework installation locations
13710             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
13711                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13712                         `ls -d /Library/Frameworks 2>/dev/null` \
13713                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
13714                         `ls -d /System/Library/Frameworks 2>/dev/null` \
13715                         ; do
13716                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13717                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
13718                         break
13719                     fi
13720                 done
13721             fi
13722
13723             # check in a few common install locations
13724             if test x"${ac_cv_c_tclconfig}" = x ; then
13725                 for i in `ls -d ${libdir} 2>/dev/null` \
13726                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
13727                         `ls -d ${prefix}/lib 2>/dev/null` \
13728                         `ls -d /usr/local/lib 2>/dev/null` \
13729                         `ls -d /usr/contrib/lib 2>/dev/null` \
13730                         `ls -d /usr/lib 2>/dev/null` \
13731                         ; do
13732                     if test -f "$i/tclConfig.sh" ; then
13733                         ac_cv_c_tclconfig=`(cd $i; pwd)`
13734                         break
13735                     fi
13736                 done
13737             fi
13738
13739             # check in a few other private locations
13740             if test x"${ac_cv_c_tclconfig}" = x ; then
13741                 for i in \
13742                         ${srcdir}/../tcl \
13743                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13744                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13745                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
13746                     if test -f "$i/$platDir/tclConfig.sh" ; then
13747                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13748                     break
13749                 fi
13750                 done
13751             fi
13752
13753 fi
13754
13755
13756         if test x"${ac_cv_c_tclconfig}" = x ; then
13757             TCL_BIN_DIR="# no Tcl configs found"
13758             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13759 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13760         else
13761             no_tcl=
13762             TCL_BIN_DIR=${ac_cv_c_tclconfig}
13763             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
13764 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13765         fi
13766     fi
13767
13768
13769     # If $no_tk is nonempty, then we can't do Tk, and there is no
13770     # point to doing Tcl.
13771
13772     #
13773     # Ok, lets find the tk configuration
13774     # First, look for one uninstalled.
13775     # the alternative search directory is invoked by --with-tk
13776     #
13777
13778     if test x"${no_tk}" = x ; then
13779         # we reset no_tk in case something fails here
13780         no_tk=true
13781
13782 # Check whether --with-tk was given.
13783 if test "${with_tk+set}" = set; then :
13784   withval=$with_tk; with_tkconfig=${withval}
13785 fi
13786
13787         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
13788 $as_echo_n "checking for Tk configuration... " >&6; }
13789         if test "${ac_cv_c_tkconfig+set}" = set; then :
13790   $as_echo_n "(cached) " >&6
13791 else
13792
13793
13794             # First check to see if --with-tkconfig was specified.
13795             if test x"${with_tkconfig}" != x ; then
13796                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
13797                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
13798                 else
13799                     as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
13800                 fi
13801             fi
13802
13803             # then check for a private Tk library
13804             case "${host}" in
13805                 *-*-cygwin*) platDir="win" ;;
13806                 *) platDir="unix" ;;
13807             esac
13808             if test x"${ac_cv_c_tkconfig}" = x ; then
13809                 for i in \
13810                         ../tk \
13811                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13812                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
13813                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
13814                         ../../tk \
13815                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13816                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
13817                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
13818                         ../../../tk \
13819                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13820                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
13821                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
13822                     if test -f "$i/$platDir/tkConfig.sh" ; then
13823                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13824                         break
13825                     fi
13826                 done
13827             fi
13828
13829             # on Darwin, check in Framework installation locations
13830             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
13831                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13832                         `ls -d /Library/Frameworks 2>/dev/null` \
13833                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
13834                         `ls -d /System/Library/Frameworks 2>/dev/null` \
13835                         ; do
13836                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
13837                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
13838                         break
13839                     fi
13840                 done
13841             fi
13842
13843             # check in a few common install locations
13844             if test x"${ac_cv_c_tkconfig}" = x ; then
13845                 for i in `ls -d ${libdir} 2>/dev/null` \
13846                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
13847                         `ls -d ${prefix}/lib 2>/dev/null` \
13848                         `ls -d /usr/local/lib 2>/dev/null` \
13849                         `ls -d /usr/contrib/lib 2>/dev/null` \
13850                         `ls -d /usr/lib 2>/dev/null` \
13851                         ; do
13852                     if test -f "$i/tkConfig.sh" ; then
13853                         ac_cv_c_tkconfig=`(cd $i; pwd)`
13854                         break
13855                     fi
13856                 done
13857             fi
13858             # check in a few other private locations
13859             if test x"${ac_cv_c_tkconfig}" = x ; then
13860                 for i in \
13861                         ${srcdir}/../tk \
13862                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13863                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
13864                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
13865                     if test -f "$i/$platDir/tkConfig.sh" ; then
13866                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13867                         break
13868                     fi
13869                 done
13870             fi
13871
13872 fi
13873
13874
13875         if test x"${ac_cv_c_tkconfig}" = x ; then
13876             TK_BIN_DIR="# no Tk configs found"
13877             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
13878 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
13879         else
13880             no_tk=
13881             TK_BIN_DIR=${ac_cv_c_tkconfig}
13882             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
13883 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13884         fi
13885     fi
13886
13887
13888     if test -z "${no_tcl}" -a -z "${no_tk}"; then
13889
13890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
13891 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
13892
13893     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
13894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13895 $as_echo "loading" >&6; }
13896         . ${TCL_BIN_DIR}/tclConfig.sh
13897     else
13898         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
13899 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13900     fi
13901
13902     # eval is required to do the TCL_DBGX substitution
13903     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13904     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13905
13906     # If the TCL_BIN_DIR is the build directory (not the install directory),
13907     # then set the common variable name to the value of the build variables.
13908     # For example, the variable TCL_LIB_SPEC will be set to the value
13909     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13910     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13911     # installed and uninstalled version of Tcl.
13912     if test -f "${TCL_BIN_DIR}/Makefile" ; then
13913         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
13914         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
13915         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
13916     elif test "`uname -s`" = "Darwin"; then
13917         # If Tcl was built as a framework, attempt to use the libraries
13918         # from the framework at the given location so that linking works
13919         # against Tcl.framework installed in an arbitary location.
13920         case ${TCL_DEFS} in
13921             *TCL_FRAMEWORK*)
13922                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
13923                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
13924                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
13925                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
13926                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
13927                             break
13928                         fi
13929                     done
13930                 fi
13931                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
13932                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
13933                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
13934                 fi
13935                 ;;
13936         esac
13937     fi
13938
13939     # eval is required to do the TCL_DBGX substitution
13940     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13941     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13942     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13943     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959         # Check for in-tree tcl
13960         here=`pwd`
13961         cd ${srcdir}/..
13962         topdir=`pwd`
13963         cd ${here}
13964
13965         intree="no"
13966         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
13967           intree="yes"
13968         fi
13969
13970         # Find Tcl private headers
13971         if test x"${intree}" = xno; then
13972
13973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
13974 $as_echo_n "checking for Tcl private headers... " >&6; }
13975   private_dir=""
13976   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
13977   if test -f ${dir}/tclInt.h ; then
13978     private_dir=${dir}
13979   fi
13980
13981   if test x"${private_dir}" = x; then
13982     as_fn_error "could not find private Tcl headers" "$LINENO" 5
13983   else
13984     TCL_PRIVATE_INCLUDE="-I${private_dir}"
13985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13986 $as_echo "${private_dir}" >&6; }
13987   fi
13988
13989           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13990           TCL_LIBRARY="${TCL_LIB_SPEC}"
13991           TCL_DEPS=""
13992         else
13993           # If building tcl in the same src tree, private headers
13994           # are not needed, but we need to be sure to use the right
13995           # headers library
13996           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
13997           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
13998           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
13999         fi
14000
14001
14002
14003
14004
14005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
14006 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
14007
14008     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
14009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14010 $as_echo "loading" >&6; }
14011         . ${TK_BIN_DIR}/tkConfig.sh
14012     else
14013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
14014 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14015     fi
14016
14017     # eval is required to do the TK_DBGX substitution
14018     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
14019     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
14020
14021     # If the TK_BIN_DIR is the build directory (not the install directory),
14022     # then set the common variable name to the value of the build variables.
14023     # For example, the variable TK_LIB_SPEC will be set to the value
14024     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
14025     # instead of TK_BUILD_LIB_SPEC since it will work with both an
14026     # installed and uninstalled version of Tcl.
14027     if test -f "${TK_BIN_DIR}/Makefile" ; then
14028         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
14029         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
14030         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
14031     elif test "`uname -s`" = "Darwin"; then
14032         # If Tk was built as a framework, attempt to use the libraries
14033         # from the framework at the given location so that linking works
14034         # against Tk.framework installed in an arbitary location.
14035         case ${TK_DEFS} in
14036             *TK_FRAMEWORK*)
14037                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14038                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
14039                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14040                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14041                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14042                             break
14043                         fi
14044                     done
14045                 fi
14046                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14047                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14048                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14049                 fi
14050                 ;;
14051         esac
14052     fi
14053
14054     # eval is required to do the TK_DBGX substitution
14055     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14056     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14057     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14058     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073         # Check for in-tree Tk
14074         intree="no"
14075         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14076           intree="yes"
14077         fi
14078
14079         # Find Tk private headers
14080         if test x"${intree}" = xno; then
14081
14082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14083 $as_echo_n "checking for Tk private headers... " >&6; }
14084   private_dir=""
14085   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14086   if test -f ${dir}/tkInt.h; then
14087     private_dir=${dir}
14088   fi
14089
14090   if test x"${private_dir}" = x; then
14091     as_fn_error "could not find Tk private headers" "$LINENO" 5
14092   else
14093     TK_PRIVATE_INCLUDE="-I${private_dir}"
14094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14095 $as_echo "${private_dir}" >&6; }
14096   fi
14097
14098           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14099           TK_LIBRARY=${TK_LIB_SPEC}
14100           TK_DEPS=""
14101         else
14102           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
14103           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
14104           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
14105         fi
14106
14107
14108
14109
14110
14111         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14112
14113         # Include some libraries that Tcl and Tk want.
14114         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14115         # Yes, the ordering seems wrong here.  But it isn't.
14116         # TK_LIBS is the list of libraries that need to be linked
14117         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
14118         # were in LIBS then any link tests after this point would
14119         # try to include things like `$(LIBGUI)', which wouldn't work.
14120         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
14121
14122         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14123         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14124         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14125         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
14126         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
14127         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
14128         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
14129
14130         if test x$gdb_cv_os_cygwin = xyes; then
14131           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14132           WIN32LDAPP="-Wl,--subsystem,console"
14133           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
14134         fi
14135
14136         subdirs="$subdirs gdbtk"
14137
14138     fi
14139 fi
14140
14141
14142
14143
14144
14145
14146
14147
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14149 $as_echo_n "checking for X... " >&6; }
14150
14151
14152 # Check whether --with-x was given.
14153 if test "${with_x+set}" = set; then :
14154   withval=$with_x;
14155 fi
14156
14157 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14158 if test "x$with_x" = xno; then
14159   # The user explicitly disabled X.
14160   have_x=disabled
14161 else
14162   case $x_includes,$x_libraries in #(
14163     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
14164     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
14165   $as_echo_n "(cached) " >&6
14166 else
14167   # One or both of the vars are not set, and there is no cached value.
14168 ac_x_includes=no ac_x_libraries=no
14169 rm -f -r conftest.dir
14170 if mkdir conftest.dir; then
14171   cd conftest.dir
14172   cat >Imakefile <<'_ACEOF'
14173 incroot:
14174         @echo incroot='${INCROOT}'
14175 usrlibdir:
14176         @echo usrlibdir='${USRLIBDIR}'
14177 libdir:
14178         @echo libdir='${LIBDIR}'
14179 _ACEOF
14180   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14181     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14182     for ac_var in incroot usrlibdir libdir; do
14183       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14184     done
14185     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14186     for ac_extension in a so sl dylib la dll; do
14187       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14188          test -f "$ac_im_libdir/libX11.$ac_extension"; then
14189         ac_im_usrlibdir=$ac_im_libdir; break
14190       fi
14191     done
14192     # Screen out bogus values from the imake configuration.  They are
14193     # bogus both because they are the default anyway, and because
14194     # using them would break gcc on systems where it needs fixed includes.
14195     case $ac_im_incroot in
14196         /usr/include) ac_x_includes= ;;
14197         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14198     esac
14199     case $ac_im_usrlibdir in
14200         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14201         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14202     esac
14203   fi
14204   cd ..
14205   rm -f -r conftest.dir
14206 fi
14207
14208 # Standard set of common directories for X headers.
14209 # Check X11 before X11Rn because it is often a symlink to the current release.
14210 ac_x_header_dirs='
14211 /usr/X11/include
14212 /usr/X11R7/include
14213 /usr/X11R6/include
14214 /usr/X11R5/include
14215 /usr/X11R4/include
14216
14217 /usr/include/X11
14218 /usr/include/X11R7
14219 /usr/include/X11R6
14220 /usr/include/X11R5
14221 /usr/include/X11R4
14222
14223 /usr/local/X11/include
14224 /usr/local/X11R7/include
14225 /usr/local/X11R6/include
14226 /usr/local/X11R5/include
14227 /usr/local/X11R4/include
14228
14229 /usr/local/include/X11
14230 /usr/local/include/X11R7
14231 /usr/local/include/X11R6
14232 /usr/local/include/X11R5
14233 /usr/local/include/X11R4
14234
14235 /usr/X386/include
14236 /usr/x386/include
14237 /usr/XFree86/include/X11
14238
14239 /usr/include
14240 /usr/local/include
14241 /usr/unsupported/include
14242 /usr/athena/include
14243 /usr/local/x11r5/include
14244 /usr/lpp/Xamples/include
14245
14246 /usr/openwin/include
14247 /usr/openwin/share/include'
14248
14249 if test "$ac_x_includes" = no; then
14250   # Guess where to find include files, by looking for Xlib.h.
14251   # First, try using that file with no special directory specified.
14252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h.  */
14254 #include <X11/Xlib.h>
14255 _ACEOF
14256 if ac_fn_c_try_cpp "$LINENO"; then :
14257   # We can compile using X headers with no special include directory.
14258 ac_x_includes=
14259 else
14260   for ac_dir in $ac_x_header_dirs; do
14261   if test -r "$ac_dir/X11/Xlib.h"; then
14262     ac_x_includes=$ac_dir
14263     break
14264   fi
14265 done
14266 fi
14267 rm -f conftest.err conftest.$ac_ext
14268 fi # $ac_x_includes = no
14269
14270 if test "$ac_x_libraries" = no; then
14271   # Check for the libraries.
14272   # See if we find them without any special options.
14273   # Don't add to $LIBS permanently.
14274   ac_save_LIBS=$LIBS
14275   LIBS="-lX11 $LIBS"
14276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277 /* end confdefs.h.  */
14278 #include <X11/Xlib.h>
14279 int
14280 main ()
14281 {
14282 XrmInitialize ()
14283   ;
14284   return 0;
14285 }
14286 _ACEOF
14287 if ac_fn_c_try_link "$LINENO"; then :
14288   LIBS=$ac_save_LIBS
14289 # We can link X programs with no special library path.
14290 ac_x_libraries=
14291 else
14292   LIBS=$ac_save_LIBS
14293 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14294 do
14295   # Don't even attempt the hair of trying to link an X program!
14296   for ac_extension in a so sl dylib la dll; do
14297     if test -r "$ac_dir/libX11.$ac_extension"; then
14298       ac_x_libraries=$ac_dir
14299       break 2
14300     fi
14301   done
14302 done
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext \
14305     conftest$ac_exeext conftest.$ac_ext
14306 fi # $ac_x_libraries = no
14307
14308 case $ac_x_includes,$ac_x_libraries in #(
14309   no,* | *,no | *\'*)
14310     # Didn't find X, or a directory has "'" in its name.
14311     ac_cv_have_x="have_x=no";; #(
14312   *)
14313     # Record where we found X for the cache.
14314     ac_cv_have_x="have_x=yes\
14315         ac_x_includes='$ac_x_includes'\
14316         ac_x_libraries='$ac_x_libraries'"
14317 esac
14318 fi
14319 ;; #(
14320     *) have_x=yes;;
14321   esac
14322   eval "$ac_cv_have_x"
14323 fi # $with_x != no
14324
14325 if test "$have_x" != yes; then
14326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14327 $as_echo "$have_x" >&6; }
14328   no_x=yes
14329 else
14330   # If each of the values was on the command line, it overrides each guess.
14331   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14332   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14333   # Update the cache value to reflect the command line values.
14334   ac_cv_have_x="have_x=yes\
14335         ac_x_includes='$x_includes'\
14336         ac_x_libraries='$x_libraries'"
14337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14338 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14339 fi
14340
14341
14342 # Unlike the sim directory, whether a simulator is linked is controlled by
14343 # presence of a gdb_sim definition in the target configure.tgt entry.
14344 # This code just checks for a few cases where we'd like to ignore those
14345 # definitions, even when they're present in the '.mt' file.  These cases
14346 # are when --disable-sim is specified, or if the simulator directory is
14347 # not part of the source tree.
14348 #
14349 # Check whether --enable-sim was given.
14350 if test "${enable_sim+set}" = set; then :
14351   enableval=$enable_sim; echo "enable_sim = $enable_sim";
14352  echo "enableval = ${enableval}";
14353  case "${enableval}" in
14354   yes) ignore_sim=false ;;
14355   no)  ignore_sim=true ;;
14356   *)   ignore_sim=false ;;
14357  esac
14358 else
14359   ignore_sim=false
14360 fi
14361
14362
14363 if test ! -d "${srcdir}/../sim"; then
14364   ignore_sim=true
14365 fi
14366
14367 SIM=
14368 SIM_OBS=
14369 if test "${ignore_sim}" = "false"; then
14370   if test x"${gdb_sim}" != x ; then
14371     SIM="${gdb_sim}"
14372     SIM_OBS="remote-sim.o"
14373
14374 $as_echo "#define WITH_SIM 1" >>confdefs.h
14375
14376   fi
14377 fi
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392 # List of host floatformats.
14393
14394 cat >>confdefs.h <<_ACEOF
14395 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14396 _ACEOF
14397
14398
14399 cat >>confdefs.h <<_ACEOF
14400 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14401 _ACEOF
14402
14403
14404 cat >>confdefs.h <<_ACEOF
14405 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14406 _ACEOF
14407
14408
14409 # target_subdir is used by the testsuite to find the target libraries.
14410 target_subdir=
14411 if test "${host}" != "${target}"; then
14412     target_subdir="${target_alias}/"
14413 fi
14414
14415
14416 frags=
14417 if test "${gdb_native}" = "yes"; then
14418   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14419   if test ! -f ${host_makefile_frag}; then
14420     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14421   fi
14422   frags="$frags $host_makefile_frag"
14423 else
14424   host_makefile_frag=/dev/null
14425 fi
14426
14427
14428
14429
14430 if test "${gdb_native}" = "yes"; then
14431 # We pick this up from the host configuration file (.mh) because we
14432 # do not have a native configuration Makefile fragment.
14433 nativefile=`sed -n '
14434 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
14435 ' ${host_makefile_frag}`
14436 fi
14437
14438
14439 if test x"${gdb_osabi}" != x ; then
14440
14441 cat >>confdefs.h <<_ACEOF
14442 #define GDB_OSABI_DEFAULT $gdb_osabi
14443 _ACEOF
14444
14445 fi
14446
14447 # Enable multi-ice-gdb-server.
14448 # Check whether --enable-multi-ice was given.
14449 if test "${enable_multi_ice+set}" = set; then :
14450   enableval=$enable_multi_ice; case $enableval in
14451     yes | no)
14452       ;;
14453     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14454   esac
14455 fi
14456
14457 if test "x$enable_multi_ice" = xyes; then
14458    subdirs="$subdirs multi-ice"
14459
14460 fi
14461
14462 # We only build gdbserver automatically in a native configuration.
14463 if test "$gdb_native" = "yes"; then
14464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14465 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14466   if test "x$build_gdbserver" = xyes; then
14467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14468 $as_echo "yes" >&6; }
14469     subdirs="$subdirs gdbserver"
14470
14471   else
14472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14473 $as_echo "no" >&6; }
14474   fi
14475 fi
14476
14477 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
14478 # to an empty version.
14479
14480 files=
14481 links=
14482
14483 rm -f nm.h
14484 if test "${nativefile}" != ""; then
14485     case "${nativefile}" in
14486       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
14487       * ) GDB_NM_FILE="${nativefile}"
14488     esac
14489     files="${files} ${GDB_NM_FILE}"
14490     links="${links} nm.h"
14491
14492 cat >>confdefs.h <<_ACEOF
14493 #define GDB_NM_FILE "${GDB_NM_FILE}"
14494 _ACEOF
14495
14496 fi
14497
14498
14499 ac_sources="$files"
14500 ac_dests="$links"
14501 while test -n "$ac_sources"; do
14502   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
14503   set $ac_sources; ac_source=$1; shift; ac_sources=$*
14504   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
14505 done
14506 ac_config_links="$ac_config_links $ac_config_links_1"
14507
14508
14509
14510
14511
14512 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
14513
14514
14515 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
14516
14517 ac_config_commands="$ac_config_commands default"
14518
14519 cat >confcache <<\_ACEOF
14520 # This file is a shell script that caches the results of configure
14521 # tests run on this system so they can be shared between configure
14522 # scripts and configure runs, see configure's option --config-cache.
14523 # It is not useful on other systems.  If it contains results you don't
14524 # want to keep, you may remove or edit it.
14525 #
14526 # config.status only pays attention to the cache file if you give it
14527 # the --recheck option to rerun configure.
14528 #
14529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14531 # following values.
14532
14533 _ACEOF
14534
14535 # The following way of writing the cache mishandles newlines in values,
14536 # but we know of no workaround that is simple, portable, and efficient.
14537 # So, we kill variables containing newlines.
14538 # Ultrix sh set writes to stderr and can't be redirected directly,
14539 # and sets the high bit in the cache file unless we assign to the vars.
14540 (
14541   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14542     eval ac_val=\$$ac_var
14543     case $ac_val in #(
14544     *${as_nl}*)
14545       case $ac_var in #(
14546       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14547 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14548       esac
14549       case $ac_var in #(
14550       _ | IFS | as_nl) ;; #(
14551       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14552       *) { eval $ac_var=; unset $ac_var;} ;;
14553       esac ;;
14554     esac
14555   done
14556
14557   (set) 2>&1 |
14558     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14559     *${as_nl}ac_space=\ *)
14560       # `set' does not quote correctly, so add quotes: double-quote
14561       # substitution turns \\\\ into \\, and sed turns \\ into \.
14562       sed -n \
14563         "s/'/'\\\\''/g;
14564           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14565       ;; #(
14566     *)
14567       # `set' quotes correctly as required by POSIX, so do not add quotes.
14568       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14569       ;;
14570     esac |
14571     sort
14572 ) |
14573   sed '
14574      /^ac_cv_env_/b end
14575      t clear
14576      :clear
14577      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14578      t end
14579      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14580      :end' >>confcache
14581 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14582   if test -w "$cache_file"; then
14583     test "x$cache_file" != "x/dev/null" &&
14584       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14585 $as_echo "$as_me: updating cache $cache_file" >&6;}
14586     cat confcache >$cache_file
14587   else
14588     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14589 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14590   fi
14591 fi
14592 rm -f confcache
14593
14594 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14595 # Let make expand exec_prefix.
14596 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14597
14598 DEFS=-DHAVE_CONFIG_H
14599
14600 ac_libobjs=
14601 ac_ltlibobjs=
14602 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14603   # 1. Remove the extension, and $U if already installed.
14604   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14605   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14606   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14607   #    will be set to the directory where LIBOBJS objects are built.
14608   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14609   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14610 done
14611 LIBOBJS=$ac_libobjs
14612
14613 LTLIBOBJS=$ac_ltlibobjs
14614
14615
14616 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14617   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14619 fi
14620 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
14621   as_fn_error "conditional \"GMAKE\" was never defined.
14622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14623 fi
14624 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14625   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
14626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14627 fi
14628
14629     gl_libobjs=
14630     gl_ltlibobjs=
14631     if test -n "$gl_LIBOBJS"; then
14632       # Remove the extension.
14633       sed_drop_objext='s/\.o$//;s/\.obj$//'
14634       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14635         gl_libobjs="$gl_libobjs $i.$ac_objext"
14636         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
14637       done
14638     fi
14639     gl_LIBOBJS=$gl_libobjs
14640
14641     gl_LTLIBOBJS=$gl_ltlibobjs
14642
14643
14644
14645     gltests_libobjs=
14646     gltests_ltlibobjs=
14647     if test -n "$gltests_LIBOBJS"; then
14648       # Remove the extension.
14649       sed_drop_objext='s/\.o$//;s/\.obj$//'
14650       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14651         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
14652         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
14653       done
14654     fi
14655     gltests_LIBOBJS=$gltests_libobjs
14656
14657     gltests_LTLIBOBJS=$gltests_ltlibobjs
14658
14659
14660 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14661   as_fn_error "conditional \"AMDEP\" was never defined.
14662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14663 fi
14664 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14665   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14667 fi
14668  if test -n "$EXEEXT"; then
14669   am__EXEEXT_TRUE=
14670   am__EXEEXT_FALSE='#'
14671 else
14672   am__EXEEXT_TRUE='#'
14673   am__EXEEXT_FALSE=
14674 fi
14675
14676
14677
14678 : ${CONFIG_STATUS=./config.status}
14679 ac_write_fail=0
14680 ac_clean_files_save=$ac_clean_files
14681 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14683 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14684 as_write_fail=0
14685 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14686 #! $SHELL
14687 # Generated by $as_me.
14688 # Run this file to recreate the current configuration.
14689 # Compiler output produced by configure, useful for debugging
14690 # configure, is in config.log if it exists.
14691
14692 debug=false
14693 ac_cs_recheck=false
14694 ac_cs_silent=false
14695
14696 SHELL=\${CONFIG_SHELL-$SHELL}
14697 export SHELL
14698 _ASEOF
14699 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14700 ## -------------------- ##
14701 ## M4sh Initialization. ##
14702 ## -------------------- ##
14703
14704 # Be more Bourne compatible
14705 DUALCASE=1; export DUALCASE # for MKS sh
14706 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14707   emulate sh
14708   NULLCMD=:
14709   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14710   # is contrary to our usage.  Disable this feature.
14711   alias -g '${1+"$@"}'='"$@"'
14712   setopt NO_GLOB_SUBST
14713 else
14714   case `(set -o) 2>/dev/null` in #(
14715   *posix*) :
14716     set -o posix ;; #(
14717   *) :
14718      ;;
14719 esac
14720 fi
14721
14722
14723 as_nl='
14724 '
14725 export as_nl
14726 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14727 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14728 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14729 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14730 # Prefer a ksh shell builtin over an external printf program on Solaris,
14731 # but without wasting forks for bash or zsh.
14732 if test -z "$BASH_VERSION$ZSH_VERSION" \
14733     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14734   as_echo='print -r --'
14735   as_echo_n='print -rn --'
14736 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14737   as_echo='printf %s\n'
14738   as_echo_n='printf %s'
14739 else
14740   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14741     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14742     as_echo_n='/usr/ucb/echo -n'
14743   else
14744     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14745     as_echo_n_body='eval
14746       arg=$1;
14747       case $arg in #(
14748       *"$as_nl"*)
14749         expr "X$arg" : "X\\(.*\\)$as_nl";
14750         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14751       esac;
14752       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14753     '
14754     export as_echo_n_body
14755     as_echo_n='sh -c $as_echo_n_body as_echo'
14756   fi
14757   export as_echo_body
14758   as_echo='sh -c $as_echo_body as_echo'
14759 fi
14760
14761 # The user is always right.
14762 if test "${PATH_SEPARATOR+set}" != set; then
14763   PATH_SEPARATOR=:
14764   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14765     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14766       PATH_SEPARATOR=';'
14767   }
14768 fi
14769
14770
14771 # IFS
14772 # We need space, tab and new line, in precisely that order.  Quoting is
14773 # there to prevent editors from complaining about space-tab.
14774 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14775 # splitting by setting IFS to empty value.)
14776 IFS=" ""        $as_nl"
14777
14778 # Find who we are.  Look in the path if we contain no directory separator.
14779 case $0 in #((
14780   *[\\/]* ) as_myself=$0 ;;
14781   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14782 for as_dir in $PATH
14783 do
14784   IFS=$as_save_IFS
14785   test -z "$as_dir" && as_dir=.
14786     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14787   done
14788 IFS=$as_save_IFS
14789
14790      ;;
14791 esac
14792 # We did not find ourselves, most probably we were run as `sh COMMAND'
14793 # in which case we are not to be found in the path.
14794 if test "x$as_myself" = x; then
14795   as_myself=$0
14796 fi
14797 if test ! -f "$as_myself"; then
14798   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14799   exit 1
14800 fi
14801
14802 # Unset variables that we do not need and which cause bugs (e.g. in
14803 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14804 # suppresses any "Segmentation fault" message there.  '((' could
14805 # trigger a bug in pdksh 5.2.14.
14806 for as_var in BASH_ENV ENV MAIL MAILPATH
14807 do eval test x\${$as_var+set} = xset \
14808   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14809 done
14810 PS1='$ '
14811 PS2='> '
14812 PS4='+ '
14813
14814 # NLS nuisances.
14815 LC_ALL=C
14816 export LC_ALL
14817 LANGUAGE=C
14818 export LANGUAGE
14819
14820 # CDPATH.
14821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14822
14823
14824 # as_fn_error ERROR [LINENO LOG_FD]
14825 # ---------------------------------
14826 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14827 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14828 # script with status $?, using 1 if that was 0.
14829 as_fn_error ()
14830 {
14831   as_status=$?; test $as_status -eq 0 && as_status=1
14832   if test "$3"; then
14833     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14834     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14835   fi
14836   $as_echo "$as_me: error: $1" >&2
14837   as_fn_exit $as_status
14838 } # as_fn_error
14839
14840
14841 # as_fn_set_status STATUS
14842 # -----------------------
14843 # Set $? to STATUS, without forking.
14844 as_fn_set_status ()
14845 {
14846   return $1
14847 } # as_fn_set_status
14848
14849 # as_fn_exit STATUS
14850 # -----------------
14851 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14852 as_fn_exit ()
14853 {
14854   set +e
14855   as_fn_set_status $1
14856   exit $1
14857 } # as_fn_exit
14858
14859 # as_fn_unset VAR
14860 # ---------------
14861 # Portably unset VAR.
14862 as_fn_unset ()
14863 {
14864   { eval $1=; unset $1;}
14865 }
14866 as_unset=as_fn_unset
14867 # as_fn_append VAR VALUE
14868 # ----------------------
14869 # Append the text in VALUE to the end of the definition contained in VAR. Take
14870 # advantage of any shell optimizations that allow amortized linear growth over
14871 # repeated appends, instead of the typical quadratic growth present in naive
14872 # implementations.
14873 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14874   eval 'as_fn_append ()
14875   {
14876     eval $1+=\$2
14877   }'
14878 else
14879   as_fn_append ()
14880   {
14881     eval $1=\$$1\$2
14882   }
14883 fi # as_fn_append
14884
14885 # as_fn_arith ARG...
14886 # ------------------
14887 # Perform arithmetic evaluation on the ARGs, and store the result in the
14888 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14889 # must be portable across $(()) and expr.
14890 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14891   eval 'as_fn_arith ()
14892   {
14893     as_val=$(( $* ))
14894   }'
14895 else
14896   as_fn_arith ()
14897   {
14898     as_val=`expr "$@" || test $? -eq 1`
14899   }
14900 fi # as_fn_arith
14901
14902
14903 if expr a : '\(a\)' >/dev/null 2>&1 &&
14904    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14905   as_expr=expr
14906 else
14907   as_expr=false
14908 fi
14909
14910 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14911   as_basename=basename
14912 else
14913   as_basename=false
14914 fi
14915
14916 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14917   as_dirname=dirname
14918 else
14919   as_dirname=false
14920 fi
14921
14922 as_me=`$as_basename -- "$0" ||
14923 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14924          X"$0" : 'X\(//\)$' \| \
14925          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14926 $as_echo X/"$0" |
14927     sed '/^.*\/\([^/][^/]*\)\/*$/{
14928             s//\1/
14929             q
14930           }
14931           /^X\/\(\/\/\)$/{
14932             s//\1/
14933             q
14934           }
14935           /^X\/\(\/\).*/{
14936             s//\1/
14937             q
14938           }
14939           s/.*/./; q'`
14940
14941 # Avoid depending upon Character Ranges.
14942 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14943 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14944 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14945 as_cr_digits='0123456789'
14946 as_cr_alnum=$as_cr_Letters$as_cr_digits
14947
14948 ECHO_C= ECHO_N= ECHO_T=
14949 case `echo -n x` in #(((((
14950 -n*)
14951   case `echo 'xy\c'` in
14952   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14953   xy)  ECHO_C='\c';;
14954   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14955        ECHO_T=' ';;
14956   esac;;
14957 *)
14958   ECHO_N='-n';;
14959 esac
14960
14961 rm -f conf$$ conf$$.exe conf$$.file
14962 if test -d conf$$.dir; then
14963   rm -f conf$$.dir/conf$$.file
14964 else
14965   rm -f conf$$.dir
14966   mkdir conf$$.dir 2>/dev/null
14967 fi
14968 if (echo >conf$$.file) 2>/dev/null; then
14969   if ln -s conf$$.file conf$$ 2>/dev/null; then
14970     as_ln_s='ln -s'
14971     # ... but there are two gotchas:
14972     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14973     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14974     # In both cases, we have to default to `cp -p'.
14975     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14976       as_ln_s='cp -p'
14977   elif ln conf$$.file conf$$ 2>/dev/null; then
14978     as_ln_s=ln
14979   else
14980     as_ln_s='cp -p'
14981   fi
14982 else
14983   as_ln_s='cp -p'
14984 fi
14985 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14986 rmdir conf$$.dir 2>/dev/null
14987
14988
14989 # as_fn_mkdir_p
14990 # -------------
14991 # Create "$as_dir" as a directory, including parents if necessary.
14992 as_fn_mkdir_p ()
14993 {
14994
14995   case $as_dir in #(
14996   -*) as_dir=./$as_dir;;
14997   esac
14998   test -d "$as_dir" || eval $as_mkdir_p || {
14999     as_dirs=
15000     while :; do
15001       case $as_dir in #(
15002       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15003       *) as_qdir=$as_dir;;
15004       esac
15005       as_dirs="'$as_qdir' $as_dirs"
15006       as_dir=`$as_dirname -- "$as_dir" ||
15007 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15008          X"$as_dir" : 'X\(//\)[^/]' \| \
15009          X"$as_dir" : 'X\(//\)$' \| \
15010          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15011 $as_echo X"$as_dir" |
15012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15013             s//\1/
15014             q
15015           }
15016           /^X\(\/\/\)[^/].*/{
15017             s//\1/
15018             q
15019           }
15020           /^X\(\/\/\)$/{
15021             s//\1/
15022             q
15023           }
15024           /^X\(\/\).*/{
15025             s//\1/
15026             q
15027           }
15028           s/.*/./; q'`
15029       test -d "$as_dir" && break
15030     done
15031     test -z "$as_dirs" || eval "mkdir $as_dirs"
15032   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15033
15034
15035 } # as_fn_mkdir_p
15036 if mkdir -p . 2>/dev/null; then
15037   as_mkdir_p='mkdir -p "$as_dir"'
15038 else
15039   test -d ./-p && rmdir ./-p
15040   as_mkdir_p=false
15041 fi
15042
15043 if test -x / >/dev/null 2>&1; then
15044   as_test_x='test -x'
15045 else
15046   if ls -dL / >/dev/null 2>&1; then
15047     as_ls_L_option=L
15048   else
15049     as_ls_L_option=
15050   fi
15051   as_test_x='
15052     eval sh -c '\''
15053       if test -d "$1"; then
15054         test -d "$1/.";
15055       else
15056         case $1 in #(
15057         -*)set "./$1";;
15058         esac;
15059         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15060         ???[sx]*):;;*)false;;esac;fi
15061     '\'' sh
15062   '
15063 fi
15064 as_executable_p=$as_test_x
15065
15066 # Sed expression to map a string onto a valid CPP name.
15067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15068
15069 # Sed expression to map a string onto a valid variable name.
15070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15071
15072
15073 exec 6>&1
15074 ## ----------------------------------- ##
15075 ## Main body of $CONFIG_STATUS script. ##
15076 ## ----------------------------------- ##
15077 _ASEOF
15078 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15079
15080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15081 # Save the log message, to keep $0 and so on meaningful, and to
15082 # report actual input values of CONFIG_FILES etc. instead of their
15083 # values after options handling.
15084 ac_log="
15085 This file was extended by $as_me, which was
15086 generated by GNU Autoconf 2.64.  Invocation command line was
15087
15088   CONFIG_FILES    = $CONFIG_FILES
15089   CONFIG_HEADERS  = $CONFIG_HEADERS
15090   CONFIG_LINKS    = $CONFIG_LINKS
15091   CONFIG_COMMANDS = $CONFIG_COMMANDS
15092   $ $0 $@
15093
15094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15095 "
15096
15097 _ACEOF
15098
15099 case $ac_config_files in *"
15100 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15101 esac
15102
15103 case $ac_config_headers in *"
15104 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15105 esac
15106
15107
15108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15109 # Files that config.status was made for.
15110 config_files="$ac_config_files"
15111 config_headers="$ac_config_headers"
15112 config_links="$ac_config_links"
15113 config_commands="$ac_config_commands"
15114
15115 _ACEOF
15116
15117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15118 ac_cs_usage="\
15119 \`$as_me' instantiates files and other configuration actions
15120 from templates according to the current configuration.  Unless the files
15121 and actions are specified as TAGs, all are instantiated by default.
15122
15123 Usage: $0 [OPTION]... [TAG]...
15124
15125   -h, --help       print this help, then exit
15126   -V, --version    print version number and configuration settings, then exit
15127   -q, --quiet, --silent
15128                    do not print progress messages
15129   -d, --debug      don't remove temporary files
15130       --recheck    update $as_me by reconfiguring in the same conditions
15131       --file=FILE[:TEMPLATE]
15132                    instantiate the configuration file FILE
15133       --header=FILE[:TEMPLATE]
15134                    instantiate the configuration header FILE
15135
15136 Configuration files:
15137 $config_files
15138
15139 Configuration headers:
15140 $config_headers
15141
15142 Configuration links:
15143 $config_links
15144
15145 Configuration commands:
15146 $config_commands
15147
15148 Report bugs to the package provider."
15149
15150 _ACEOF
15151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15152 ac_cs_version="\\
15153 config.status
15154 configured by $0, generated by GNU Autoconf 2.64,
15155   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15156
15157 Copyright (C) 2009 Free Software Foundation, Inc.
15158 This config.status script is free software; the Free Software Foundation
15159 gives unlimited permission to copy, distribute and modify it."
15160
15161 ac_pwd='$ac_pwd'
15162 srcdir='$srcdir'
15163 INSTALL='$INSTALL'
15164 MKDIR_P='$MKDIR_P'
15165 AWK='$AWK'
15166 test -n "\$AWK" || AWK=awk
15167 _ACEOF
15168
15169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15170 # The default lists apply if the user does not specify any file.
15171 ac_need_defaults=:
15172 while test $# != 0
15173 do
15174   case $1 in
15175   --*=*)
15176     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15177     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15178     ac_shift=:
15179     ;;
15180   *)
15181     ac_option=$1
15182     ac_optarg=$2
15183     ac_shift=shift
15184     ;;
15185   esac
15186
15187   case $ac_option in
15188   # Handling of the options.
15189   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15190     ac_cs_recheck=: ;;
15191   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15192     $as_echo "$ac_cs_version"; exit ;;
15193   --debug | --debu | --deb | --de | --d | -d )
15194     debug=: ;;
15195   --file | --fil | --fi | --f )
15196     $ac_shift
15197     case $ac_optarg in
15198     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15199     esac
15200     as_fn_append CONFIG_FILES " '$ac_optarg'"
15201     ac_need_defaults=false;;
15202   --header | --heade | --head | --hea )
15203     $ac_shift
15204     case $ac_optarg in
15205     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15206     esac
15207     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15208     ac_need_defaults=false;;
15209   --he | --h)
15210     # Conflict between --help and --header
15211     as_fn_error "ambiguous option: \`$1'
15212 Try \`$0 --help' for more information.";;
15213   --help | --hel | -h )
15214     $as_echo "$ac_cs_usage"; exit ;;
15215   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15216   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15217     ac_cs_silent=: ;;
15218
15219   # This is an error.
15220   -*) as_fn_error "unrecognized option: \`$1'
15221 Try \`$0 --help' for more information." ;;
15222
15223   *) as_fn_append ac_config_targets " $1"
15224      ac_need_defaults=false ;;
15225
15226   esac
15227   shift
15228 done
15229
15230 ac_configure_extra_args=
15231
15232 if $ac_cs_silent; then
15233   exec 6>/dev/null
15234   ac_configure_extra_args="$ac_configure_extra_args --silent"
15235 fi
15236
15237 _ACEOF
15238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15239 if \$ac_cs_recheck; then
15240   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15241   shift
15242   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15243   CONFIG_SHELL='$SHELL'
15244   export CONFIG_SHELL
15245   exec "\$@"
15246 fi
15247
15248 _ACEOF
15249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15250 exec 5>>config.log
15251 {
15252   echo
15253   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15254 ## Running $as_me. ##
15255 _ASBOX
15256   $as_echo "$ac_log"
15257 } >&5
15258
15259 _ACEOF
15260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15261 #
15262 # INIT-COMMANDS
15263 #
15264 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15265 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15266
15267 _ACEOF
15268
15269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15270
15271 # Handling of arguments.
15272 for ac_config_target in $ac_config_targets
15273 do
15274   case $ac_config_target in
15275     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15276     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
15277     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15278     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
15279     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15280     ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15281     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
15282     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15283
15284   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15285   esac
15286 done
15287
15288
15289 # If the user did not use the arguments to specify the items to instantiate,
15290 # then the envvar interface is used.  Set only those that are not.
15291 # We use the long form for the default assignment because of an extremely
15292 # bizarre bug on SunOS 4.1.3.
15293 if $ac_need_defaults; then
15294   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15295   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15296   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15297   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15298 fi
15299
15300 # Have a temporary directory for convenience.  Make it in the build tree
15301 # simply because there is no reason against having it here, and in addition,
15302 # creating and moving files from /tmp can sometimes cause problems.
15303 # Hook for its removal unless debugging.
15304 # Note that there is a small window in which the directory will not be cleaned:
15305 # after its creation but before its name has been assigned to `$tmp'.
15306 $debug ||
15307 {
15308   tmp=
15309   trap 'exit_status=$?
15310   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15311 ' 0
15312   trap 'as_fn_exit 1' 1 2 13 15
15313 }
15314 # Create a (secure) tmp directory for tmp files.
15315
15316 {
15317   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15318   test -n "$tmp" && test -d "$tmp"
15319 }  ||
15320 {
15321   tmp=./conf$$-$RANDOM
15322   (umask 077 && mkdir "$tmp")
15323 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15324
15325 # Set up the scripts for CONFIG_FILES section.
15326 # No need to generate them if there are no CONFIG_FILES.
15327 # This happens for instance with `./config.status config.h'.
15328 if test -n "$CONFIG_FILES"; then
15329
15330 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15331   ac_cs_awk_getline=:
15332   ac_cs_awk_pipe_init=
15333   ac_cs_awk_read_file='
15334       while ((getline aline < (F[key])) > 0)
15335         print(aline)
15336       close(F[key])'
15337   ac_cs_awk_pipe_fini=
15338 else
15339   ac_cs_awk_getline=false
15340   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15341   ac_cs_awk_read_file='
15342       print "|#_!!_#|"
15343       print "cat " F[key] " &&"
15344       '$ac_cs_awk_pipe_init
15345   # The final `:' finishes the AND list.
15346   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15347 fi
15348 ac_cr=`echo X | tr X '\015'`
15349 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15350 # But we know of no other shell where ac_cr would be empty at this
15351 # point, so we can use a bashism as a fallback.
15352 if test "x$ac_cr" = x; then
15353   eval ac_cr=\$\'\\r\'
15354 fi
15355 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15356 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15357   ac_cs_awk_cr='\r'
15358 else
15359   ac_cs_awk_cr=$ac_cr
15360 fi
15361
15362 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15363 _ACEOF
15364
15365 # Create commands to substitute file output variables.
15366 {
15367   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15368   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15369   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15370   echo "_ACAWK" &&
15371   echo "_ACEOF"
15372 } >conf$$files.sh &&
15373 . ./conf$$files.sh ||
15374   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15375 rm -f conf$$files.sh
15376
15377 {
15378   echo "cat >conf$$subs.awk <<_ACEOF" &&
15379   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15380   echo "_ACEOF"
15381 } >conf$$subs.sh ||
15382   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15383 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15384 ac_delim='%!_!# '
15385 for ac_last_try in false false false false false :; do
15386   . ./conf$$subs.sh ||
15387     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15388
15389   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15390   if test $ac_delim_n = $ac_delim_num; then
15391     break
15392   elif $ac_last_try; then
15393     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15394   else
15395     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15396   fi
15397 done
15398 rm -f conf$$subs.sh
15399
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15402 _ACEOF
15403 sed -n '
15404 h
15405 s/^/S["/; s/!.*/"]=/
15406 p
15407 g
15408 s/^[^!]*!//
15409 :repl
15410 t repl
15411 s/'"$ac_delim"'$//
15412 t delim
15413 :nl
15414 h
15415 s/\(.\{148\}\).*/\1/
15416 t more1
15417 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15418 p
15419 n
15420 b repl
15421 :more1
15422 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15423 p
15424 g
15425 s/.\{148\}//
15426 t nl
15427 :delim
15428 h
15429 s/\(.\{148\}\).*/\1/
15430 t more2
15431 s/["\\]/\\&/g; s/^/"/; s/$/"/
15432 p
15433 b
15434 :more2
15435 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15436 p
15437 g
15438 s/.\{148\}//
15439 t delim
15440 ' <conf$$subs.awk | sed '
15441 /^[^""]/{
15442   N
15443   s/\n//
15444 }
15445 ' >>$CONFIG_STATUS || ac_write_fail=1
15446 rm -f conf$$subs.awk
15447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15448 _ACAWK
15449 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15450   for (key in S) S_is_set[key] = 1
15451   FS = "\a"
15452   \$ac_cs_awk_pipe_init
15453 }
15454 {
15455   line = $ 0
15456   nfields = split(line, field, "@")
15457   substed = 0
15458   len = length(field[1])
15459   for (i = 2; i < nfields; i++) {
15460     key = field[i]
15461     keylen = length(key)
15462     if (S_is_set[key]) {
15463       value = S[key]
15464       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15465       len += length(value) + length(field[++i])
15466       substed = 1
15467     } else
15468       len += 1 + keylen
15469   }
15470   if (nfields == 3 && !substed) {
15471     key = field[2]
15472     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15473       \$ac_cs_awk_read_file
15474       next
15475     }
15476   }
15477   print line
15478 }
15479 \$ac_cs_awk_pipe_fini
15480 _ACAWK
15481 _ACEOF
15482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15483 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15484   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15485 else
15486   cat
15487 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15488   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15489 _ACEOF
15490
15491 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15492 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15493 # trailing colons and then remove the whole line if VPATH becomes empty
15494 # (actually we leave an empty line to preserve line numbers).
15495 if test "x$srcdir" = x.; then
15496   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15497 s/:*\$(srcdir):*/:/
15498 s/:*\${srcdir}:*/:/
15499 s/:*@srcdir@:*/:/
15500 s/^\([^=]*=[     ]*\):*/\1/
15501 s/:*$//
15502 s/^[^=]*=[       ]*$//
15503 }'
15504 fi
15505
15506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15507 fi # test -n "$CONFIG_FILES"
15508
15509 # Set up the scripts for CONFIG_HEADERS section.
15510 # No need to generate them if there are no CONFIG_HEADERS.
15511 # This happens for instance with `./config.status Makefile'.
15512 if test -n "$CONFIG_HEADERS"; then
15513 cat >"$tmp/defines.awk" <<\_ACAWK ||
15514 BEGIN {
15515 _ACEOF
15516
15517 # Transform confdefs.h into an awk script `defines.awk', embedded as
15518 # here-document in config.status, that substitutes the proper values into
15519 # config.h.in to produce config.h.
15520
15521 # Create a delimiter string that does not exist in confdefs.h, to ease
15522 # handling of long lines.
15523 ac_delim='%!_!# '
15524 for ac_last_try in false false :; do
15525   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15526   if test -z "$ac_t"; then
15527     break
15528   elif $ac_last_try; then
15529     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15530   else
15531     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15532   fi
15533 done
15534
15535 # For the awk script, D is an array of macro values keyed by name,
15536 # likewise P contains macro parameters if any.  Preserve backslash
15537 # newline sequences.
15538
15539 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15540 sed -n '
15541 s/.\{148\}/&'"$ac_delim"'/g
15542 t rset
15543 :rset
15544 s/^[     ]*#[    ]*define[       ][      ]*/ /
15545 t def
15546 d
15547 :def
15548 s/\\$//
15549 t bsnl
15550 s/["\\]/\\&/g
15551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15552 D["\1"]=" \3"/p
15553 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15554 d
15555 :bsnl
15556 s/["\\]/\\&/g
15557 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15558 D["\1"]=" \3\\\\\\n"\\/p
15559 t cont
15560 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15561 t cont
15562 d
15563 :cont
15564 n
15565 s/.\{148\}/&'"$ac_delim"'/g
15566 t clear
15567 :clear
15568 s/\\$//
15569 t bsnlc
15570 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15571 d
15572 :bsnlc
15573 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15574 b cont
15575 ' <confdefs.h | sed '
15576 s/'"$ac_delim"'/"\\\
15577 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15578
15579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15580   for (key in D) D_is_set[key] = 1
15581   FS = "\a"
15582 }
15583 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15584   line = \$ 0
15585   split(line, arg, " ")
15586   if (arg[1] == "#") {
15587     defundef = arg[2]
15588     mac1 = arg[3]
15589   } else {
15590     defundef = substr(arg[1], 2)
15591     mac1 = arg[2]
15592   }
15593   split(mac1, mac2, "(") #)
15594   macro = mac2[1]
15595   prefix = substr(line, 1, index(line, defundef) - 1)
15596   if (D_is_set[macro]) {
15597     # Preserve the white space surrounding the "#".
15598     print prefix "define", macro P[macro] D[macro]
15599     next
15600   } else {
15601     # Replace #undef with comments.  This is necessary, for example,
15602     # in the case of _POSIX_SOURCE, which is predefined and required
15603     # on some systems where configure will not decide to define it.
15604     if (defundef == "undef") {
15605       print "/*", prefix defundef, macro, "*/"
15606       next
15607     }
15608   }
15609 }
15610 { print }
15611 _ACAWK
15612 _ACEOF
15613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15614   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15615 fi # test -n "$CONFIG_HEADERS"
15616
15617
15618 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
15619 shift
15620 for ac_tag
15621 do
15622   case $ac_tag in
15623   :[FHLC]) ac_mode=$ac_tag; continue;;
15624   esac
15625   case $ac_mode$ac_tag in
15626   :[FHL]*:*);;
15627   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15628   :[FH]-) ac_tag=-:-;;
15629   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15630   esac
15631   ac_save_IFS=$IFS
15632   IFS=:
15633   set x $ac_tag
15634   IFS=$ac_save_IFS
15635   shift
15636   ac_file=$1
15637   shift
15638
15639   case $ac_mode in
15640   :L) ac_source=$1;;
15641   :[FH])
15642     ac_file_inputs=
15643     for ac_f
15644     do
15645       case $ac_f in
15646       -) ac_f="$tmp/stdin";;
15647       *) # Look for the file first in the build tree, then in the source tree
15648          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15649          # because $ac_f cannot contain `:'.
15650          test -f "$ac_f" ||
15651            case $ac_f in
15652            [\\/$]*) false;;
15653            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15654            esac ||
15655            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15656       esac
15657       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15658       as_fn_append ac_file_inputs " '$ac_f'"
15659     done
15660
15661     # Let's still pretend it is `configure' which instantiates (i.e., don't
15662     # use $as_me), people would be surprised to read:
15663     #    /* config.h.  Generated by config.status.  */
15664     configure_input='Generated from '`
15665           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15666         `' by configure.'
15667     if test x"$ac_file" != x-; then
15668       configure_input="$ac_file.  $configure_input"
15669       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15670 $as_echo "$as_me: creating $ac_file" >&6;}
15671     fi
15672     # Neutralize special characters interpreted by sed in replacement strings.
15673     case $configure_input in #(
15674     *\&* | *\|* | *\\* )
15675        ac_sed_conf_input=`$as_echo "$configure_input" |
15676        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15677     *) ac_sed_conf_input=$configure_input;;
15678     esac
15679
15680     case $ac_tag in
15681     *:-:* | *:-) cat >"$tmp/stdin" \
15682       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15683     esac
15684     ;;
15685   esac
15686
15687   ac_dir=`$as_dirname -- "$ac_file" ||
15688 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15689          X"$ac_file" : 'X\(//\)[^/]' \| \
15690          X"$ac_file" : 'X\(//\)$' \| \
15691          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15692 $as_echo X"$ac_file" |
15693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15694             s//\1/
15695             q
15696           }
15697           /^X\(\/\/\)[^/].*/{
15698             s//\1/
15699             q
15700           }
15701           /^X\(\/\/\)$/{
15702             s//\1/
15703             q
15704           }
15705           /^X\(\/\).*/{
15706             s//\1/
15707             q
15708           }
15709           s/.*/./; q'`
15710   as_dir="$ac_dir"; as_fn_mkdir_p
15711   ac_builddir=.
15712
15713 case "$ac_dir" in
15714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15715 *)
15716   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15717   # A ".." for each directory in $ac_dir_suffix.
15718   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15719   case $ac_top_builddir_sub in
15720   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15721   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15722   esac ;;
15723 esac
15724 ac_abs_top_builddir=$ac_pwd
15725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15726 # for backward compatibility:
15727 ac_top_builddir=$ac_top_build_prefix
15728
15729 case $srcdir in
15730   .)  # We are building in place.
15731     ac_srcdir=.
15732     ac_top_srcdir=$ac_top_builddir_sub
15733     ac_abs_top_srcdir=$ac_pwd ;;
15734   [\\/]* | ?:[\\/]* )  # Absolute name.
15735     ac_srcdir=$srcdir$ac_dir_suffix;
15736     ac_top_srcdir=$srcdir
15737     ac_abs_top_srcdir=$srcdir ;;
15738   *) # Relative name.
15739     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15740     ac_top_srcdir=$ac_top_build_prefix$srcdir
15741     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15742 esac
15743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15744
15745
15746   case $ac_mode in
15747   :F)
15748   #
15749   # CONFIG_FILE
15750   #
15751
15752   case $INSTALL in
15753   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15754   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15755   esac
15756   ac_MKDIR_P=$MKDIR_P
15757   case $MKDIR_P in
15758   [\\/$]* | ?:[\\/]* ) ;;
15759   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15760   esac
15761 _ACEOF
15762
15763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15764 # If the template does not know about datarootdir, expand it.
15765 # FIXME: This hack should be removed a few years after 2.60.
15766 ac_datarootdir_hack=; ac_datarootdir_seen=
15767 ac_sed_dataroot='
15768 /datarootdir/ {
15769   p
15770   q
15771 }
15772 /@datadir@/p
15773 /@docdir@/p
15774 /@infodir@/p
15775 /@localedir@/p
15776 /@mandir@/p'
15777 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15778 *datarootdir*) ac_datarootdir_seen=yes;;
15779 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15780   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15781 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15782 _ACEOF
15783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15784   ac_datarootdir_hack='
15785   s&@datadir@&$datadir&g
15786   s&@docdir@&$docdir&g
15787   s&@infodir@&$infodir&g
15788   s&@localedir@&$localedir&g
15789   s&@mandir@&$mandir&g
15790   s&\\\${datarootdir}&$datarootdir&g' ;;
15791 esac
15792 _ACEOF
15793
15794 # Neutralize VPATH when `$srcdir' = `.'.
15795 # Shell code in configure.ac might set extrasub.
15796 # FIXME: do we really want to maintain this feature?
15797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15798 ac_sed_extra="$ac_vpsub
15799 $extrasub
15800 _ACEOF
15801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15802 :t
15803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15804 s|@configure_input@|$ac_sed_conf_input|;t t
15805 s&@top_builddir@&$ac_top_builddir_sub&;t t
15806 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15807 s&@srcdir@&$ac_srcdir&;t t
15808 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15809 s&@top_srcdir@&$ac_top_srcdir&;t t
15810 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15811 s&@builddir@&$ac_builddir&;t t
15812 s&@abs_builddir@&$ac_abs_builddir&;t t
15813 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15814 s&@INSTALL@&$ac_INSTALL&;t t
15815 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15816 $ac_datarootdir_hack
15817 "
15818 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15819 if $ac_cs_awk_getline; then
15820   $AWK -f "$tmp/subs.awk"
15821 else
15822   $AWK -f "$tmp/subs.awk" | $SHELL
15823 fi >$tmp/out \
15824   || as_fn_error "could not create $ac_file" "$LINENO" 5
15825
15826 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15827   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15828   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15829   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15830 which seems to be undefined.  Please make sure it is defined." >&5
15831 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15832 which seems to be undefined.  Please make sure it is defined." >&2;}
15833
15834   rm -f "$tmp/stdin"
15835   case $ac_file in
15836   -) cat "$tmp/out" && rm -f "$tmp/out";;
15837   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15838   esac \
15839   || as_fn_error "could not create $ac_file" "$LINENO" 5
15840  ;;
15841   :H)
15842   #
15843   # CONFIG_HEADER
15844   #
15845   if test x"$ac_file" != x-; then
15846     {
15847       $as_echo "/* $configure_input  */" \
15848       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15849     } >"$tmp/config.h" \
15850       || as_fn_error "could not create $ac_file" "$LINENO" 5
15851     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15852       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15853 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15854     else
15855       rm -f "$ac_file"
15856       mv "$tmp/config.h" "$ac_file" \
15857         || as_fn_error "could not create $ac_file" "$LINENO" 5
15858     fi
15859   else
15860     $as_echo "/* $configure_input  */" \
15861       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15862       || as_fn_error "could not create -" "$LINENO" 5
15863   fi
15864 # Compute "$ac_file"'s index in $config_headers.
15865 _am_arg="$ac_file"
15866 _am_stamp_count=1
15867 for _am_header in $config_headers :; do
15868   case $_am_header in
15869     $_am_arg | $_am_arg:* )
15870       break ;;
15871     * )
15872       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15873   esac
15874 done
15875 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15876 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15877          X"$_am_arg" : 'X\(//\)[^/]' \| \
15878          X"$_am_arg" : 'X\(//\)$' \| \
15879          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15880 $as_echo X"$_am_arg" |
15881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15882             s//\1/
15883             q
15884           }
15885           /^X\(\/\/\)[^/].*/{
15886             s//\1/
15887             q
15888           }
15889           /^X\(\/\/\)$/{
15890             s//\1/
15891             q
15892           }
15893           /^X\(\/\).*/{
15894             s//\1/
15895             q
15896           }
15897           s/.*/./; q'`/stamp-h$_am_stamp_count
15898  ;;
15899   :L)
15900   #
15901   # CONFIG_LINK
15902   #
15903
15904   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15905     :
15906   else
15907     # Prefer the file from the source tree if names are identical.
15908     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15909       ac_source=$srcdir/$ac_source
15910     fi
15911
15912     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15913 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15914
15915     if test ! -r "$ac_source"; then
15916       as_fn_error "$ac_source: file not found" "$LINENO" 5
15917     fi
15918     rm -f "$ac_file"
15919
15920     # Try a relative symlink, then a hard link, then a copy.
15921     case $srcdir in
15922     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15923         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15924     esac
15925     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15926       ln "$ac_source" "$ac_file" 2>/dev/null ||
15927       cp -p "$ac_source" "$ac_file" ||
15928       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15929   fi
15930  ;;
15931   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15932 $as_echo "$as_me: executing $ac_file commands" >&6;}
15933  ;;
15934   esac
15935
15936
15937   case $ac_file$ac_mode in
15938     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
15939     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15940   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15941   # are listed without --file.  Let's play safe and only enable the eval
15942   # if we detect the quoting.
15943   case $CONFIG_FILES in
15944   *\'*) eval set x "$CONFIG_FILES" ;;
15945   *)   set x $CONFIG_FILES ;;
15946   esac
15947   shift
15948   for mf
15949   do
15950     # Strip MF so we end up with the name of the file.
15951     mf=`echo "$mf" | sed -e 's/:.*$//'`
15952     # Check whether this is an Automake generated Makefile or not.
15953     # We used to match only the files named `Makefile.in', but
15954     # some people rename them; so instead we look at the file content.
15955     # Grep'ing the first line is not enough: some people post-process
15956     # each Makefile.in and add a new line on top of each file to say so.
15957     # Grep'ing the whole file is not good either: AIX grep has a line
15958     # limit of 2048, but all sed's we know have understand at least 4000.
15959     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15960       dirpart=`$as_dirname -- "$mf" ||
15961 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15962          X"$mf" : 'X\(//\)[^/]' \| \
15963          X"$mf" : 'X\(//\)$' \| \
15964          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15965 $as_echo X"$mf" |
15966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15967             s//\1/
15968             q
15969           }
15970           /^X\(\/\/\)[^/].*/{
15971             s//\1/
15972             q
15973           }
15974           /^X\(\/\/\)$/{
15975             s//\1/
15976             q
15977           }
15978           /^X\(\/\).*/{
15979             s//\1/
15980             q
15981           }
15982           s/.*/./; q'`
15983     else
15984       continue
15985     fi
15986     # Extract the definition of DEPDIR, am__include, and am__quote
15987     # from the Makefile without running `make'.
15988     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15989     test -z "$DEPDIR" && continue
15990     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15991     test -z "am__include" && continue
15992     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15993     # When using ansi2knr, U may be empty or an underscore; expand it
15994     U=`sed -n 's/^U = //p' < "$mf"`
15995     # Find all dependency output files, they are included files with
15996     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15997     # simplest approach to changing $(DEPDIR) to its actual value in the
15998     # expansion.
15999     for file in `sed -n "
16000       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16001          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16002       # Make sure the directory exists.
16003       test -f "$dirpart/$file" && continue
16004       fdir=`$as_dirname -- "$file" ||
16005 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16006          X"$file" : 'X\(//\)[^/]' \| \
16007          X"$file" : 'X\(//\)$' \| \
16008          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16009 $as_echo X"$file" |
16010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16011             s//\1/
16012             q
16013           }
16014           /^X\(\/\/\)[^/].*/{
16015             s//\1/
16016             q
16017           }
16018           /^X\(\/\/\)$/{
16019             s//\1/
16020             q
16021           }
16022           /^X\(\/\).*/{
16023             s//\1/
16024             q
16025           }
16026           s/.*/./; q'`
16027       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16028       # echo "creating $dirpart/$file"
16029       echo '# dummy' > "$dirpart/$file"
16030     done
16031   done
16032 }
16033  ;;
16034     "default":C)
16035 case x$CONFIG_HEADERS in
16036 xconfig.h:config.in)
16037 echo > stamp-h ;;
16038 esac
16039  ;;
16040
16041   esac
16042 done # for ac_tag
16043
16044
16045 as_fn_exit 0
16046 _ACEOF
16047 ac_clean_files=$ac_clean_files_save
16048
16049 test $ac_write_fail = 0 ||
16050   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16051
16052
16053 # configure is writing to config.log, and then calls config.status.
16054 # config.status does its own redirection, appending to config.log.
16055 # Unfortunately, on DOS this fails, as config.log is still kept open
16056 # by configure, so config.status won't be able to write to it; its
16057 # output is simply discarded.  So we exec the FD to /dev/null,
16058 # effectively closing config.log, so it can be properly (re)opened and
16059 # appended to by config.status.  When coming back to configure, we
16060 # need to make the FD available again.
16061 if test "$no_create" != yes; then
16062   ac_cs_success=:
16063   ac_config_status_args=
16064   test "$silent" = yes &&
16065     ac_config_status_args="$ac_config_status_args --quiet"
16066   exec 5>/dev/null
16067   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16068   exec 5>>config.log
16069   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16070   # would make configure fail if this is the last instruction.
16071   $ac_cs_success || as_fn_exit $?
16072 fi
16073
16074 #
16075 # CONFIG_SUBDIRS section.
16076 #
16077 if test "$no_recursion" != yes; then
16078
16079   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16080   # so they do not pile up.
16081   ac_sub_configure_args=
16082   ac_prev=
16083   eval "set x $ac_configure_args"
16084   shift
16085   for ac_arg
16086   do
16087     if test -n "$ac_prev"; then
16088       ac_prev=
16089       continue
16090     fi
16091     case $ac_arg in
16092     -cache-file | --cache-file | --cache-fil | --cache-fi \
16093     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16094       ac_prev=cache_file ;;
16095     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16096     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16097     | --c=*)
16098       ;;
16099     --config-cache | -C)
16100       ;;
16101     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16102       ac_prev=srcdir ;;
16103     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16104       ;;
16105     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16106       ac_prev=prefix ;;
16107     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16108       ;;
16109     --disable-option-checking)
16110       ;;
16111     *)
16112       case $ac_arg in
16113       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16114       esac
16115       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16116     esac
16117   done
16118
16119   # Always prepend --prefix to ensure using the same prefix
16120   # in subdir configurations.
16121   ac_arg="--prefix=$prefix"
16122   case $ac_arg in
16123   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16124   esac
16125   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16126
16127   # Pass --silent
16128   if test "$silent" = yes; then
16129     ac_sub_configure_args="--silent $ac_sub_configure_args"
16130   fi
16131
16132   # Always prepend --disable-option-checking to silence warnings, since
16133   # different subdirs can have different --enable and --with options.
16134   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16135
16136   ac_popdir=`pwd`
16137   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16138
16139     # Do not complain, so a configure script can configure whichever
16140     # parts of a large source tree are present.
16141     test -d "$srcdir/$ac_dir" || continue
16142
16143     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16144     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16145     $as_echo "$ac_msg" >&6
16146     as_dir="$ac_dir"; as_fn_mkdir_p
16147     ac_builddir=.
16148
16149 case "$ac_dir" in
16150 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16151 *)
16152   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16153   # A ".." for each directory in $ac_dir_suffix.
16154   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16155   case $ac_top_builddir_sub in
16156   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16157   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16158   esac ;;
16159 esac
16160 ac_abs_top_builddir=$ac_pwd
16161 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16162 # for backward compatibility:
16163 ac_top_builddir=$ac_top_build_prefix
16164
16165 case $srcdir in
16166   .)  # We are building in place.
16167     ac_srcdir=.
16168     ac_top_srcdir=$ac_top_builddir_sub
16169     ac_abs_top_srcdir=$ac_pwd ;;
16170   [\\/]* | ?:[\\/]* )  # Absolute name.
16171     ac_srcdir=$srcdir$ac_dir_suffix;
16172     ac_top_srcdir=$srcdir
16173     ac_abs_top_srcdir=$srcdir ;;
16174   *) # Relative name.
16175     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16176     ac_top_srcdir=$ac_top_build_prefix$srcdir
16177     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16178 esac
16179 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16180
16181
16182     cd "$ac_dir"
16183
16184     # Check for guested configure; otherwise get Cygnus style configure.
16185     if test -f "$ac_srcdir/configure.gnu"; then
16186       ac_sub_configure=$ac_srcdir/configure.gnu
16187     elif test -f "$ac_srcdir/configure"; then
16188       ac_sub_configure=$ac_srcdir/configure
16189     elif test -f "$ac_srcdir/configure.in"; then
16190       # This should be Cygnus configure.
16191       ac_sub_configure=$ac_aux_dir/configure
16192     else
16193       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16194 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16195       ac_sub_configure=
16196     fi
16197
16198     # The recursion is here.
16199     if test -n "$ac_sub_configure"; then
16200       # Make the cache file name correct relative to the subdirectory.
16201       case $cache_file in
16202       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16203       *) # Relative name.
16204         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16205       esac
16206
16207       { $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
16208 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16209       # The eval makes quoting arguments work.
16210       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16211            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16212         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16213     fi
16214
16215     cd "$ac_popdir"
16216   done
16217 fi
16218 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16219   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16220 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16221 fi
16222
16223
16224 exit 0