2012-04-18 Pedro Alves <palves@redhat.com>
[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 gl_func_list=
593 enable_option_checking=no
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 gltests_LTLIBOBJS
597 gltests_LIBOBJS
598 gl_LTLIBOBJS
599 gl_LIBOBJS
600 LTLIBOBJS
601 LIBOBJS
602 GDB_NM_FILE
603 frags
604 target_subdir
605 CONFIG_UNINSTALL
606 CONFIG_INSTALL
607 CONFIG_CLEAN
608 CONFIG_ALL
609 CONFIG_SRCS
610 CONFIG_DEPS
611 CONFIG_OBS
612 PROFILE_CFLAGS
613 ENABLE_CFLAGS
614 SIM_OBS
615 SIM
616 XMKMF
617 GDBTK_SRC_DIR
618 GDBTK_CFLAGS
619 GDBTKLIBS
620 X_LIBS
621 X_LDFLAGS
622 X_CFLAGS
623 TK_XINCLUDES
624 TK_DEPS
625 TK_LIBRARY
626 TK_INCLUDE
627 TK_STUB_LIB_SPEC
628 TK_STUB_LIB_FLAG
629 TK_STUB_LIB_FILE
630 TK_LIB_SPEC
631 TK_LIB_FLAG
632 TK_LIB_FILE
633 TK_SRC_DIR
634 TK_BIN_DIR
635 TK_VERSION
636 TCL_DEPS
637 TCL_LIBRARY
638 TCL_INCLUDE
639 TCL_STUB_LIB_SPEC
640 TCL_STUB_LIB_FLAG
641 TCL_STUB_LIB_FILE
642 TCL_LIB_SPEC
643 TCL_LIB_FLAG
644 TCL_LIB_FILE
645 TCL_SRC_DIR
646 TCL_BIN_DIR
647 TCL_PATCH_LEVEL
648 TCL_VERSION
649 WIN32LDAPP
650 GUI_CFLAGS_X
651 LIBGUI
652 WIN32LIBS
653 SER_HARDWIRE
654 WERROR_CFLAGS
655 WARN_CFLAGS
656 SYSTEM_GDBINIT
657 TARGET_SYSTEM_ROOT
658 CONFIG_LDFLAGS
659 RDYNAMIC
660 ALLOCA
661 PYTHON_LIBS
662 PYTHON_CPPFLAGS
663 PYTHON_CFLAGS
664 python_prog_path
665 LTLIBEXPAT
666 LIBEXPAT
667 HAVE_LIBEXPAT
668 JIT_READER_DIR
669 TARGET_PTR
670 READLINE_TEXI_INCFLAG
671 READLINE_CFLAGS
672 READLINE_DEPS
673 READLINE
674 MIG
675 WINDRES
676 DLLTOOL
677 AR
678 YFLAGS
679 YACC
680 LN_S
681 REPORT_BUGS_TEXI
682 REPORT_BUGS_TO
683 PKGVERSION
684 TARGET_OBS
685 subdirs
686 GDB_DATADIR
687 DEBUGDIR
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__quote
694 am__include
695 am__untar
696 am__tar
697 AMTAR
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 MAKEINFO_EXTRA_FLAGS
715 MAKEINFOFLAGS
716 MAKEINFO
717 PACKAGE
718 GNULIB_STDINT_H
719 LIBGNU_LTLIBDEPS
720 LIBGNU_LIBDEPS
721 gltests_WITNESS
722 HAVE_WINT_T
723 HAVE_WCHAR_H
724 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
725 NEXT_WCHAR_H
726 REPLACE_WCWIDTH
727 REPLACE_WCSNRTOMBS
728 REPLACE_WCSRTOMBS
729 REPLACE_WCRTOMB
730 REPLACE_MBSNRTOWCS
731 REPLACE_MBSRTOWCS
732 REPLACE_MBRLEN
733 REPLACE_MBRTOWC
734 REPLACE_MBSINIT
735 REPLACE_WCTOB
736 REPLACE_BTOWC
737 REPLACE_MBSTATE_T
738 HAVE_DECL_WCWIDTH
739 HAVE_DECL_WCTOB
740 HAVE_WCSNRTOMBS
741 HAVE_WCSRTOMBS
742 HAVE_WCRTOMB
743 HAVE_MBSNRTOWCS
744 HAVE_MBSRTOWCS
745 HAVE_MBRLEN
746 HAVE_MBRTOWC
747 HAVE_MBSINIT
748 HAVE_BTOWC
749 GNULIB_WCWIDTH
750 GNULIB_WCSNRTOMBS
751 GNULIB_WCSRTOMBS
752 GNULIB_WCRTOMB
753 GNULIB_MBSNRTOWCS
754 GNULIB_MBSRTOWCS
755 GNULIB_MBRLEN
756 GNULIB_MBRTOWC
757 GNULIB_MBSINIT
758 GNULIB_WCTOB
759 GNULIB_BTOWC
760 NEXT_AS_FIRST_DIRECTIVE_STRING_H
761 NEXT_STRING_H
762 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
763 NEXT_STDDEF_H
764 STDDEF_H
765 HAVE_WCHAR_T
766 REPLACE_NULL
767 UNDEFINE_STRTOK_R
768 REPLACE_STRTOK_R
769 REPLACE_STRSIGNAL
770 REPLACE_STRNLEN
771 REPLACE_STRNDUP
772 REPLACE_STRNCAT
773 REPLACE_STRERROR
774 REPLACE_STRCASESTR
775 REPLACE_STRSTR
776 REPLACE_STRDUP
777 REPLACE_STPNCPY
778 REPLACE_MEMMEM
779 REPLACE_MEMCHR
780 HAVE_STRVERSCMP
781 HAVE_DECL_STRSIGNAL
782 HAVE_DECL_STRTOK_R
783 HAVE_STRCASESTR
784 HAVE_STRSEP
785 HAVE_STRPBRK
786 HAVE_DECL_STRNLEN
787 HAVE_DECL_STRNDUP
788 HAVE_DECL_STRDUP
789 HAVE_STRCHRNUL
790 HAVE_STPNCPY
791 HAVE_STPCPY
792 HAVE_RAWMEMCHR
793 HAVE_DECL_MEMRCHR
794 HAVE_MEMPCPY
795 HAVE_DECL_MEMMEM
796 HAVE_MEMCHR
797 HAVE_MBSLEN
798 GNULIB_STRVERSCMP
799 GNULIB_STRSIGNAL
800 GNULIB_STRERROR
801 GNULIB_MBSTOK_R
802 GNULIB_MBSSEP
803 GNULIB_MBSSPN
804 GNULIB_MBSPBRK
805 GNULIB_MBSCSPN
806 GNULIB_MBSCASESTR
807 GNULIB_MBSPCASECMP
808 GNULIB_MBSNCASECMP
809 GNULIB_MBSCASECMP
810 GNULIB_MBSSTR
811 GNULIB_MBSRCHR
812 GNULIB_MBSCHR
813 GNULIB_MBSNLEN
814 GNULIB_MBSLEN
815 GNULIB_STRTOK_R
816 GNULIB_STRCASESTR
817 GNULIB_STRSTR
818 GNULIB_STRSEP
819 GNULIB_STRPBRK
820 GNULIB_STRNLEN
821 GNULIB_STRNDUP
822 GNULIB_STRNCAT
823 GNULIB_STRDUP
824 GNULIB_STRCHRNUL
825 GNULIB_STPNCPY
826 GNULIB_STPCPY
827 GNULIB_RAWMEMCHR
828 GNULIB_MEMRCHR
829 GNULIB_MEMPCPY
830 GNULIB_MEMMEM
831 GNULIB_MEMCHR
832 UINT64_MAX_EQ_ULONG_MAX
833 UINT32_MAX_LT_UINTMAX_MAX
834 INT64_MAX_EQ_LONG_MAX
835 INT32_MAX_LT_INTMAX_MAX
836 PRIPTR_PREFIX
837 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
838 NEXT_INTTYPES_H
839 HAVE_DECL_STRTOUMAX
840 HAVE_DECL_STRTOIMAX
841 HAVE_DECL_IMAXDIV
842 HAVE_DECL_IMAXABS
843 GNULIB_STRTOUMAX
844 GNULIB_STRTOIMAX
845 GNULIB_IMAXDIV
846 GNULIB_IMAXABS
847 PRI_MACROS_BROKEN
848 STDINT_H
849 WINT_T_SUFFIX
850 WCHAR_T_SUFFIX
851 SIG_ATOMIC_T_SUFFIX
852 SIZE_T_SUFFIX
853 PTRDIFF_T_SUFFIX
854 HAVE_SIGNED_WINT_T
855 HAVE_SIGNED_WCHAR_T
856 HAVE_SIGNED_SIG_ATOMIC_T
857 BITSIZEOF_WINT_T
858 BITSIZEOF_WCHAR_T
859 BITSIZEOF_SIG_ATOMIC_T
860 BITSIZEOF_SIZE_T
861 BITSIZEOF_PTRDIFF_T
862 APPLE_UNIVERSAL_BUILD
863 HAVE_SYS_BITYPES_H
864 HAVE_SYS_INTTYPES_H
865 HAVE_STDINT_H
866 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
867 NEXT_STDINT_H
868 PRAGMA_SYSTEM_HEADER
869 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
870 INCLUDE_NEXT
871 HAVE_SYS_TYPES_H
872 HAVE_INTTYPES_H
873 HAVE_UNSIGNED_LONG_LONG_INT
874 HAVE_LONG_LONG_INT
875 GL_COND_LIBTOOL_FALSE
876 GL_COND_LIBTOOL_TRUE
877 CATOBJEXT
878 GENCAT
879 INSTOBJEXT
880 DATADIRNAME
881 CATALOGS
882 POSUB
883 GMSGFMT
884 XGETTEXT
885 INCINTL
886 LIBINTL_DEP
887 LIBINTL
888 USE_NLS
889 SET_MAKE
890 GMAKE_FALSE
891 GMAKE_TRUE
892 MAKE
893 CCDEPMODE
894 DEPDIR
895 am__leading_dot
896 target_os
897 target_vendor
898 target_cpu
899 target
900 RANLIB
901 EGREP
902 GREP
903 CPP
904 host_os
905 host_vendor
906 host_cpu
907 host
908 build_os
909 build_vendor
910 build_cpu
911 build
912 OBJEXT
913 EXEEXT
914 ac_ct_CC
915 CPPFLAGS
916 LDFLAGS
917 CFLAGS
918 CC
919 MAINT
920 MAINTAINER_MODE_FALSE
921 MAINTAINER_MODE_TRUE
922 target_alias
923 host_alias
924 build_alias
925 LIBS
926 ECHO_T
927 ECHO_N
928 ECHO_C
929 DEFS
930 mandir
931 localedir
932 libdir
933 psdir
934 pdfdir
935 dvidir
936 htmldir
937 infodir
938 docdir
939 oldincludedir
940 includedir
941 localstatedir
942 sharedstatedir
943 sysconfdir
944 datadir
945 datarootdir
946 libexecdir
947 sbindir
948 bindir
949 program_transform_name
950 prefix
951 exec_prefix
952 PACKAGE_URL
953 PACKAGE_BUGREPORT
954 PACKAGE_STRING
955 PACKAGE_VERSION
956 PACKAGE_TARNAME
957 PACKAGE_NAME
958 PATH_SEPARATOR
959 SHELL'
960 ac_subst_files='host_makefile_frag'
961 ac_user_opts='
962 enable_option_checking
963 enable_maintainer_mode
964 enable_plugins
965 enable_largefile
966 enable_dependency_tracking
967 with_separate_debug_dir
968 with_gdb_datadir
969 with_relocated_sources
970 with_auto_load_safe_path
971 enable_targets
972 enable_64_bit_bfd
973 enable_gdbcli
974 enable_gdbmi
975 enable_tui
976 enable_gdbtk
977 with_libunwind_ia64
978 with_curses
979 enable_profiling
980 with_pkgversion
981 with_bugurl
982 with_zlib
983 with_libiconv_prefix
984 with_iconv_bin
985 with_system_readline
986 with_jit_reader_dir
987 with_expat
988 with_gnu_ld
989 enable_rpath
990 with_libexpat_prefix
991 with_python
992 with_included_regex
993 with_sysroot
994 with_system_gdbinit
995 enable_werror
996 enable_build_warnings
997 enable_gdb_build_warnings
998 with_tcl
999 with_tk
1000 with_x
1001 enable_sim
1002 enable_multi_ice
1003 enable_gdbserver
1004 '
1005       ac_precious_vars='build_alias
1006 host_alias
1007 target_alias
1008 CC
1009 CFLAGS
1010 LDFLAGS
1011 LIBS
1012 CPPFLAGS
1013 CPP
1014 MAKEINFO
1015 MAKEINFOFLAGS
1016 YACC
1017 YFLAGS
1018 XMKMF'
1019 ac_subdirs_all='testsuite
1020 gdbtk
1021 multi-ice
1022 gdbserver'
1023
1024 # Initialize some variables set by options.
1025 ac_init_help=
1026 ac_init_version=false
1027 ac_unrecognized_opts=
1028 ac_unrecognized_sep=
1029 # The variables have the same names as the options, with
1030 # dashes changed to underlines.
1031 cache_file=/dev/null
1032 exec_prefix=NONE
1033 no_create=
1034 no_recursion=
1035 prefix=NONE
1036 program_prefix=NONE
1037 program_suffix=NONE
1038 program_transform_name=s,x,x,
1039 silent=
1040 site=
1041 srcdir=
1042 verbose=
1043 x_includes=NONE
1044 x_libraries=NONE
1045
1046 # Installation directory options.
1047 # These are left unexpanded so users can "make install exec_prefix=/foo"
1048 # and all the variables that are supposed to be based on exec_prefix
1049 # by default will actually change.
1050 # Use braces instead of parens because sh, perl, etc. also accept them.
1051 # (The list follows the same order as the GNU Coding Standards.)
1052 bindir='${exec_prefix}/bin'
1053 sbindir='${exec_prefix}/sbin'
1054 libexecdir='${exec_prefix}/libexec'
1055 datarootdir='${prefix}/share'
1056 datadir='${datarootdir}'
1057 sysconfdir='${prefix}/etc'
1058 sharedstatedir='${prefix}/com'
1059 localstatedir='${prefix}/var'
1060 includedir='${prefix}/include'
1061 oldincludedir='/usr/include'
1062 docdir='${datarootdir}/doc/${PACKAGE}'
1063 infodir='${datarootdir}/info'
1064 htmldir='${docdir}'
1065 dvidir='${docdir}'
1066 pdfdir='${docdir}'
1067 psdir='${docdir}'
1068 libdir='${exec_prefix}/lib'
1069 localedir='${datarootdir}/locale'
1070 mandir='${datarootdir}/man'
1071
1072 ac_prev=
1073 ac_dashdash=
1074 for ac_option
1075 do
1076   # If the previous option needs an argument, assign it.
1077   if test -n "$ac_prev"; then
1078     eval $ac_prev=\$ac_option
1079     ac_prev=
1080     continue
1081   fi
1082
1083   case $ac_option in
1084   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1085   *)    ac_optarg=yes ;;
1086   esac
1087
1088   # Accept the important Cygnus configure options, so we can diagnose typos.
1089
1090   case $ac_dashdash$ac_option in
1091   --)
1092     ac_dashdash=yes ;;
1093
1094   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1095     ac_prev=bindir ;;
1096   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1097     bindir=$ac_optarg ;;
1098
1099   -build | --build | --buil | --bui | --bu)
1100     ac_prev=build_alias ;;
1101   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1102     build_alias=$ac_optarg ;;
1103
1104   -cache-file | --cache-file | --cache-fil | --cache-fi \
1105   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1106     ac_prev=cache_file ;;
1107   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1108   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1109     cache_file=$ac_optarg ;;
1110
1111   --config-cache | -C)
1112     cache_file=config.cache ;;
1113
1114   -datadir | --datadir | --datadi | --datad)
1115     ac_prev=datadir ;;
1116   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1117     datadir=$ac_optarg ;;
1118
1119   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1120   | --dataroo | --dataro | --datar)
1121     ac_prev=datarootdir ;;
1122   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1123   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1124     datarootdir=$ac_optarg ;;
1125
1126   -disable-* | --disable-*)
1127     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1128     # Reject names that are not valid shell variable names.
1129     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130       as_fn_error "invalid feature name: $ac_useropt"
1131     ac_useropt_orig=$ac_useropt
1132     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133     case $ac_user_opts in
1134       *"
1135 "enable_$ac_useropt"
1136 "*) ;;
1137       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1138          ac_unrecognized_sep=', ';;
1139     esac
1140     eval enable_$ac_useropt=no ;;
1141
1142   -docdir | --docdir | --docdi | --doc | --do)
1143     ac_prev=docdir ;;
1144   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1145     docdir=$ac_optarg ;;
1146
1147   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1148     ac_prev=dvidir ;;
1149   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1150     dvidir=$ac_optarg ;;
1151
1152   -enable-* | --enable-*)
1153     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156       as_fn_error "invalid feature name: $ac_useropt"
1157     ac_useropt_orig=$ac_useropt
1158     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159     case $ac_user_opts in
1160       *"
1161 "enable_$ac_useropt"
1162 "*) ;;
1163       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1164          ac_unrecognized_sep=', ';;
1165     esac
1166     eval enable_$ac_useropt=\$ac_optarg ;;
1167
1168   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1169   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1170   | --exec | --exe | --ex)
1171     ac_prev=exec_prefix ;;
1172   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1173   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1174   | --exec=* | --exe=* | --ex=*)
1175     exec_prefix=$ac_optarg ;;
1176
1177   -gas | --gas | --ga | --g)
1178     # Obsolete; use --with-gas.
1179     with_gas=yes ;;
1180
1181   -help | --help | --hel | --he | -h)
1182     ac_init_help=long ;;
1183   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1184     ac_init_help=recursive ;;
1185   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1186     ac_init_help=short ;;
1187
1188   -host | --host | --hos | --ho)
1189     ac_prev=host_alias ;;
1190   -host=* | --host=* | --hos=* | --ho=*)
1191     host_alias=$ac_optarg ;;
1192
1193   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1194     ac_prev=htmldir ;;
1195   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1196   | --ht=*)
1197     htmldir=$ac_optarg ;;
1198
1199   -includedir | --includedir | --includedi | --included | --include \
1200   | --includ | --inclu | --incl | --inc)
1201     ac_prev=includedir ;;
1202   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1203   | --includ=* | --inclu=* | --incl=* | --inc=*)
1204     includedir=$ac_optarg ;;
1205
1206   -infodir | --infodir | --infodi | --infod | --info | --inf)
1207     ac_prev=infodir ;;
1208   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1209     infodir=$ac_optarg ;;
1210
1211   -libdir | --libdir | --libdi | --libd)
1212     ac_prev=libdir ;;
1213   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1214     libdir=$ac_optarg ;;
1215
1216   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1217   | --libexe | --libex | --libe)
1218     ac_prev=libexecdir ;;
1219   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1220   | --libexe=* | --libex=* | --libe=*)
1221     libexecdir=$ac_optarg ;;
1222
1223   -localedir | --localedir | --localedi | --localed | --locale)
1224     ac_prev=localedir ;;
1225   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1226     localedir=$ac_optarg ;;
1227
1228   -localstatedir | --localstatedir | --localstatedi | --localstated \
1229   | --localstate | --localstat | --localsta | --localst | --locals)
1230     ac_prev=localstatedir ;;
1231   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1232   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1233     localstatedir=$ac_optarg ;;
1234
1235   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1236     ac_prev=mandir ;;
1237   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1238     mandir=$ac_optarg ;;
1239
1240   -nfp | --nfp | --nf)
1241     # Obsolete; use --without-fp.
1242     with_fp=no ;;
1243
1244   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1245   | --no-cr | --no-c | -n)
1246     no_create=yes ;;
1247
1248   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1249   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1250     no_recursion=yes ;;
1251
1252   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1253   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1254   | --oldin | --oldi | --old | --ol | --o)
1255     ac_prev=oldincludedir ;;
1256   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1257   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1258   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1259     oldincludedir=$ac_optarg ;;
1260
1261   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1262     ac_prev=prefix ;;
1263   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1264     prefix=$ac_optarg ;;
1265
1266   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1267   | --program-pre | --program-pr | --program-p)
1268     ac_prev=program_prefix ;;
1269   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1270   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1271     program_prefix=$ac_optarg ;;
1272
1273   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1274   | --program-suf | --program-su | --program-s)
1275     ac_prev=program_suffix ;;
1276   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1277   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1278     program_suffix=$ac_optarg ;;
1279
1280   -program-transform-name | --program-transform-name \
1281   | --program-transform-nam | --program-transform-na \
1282   | --program-transform-n | --program-transform- \
1283   | --program-transform | --program-transfor \
1284   | --program-transfo | --program-transf \
1285   | --program-trans | --program-tran \
1286   | --progr-tra | --program-tr | --program-t)
1287     ac_prev=program_transform_name ;;
1288   -program-transform-name=* | --program-transform-name=* \
1289   | --program-transform-nam=* | --program-transform-na=* \
1290   | --program-transform-n=* | --program-transform-=* \
1291   | --program-transform=* | --program-transfor=* \
1292   | --program-transfo=* | --program-transf=* \
1293   | --program-trans=* | --program-tran=* \
1294   | --progr-tra=* | --program-tr=* | --program-t=*)
1295     program_transform_name=$ac_optarg ;;
1296
1297   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1298     ac_prev=pdfdir ;;
1299   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1300     pdfdir=$ac_optarg ;;
1301
1302   -psdir | --psdir | --psdi | --psd | --ps)
1303     ac_prev=psdir ;;
1304   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1305     psdir=$ac_optarg ;;
1306
1307   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1308   | -silent | --silent | --silen | --sile | --sil)
1309     silent=yes ;;
1310
1311   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1312     ac_prev=sbindir ;;
1313   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1314   | --sbi=* | --sb=*)
1315     sbindir=$ac_optarg ;;
1316
1317   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1318   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1319   | --sharedst | --shareds | --shared | --share | --shar \
1320   | --sha | --sh)
1321     ac_prev=sharedstatedir ;;
1322   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1323   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1324   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1325   | --sha=* | --sh=*)
1326     sharedstatedir=$ac_optarg ;;
1327
1328   -site | --site | --sit)
1329     ac_prev=site ;;
1330   -site=* | --site=* | --sit=*)
1331     site=$ac_optarg ;;
1332
1333   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1334     ac_prev=srcdir ;;
1335   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1336     srcdir=$ac_optarg ;;
1337
1338   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1339   | --syscon | --sysco | --sysc | --sys | --sy)
1340     ac_prev=sysconfdir ;;
1341   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1342   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1343     sysconfdir=$ac_optarg ;;
1344
1345   -target | --target | --targe | --targ | --tar | --ta | --t)
1346     ac_prev=target_alias ;;
1347   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1348     target_alias=$ac_optarg ;;
1349
1350   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1351     verbose=yes ;;
1352
1353   -version | --version | --versio | --versi | --vers | -V)
1354     ac_init_version=: ;;
1355
1356   -with-* | --with-*)
1357     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1358     # Reject names that are not valid shell variable names.
1359     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360       as_fn_error "invalid package name: $ac_useropt"
1361     ac_useropt_orig=$ac_useropt
1362     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363     case $ac_user_opts in
1364       *"
1365 "with_$ac_useropt"
1366 "*) ;;
1367       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1368          ac_unrecognized_sep=', ';;
1369     esac
1370     eval with_$ac_useropt=\$ac_optarg ;;
1371
1372   -without-* | --without-*)
1373     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1374     # Reject names that are not valid shell variable names.
1375     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1376       as_fn_error "invalid package name: $ac_useropt"
1377     ac_useropt_orig=$ac_useropt
1378     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379     case $ac_user_opts in
1380       *"
1381 "with_$ac_useropt"
1382 "*) ;;
1383       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1384          ac_unrecognized_sep=', ';;
1385     esac
1386     eval with_$ac_useropt=no ;;
1387
1388   --x)
1389     # Obsolete; use --with-x.
1390     with_x=yes ;;
1391
1392   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1393   | --x-incl | --x-inc | --x-in | --x-i)
1394     ac_prev=x_includes ;;
1395   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1396   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1397     x_includes=$ac_optarg ;;
1398
1399   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1400   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1401     ac_prev=x_libraries ;;
1402   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1403   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1404     x_libraries=$ac_optarg ;;
1405
1406   -*) as_fn_error "unrecognized option: \`$ac_option'
1407 Try \`$0 --help' for more information."
1408     ;;
1409
1410   *=*)
1411     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1412     # Reject names that are not valid shell variable names.
1413     case $ac_envvar in #(
1414       '' | [0-9]* | *[!_$as_cr_alnum]* )
1415       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1416     esac
1417     eval $ac_envvar=\$ac_optarg
1418     export $ac_envvar ;;
1419
1420   *)
1421     # FIXME: should be removed in autoconf 3.0.
1422     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1423     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1424       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1425     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1426     ;;
1427
1428   esac
1429 done
1430
1431 if test -n "$ac_prev"; then
1432   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1433   as_fn_error "missing argument to $ac_option"
1434 fi
1435
1436 if test -n "$ac_unrecognized_opts"; then
1437   case $enable_option_checking in
1438     no) ;;
1439     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1440     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1441   esac
1442 fi
1443
1444 # Check all directory arguments for consistency.
1445 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1446                 datadir sysconfdir sharedstatedir localstatedir includedir \
1447                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1448                 libdir localedir mandir
1449 do
1450   eval ac_val=\$$ac_var
1451   # Remove trailing slashes.
1452   case $ac_val in
1453     */ )
1454       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1455       eval $ac_var=\$ac_val;;
1456   esac
1457   # Be sure to have absolute directory names.
1458   case $ac_val in
1459     [\\/$]* | ?:[\\/]* )  continue;;
1460     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461   esac
1462   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1463 done
1464
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1468 build=$build_alias
1469 host=$host_alias
1470 target=$target_alias
1471
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474   if test "x$build_alias" = x; then
1475     cross_compiling=maybe
1476     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477     If a cross compiler is detected then cross compile mode will be used." >&2
1478   elif test "x$build_alias" != "x$host_alias"; then
1479     cross_compiling=yes
1480   fi
1481 fi
1482
1483 ac_tool_prefix=
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1485
1486 test "$silent" = yes && exec 6>/dev/null
1487
1488
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492   as_fn_error "working directory cannot be determined"
1493 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1494   as_fn_error "pwd does not report name of working directory"
1495
1496
1497 # Find the source files, if location was not specified.
1498 if test -z "$srcdir"; then
1499   ac_srcdir_defaulted=yes
1500   # Try the directory containing this script, then the parent directory.
1501   ac_confdir=`$as_dirname -- "$as_myself" ||
1502 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1503          X"$as_myself" : 'X\(//\)[^/]' \| \
1504          X"$as_myself" : 'X\(//\)$' \| \
1505          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1506 $as_echo X"$as_myself" |
1507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1508             s//\1/
1509             q
1510           }
1511           /^X\(\/\/\)[^/].*/{
1512             s//\1/
1513             q
1514           }
1515           /^X\(\/\/\)$/{
1516             s//\1/
1517             q
1518           }
1519           /^X\(\/\).*/{
1520             s//\1/
1521             q
1522           }
1523           s/.*/./; q'`
1524   srcdir=$ac_confdir
1525   if test ! -r "$srcdir/$ac_unique_file"; then
1526     srcdir=..
1527   fi
1528 else
1529   ac_srcdir_defaulted=no
1530 fi
1531 if test ! -r "$srcdir/$ac_unique_file"; then
1532   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1533   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1534 fi
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 ac_abs_confdir=`(
1537         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1538         pwd)`
1539 # When building in place, set srcdir=.
1540 if test "$ac_abs_confdir" = "$ac_pwd"; then
1541   srcdir=.
1542 fi
1543 # Remove unnecessary trailing slashes from srcdir.
1544 # Double slashes in file names in object file debugging info
1545 # mess up M-x gdb in Emacs.
1546 case $srcdir in
1547 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1548 esac
1549 for ac_var in $ac_precious_vars; do
1550   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1551   eval ac_env_${ac_var}_value=\$${ac_var}
1552   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1553   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1554 done
1555
1556 #
1557 # Report the --help message.
1558 #
1559 if test "$ac_init_help" = "long"; then
1560   # Omit some internal or obsolete options to make the list less imposing.
1561   # This message is too long to be a string in the A/UX 3.1 sh.
1562   cat <<_ACEOF
1563 \`configure' configures this package to adapt to many kinds of systems.
1564
1565 Usage: $0 [OPTION]... [VAR=VALUE]...
1566
1567 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1568 VAR=VALUE.  See below for descriptions of some of the useful variables.
1569
1570 Defaults for the options are specified in brackets.
1571
1572 Configuration:
1573   -h, --help              display this help and exit
1574       --help=short        display options specific to this package
1575       --help=recursive    display the short help of all the included packages
1576   -V, --version           display version information and exit
1577   -q, --quiet, --silent   do not print \`checking...' messages
1578       --cache-file=FILE   cache test results in FILE [disabled]
1579   -C, --config-cache      alias for \`--cache-file=config.cache'
1580   -n, --no-create         do not create output files
1581       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1582
1583 Installation directories:
1584   --prefix=PREFIX         install architecture-independent files in PREFIX
1585                           [$ac_default_prefix]
1586   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1587                           [PREFIX]
1588
1589 By default, \`make install' will install all the files in
1590 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1591 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1592 for instance \`--prefix=\$HOME'.
1593
1594 For better control, use the options below.
1595
1596 Fine tuning of the installation directories:
1597   --bindir=DIR            user executables [EPREFIX/bin]
1598   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1599   --libexecdir=DIR        program executables [EPREFIX/libexec]
1600   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1601   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1602   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1603   --libdir=DIR            object code libraries [EPREFIX/lib]
1604   --includedir=DIR        C header files [PREFIX/include]
1605   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1606   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1607   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1608   --infodir=DIR           info documentation [DATAROOTDIR/info]
1609   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1610   --mandir=DIR            man documentation [DATAROOTDIR/man]
1611   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1612   --htmldir=DIR           html documentation [DOCDIR]
1613   --dvidir=DIR            dvi documentation [DOCDIR]
1614   --pdfdir=DIR            pdf documentation [DOCDIR]
1615   --psdir=DIR             ps documentation [DOCDIR]
1616 _ACEOF
1617
1618   cat <<\_ACEOF
1619
1620 Program names:
1621   --program-prefix=PREFIX            prepend PREFIX to installed program names
1622   --program-suffix=SUFFIX            append SUFFIX to installed program names
1623   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1624
1625 X features:
1626   --x-includes=DIR    X include files are in DIR
1627   --x-libraries=DIR   X library files are in DIR
1628
1629 System types:
1630   --build=BUILD     configure for building on BUILD [guessed]
1631   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1632   --target=TARGET   configure for building compilers for TARGET [HOST]
1633 _ACEOF
1634 fi
1635
1636 if test -n "$ac_init_help"; then
1637
1638   cat <<\_ACEOF
1639
1640 Optional Features:
1641   --disable-option-checking  ignore unrecognized --enable/--with options
1642   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1643   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1644   --enable-maintainer-mode  enable make rules and dependencies not useful
1645                           (and sometimes confusing) to the casual installer
1646   --enable-plugins        Enable support for plugins (defaults no)
1647   --disable-largefile     omit support for large files
1648   --disable-dependency-tracking  speeds up one-time build
1649   --enable-dependency-tracking   do not reject slow dependency extractors
1650   --enable-targets=TARGETS
1651                           alternative target configurations
1652   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1653   --disable-gdbcli        disable command-line interface (CLI)
1654   --disable-gdbmi         disable machine-interface (MI)
1655   --enable-tui            enable full-screen terminal user interface (TUI)
1656   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1657   --enable-profiling      enable profiling of GDB
1658   --disable-rpath         do not hardcode runtime library paths
1659   --enable-werror         treat compile warnings as errors
1660   --enable-build-warnings enable build-time compiler warnings if gcc is used
1661   --enable-gdb-build-warnings
1662                           enable GDB specific build-time compiler warnings if
1663                           gcc is used
1664   --enable-sim            link gdb with simulator
1665   --enable-multi-ice      build the multi-ice-gdb-server
1666   --enable-gdbserver      automatically build gdbserver (yes/no/auto, default
1667                           is auto)
1668
1669 Optional Packages:
1670   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1671   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1672   --with-separate-debug-dir=PATH
1673                           look for global separate debug info in this path
1674                           [LIBDIR/debug]
1675   --with-gdb-datadir=PATH look for global separate data files in this path
1676                           [DATADIR/gdb]
1677   --with-relocated-sources=PATH
1678                           automatically relocate this path for source files
1679   --with-auto-load-safe-path=PATH
1680                           directories safe to hold auto-loaded files
1681   --without-auto-load-safe-path
1682                           do not restrict auto-loaded files locations
1683   --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
1684   --with-curses           use the curses library instead of the termcap
1685                           library
1686   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1687   --with-bugurl=URL       Direct users to URL to report a bug
1688   --with-zlib             include zlib support (auto/yes/no) default=auto
1689   --with-libiconv-prefix=DIR
1690                           search for libiconv in DIR/include and DIR/lib
1691   --with-iconv-bin=PATH   specify where to find the iconv program
1692   --with-system-readline  use installed readline library
1693   --with-jit-reader-dir=PATH
1694                           directory to load the JIT readers from
1695   --with-expat            include expat support (auto/yes/no)
1696   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1697   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1698   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1699   --with-python[=PYTHON]  include python support
1700                           (auto/yes/no/<python-program>)
1701   --without-included-regex
1702                           don't use included regex; this is the default on
1703                           systems with version 2 of the GNU C library (use
1704                           with caution on other system)
1705   --with-sysroot[=DIR]    search for usr/lib et al within DIR
1706   --with-system-gdbinit=PATH
1707                           automatically load a system-wide gdbinit file
1708   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1709   --with-tk               directory containing tk configuration (tkConfig.sh)
1710   --with-x                use the X Window System
1711
1712 Some influential environment variables:
1713   CC          C compiler command
1714   CFLAGS      C compiler flags
1715   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1716               nonstandard directory <lib dir>
1717   LIBS        libraries to pass to the linker, e.g. -l<library>
1718   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1719               you have headers in a nonstandard directory <include dir>
1720   CPP         C preprocessor
1721   MAKEINFO    Parent configure detects if it is of sufficient version.
1722   MAKEINFOFLAGS
1723               Parameters for MAKEINFO.
1724   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1725               the first program found out of: `bison -y', `byacc', `yacc'.
1726   YFLAGS      The list of arguments that will be passed by default to $YACC.
1727               This script will default YFLAGS to the empty string to avoid a
1728               default value of `-d' given by some make applications.
1729   XMKMF       Path to xmkmf, Makefile generator for X Window System
1730
1731 Use these variables to override the choices made by `configure' or to help
1732 it to find libraries and programs with nonstandard names/locations.
1733
1734 Report bugs to the package provider.
1735 _ACEOF
1736 ac_status=$?
1737 fi
1738
1739 if test "$ac_init_help" = "recursive"; then
1740   # If there are subdirs, report their specific --help.
1741   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1742     test -d "$ac_dir" ||
1743       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1744       continue
1745     ac_builddir=.
1746
1747 case "$ac_dir" in
1748 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1749 *)
1750   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1751   # A ".." for each directory in $ac_dir_suffix.
1752   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1753   case $ac_top_builddir_sub in
1754   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1755   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1756   esac ;;
1757 esac
1758 ac_abs_top_builddir=$ac_pwd
1759 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1760 # for backward compatibility:
1761 ac_top_builddir=$ac_top_build_prefix
1762
1763 case $srcdir in
1764   .)  # We are building in place.
1765     ac_srcdir=.
1766     ac_top_srcdir=$ac_top_builddir_sub
1767     ac_abs_top_srcdir=$ac_pwd ;;
1768   [\\/]* | ?:[\\/]* )  # Absolute name.
1769     ac_srcdir=$srcdir$ac_dir_suffix;
1770     ac_top_srcdir=$srcdir
1771     ac_abs_top_srcdir=$srcdir ;;
1772   *) # Relative name.
1773     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1774     ac_top_srcdir=$ac_top_build_prefix$srcdir
1775     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1776 esac
1777 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1778
1779     cd "$ac_dir" || { ac_status=$?; continue; }
1780     # Check for guested configure.
1781     if test -f "$ac_srcdir/configure.gnu"; then
1782       echo &&
1783       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1784     elif test -f "$ac_srcdir/configure"; then
1785       echo &&
1786       $SHELL "$ac_srcdir/configure" --help=recursive
1787     else
1788       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1789     fi || ac_status=$?
1790     cd "$ac_pwd" || { ac_status=$?; break; }
1791   done
1792 fi
1793
1794 test -n "$ac_init_help" && exit $ac_status
1795 if $ac_init_version; then
1796   cat <<\_ACEOF
1797 configure
1798 generated by GNU Autoconf 2.64
1799
1800 Copyright (C) 2009 Free Software Foundation, Inc.
1801 This configure script is free software; the Free Software Foundation
1802 gives unlimited permission to copy, distribute and modify it.
1803 _ACEOF
1804   exit
1805 fi
1806
1807 ## ------------------------ ##
1808 ## Autoconf initialization. ##
1809 ## ------------------------ ##
1810
1811 # ac_fn_c_try_compile LINENO
1812 # --------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_c_try_compile ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   rm -f conftest.$ac_objext
1818   if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821   *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825   (eval "$ac_compile") 2>conftest.err
1826   ac_status=$?
1827   if test -s conftest.err; then
1828     grep -v '^ *+' conftest.err >conftest.er1
1829     cat conftest.er1 >&5
1830     mv -f conftest.er1 conftest.err
1831   fi
1832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833   test $ac_status = 0; } && {
1834          test -z "$ac_c_werror_flag" ||
1835          test ! -s conftest.err
1836        } && test -s conftest.$ac_objext; then :
1837   ac_retval=0
1838 else
1839   $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842         ac_retval=1
1843 fi
1844   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845   return $ac_retval
1846
1847 } # ac_fn_c_try_compile
1848
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_cpp ()
1853 {
1854   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855   if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 case "(($ac_try" in
1857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858   *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863   ac_status=$?
1864   if test -s conftest.err; then
1865     grep -v '^ *+' conftest.err >conftest.er1
1866     cat conftest.er1 >&5
1867     mv -f conftest.er1 conftest.err
1868   fi
1869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870   test $ac_status = 0; } >/dev/null && {
1871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872          test ! -s conftest.err
1873        }; then :
1874   ac_retval=0
1875 else
1876   $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879     ac_retval=1
1880 fi
1881   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882   return $ac_retval
1883
1884 } # ac_fn_c_try_cpp
1885
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1890 # accordingly.
1891 ac_fn_c_check_header_mongrel ()
1892 {
1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898   $as_echo_n "(cached) " >&6
1899 fi
1900 eval ac_res=\$$3
1901                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 else
1904   # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h.  */
1909 $4
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913   ac_header_compiler=yes
1914 else
1915   ac_header_compiler=no
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1920
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h.  */
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_cpp "$LINENO"; then :
1929   ac_header_preproc=yes
1930 else
1931   ac_header_preproc=no
1932 fi
1933 rm -f conftest.err conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1936
1937 # So?  What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939   yes:no: )
1940     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944     ;;
1945   no:yes:* )
1946     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1950     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1954     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956     ;;
1957 esac
1958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961   $as_echo_n "(cached) " >&6
1962 else
1963   eval "$3=\$ac_header_compiler"
1964 fi
1965 eval ac_res=\$$3
1966                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 fi
1969   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970
1971 } # ac_fn_c_check_header_mongrel
1972
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1977 ac_fn_c_try_run ()
1978 {
1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980   if { { ac_try="$ac_link"
1981 case "(($ac_try" in
1982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983   *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987   (eval "$ac_link") 2>&5
1988   ac_status=$?
1989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991   { { case "(($ac_try" in
1992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993   *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997   (eval "$ac_try") 2>&5
1998   ac_status=$?
1999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000   test $ac_status = 0; }; }; then :
2001   ac_retval=0
2002 else
2003   $as_echo "$as_me: program exited with status $ac_status" >&5
2004        $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007        ac_retval=$ac_status
2008 fi
2009   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011   return $ac_retval
2012
2013 } # ac_fn_c_try_run
2014
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025   $as_echo_n "(cached) " >&6
2026 else
2027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $4
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   eval "$3=yes"
2034 else
2035   eval "$3=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$3
2040                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
2044 } # ac_fn_c_check_header_compile
2045
2046 # ac_fn_c_try_link LINENO
2047 # -----------------------
2048 # Try to link conftest.$ac_ext, and return whether this succeeded.
2049 ac_fn_c_try_link ()
2050 {
2051   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052   rm -f conftest.$ac_objext conftest$ac_exeext
2053   if { { ac_try="$ac_link"
2054 case "(($ac_try" in
2055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056   *) ac_try_echo=$ac_try;;
2057 esac
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060   (eval "$ac_link") 2>conftest.err
2061   ac_status=$?
2062   if test -s conftest.err; then
2063     grep -v '^ *+' conftest.err >conftest.er1
2064     cat conftest.er1 >&5
2065     mv -f conftest.er1 conftest.err
2066   fi
2067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2068   test $ac_status = 0; } && {
2069          test -z "$ac_c_werror_flag" ||
2070          test ! -s conftest.err
2071        } && test -s conftest$ac_exeext && {
2072          test "$cross_compiling" = yes ||
2073          $as_test_x conftest$ac_exeext
2074        }; then :
2075   ac_retval=0
2076 else
2077   $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2079
2080         ac_retval=1
2081 fi
2082   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2083   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2084   # interfere with the next link command; also delete a directory that is
2085   # left behind by Apple's compiler.  We do this before executing the actions.
2086   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2087   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088   return $ac_retval
2089
2090 } # ac_fn_c_try_link
2091
2092 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2093 # --------------------------------------------
2094 # Tries to find the compile-time value of EXPR in a program that includes
2095 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2096 # computed
2097 ac_fn_c_compute_int ()
2098 {
2099   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100   if test "$cross_compiling" = yes; then
2101     # Depending upon the size, compute the lo and hi bounds.
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h.  */
2104 $4
2105 int
2106 main ()
2107 {
2108 static int test_array [1 - 2 * !(($2) >= 0)];
2109 test_array [0] = 0
2110
2111   ;
2112   return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116   ac_lo=0 ac_mid=0
2117   while :; do
2118     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h.  */
2120 $4
2121 int
2122 main ()
2123 {
2124 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2125 test_array [0] = 0
2126
2127   ;
2128   return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132   ac_hi=$ac_mid; break
2133 else
2134   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2135                         if test $ac_lo -le $ac_mid; then
2136                           ac_lo= ac_hi=
2137                           break
2138                         fi
2139                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142   done
2143 else
2144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h.  */
2146 $4
2147 int
2148 main ()
2149 {
2150 static int test_array [1 - 2 * !(($2) < 0)];
2151 test_array [0] = 0
2152
2153   ;
2154   return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158   ac_hi=-1 ac_mid=-1
2159   while :; do
2160     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h.  */
2162 $4
2163 int
2164 main ()
2165 {
2166 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2167 test_array [0] = 0
2168
2169   ;
2170   return 0;
2171 }
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174   ac_lo=$ac_mid; break
2175 else
2176   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2177                         if test $ac_mid -le $ac_hi; then
2178                           ac_lo= ac_hi=
2179                           break
2180                         fi
2181                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2182 fi
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184   done
2185 else
2186   ac_lo= ac_hi=
2187 fi
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 # Binary search between lo and hi bounds.
2192 while test "x$ac_lo" != "x$ac_hi"; do
2193   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h.  */
2196 $4
2197 int
2198 main ()
2199 {
2200 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2201 test_array [0] = 0
2202
2203   ;
2204   return 0;
2205 }
2206 _ACEOF
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208   ac_hi=$ac_mid
2209 else
2210   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2211 fi
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 done
2214 case $ac_lo in #((
2215 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2216 '') ac_retval=1 ;;
2217 esac
2218   else
2219     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h.  */
2221 $4
2222 static long int longval () { return $2; }
2223 static unsigned long int ulongval () { return $2; }
2224 #include <stdio.h>
2225 #include <stdlib.h>
2226 int
2227 main ()
2228 {
2229
2230   FILE *f = fopen ("conftest.val", "w");
2231   if (! f)
2232     return 1;
2233   if (($2) < 0)
2234     {
2235       long int i = longval ();
2236       if (i != ($2))
2237         return 1;
2238       fprintf (f, "%ld", i);
2239     }
2240   else
2241     {
2242       unsigned long int i = ulongval ();
2243       if (i != ($2))
2244         return 1;
2245       fprintf (f, "%lu", i);
2246     }
2247   /* Do not output a trailing newline, as this causes \r\n confusion
2248      on some platforms.  */
2249   return ferror (f) || fclose (f) != 0;
2250
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_run "$LINENO"; then :
2256   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2257 else
2258   ac_retval=1
2259 fi
2260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2261   conftest.$ac_objext conftest.beam conftest.$ac_ext
2262 rm -f conftest.val
2263
2264   fi
2265   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2266   return $ac_retval
2267
2268 } # ac_fn_c_compute_int
2269
2270 # ac_fn_c_check_decl LINENO SYMBOL VAR
2271 # ------------------------------------
2272 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2273 ac_fn_c_check_decl ()
2274 {
2275   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276   as_decl_name=`echo $2|sed 's/ *(.*//'`
2277   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2279 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281   $as_echo_n "(cached) " >&6
2282 else
2283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h.  */
2285 $4
2286 int
2287 main ()
2288 {
2289 #ifndef $as_decl_name
2290 #ifdef __cplusplus
2291   (void) $as_decl_use;
2292 #else
2293   (void) $as_decl_name;
2294 #endif
2295 #endif
2296
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302   eval "$3=yes"
2303 else
2304   eval "$3=no"
2305 fi
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 fi
2308 eval ac_res=\$$3
2309                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2312
2313 } # ac_fn_c_check_decl
2314
2315 # ac_fn_c_check_func LINENO FUNC VAR
2316 # ----------------------------------
2317 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2318 ac_fn_c_check_func ()
2319 {
2320   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2322 $as_echo_n "checking for $2... " >&6; }
2323 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2324   $as_echo_n "(cached) " >&6
2325 else
2326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h.  */
2328 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2330 #define $2 innocuous_$2
2331
2332 /* System header to define __stub macros and hopefully few prototypes,
2333     which can conflict with char $2 (); below.
2334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2335     <limits.h> exists even on freestanding compilers.  */
2336
2337 #ifdef __STDC__
2338 # include <limits.h>
2339 #else
2340 # include <assert.h>
2341 #endif
2342
2343 #undef $2
2344
2345 /* Override any GCC internal prototype to avoid an error.
2346    Use char because int might match the return type of a GCC
2347    builtin and then its argument prototype would still apply.  */
2348 #ifdef __cplusplus
2349 extern "C"
2350 #endif
2351 char $2 ();
2352 /* The GNU C library defines this for functions which it implements
2353     to always fail with ENOSYS.  Some functions are actually named
2354     something starting with __ and the normal name is an alias.  */
2355 #if defined __stub_$2 || defined __stub___$2
2356 choke me
2357 #endif
2358
2359 int
2360 main ()
2361 {
2362 return $2 ();
2363   ;
2364   return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_c_try_link "$LINENO"; then :
2368   eval "$3=yes"
2369 else
2370   eval "$3=no"
2371 fi
2372 rm -f core conftest.err conftest.$ac_objext \
2373     conftest$ac_exeext conftest.$ac_ext
2374 fi
2375 eval ac_res=\$$3
2376                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379
2380 } # ac_fn_c_check_func
2381
2382 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2383 # ----------------------------------------------------
2384 # Tries to find if the field MEMBER exists in type AGGR, after including
2385 # INCLUDES, setting cache variable VAR accordingly.
2386 ac_fn_c_check_member ()
2387 {
2388   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2390 $as_echo_n "checking for $2.$3... " >&6; }
2391 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2392   $as_echo_n "(cached) " >&6
2393 else
2394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h.  */
2396 $5
2397 int
2398 main ()
2399 {
2400 static $2 ac_aggr;
2401 if (ac_aggr.$3)
2402 return 0;
2403   ;
2404   return 0;
2405 }
2406 _ACEOF
2407 if ac_fn_c_try_compile "$LINENO"; then :
2408   eval "$4=yes"
2409 else
2410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h.  */
2412 $5
2413 int
2414 main ()
2415 {
2416 static $2 ac_aggr;
2417 if (sizeof ac_aggr.$3)
2418 return 0;
2419   ;
2420   return 0;
2421 }
2422 _ACEOF
2423 if ac_fn_c_try_compile "$LINENO"; then :
2424   eval "$4=yes"
2425 else
2426   eval "$4=no"
2427 fi
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 fi
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 fi
2432 eval ac_res=\$$4
2433                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2434 $as_echo "$ac_res" >&6; }
2435   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2436
2437 } # ac_fn_c_check_member
2438
2439 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2440 # -------------------------------------------
2441 # Tests whether TYPE exists after having included INCLUDES, setting cache
2442 # variable VAR accordingly.
2443 ac_fn_c_check_type ()
2444 {
2445   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449   $as_echo_n "(cached) " >&6
2450 else
2451   eval "$3=no"
2452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h.  */
2454 $4
2455 int
2456 main ()
2457 {
2458 if (sizeof ($2))
2459          return 0;
2460   ;
2461   return 0;
2462 }
2463 _ACEOF
2464 if ac_fn_c_try_compile "$LINENO"; then :
2465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h.  */
2467 $4
2468 int
2469 main ()
2470 {
2471 if (sizeof (($2)))
2472             return 0;
2473   ;
2474   return 0;
2475 }
2476 _ACEOF
2477 if ac_fn_c_try_compile "$LINENO"; then :
2478
2479 else
2480   eval "$3=yes"
2481 fi
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483 fi
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 fi
2486 eval ac_res=\$$3
2487                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2490
2491 } # ac_fn_c_check_type
2492 cat >config.log <<_ACEOF
2493 This file contains any messages produced by compilers while
2494 running configure, to aid debugging if configure makes a mistake.
2495
2496 It was created by $as_me, which was
2497 generated by GNU Autoconf 2.64.  Invocation command line was
2498
2499   $ $0 $@
2500
2501 _ACEOF
2502 exec 5>>config.log
2503 {
2504 cat <<_ASUNAME
2505 ## --------- ##
2506 ## Platform. ##
2507 ## --------- ##
2508
2509 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2510 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2511 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2512 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2513 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2514
2515 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2516 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2517
2518 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2519 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2520 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2521 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2522 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2523 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2524 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2525
2526 _ASUNAME
2527
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531   IFS=$as_save_IFS
2532   test -z "$as_dir" && as_dir=.
2533     $as_echo "PATH: $as_dir"
2534   done
2535 IFS=$as_save_IFS
2536
2537 } >&5
2538
2539 cat >&5 <<_ACEOF
2540
2541
2542 ## ----------- ##
2543 ## Core tests. ##
2544 ## ----------- ##
2545
2546 _ACEOF
2547
2548
2549 # Keep a trace of the command line.
2550 # Strip out --no-create and --no-recursion so they do not pile up.
2551 # Strip out --silent because we don't want to record it for future runs.
2552 # Also quote any args containing shell meta-characters.
2553 # Make two passes to allow for proper duplicate-argument suppression.
2554 ac_configure_args=
2555 ac_configure_args0=
2556 ac_configure_args1=
2557 ac_must_keep_next=false
2558 for ac_pass in 1 2
2559 do
2560   for ac_arg
2561   do
2562     case $ac_arg in
2563     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2564     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2565     | -silent | --silent | --silen | --sile | --sil)
2566       continue ;;
2567     *\'*)
2568       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2569     esac
2570     case $ac_pass in
2571     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2572     2)
2573       as_fn_append ac_configure_args1 " '$ac_arg'"
2574       if test $ac_must_keep_next = true; then
2575         ac_must_keep_next=false # Got value, back to normal.
2576       else
2577         case $ac_arg in
2578           *=* | --config-cache | -C | -disable-* | --disable-* \
2579           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2580           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2581           | -with-* | --with-* | -without-* | --without-* | --x)
2582             case "$ac_configure_args0 " in
2583               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2584             esac
2585             ;;
2586           -* ) ac_must_keep_next=true ;;
2587         esac
2588       fi
2589       as_fn_append ac_configure_args " '$ac_arg'"
2590       ;;
2591     esac
2592   done
2593 done
2594 { ac_configure_args0=; unset ac_configure_args0;}
2595 { ac_configure_args1=; unset ac_configure_args1;}
2596
2597 # When interrupted or exit'd, cleanup temporary files, and complete
2598 # config.log.  We remove comments because anyway the quotes in there
2599 # would cause problems or look ugly.
2600 # WARNING: Use '\'' to represent an apostrophe within the trap.
2601 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2602 trap 'exit_status=$?
2603   # Save into config.log some information that might help in debugging.
2604   {
2605     echo
2606
2607     cat <<\_ASBOX
2608 ## ---------------- ##
2609 ## Cache variables. ##
2610 ## ---------------- ##
2611 _ASBOX
2612     echo
2613     # The following way of writing the cache mishandles newlines in values,
2614 (
2615   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2616     eval ac_val=\$$ac_var
2617     case $ac_val in #(
2618     *${as_nl}*)
2619       case $ac_var in #(
2620       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2621 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2622       esac
2623       case $ac_var in #(
2624       _ | IFS | as_nl) ;; #(
2625       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2626       *) { eval $ac_var=; unset $ac_var;} ;;
2627       esac ;;
2628     esac
2629   done
2630   (set) 2>&1 |
2631     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2632     *${as_nl}ac_space=\ *)
2633       sed -n \
2634         "s/'\''/'\''\\\\'\'''\''/g;
2635           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2636       ;; #(
2637     *)
2638       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2639       ;;
2640     esac |
2641     sort
2642 )
2643     echo
2644
2645     cat <<\_ASBOX
2646 ## ----------------- ##
2647 ## Output variables. ##
2648 ## ----------------- ##
2649 _ASBOX
2650     echo
2651     for ac_var in $ac_subst_vars
2652     do
2653       eval ac_val=\$$ac_var
2654       case $ac_val in
2655       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2656       esac
2657       $as_echo "$ac_var='\''$ac_val'\''"
2658     done | sort
2659     echo
2660
2661     if test -n "$ac_subst_files"; then
2662       cat <<\_ASBOX
2663 ## ------------------- ##
2664 ## File substitutions. ##
2665 ## ------------------- ##
2666 _ASBOX
2667       echo
2668       for ac_var in $ac_subst_files
2669       do
2670         eval ac_val=\$$ac_var
2671         case $ac_val in
2672         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2673         esac
2674         $as_echo "$ac_var='\''$ac_val'\''"
2675       done | sort
2676       echo
2677     fi
2678
2679     if test -s confdefs.h; then
2680       cat <<\_ASBOX
2681 ## ----------- ##
2682 ## confdefs.h. ##
2683 ## ----------- ##
2684 _ASBOX
2685       echo
2686       cat confdefs.h
2687       echo
2688     fi
2689     test "$ac_signal" != 0 &&
2690       $as_echo "$as_me: caught signal $ac_signal"
2691     $as_echo "$as_me: exit $exit_status"
2692   } >&5
2693   rm -f core *.core core.conftest.* &&
2694     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2695     exit $exit_status
2696 ' 0
2697 for ac_signal in 1 2 13 15; do
2698   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2699 done
2700 ac_signal=0
2701
2702 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2703 rm -f -r conftest* confdefs.h
2704
2705 $as_echo "/* confdefs.h */" > confdefs.h
2706
2707 # Predefined preprocessor variables.
2708
2709 cat >>confdefs.h <<_ACEOF
2710 #define PACKAGE_NAME "$PACKAGE_NAME"
2711 _ACEOF
2712
2713 cat >>confdefs.h <<_ACEOF
2714 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2715 _ACEOF
2716
2717 cat >>confdefs.h <<_ACEOF
2718 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2719 _ACEOF
2720
2721 cat >>confdefs.h <<_ACEOF
2722 #define PACKAGE_STRING "$PACKAGE_STRING"
2723 _ACEOF
2724
2725 cat >>confdefs.h <<_ACEOF
2726 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2727 _ACEOF
2728
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE_URL "$PACKAGE_URL"
2731 _ACEOF
2732
2733
2734 # Let the site file select an alternate cache file if it wants to.
2735 # Prefer an explicitly selected file to automatically selected ones.
2736 ac_site_file1=NONE
2737 ac_site_file2=NONE
2738 if test -n "$CONFIG_SITE"; then
2739   ac_site_file1=$CONFIG_SITE
2740 elif test "x$prefix" != xNONE; then
2741   ac_site_file1=$prefix/share/config.site
2742   ac_site_file2=$prefix/etc/config.site
2743 else
2744   ac_site_file1=$ac_default_prefix/share/config.site
2745   ac_site_file2=$ac_default_prefix/etc/config.site
2746 fi
2747 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2748 do
2749   test "x$ac_site_file" = xNONE && continue
2750   if test -r "$ac_site_file"; then
2751     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2752 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2753     sed 's/^/| /' "$ac_site_file" >&5
2754     . "$ac_site_file"
2755   fi
2756 done
2757
2758 if test -r "$cache_file"; then
2759   # Some versions of bash will fail to source /dev/null (special
2760   # files actually), so we avoid doing that.
2761   if test -f "$cache_file"; then
2762     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2763 $as_echo "$as_me: loading cache $cache_file" >&6;}
2764     case $cache_file in
2765       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2766       *)                      . "./$cache_file";;
2767     esac
2768   fi
2769 else
2770   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2771 $as_echo "$as_me: creating cache $cache_file" >&6;}
2772   >$cache_file
2773 fi
2774
2775 gl_header_list="$gl_header_list stdint.h"
2776 gl_header_list="$gl_header_list wchar.h"
2777 gl_header_list="$gl_header_list inttypes.h"
2778 gl_header_list="$gl_header_list sys/mman.h"
2779 gl_func_list="$gl_func_list mprotect"
2780 gl_func_list="$gl_func_list memchr"
2781 gl_header_list="$gl_header_list stddef.h"
2782 gl_header_list="$gl_header_list string.h"
2783 # Check that the precious variables saved in the cache have kept the same
2784 # value.
2785 ac_cache_corrupted=false
2786 for ac_var in $ac_precious_vars; do
2787   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2788   eval ac_new_set=\$ac_env_${ac_var}_set
2789   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2790   eval ac_new_val=\$ac_env_${ac_var}_value
2791   case $ac_old_set,$ac_new_set in
2792     set,)
2793       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2794 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2795       ac_cache_corrupted=: ;;
2796     ,set)
2797       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2798 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2799       ac_cache_corrupted=: ;;
2800     ,);;
2801     *)
2802       if test "x$ac_old_val" != "x$ac_new_val"; then
2803         # differences in whitespace do not lead to failure.
2804         ac_old_val_w=`echo x $ac_old_val`
2805         ac_new_val_w=`echo x $ac_new_val`
2806         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2807           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2808 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2809           ac_cache_corrupted=:
2810         else
2811           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2812 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2813           eval $ac_var=\$ac_old_val
2814         fi
2815         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2816 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2817         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2818 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2819       fi;;
2820   esac
2821   # Pass precious variables to config.status.
2822   if test "$ac_new_set" = set; then
2823     case $ac_new_val in
2824     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2825     *) ac_arg=$ac_var=$ac_new_val ;;
2826     esac
2827     case " $ac_configure_args " in
2828       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2829       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2830     esac
2831   fi
2832 done
2833 if $ac_cache_corrupted; then
2834   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2837 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2838   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2839 fi
2840 ## -------------------- ##
2841 ## Main body of script. ##
2842 ## -------------------- ##
2843
2844 ac_ext=c
2845 ac_cpp='$CPP $CPPFLAGS'
2846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849
2850
2851
2852
2853
2854 ac_config_headers="$ac_config_headers config.h:config.in"
2855
2856
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2858 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2859     # Check whether --enable-maintainer-mode was given.
2860 if test "${enable_maintainer_mode+set}" = set; then :
2861   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2862 else
2863   USE_MAINTAINER_MODE=no
2864 fi
2865
2866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2867 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2868    if test $USE_MAINTAINER_MODE = yes; then
2869   MAINTAINER_MODE_TRUE=
2870   MAINTAINER_MODE_FALSE='#'
2871 else
2872   MAINTAINER_MODE_TRUE='#'
2873   MAINTAINER_MODE_FALSE=
2874 fi
2875
2876   MAINT=$MAINTAINER_MODE_TRUE
2877
2878
2879
2880 ac_ext=c
2881 ac_cpp='$CPP $CPPFLAGS'
2882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 if test -n "$ac_tool_prefix"; then
2886   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2887 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_CC+set}" = set; then :
2891   $as_echo_n "(cached) " >&6
2892 else
2893   if test -n "$CC"; then
2894   ac_cv_prog_CC="$CC" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899   IFS=$as_save_IFS
2900   test -z "$as_dir" && as_dir=.
2901     for ac_exec_ext in '' $ac_executable_extensions; do
2902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905     break 2
2906   fi
2907 done
2908   done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 CC=$ac_cv_prog_CC
2914 if test -n "$CC"; then
2915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2916 $as_echo "$CC" >&6; }
2917 else
2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922
2923 fi
2924 if test -z "$ac_cv_prog_CC"; then
2925   ac_ct_CC=$CC
2926   # Extract the first word of "gcc", so it can be a program name with args.
2927 set dummy gcc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2931   $as_echo_n "(cached) " >&6
2932 else
2933   if test -n "$ac_ct_CC"; then
2934   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939   IFS=$as_save_IFS
2940   test -z "$as_dir" && as_dir=.
2941     for ac_exec_ext in '' $ac_executable_extensions; do
2942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943     ac_cv_prog_ac_ct_CC="gcc"
2944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945     break 2
2946   fi
2947 done
2948   done
2949 IFS=$as_save_IFS
2950
2951 fi
2952 fi
2953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2954 if test -n "$ac_ct_CC"; then
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2956 $as_echo "$ac_ct_CC" >&6; }
2957 else
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962   if test "x$ac_ct_CC" = x; then
2963     CC=""
2964   else
2965     case $cross_compiling:$ac_tool_warned in
2966 yes:)
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2969 ac_tool_warned=yes ;;
2970 esac
2971     CC=$ac_ct_CC
2972   fi
2973 else
2974   CC="$ac_cv_prog_CC"
2975 fi
2976
2977 if test -z "$CC"; then
2978           if test -n "$ac_tool_prefix"; then
2979     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}cc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if test "${ac_cv_prog_CC+set}" = set; then :
2984   $as_echo_n "(cached) " >&6
2985 else
2986   if test -n "$CC"; then
2987   ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992   IFS=$as_save_IFS
2993   test -z "$as_dir" && as_dir=.
2994     for ac_exec_ext in '' $ac_executable_extensions; do
2995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996     ac_cv_prog_CC="${ac_tool_prefix}cc"
2997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998     break 2
2999   fi
3000 done
3001   done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3010 else
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015
3016   fi
3017 fi
3018 if test -z "$CC"; then
3019   # Extract the first word of "cc", so it can be a program name with args.
3020 set dummy cc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_CC+set}" = set; then :
3024   $as_echo_n "(cached) " >&6
3025 else
3026   if test -n "$CC"; then
3027   ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029   ac_prog_rejected=no
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033   IFS=$as_save_IFS
3034   test -z "$as_dir" && as_dir=.
3035     for ac_exec_ext in '' $ac_executable_extensions; do
3036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3038        ac_prog_rejected=yes
3039        continue
3040      fi
3041     ac_cv_prog_CC="cc"
3042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043     break 2
3044   fi
3045 done
3046   done
3047 IFS=$as_save_IFS
3048
3049 if test $ac_prog_rejected = yes; then
3050   # We found a bogon in the path, so make sure we never use it.
3051   set dummy $ac_cv_prog_CC
3052   shift
3053   if test $# != 0; then
3054     # We chose a different compiler from the bogus one.
3055     # However, it has the same basename, so the bogon will be chosen
3056     # first if we set CC to just the basename; use the full file name.
3057     shift
3058     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3059   fi
3060 fi
3061 fi
3062 fi
3063 CC=$ac_cv_prog_CC
3064 if test -n "$CC"; then
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3067 else
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072
3073 fi
3074 if test -z "$CC"; then
3075   if test -n "$ac_tool_prefix"; then
3076   for ac_prog in cl.exe
3077   do
3078     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if test "${ac_cv_prog_CC+set}" = set; then :
3083   $as_echo_n "(cached) " >&6
3084 else
3085   if test -n "$CC"; then
3086   ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091   IFS=$as_save_IFS
3092   test -z "$as_dir" && as_dir=.
3093     for ac_exec_ext in '' $ac_executable_extensions; do
3094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100   done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 CC=$ac_cv_prog_CC
3106 if test -n "$CC"; then
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3109 else
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114
3115     test -n "$CC" && break
3116   done
3117 fi
3118 if test -z "$CC"; then
3119   ac_ct_CC=$CC
3120   for ac_prog in cl.exe
3121 do
3122   # Extract the first word of "$ac_prog", so it can be a program name with args.
3123 set dummy $ac_prog; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3127   $as_echo_n "(cached) " >&6
3128 else
3129   if test -n "$ac_ct_CC"; then
3130   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135   IFS=$as_save_IFS
3136   test -z "$as_dir" && as_dir=.
3137     for ac_exec_ext in '' $ac_executable_extensions; do
3138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139     ac_cv_prog_ac_ct_CC="$ac_prog"
3140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141     break 2
3142   fi
3143 done
3144   done
3145 IFS=$as_save_IFS
3146
3147 fi
3148 fi
3149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3152 $as_echo "$ac_ct_CC" >&6; }
3153 else
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 fi
3157
3158
3159   test -n "$ac_ct_CC" && break
3160 done
3161
3162   if test "x$ac_ct_CC" = x; then
3163     CC=""
3164   else
3165     case $cross_compiling:$ac_tool_warned in
3166 yes:)
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169 ac_tool_warned=yes ;;
3170 esac
3171     CC=$ac_ct_CC
3172   fi
3173 fi
3174
3175 fi
3176
3177
3178 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180 as_fn_error "no acceptable C compiler found in \$PATH
3181 See \`config.log' for more details." "$LINENO" 5; }
3182
3183 # Provide some information about the compiler.
3184 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3185 set X $ac_compile
3186 ac_compiler=$2
3187 for ac_option in --version -v -V -qversion; do
3188   { { ac_try="$ac_compiler $ac_option >&5"
3189 case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3196   ac_status=$?
3197   if test -s conftest.err; then
3198     sed '10a\
3199 ... rest of stderr output deleted ...
3200          10q' conftest.err >conftest.er1
3201     cat conftest.er1 >&5
3202     rm -f conftest.er1 conftest.err
3203   fi
3204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205   test $ac_status = 0; }
3206 done
3207
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h.  */
3210
3211 int
3212 main ()
3213 {
3214
3215   ;
3216   return 0;
3217 }
3218 _ACEOF
3219 ac_clean_files_save=$ac_clean_files
3220 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3221 # Try to create an executable without -o first, disregard a.out.
3222 # It will help us diagnose broken compilers, and finding out an intuition
3223 # of exeext.
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3225 $as_echo_n "checking for C compiler default output file name... " >&6; }
3226 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3227
3228 # The possible output files:
3229 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3230
3231 ac_rmfiles=
3232 for ac_file in $ac_files
3233 do
3234   case $ac_file in
3235     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3236     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3237   esac
3238 done
3239 rm -f $ac_rmfiles
3240
3241 if { { ac_try="$ac_link_default"
3242 case "(($ac_try" in
3243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244   *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248   (eval "$ac_link_default") 2>&5
3249   ac_status=$?
3250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251   test $ac_status = 0; }; then :
3252   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3253 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3254 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3255 # so that the user can short-circuit this test for compilers unknown to
3256 # Autoconf.
3257 for ac_file in $ac_files ''
3258 do
3259   test -f "$ac_file" || continue
3260   case $ac_file in
3261     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3262         ;;
3263     [ab].out )
3264         # We found the default executable, but exeext='' is most
3265         # certainly right.
3266         break;;
3267     *.* )
3268         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3269         then :; else
3270            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3271         fi
3272         # We set ac_cv_exeext here because the later test for it is not
3273         # safe: cross compilers may not add the suffix if given an `-o'
3274         # argument, so we may need to know it at that point already.
3275         # Even if this section looks crufty: it has the advantage of
3276         # actually working.
3277         break;;
3278     * )
3279         break;;
3280   esac
3281 done
3282 test "$ac_cv_exeext" = no && ac_cv_exeext=
3283
3284 else
3285   ac_file=''
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3288 $as_echo "$ac_file" >&6; }
3289 if test -z "$ac_file"; then :
3290   $as_echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 { as_fn_set_status 77
3296 as_fn_error "C compiler cannot create executables
3297 See \`config.log' for more details." "$LINENO" 5; }; }
3298 fi
3299 ac_exeext=$ac_cv_exeext
3300
3301 # Check that the compiler produces executables we can run.  If not, either
3302 # the compiler is broken, or we cross compile.
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3304 $as_echo_n "checking whether the C compiler works... " >&6; }
3305 # If not cross compiling, check that we can run a simple program.
3306 if test "$cross_compiling" != yes; then
3307   if { ac_try='./$ac_file'
3308   { { case "(($ac_try" in
3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310   *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314   (eval "$ac_try") 2>&5
3315   ac_status=$?
3316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317   test $ac_status = 0; }; }; then
3318     cross_compiling=no
3319   else
3320     if test "$cross_compiling" = maybe; then
3321         cross_compiling=yes
3322     else
3323         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error "cannot run C compiled programs.
3326 If you meant to cross compile, use \`--host'.
3327 See \`config.log' for more details." "$LINENO" 5; }
3328     fi
3329   fi
3330 fi
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332 $as_echo "yes" >&6; }
3333
3334 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3335 ac_clean_files=$ac_clean_files_save
3336 # Check that the compiler produces executables we can run.  If not, either
3337 # the compiler is broken, or we cross compile.
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3339 $as_echo_n "checking whether we are cross compiling... " >&6; }
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3341 $as_echo "$cross_compiling" >&6; }
3342
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3344 $as_echo_n "checking for suffix of executables... " >&6; }
3345 if { { ac_try="$ac_link"
3346 case "(($ac_try" in
3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348   *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 $as_echo "$ac_try_echo"; } >&5
3352   (eval "$ac_link") 2>&5
3353   ac_status=$?
3354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355   test $ac_status = 0; }; then :
3356   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3357 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3358 # work properly (i.e., refer to `conftest.exe'), while it won't with
3359 # `rm'.
3360 for ac_file in conftest.exe conftest conftest.*; do
3361   test -f "$ac_file" || continue
3362   case $ac_file in
3363     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365           break;;
3366     * ) break;;
3367   esac
3368 done
3369 else
3370   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error "cannot compute suffix of executables: cannot compile and link
3373 See \`config.log' for more details." "$LINENO" 5; }
3374 fi
3375 rm -f conftest$ac_cv_exeext
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3377 $as_echo "$ac_cv_exeext" >&6; }
3378
3379 rm -f conftest.$ac_ext
3380 EXEEXT=$ac_cv_exeext
3381 ac_exeext=$EXEEXT
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3383 $as_echo_n "checking for suffix of object files... " >&6; }
3384 if test "${ac_cv_objext+set}" = set; then :
3385   $as_echo_n "(cached) " >&6
3386 else
3387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h.  */
3389
3390 int
3391 main ()
3392 {
3393
3394   ;
3395   return 0;
3396 }
3397 _ACEOF
3398 rm -f conftest.o conftest.obj
3399 if { { ac_try="$ac_compile"
3400 case "(($ac_try" in
3401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402   *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406   (eval "$ac_compile") 2>&5
3407   ac_status=$?
3408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409   test $ac_status = 0; }; then :
3410   for ac_file in conftest.o conftest.obj conftest.*; do
3411   test -f "$ac_file" || continue;
3412   case $ac_file in
3413     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3414     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3415        break;;
3416   esac
3417 done
3418 else
3419   $as_echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424 as_fn_error "cannot compute suffix of object files: cannot compile
3425 See \`config.log' for more details." "$LINENO" 5; }
3426 fi
3427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3428 fi
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3430 $as_echo "$ac_cv_objext" >&6; }
3431 OBJEXT=$ac_cv_objext
3432 ac_objext=$OBJEXT
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3434 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3435 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3436   $as_echo_n "(cached) " >&6
3437 else
3438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h.  */
3440
3441 int
3442 main ()
3443 {
3444 #ifndef __GNUC__
3445        choke me
3446 #endif
3447
3448   ;
3449   return 0;
3450 }
3451 _ACEOF
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453   ac_compiler_gnu=yes
3454 else
3455   ac_compiler_gnu=no
3456 fi
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3459
3460 fi
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3462 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3463 if test $ac_compiler_gnu = yes; then
3464   GCC=yes
3465 else
3466   GCC=
3467 fi
3468 ac_test_CFLAGS=${CFLAGS+set}
3469 ac_save_CFLAGS=$CFLAGS
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3471 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3472 if test "${ac_cv_prog_cc_g+set}" = set; then :
3473   $as_echo_n "(cached) " >&6
3474 else
3475   ac_save_c_werror_flag=$ac_c_werror_flag
3476    ac_c_werror_flag=yes
3477    ac_cv_prog_cc_g=no
3478    CFLAGS="-g"
3479    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h.  */
3481
3482 int
3483 main ()
3484 {
3485
3486   ;
3487   return 0;
3488 }
3489 _ACEOF
3490 if ac_fn_c_try_compile "$LINENO"; then :
3491   ac_cv_prog_cc_g=yes
3492 else
3493   CFLAGS=""
3494       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h.  */
3496
3497 int
3498 main ()
3499 {
3500
3501   ;
3502   return 0;
3503 }
3504 _ACEOF
3505 if ac_fn_c_try_compile "$LINENO"; then :
3506
3507 else
3508   ac_c_werror_flag=$ac_save_c_werror_flag
3509          CFLAGS="-g"
3510          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h.  */
3512
3513 int
3514 main ()
3515 {
3516
3517   ;
3518   return 0;
3519 }
3520 _ACEOF
3521 if ac_fn_c_try_compile "$LINENO"; then :
3522   ac_cv_prog_cc_g=yes
3523 fi
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 fi
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 fi
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529    ac_c_werror_flag=$ac_save_c_werror_flag
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3532 $as_echo "$ac_cv_prog_cc_g" >&6; }
3533 if test "$ac_test_CFLAGS" = set; then
3534   CFLAGS=$ac_save_CFLAGS
3535 elif test $ac_cv_prog_cc_g = yes; then
3536   if test "$GCC" = yes; then
3537     CFLAGS="-g -O2"
3538   else
3539     CFLAGS="-g"
3540   fi
3541 else
3542   if test "$GCC" = yes; then
3543     CFLAGS="-O2"
3544   else
3545     CFLAGS=
3546   fi
3547 fi
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3549 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3550 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3551   $as_echo_n "(cached) " >&6
3552 else
3553   ac_cv_prog_cc_c89=no
3554 ac_save_CC=$CC
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h.  */
3557 #include <stdarg.h>
3558 #include <stdio.h>
3559 #include <sys/types.h>
3560 #include <sys/stat.h>
3561 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3562 struct buf { int x; };
3563 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3564 static char *e (p, i)
3565      char **p;
3566      int i;
3567 {
3568   return p[i];
3569 }
3570 static char *f (char * (*g) (char **, int), char **p, ...)
3571 {
3572   char *s;
3573   va_list v;
3574   va_start (v,p);
3575   s = g (p, va_arg (v,int));
3576   va_end (v);
3577   return s;
3578 }
3579
3580 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3581    function prototypes and stuff, but not '\xHH' hex character constants.
3582    These don't provoke an error unfortunately, instead are silently treated
3583    as 'x'.  The following induces an error, until -std is added to get
3584    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3585    array size at least.  It's necessary to write '\x00'==0 to get something
3586    that's true only with -std.  */
3587 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3588
3589 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3590    inside strings and character constants.  */
3591 #define FOO(x) 'x'
3592 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3593
3594 int test (int i, double x);
3595 struct s1 {int (*f) (int a);};
3596 struct s2 {int (*f) (double a);};
3597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3598 int argc;
3599 char **argv;
3600 int
3601 main ()
3602 {
3603 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3609         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3610 do
3611   CC="$ac_save_CC $ac_arg"
3612   if ac_fn_c_try_compile "$LINENO"; then :
3613   ac_cv_prog_cc_c89=$ac_arg
3614 fi
3615 rm -f core conftest.err conftest.$ac_objext
3616   test "x$ac_cv_prog_cc_c89" != "xno" && break
3617 done
3618 rm -f conftest.$ac_ext
3619 CC=$ac_save_CC
3620
3621 fi
3622 # AC_CACHE_VAL
3623 case "x$ac_cv_prog_cc_c89" in
3624   x)
3625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3626 $as_echo "none needed" >&6; } ;;
3627   xno)
3628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3629 $as_echo "unsupported" >&6; } ;;
3630   *)
3631     CC="$CC $ac_cv_prog_cc_c89"
3632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3633 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3634 esac
3635 if test "x$ac_cv_prog_cc_c89" != xno; then :
3636
3637 fi
3638
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
3645 ac_aux_dir=
3646 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3647   for ac_t in install-sh install.sh shtool; do
3648     if test -f "$ac_dir/$ac_t"; then
3649       ac_aux_dir=$ac_dir
3650       ac_install_sh="$ac_aux_dir/$ac_t -c"
3651       break 2
3652     fi
3653   done
3654 done
3655 if test -z "$ac_aux_dir"; then
3656   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3657 fi
3658
3659 # These three variables are undocumented and unsupported,
3660 # and are intended to be withdrawn in a future Autoconf release.
3661 # They can cause serious problems if a builder's source tree is in a directory
3662 # whose full name contains unusual characters.
3663 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3664 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3665 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3666
3667
3668 # Make sure we can run config.sub.
3669 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3670   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3671
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3673 $as_echo_n "checking build system type... " >&6; }
3674 if test "${ac_cv_build+set}" = set; then :
3675   $as_echo_n "(cached) " >&6
3676 else
3677   ac_build_alias=$build_alias
3678 test "x$ac_build_alias" = x &&
3679   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3680 test "x$ac_build_alias" = x &&
3681   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3682 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3683   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3684
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3687 $as_echo "$ac_cv_build" >&6; }
3688 case $ac_cv_build in
3689 *-*-*) ;;
3690 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3691 esac
3692 build=$ac_cv_build
3693 ac_save_IFS=$IFS; IFS='-'
3694 set x $ac_cv_build
3695 shift
3696 build_cpu=$1
3697 build_vendor=$2
3698 shift; shift
3699 # Remember, the first character of IFS is used to create $*,
3700 # except with old shells:
3701 build_os=$*
3702 IFS=$ac_save_IFS
3703 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3704
3705
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3707 $as_echo_n "checking host system type... " >&6; }
3708 if test "${ac_cv_host+set}" = set; then :
3709   $as_echo_n "(cached) " >&6
3710 else
3711   if test "x$host_alias" = x; then
3712   ac_cv_host=$ac_cv_build
3713 else
3714   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3715     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3716 fi
3717
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3720 $as_echo "$ac_cv_host" >&6; }
3721 case $ac_cv_host in
3722 *-*-*) ;;
3723 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3724 esac
3725 host=$ac_cv_host
3726 ac_save_IFS=$IFS; IFS='-'
3727 set x $ac_cv_host
3728 shift
3729 host_cpu=$1
3730 host_vendor=$2
3731 shift; shift
3732 # Remember, the first character of IFS is used to create $*,
3733 # except with old shells:
3734 host_os=$*
3735 IFS=$ac_save_IFS
3736 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3737
3738
3739
3740 ac_ext=c
3741 ac_cpp='$CPP $CPPFLAGS'
3742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3746 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3747 # On Suns, sometimes $CPP names a directory.
3748 if test -n "$CPP" && test -d "$CPP"; then
3749   CPP=
3750 fi
3751 if test -z "$CPP"; then
3752   if test "${ac_cv_prog_CPP+set}" = set; then :
3753   $as_echo_n "(cached) " >&6
3754 else
3755       # Double quotes because CPP needs to be expanded
3756     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3757     do
3758       ac_preproc_ok=false
3759 for ac_c_preproc_warn_flag in '' yes
3760 do
3761   # Use a header file that comes with gcc, so configuring glibc
3762   # with a fresh cross-compiler works.
3763   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3764   # <limits.h> exists even on freestanding compilers.
3765   # On the NeXT, cc -E runs the code through the compiler's parser,
3766   # not just through cpp. "Syntax error" is here to catch this case.
3767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h.  */
3769 #ifdef __STDC__
3770 # include <limits.h>
3771 #else
3772 # include <assert.h>
3773 #endif
3774                      Syntax error
3775 _ACEOF
3776 if ac_fn_c_try_cpp "$LINENO"; then :
3777
3778 else
3779   # Broken: fails on valid input.
3780 continue
3781 fi
3782 rm -f conftest.err conftest.$ac_ext
3783
3784   # OK, works on sane cases.  Now check whether nonexistent headers
3785   # can be detected and how.
3786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h.  */
3788 #include <ac_nonexistent.h>
3789 _ACEOF
3790 if ac_fn_c_try_cpp "$LINENO"; then :
3791   # Broken: success on invalid input.
3792 continue
3793 else
3794   # Passes both tests.
3795 ac_preproc_ok=:
3796 break
3797 fi
3798 rm -f conftest.err conftest.$ac_ext
3799
3800 done
3801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3802 rm -f conftest.err conftest.$ac_ext
3803 if $ac_preproc_ok; then :
3804   break
3805 fi
3806
3807     done
3808     ac_cv_prog_CPP=$CPP
3809
3810 fi
3811   CPP=$ac_cv_prog_CPP
3812 else
3813   ac_cv_prog_CPP=$CPP
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3816 $as_echo "$CPP" >&6; }
3817 ac_preproc_ok=false
3818 for ac_c_preproc_warn_flag in '' yes
3819 do
3820   # Use a header file that comes with gcc, so configuring glibc
3821   # with a fresh cross-compiler works.
3822   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3823   # <limits.h> exists even on freestanding compilers.
3824   # On the NeXT, cc -E runs the code through the compiler's parser,
3825   # not just through cpp. "Syntax error" is here to catch this case.
3826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h.  */
3828 #ifdef __STDC__
3829 # include <limits.h>
3830 #else
3831 # include <assert.h>
3832 #endif
3833                      Syntax error
3834 _ACEOF
3835 if ac_fn_c_try_cpp "$LINENO"; then :
3836
3837 else
3838   # Broken: fails on valid input.
3839 continue
3840 fi
3841 rm -f conftest.err conftest.$ac_ext
3842
3843   # OK, works on sane cases.  Now check whether nonexistent headers
3844   # can be detected and how.
3845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h.  */
3847 #include <ac_nonexistent.h>
3848 _ACEOF
3849 if ac_fn_c_try_cpp "$LINENO"; then :
3850   # Broken: success on invalid input.
3851 continue
3852 else
3853   # Passes both tests.
3854 ac_preproc_ok=:
3855 break
3856 fi
3857 rm -f conftest.err conftest.$ac_ext
3858
3859 done
3860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3861 rm -f conftest.err conftest.$ac_ext
3862 if $ac_preproc_ok; then :
3863
3864 else
3865   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3868 See \`config.log' for more details." "$LINENO" 5; }
3869 fi
3870
3871 ac_ext=c
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876
3877
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3879 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3880 if test "${ac_cv_path_GREP+set}" = set; then :
3881   $as_echo_n "(cached) " >&6
3882 else
3883   if test -z "$GREP"; then
3884   ac_path_GREP_found=false
3885   # Loop through the user's path and test for each of PROGNAME-LIST
3886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3888 do
3889   IFS=$as_save_IFS
3890   test -z "$as_dir" && as_dir=.
3891     for ac_prog in grep ggrep; do
3892     for ac_exec_ext in '' $ac_executable_extensions; do
3893       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3894       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3895 # Check for GNU ac_path_GREP and select it if it is found.
3896   # Check for GNU $ac_path_GREP
3897 case `"$ac_path_GREP" --version 2>&1` in
3898 *GNU*)
3899   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3900 *)
3901   ac_count=0
3902   $as_echo_n 0123456789 >"conftest.in"
3903   while :
3904   do
3905     cat "conftest.in" "conftest.in" >"conftest.tmp"
3906     mv "conftest.tmp" "conftest.in"
3907     cp "conftest.in" "conftest.nl"
3908     $as_echo 'GREP' >> "conftest.nl"
3909     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3910     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3911     as_fn_arith $ac_count + 1 && ac_count=$as_val
3912     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3913       # Best one so far, save it but keep looking for a better one
3914       ac_cv_path_GREP="$ac_path_GREP"
3915       ac_path_GREP_max=$ac_count
3916     fi
3917     # 10*(2^10) chars as input seems more than enough
3918     test $ac_count -gt 10 && break
3919   done
3920   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3921 esac
3922
3923       $ac_path_GREP_found && break 3
3924     done
3925   done
3926   done
3927 IFS=$as_save_IFS
3928   if test -z "$ac_cv_path_GREP"; then
3929     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3930   fi
3931 else
3932   ac_cv_path_GREP=$GREP
3933 fi
3934
3935 fi
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3937 $as_echo "$ac_cv_path_GREP" >&6; }
3938  GREP="$ac_cv_path_GREP"
3939
3940
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3942 $as_echo_n "checking for egrep... " >&6; }
3943 if test "${ac_cv_path_EGREP+set}" = set; then :
3944   $as_echo_n "(cached) " >&6
3945 else
3946   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3947    then ac_cv_path_EGREP="$GREP -E"
3948    else
3949      if test -z "$EGREP"; then
3950   ac_path_EGREP_found=false
3951   # Loop through the user's path and test for each of PROGNAME-LIST
3952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3954 do
3955   IFS=$as_save_IFS
3956   test -z "$as_dir" && as_dir=.
3957     for ac_prog in egrep; do
3958     for ac_exec_ext in '' $ac_executable_extensions; do
3959       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3960       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3961 # Check for GNU ac_path_EGREP and select it if it is found.
3962   # Check for GNU $ac_path_EGREP
3963 case `"$ac_path_EGREP" --version 2>&1` in
3964 *GNU*)
3965   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3966 *)
3967   ac_count=0
3968   $as_echo_n 0123456789 >"conftest.in"
3969   while :
3970   do
3971     cat "conftest.in" "conftest.in" >"conftest.tmp"
3972     mv "conftest.tmp" "conftest.in"
3973     cp "conftest.in" "conftest.nl"
3974     $as_echo 'EGREP' >> "conftest.nl"
3975     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3976     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3977     as_fn_arith $ac_count + 1 && ac_count=$as_val
3978     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3979       # Best one so far, save it but keep looking for a better one
3980       ac_cv_path_EGREP="$ac_path_EGREP"
3981       ac_path_EGREP_max=$ac_count
3982     fi
3983     # 10*(2^10) chars as input seems more than enough
3984     test $ac_count -gt 10 && break
3985   done
3986   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3987 esac
3988
3989       $ac_path_EGREP_found && break 3
3990     done
3991   done
3992   done
3993 IFS=$as_save_IFS
3994   if test -z "$ac_cv_path_EGREP"; then
3995     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3996   fi
3997 else
3998   ac_cv_path_EGREP=$EGREP
3999 fi
4000
4001    fi
4002 fi
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4004 $as_echo "$ac_cv_path_EGREP" >&6; }
4005  EGREP="$ac_cv_path_EGREP"
4006
4007
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4009 $as_echo_n "checking for ANSI C header files... " >&6; }
4010 if test "${ac_cv_header_stdc+set}" = set; then :
4011   $as_echo_n "(cached) " >&6
4012 else
4013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h.  */
4015 #include <stdlib.h>
4016 #include <stdarg.h>
4017 #include <string.h>
4018 #include <float.h>
4019
4020 int
4021 main ()
4022 {
4023
4024   ;
4025   return 0;
4026 }
4027 _ACEOF
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029   ac_cv_header_stdc=yes
4030 else
4031   ac_cv_header_stdc=no
4032 fi
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034
4035 if test $ac_cv_header_stdc = yes; then
4036   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h.  */
4039 #include <string.h>
4040
4041 _ACEOF
4042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4043   $EGREP "memchr" >/dev/null 2>&1; then :
4044
4045 else
4046   ac_cv_header_stdc=no
4047 fi
4048 rm -f conftest*
4049
4050 fi
4051
4052 if test $ac_cv_header_stdc = yes; then
4053   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h.  */
4056 #include <stdlib.h>
4057
4058 _ACEOF
4059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4060   $EGREP "free" >/dev/null 2>&1; then :
4061
4062 else
4063   ac_cv_header_stdc=no
4064 fi
4065 rm -f conftest*
4066
4067 fi
4068
4069 if test $ac_cv_header_stdc = yes; then
4070   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4071   if test "$cross_compiling" = yes; then :
4072   :
4073 else
4074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h.  */
4076 #include <ctype.h>
4077 #include <stdlib.h>
4078 #if ((' ' & 0x0FF) == 0x020)
4079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4081 #else
4082 # define ISLOWER(c) \
4083                    (('a' <= (c) && (c) <= 'i') \
4084                      || ('j' <= (c) && (c) <= 'r') \
4085                      || ('s' <= (c) && (c) <= 'z'))
4086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4087 #endif
4088
4089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4090 int
4091 main ()
4092 {
4093   int i;
4094   for (i = 0; i < 256; i++)
4095     if (XOR (islower (i), ISLOWER (i))
4096         || toupper (i) != TOUPPER (i))
4097       return 2;
4098   return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_run "$LINENO"; then :
4102
4103 else
4104   ac_cv_header_stdc=no
4105 fi
4106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4107   conftest.$ac_objext conftest.beam conftest.$ac_ext
4108 fi
4109
4110 fi
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4113 $as_echo "$ac_cv_header_stdc" >&6; }
4114 if test $ac_cv_header_stdc = yes; then
4115
4116 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4117
4118 fi
4119
4120 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4121 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4122                   inttypes.h stdint.h unistd.h
4123 do :
4124   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4125 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4126 "
4127 eval as_val=\$$as_ac_Header
4128    if test "x$as_val" = x""yes; then :
4129   cat >>confdefs.h <<_ACEOF
4130 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4131 _ACEOF
4132
4133 fi
4134
4135 done
4136
4137
4138
4139
4140
4141   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4142 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4143   MINIX=yes
4144 else
4145   MINIX=
4146 fi
4147
4148
4149   if test "$MINIX" = yes; then
4150
4151 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4152
4153
4154 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4155
4156
4157 $as_echo "#define _MINIX 1" >>confdefs.h
4158
4159   fi
4160
4161         case "$host_os" in
4162     hpux*)
4163
4164 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4165
4166       ;;
4167   esac
4168
4169
4170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4171 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4172 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4173   $as_echo_n "(cached) " >&6
4174 else
4175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h.  */
4177
4178 #         define __EXTENSIONS__ 1
4179           $ac_includes_default
4180 int
4181 main ()
4182 {
4183
4184   ;
4185   return 0;
4186 }
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189   ac_cv_safe_to_define___extensions__=yes
4190 else
4191   ac_cv_safe_to_define___extensions__=no
4192 fi
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4196 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4197   test $ac_cv_safe_to_define___extensions__ = yes &&
4198     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4199
4200   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4201
4202   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4203
4204   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4205
4206   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4207
4208
4209 if test -n "$ac_tool_prefix"; then
4210   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4211 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4215   $as_echo_n "(cached) " >&6
4216 else
4217   if test -n "$RANLIB"; then
4218   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4222 do
4223   IFS=$as_save_IFS
4224   test -z "$as_dir" && as_dir=.
4225     for ac_exec_ext in '' $ac_executable_extensions; do
4226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229     break 2
4230   fi
4231 done
4232   done
4233 IFS=$as_save_IFS
4234
4235 fi
4236 fi
4237 RANLIB=$ac_cv_prog_RANLIB
4238 if test -n "$RANLIB"; then
4239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4240 $as_echo "$RANLIB" >&6; }
4241 else
4242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4244 fi
4245
4246
4247 fi
4248 if test -z "$ac_cv_prog_RANLIB"; then
4249   ac_ct_RANLIB=$RANLIB
4250   # Extract the first word of "ranlib", so it can be a program name with args.
4251 set dummy ranlib; ac_word=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   if test -n "$ac_ct_RANLIB"; then
4258   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4259 else
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263   IFS=$as_save_IFS
4264   test -z "$as_dir" && as_dir=.
4265     for ac_exec_ext in '' $ac_executable_extensions; do
4266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267     ac_cv_prog_ac_ct_RANLIB="ranlib"
4268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269     break 2
4270   fi
4271 done
4272   done
4273 IFS=$as_save_IFS
4274
4275 fi
4276 fi
4277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4278 if test -n "$ac_ct_RANLIB"; then
4279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4280 $as_echo "$ac_ct_RANLIB" >&6; }
4281 else
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4284 fi
4285
4286   if test "x$ac_ct_RANLIB" = x; then
4287     RANLIB=":"
4288   else
4289     case $cross_compiling:$ac_tool_warned in
4290 yes:)
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4293 ac_tool_warned=yes ;;
4294 esac
4295     RANLIB=$ac_ct_RANLIB
4296   fi
4297 else
4298   RANLIB="$ac_cv_prog_RANLIB"
4299 fi
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309   # Code from module arg-nonnull:
4310   # Code from module c++defs:
4311   # Code from module extensions:
4312
4313   # Code from module include_next:
4314   # Code from module inttypes:
4315   # Code from module memchr:
4316   # Code from module memmem:
4317   # Code from module memmem-simple:
4318   # Code from module multiarch:
4319   # Code from module stddef:
4320   # Code from module stdint:
4321   # Code from module string:
4322   # Code from module update-copyright:
4323   # Code from module warn-on-use:
4324   # Code from module wchar:
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4327 $as_echo_n "checking target system type... " >&6; }
4328 if test "${ac_cv_target+set}" = set; then :
4329   $as_echo_n "(cached) " >&6
4330 else
4331   if test "x$target_alias" = x; then
4332   ac_cv_target=$ac_cv_host
4333 else
4334   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4335     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4336 fi
4337
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4340 $as_echo "$ac_cv_target" >&6; }
4341 case $ac_cv_target in
4342 *-*-*) ;;
4343 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4344 esac
4345 target=$ac_cv_target
4346 ac_save_IFS=$IFS; IFS='-'
4347 set x $ac_cv_target
4348 shift
4349 target_cpu=$1
4350 target_vendor=$2
4351 shift; shift
4352 # Remember, the first character of IFS is used to create $*,
4353 # except with old shells:
4354 target_os=$*
4355 IFS=$ac_save_IFS
4356 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4357
4358
4359 # The aliases save the names the user supplied, while $host etc.
4360 # will get canonicalized.
4361 test -n "$target_alias" &&
4362   test "$program_prefix$program_suffix$program_transform_name" = \
4363     NONENONEs,x,x, &&
4364   program_prefix=${target_alias}-
4365
4366 # The tests for host and target for $enable_largefile require
4367 # canonical names.
4368
4369
4370
4371 # As the $enable_largefile decision depends on --enable-plugins we must set it
4372 # even in directories otherwise not depending on the $plugins option.
4373
4374
4375 # Check whether --enable-plugins was given.
4376 if test "${enable_plugins+set}" = set; then :
4377   enableval=$enable_plugins; case "${enableval}" in
4378   yes | "") plugins=yes ;;
4379   no) plugins=no ;;
4380   *) plugins=yes ;;
4381  esac
4382 else
4383   plugins=no
4384 fi
4385
4386
4387
4388 case "${host}" in
4389   sparc-*-solaris*|i[3-7]86-*-solaris*)
4390     # On native 32bit sparc and ia32 solaris, large-file and procfs support
4391     # are mutually exclusive; and without procfs support, the bfd/ elf module
4392     # cannot provide certain routines such as elfcore_write_prpsinfo
4393     # or elfcore_write_prstatus.  So unless the user explicitly requested
4394     # large-file support through the --enable-largefile switch, disable
4395     # large-file support in favor of procfs support.
4396     test "${target}" = "${host}" -a "x$plugins" = xno \
4397       && : ${enable_largefile="no"}
4398     ;;
4399 esac
4400
4401 # Check whether --enable-largefile was given.
4402 if test "${enable_largefile+set}" = set; then :
4403   enableval=$enable_largefile;
4404 fi
4405
4406 if test "$enable_largefile" != no; then
4407
4408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4409 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4410 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4411   $as_echo_n "(cached) " >&6
4412 else
4413   ac_cv_sys_largefile_CC=no
4414      if test "$GCC" != yes; then
4415        ac_save_CC=$CC
4416        while :; do
4417          # IRIX 6.2 and later do not support large files by default,
4418          # so use the C compiler's -n32 option if that helps.
4419          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h.  */
4421 #include <sys/types.h>
4422  /* Check that off_t can represent 2**63 - 1 correctly.
4423     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4424     since some C++ compilers masquerading as C compilers
4425     incorrectly reject 9223372036854775807.  */
4426 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4427   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4428                        && LARGE_OFF_T % 2147483647 == 1)
4429                       ? 1 : -1];
4430 int
4431 main ()
4432 {
4433
4434   ;
4435   return 0;
4436 }
4437 _ACEOF
4438          if ac_fn_c_try_compile "$LINENO"; then :
4439   break
4440 fi
4441 rm -f core conftest.err conftest.$ac_objext
4442          CC="$CC -n32"
4443          if ac_fn_c_try_compile "$LINENO"; then :
4444   ac_cv_sys_largefile_CC=' -n32'; break
4445 fi
4446 rm -f core conftest.err conftest.$ac_objext
4447          break
4448        done
4449        CC=$ac_save_CC
4450        rm -f conftest.$ac_ext
4451     fi
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4454 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4455   if test "$ac_cv_sys_largefile_CC" != no; then
4456     CC=$CC$ac_cv_sys_largefile_CC
4457   fi
4458
4459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4460 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4461 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4462   $as_echo_n "(cached) " >&6
4463 else
4464   while :; do
4465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h.  */
4467 #include <sys/types.h>
4468  /* Check that off_t can represent 2**63 - 1 correctly.
4469     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4470     since some C++ compilers masquerading as C compilers
4471     incorrectly reject 9223372036854775807.  */
4472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4473   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4474                        && LARGE_OFF_T % 2147483647 == 1)
4475                       ? 1 : -1];
4476 int
4477 main ()
4478 {
4479
4480   ;
4481   return 0;
4482 }
4483 _ACEOF
4484 if ac_fn_c_try_compile "$LINENO"; then :
4485   ac_cv_sys_file_offset_bits=no; break
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490 #define _FILE_OFFSET_BITS 64
4491 #include <sys/types.h>
4492  /* Check that off_t can represent 2**63 - 1 correctly.
4493     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4494     since some C++ compilers masquerading as C compilers
4495     incorrectly reject 9223372036854775807.  */
4496 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4497   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4498                        && LARGE_OFF_T % 2147483647 == 1)
4499                       ? 1 : -1];
4500 int
4501 main ()
4502 {
4503
4504   ;
4505   return 0;
4506 }
4507 _ACEOF
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509   ac_cv_sys_file_offset_bits=64; break
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512   ac_cv_sys_file_offset_bits=unknown
4513   break
4514 done
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4517 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4518 case $ac_cv_sys_file_offset_bits in #(
4519   no | unknown) ;;
4520   *)
4521 cat >>confdefs.h <<_ACEOF
4522 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4523 _ACEOF
4524 ;;
4525 esac
4526 rm -rf conftest*
4527   if test $ac_cv_sys_file_offset_bits = unknown; then
4528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4529 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4530 if test "${ac_cv_sys_large_files+set}" = set; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533   while :; do
4534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h.  */
4536 #include <sys/types.h>
4537  /* Check that off_t can represent 2**63 - 1 correctly.
4538     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4539     since some C++ compilers masquerading as C compilers
4540     incorrectly reject 9223372036854775807.  */
4541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4542   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4543                        && LARGE_OFF_T % 2147483647 == 1)
4544                       ? 1 : -1];
4545 int
4546 main ()
4547 {
4548
4549   ;
4550   return 0;
4551 }
4552 _ACEOF
4553 if ac_fn_c_try_compile "$LINENO"; then :
4554   ac_cv_sys_large_files=no; break
4555 fi
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h.  */
4559 #define _LARGE_FILES 1
4560 #include <sys/types.h>
4561  /* Check that off_t can represent 2**63 - 1 correctly.
4562     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4563     since some C++ compilers masquerading as C compilers
4564     incorrectly reject 9223372036854775807.  */
4565 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4566   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4567                        && LARGE_OFF_T % 2147483647 == 1)
4568                       ? 1 : -1];
4569 int
4570 main ()
4571 {
4572
4573   ;
4574   return 0;
4575 }
4576 _ACEOF
4577 if ac_fn_c_try_compile "$LINENO"; then :
4578   ac_cv_sys_large_files=1; break
4579 fi
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581   ac_cv_sys_large_files=unknown
4582   break
4583 done
4584 fi
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4586 $as_echo "$ac_cv_sys_large_files" >&6; }
4587 case $ac_cv_sys_large_files in #(
4588   no | unknown) ;;
4589   *)
4590 cat >>confdefs.h <<_ACEOF
4591 #define _LARGE_FILES $ac_cv_sys_large_files
4592 _ACEOF
4593 ;;
4594 esac
4595 rm -rf conftest*
4596   fi
4597 fi
4598
4599
4600
4601
4602
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4604 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4605 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4606   $as_echo_n "(cached) " >&6
4607 else
4608   am_cv_prog_cc_stdc=no
4609 ac_save_CC="$CC"
4610 # Don't try gcc -ansi; that turns off useful extensions and
4611 # breaks some systems' header files.
4612 # AIX                   -qlanglvl=ansi
4613 # Ultrix and OSF/1      -std1
4614 # HP-UX 10.20 and later -Ae
4615 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4616 # SVR4                  -Xc -D__EXTENSIONS__
4617 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4618 do
4619   CC="$ac_save_CC $ac_arg"
4620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h.  */
4622 #include <stdarg.h>
4623 #include <stdio.h>
4624 #include <sys/types.h>
4625 #include <sys/stat.h>
4626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4627 struct buf { int x; };
4628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4629 static char *e (p, i)
4630      char **p;
4631      int i;
4632 {
4633   return p[i];
4634 }
4635 static char *f (char * (*g) (char **, int), char **p, ...)
4636 {
4637   char *s;
4638   va_list v;
4639   va_start (v,p);
4640   s = g (p, va_arg (v,int));
4641   va_end (v);
4642   return s;
4643 }
4644 int test (int i, double x);
4645 struct s1 {int (*f) (int a);};
4646 struct s2 {int (*f) (double a);};
4647 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4648 int argc;
4649 char **argv;
4650
4651 int
4652 main ()
4653 {
4654
4655 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4656
4657   ;
4658   return 0;
4659 }
4660 _ACEOF
4661 if ac_fn_c_try_compile "$LINENO"; then :
4662   am_cv_prog_cc_stdc="$ac_arg"; break
4663 fi
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 done
4666 CC="$ac_save_CC"
4667
4668 fi
4669
4670 if test -z "$am_cv_prog_cc_stdc"; then
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4672 $as_echo "none needed" >&6; }
4673 else
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4675 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4676 fi
4677 case "x$am_cv_prog_cc_stdc" in
4678   x|xno) ;;
4679   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4680 esac
4681
4682
4683 ac_aux_dir=
4684 for ac_dir in .. "$srcdir"/..; do
4685   for ac_t in install-sh install.sh shtool; do
4686     if test -f "$ac_dir/$ac_t"; then
4687       ac_aux_dir=$ac_dir
4688       ac_install_sh="$ac_aux_dir/$ac_t -c"
4689       break 2
4690     fi
4691   done
4692 done
4693 if test -z "$ac_aux_dir"; then
4694   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4695 fi
4696
4697 # These three variables are undocumented and unsupported,
4698 # and are intended to be withdrawn in a future Autoconf release.
4699 # They can cause serious problems if a builder's source tree is in a directory
4700 # whose full name contains unusual characters.
4701 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4702 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4703 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4704
4705
4706
4707
4708 # Dependency checking.
4709 rm -rf .tst 2>/dev/null
4710 mkdir .tst 2>/dev/null
4711 if test -d .tst; then
4712   am__leading_dot=.
4713 else
4714   am__leading_dot=_
4715 fi
4716 rmdir .tst 2>/dev/null
4717
4718 DEPDIR="${am__leading_dot}deps"
4719
4720 ac_config_commands="$ac_config_commands depdir"
4721
4722
4723 depcc="$CC"   am_compiler_list=
4724
4725 am_depcomp=$ac_aux_dir/depcomp
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4727 $as_echo_n "checking dependency style of $depcc... " >&6; }
4728 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   if test -f "$am_depcomp"; then
4732   # We make a subdir and do the tests there.  Otherwise we can end up
4733   # making bogus files that we don't know about and never remove.  For
4734   # instance it was reported that on HP-UX the gcc test will end up
4735   # making a dummy file named `D' -- because `-MD' means `put the output
4736   # in D'.
4737   mkdir conftest.dir
4738   # Copy depcomp to subdir because otherwise we won't find it if we're
4739   # using a relative directory.
4740   cp "$am_depcomp" conftest.dir
4741   cd conftest.dir
4742   # We will build objects and dependencies in a subdirectory because
4743   # it helps to detect inapplicable dependency modes.  For instance
4744   # both Tru64's cc and ICC support -MD to output dependencies as a
4745   # side effect of compilation, but ICC will put the dependencies in
4746   # the current directory while Tru64 will put them in the object
4747   # directory.
4748   mkdir sub
4749
4750   am_cv_CC_dependencies_compiler_type=none
4751   if test "$am_compiler_list" = ""; then
4752      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4753   fi
4754   for depmode in $am_compiler_list; do
4755     if test $depmode = none; then break; fi
4756
4757     $as_echo "$as_me:$LINENO: trying $depmode" >&5
4758     # Setup a source with many dependencies, because some compilers
4759     # like to wrap large dependency lists on column 80 (with \), and
4760     # we should not choose a depcomp mode which is confused by this.
4761     #
4762     # We need to recreate these files for each test, as the compiler may
4763     # overwrite some of them when testing with obscure command lines.
4764     # This happens at least with the AIX C compiler.
4765     : > sub/conftest.c
4766     for i in 1 2 3 4 5 6; do
4767       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4768       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4769       # Solaris 8's {/usr,}/bin/sh.
4770       touch sub/conftst$i.h
4771     done
4772     echo "include sub/conftest.Po" > confmf
4773
4774     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4775     # mode.  It turns out that the SunPro C++ compiler does not properly
4776     # handle `-M -o', and we need to detect this.
4777     depcmd="depmode=$depmode \
4778        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4779        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4780        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4781     echo "| $depcmd" | sed -e 's/  */ /g' >&5
4782     if env $depcmd > conftest.err 2>&1 &&
4783        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4784        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4785        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4786       # icc doesn't choke on unknown options, it will just issue warnings
4787       # or remarks (even with -Werror).  So we grep stderr for any message
4788       # that says an option was ignored or not supported.
4789       # When given -MP, icc 7.0 and 7.1 complain thusly:
4790       #   icc: Command line warning: ignoring option '-M'; no argument required
4791       # The diagnosis changed in icc 8.0:
4792       #   icc: Command line remark: option '-MP' not supported
4793       if (grep 'ignoring option' conftest.err ||
4794           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4795         am_cv_CC_dependencies_compiler_type=$depmode
4796         $as_echo "$as_me:$LINENO: success" >&5
4797         break
4798       fi
4799     fi
4800     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4801     sed -e 's/^/| /' < conftest.err >&5
4802   done
4803
4804   cd ..
4805   rm -rf conftest.dir
4806 else
4807   am_cv_CC_dependencies_compiler_type=none
4808 fi
4809
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4812 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4813 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4814 then as_fn_error "no usable dependency style found" "$LINENO" 5
4815 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4816
4817 fi
4818
4819
4820 # Check for the 'make' the user wants to use.
4821 for ac_prog in make
4822 do
4823   # Extract the first word of "$ac_prog", so it can be a program name with args.
4824 set dummy $ac_prog; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if test "${ac_cv_prog_MAKE+set}" = set; then :
4828   $as_echo_n "(cached) " >&6
4829 else
4830   if test -n "$MAKE"; then
4831   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838     for ac_exec_ext in '' $ac_executable_extensions; do
4839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840     ac_cv_prog_MAKE="$ac_prog"
4841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842     break 2
4843   fi
4844 done
4845   done
4846 IFS=$as_save_IFS
4847
4848 fi
4849 fi
4850 MAKE=$ac_cv_prog_MAKE
4851 if test -n "$MAKE"; then
4852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4853 $as_echo "$MAKE" >&6; }
4854 else
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4857 fi
4858
4859
4860   test -n "$MAKE" && break
4861 done
4862
4863 MAKE_IS_GNU=
4864 case "`$MAKE --version 2>&1 | sed 1q`" in
4865   *GNU*)
4866     MAKE_IS_GNU=yes
4867     ;;
4868 esac
4869  if test "$MAKE_IS_GNU" = yes; then
4870   GMAKE_TRUE=
4871   GMAKE_FALSE='#'
4872 else
4873   GMAKE_TRUE='#'
4874   GMAKE_FALSE=
4875 fi
4876
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4878 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4879 set x ${MAKE-make}
4880 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4881 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   cat >conftest.make <<\_ACEOF
4885 SHELL = /bin/sh
4886 all:
4887         @echo '@@@%%%=$(MAKE)=@@@%%%'
4888 _ACEOF
4889 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4890 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4891   *@@@%%%=?*=@@@%%%*)
4892     eval ac_cv_prog_make_${ac_make}_set=yes;;
4893   *)
4894     eval ac_cv_prog_make_${ac_make}_set=no;;
4895 esac
4896 rm -f conftest.make
4897 fi
4898 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4900 $as_echo "yes" >&6; }
4901   SET_MAKE=
4902 else
4903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4905   SET_MAKE="MAKE=${MAKE-make}"
4906 fi
4907
4908
4909
4910 CONFIG_OBS=
4911 CONFIG_DEPS=
4912 CONFIG_SRCS=
4913 ENABLE_CFLAGS=
4914
4915 CONFIG_ALL=
4916 CONFIG_CLEAN=
4917 CONFIG_INSTALL=
4918 CONFIG_UNINSTALL=
4919
4920 # If we haven't got the data from the intl directory,
4921 # assume NLS is disabled.
4922 USE_NLS=no
4923 LIBINTL=
4924 LIBINTL_DEP=
4925 INCINTL=
4926 XGETTEXT=
4927 GMSGFMT=
4928 POSUB=
4929
4930 if test -f  ../intl/config.intl; then
4931   .  ../intl/config.intl
4932 fi
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4934 $as_echo_n "checking whether NLS is requested... " >&6; }
4935 if test x"$USE_NLS" != xyes; then
4936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4938 else
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4940 $as_echo "yes" >&6; }
4941
4942 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4943
4944
4945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4946 $as_echo_n "checking for catalogs to be installed... " >&6; }
4947   # Look for .po and .gmo files in the source directory.
4948   CATALOGS=
4949   XLINGUAS=
4950   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4951     # If there aren't any .gmo files the shell will give us the
4952     # literal string "../path/to/srcdir/po/*.gmo" which has to be
4953     # weeded out.
4954     case "$cat" in *\**)
4955       continue;;
4956     esac
4957     # The quadruple backslash is collapsed to a double backslash
4958     # by the backticks, then collapsed again by the double quotes,
4959     # leaving us with one backslash in the sed expression (right
4960     # before the dot that mustn't act as a wildcard).
4961     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4962     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4963     # The user is allowed to set LINGUAS to a list of languages to
4964     # install catalogs for.  If it's empty that means "all of them."
4965     if test "x$LINGUAS" = x; then
4966       CATALOGS="$CATALOGS $cat"
4967       XLINGUAS="$XLINGUAS $lang"
4968     else
4969       case "$LINGUAS" in *$lang*)
4970         CATALOGS="$CATALOGS $cat"
4971         XLINGUAS="$XLINGUAS $lang"
4972         ;;
4973       esac
4974     fi
4975   done
4976   LINGUAS="$XLINGUAS"
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4978 $as_echo "$LINGUAS" >&6; }
4979
4980
4981     DATADIRNAME=share
4982
4983   INSTOBJEXT=.mo
4984
4985   GENCAT=gencat
4986
4987   CATOBJEXT=.gmo
4988
4989 fi
4990
4991 localedir='${datadir}/locale'
4992
4993
4994 if test x"$USE_NLS" = xyes; then
4995    CONFIG_ALL="$CONFIG_ALL all-po"
4996    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4997    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4998    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4999 fi
5000
5001
5002
5003
5004
5005           LIBC_FATAL_STDERR_=1
5006   export LIBC_FATAL_STDERR_
5007
5008
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5010 $as_echo_n "checking for long long int... " >&6; }
5011 if test "${ac_cv_type_long_long_int+set}" = set; then :
5012   $as_echo_n "(cached) " >&6
5013 else
5014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h.  */
5016
5017   /* For now, do not test the preprocessor; as of 2007 there are too many
5018          implementations with broken preprocessors.  Perhaps this can
5019          be revisited in 2012.  In the meantime, code should not expect
5020          #if to work with literals wider than 32 bits.  */
5021       /* Test literals.  */
5022       long long int ll = 9223372036854775807ll;
5023       long long int nll = -9223372036854775807LL;
5024       unsigned long long int ull = 18446744073709551615ULL;
5025       /* Test constant expressions.   */
5026       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5027                      ? 1 : -1)];
5028       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5029                      ? 1 : -1)];
5030       int i = 63;
5031 int
5032 main ()
5033 {
5034 /* Test availability of runtime routines for shift and division.  */
5035       long long int llmax = 9223372036854775807ll;
5036       unsigned long long int ullmax = 18446744073709551615ull;
5037       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5038               | (llmax / ll) | (llmax % ll)
5039               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5040               | (ullmax / ull) | (ullmax % ull));
5041   ;
5042   return 0;
5043 }
5044
5045 _ACEOF
5046 if ac_fn_c_try_link "$LINENO"; then :
5047                           if test "$cross_compiling" = yes; then :
5048   ac_cv_type_long_long_int=yes
5049 else
5050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h.  */
5052 #include <limits.h>
5053                #ifndef LLONG_MAX
5054                # define HALF \
5055                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5056                # define LLONG_MAX (HALF - 1 + HALF)
5057                #endif
5058 int
5059 main ()
5060 {
5061 long long int n = 1;
5062                int i;
5063                for (i = 0; ; i++)
5064                  {
5065                    long long int m = n << i;
5066                    if (m >> i != n)
5067                      return 1;
5068                    if (LLONG_MAX / 2 < m)
5069                      break;
5070                  }
5071                return 0;
5072   ;
5073   return 0;
5074 }
5075 _ACEOF
5076 if ac_fn_c_try_run "$LINENO"; then :
5077   ac_cv_type_long_long_int=yes
5078 else
5079   ac_cv_type_long_long_int=no
5080 fi
5081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5082   conftest.$ac_objext conftest.beam conftest.$ac_ext
5083 fi
5084
5085 else
5086   ac_cv_type_long_long_int=no
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext \
5089     conftest$ac_exeext conftest.$ac_ext
5090 fi
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5092 $as_echo "$ac_cv_type_long_long_int" >&6; }
5093   if test $ac_cv_type_long_long_int = yes; then
5094
5095 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5096
5097   fi
5098
5099
5100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5101 $as_echo_n "checking for unsigned long long int... " >&6; }
5102 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h.  */
5107
5108   /* For now, do not test the preprocessor; as of 2007 there are too many
5109          implementations with broken preprocessors.  Perhaps this can
5110          be revisited in 2012.  In the meantime, code should not expect
5111          #if to work with literals wider than 32 bits.  */
5112       /* Test literals.  */
5113       long long int ll = 9223372036854775807ll;
5114       long long int nll = -9223372036854775807LL;
5115       unsigned long long int ull = 18446744073709551615ULL;
5116       /* Test constant expressions.   */
5117       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5118                      ? 1 : -1)];
5119       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5120                      ? 1 : -1)];
5121       int i = 63;
5122 int
5123 main ()
5124 {
5125 /* Test availability of runtime routines for shift and division.  */
5126       long long int llmax = 9223372036854775807ll;
5127       unsigned long long int ullmax = 18446744073709551615ull;
5128       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5129               | (llmax / ll) | (llmax % ll)
5130               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5131               | (ullmax / ull) | (ullmax % ull));
5132   ;
5133   return 0;
5134 }
5135
5136 _ACEOF
5137 if ac_fn_c_try_link "$LINENO"; then :
5138   ac_cv_type_unsigned_long_long_int=yes
5139 else
5140   ac_cv_type_unsigned_long_long_int=no
5141 fi
5142 rm -f core conftest.err conftest.$ac_objext \
5143     conftest$ac_exeext conftest.$ac_ext
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5146 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5147   if test $ac_cv_type_unsigned_long_long_int = yes; then
5148
5149 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5150
5151   fi
5152
5153
5154
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5156 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5157 if test "${gl_cv_have_include_next+set}" = set; then :
5158   $as_echo_n "(cached) " >&6
5159 else
5160   rm -rf conftestd1a conftestd1b conftestd2
5161      mkdir conftestd1a conftestd1b conftestd2
5162                                                   cat <<EOF > conftestd1a/conftest.h
5163 #define DEFINED_IN_CONFTESTD1
5164 #include_next <conftest.h>
5165 #ifdef DEFINED_IN_CONFTESTD2
5166 int foo;
5167 #else
5168 #error "include_next doesn't work"
5169 #endif
5170 EOF
5171      cat <<EOF > conftestd1b/conftest.h
5172 #define DEFINED_IN_CONFTESTD1
5173 #include <stdio.h>
5174 #include_next <conftest.h>
5175 #ifdef DEFINED_IN_CONFTESTD2
5176 int foo;
5177 #else
5178 #error "include_next doesn't work"
5179 #endif
5180 EOF
5181      cat <<EOF > conftestd2/conftest.h
5182 #ifndef DEFINED_IN_CONFTESTD1
5183 #error "include_next test doesn't work"
5184 #endif
5185 #define DEFINED_IN_CONFTESTD2
5186 EOF
5187      gl_save_CPPFLAGS="$CPPFLAGS"
5188      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5189      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h.  */
5191 #include <conftest.h>
5192 _ACEOF
5193 if ac_fn_c_try_compile "$LINENO"; then :
5194   gl_cv_have_include_next=yes
5195 else
5196   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5197         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h.  */
5199 #include <conftest.h>
5200 _ACEOF
5201 if ac_fn_c_try_compile "$LINENO"; then :
5202   gl_cv_have_include_next=buggy
5203 else
5204   gl_cv_have_include_next=no
5205 fi
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207
5208 fi
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210      CPPFLAGS="$gl_save_CPPFLAGS"
5211      rm -rf conftestd1a conftestd1b conftestd2
5212
5213 fi
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5215 $as_echo "$gl_cv_have_include_next" >&6; }
5216   PRAGMA_SYSTEM_HEADER=
5217   if test $gl_cv_have_include_next = yes; then
5218     INCLUDE_NEXT=include_next
5219     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5220     if test -n "$GCC"; then
5221       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5222     fi
5223   else
5224     if test $gl_cv_have_include_next = buggy; then
5225       INCLUDE_NEXT=include
5226       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5227     else
5228       INCLUDE_NEXT=include
5229       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5230     fi
5231   fi
5232
5233
5234
5235
5236
5237
5238
5239
5240   for ac_header in $gl_header_list
5241 do :
5242   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5243 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5244 eval as_val=\$$as_ac_Header
5245    if test "x$as_val" = x""yes; then :
5246   cat >>confdefs.h <<_ACEOF
5247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5248 _ACEOF
5249
5250 fi
5251
5252 done
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264     gl_cv_c_multiarch=no
5265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h.  */
5267 #ifndef __APPLE_CC__
5268          not a universal capable compiler
5269         #endif
5270         typedef int dummy;
5271
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"; then :
5274
5275                arch=
5276      prev=
5277      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5278        if test -n "$prev"; then
5279          case $word in
5280            i?86 | x86_64 | ppc | ppc64)
5281              if test -z "$arch" || test "$arch" = "$word"; then
5282                arch="$word"
5283              else
5284                gl_cv_c_multiarch=yes
5285              fi
5286              ;;
5287          esac
5288          prev=
5289        else
5290          if test "x$word" = "x-arch"; then
5291            prev=arch
5292          fi
5293        fi
5294      done
5295
5296 fi
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298   if test $gl_cv_c_multiarch = yes; then
5299
5300 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5301
5302     APPLE_UNIVERSAL_BUILD=1
5303   else
5304     APPLE_UNIVERSAL_BUILD=0
5305   fi
5306
5307
5308
5309
5310
5311   if test $ac_cv_type_long_long_int = yes; then
5312     HAVE_LONG_LONG_INT=1
5313   else
5314     HAVE_LONG_LONG_INT=0
5315   fi
5316
5317
5318   if test $ac_cv_type_unsigned_long_long_int = yes; then
5319     HAVE_UNSIGNED_LONG_LONG_INT=1
5320   else
5321     HAVE_UNSIGNED_LONG_LONG_INT=0
5322   fi
5323
5324
5325       if test $ac_cv_header_inttypes_h = yes; then
5326     HAVE_INTTYPES_H=1
5327   else
5328     HAVE_INTTYPES_H=0
5329   fi
5330
5331
5332       if test $ac_cv_header_sys_types_h = yes; then
5333     HAVE_SYS_TYPES_H=1
5334   else
5335     HAVE_SYS_TYPES_H=0
5336   fi
5337
5338
5339
5340
5341
5342
5343   :
5344
5345
5346
5347
5348
5349
5350
5351      if test $gl_cv_have_include_next = yes; then
5352        gl_cv_next_stdint_h='<'stdint.h'>'
5353      else
5354        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5355 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5356 if test "${gl_cv_next_stdint_h+set}" = set; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359
5360           if test $ac_cv_header_stdint_h = yes; then
5361             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h.  */
5363 #include <stdint.h>
5364
5365 _ACEOF
5366                                                                                                 case "$host_os" in
5367               aix*) gl_absname_cpp="$ac_cpp -C" ;;
5368               *)    gl_absname_cpp="$ac_cpp" ;;
5369             esac
5370                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5371                sed -n '\#/stdint.h#{
5372                  s#.*"\(.*/stdint.h\)".*#\1#
5373                  s#^/[^/]#//&#
5374                  p
5375                  q
5376                }'`'"'
5377           else
5378             gl_cv_next_stdint_h='<'stdint.h'>'
5379           fi
5380
5381 fi
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5383 $as_echo "$gl_cv_next_stdint_h" >&6; }
5384      fi
5385      NEXT_STDINT_H=$gl_cv_next_stdint_h
5386
5387      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5388        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5389        gl_next_as_first_directive='<'stdint.h'>'
5390      else
5391        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5392        gl_next_as_first_directive=$gl_cv_next_stdint_h
5393      fi
5394      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
5395
5396
5397
5398   if test $ac_cv_header_stdint_h = yes; then
5399     HAVE_STDINT_H=1
5400   else
5401     HAVE_STDINT_H=0
5402   fi
5403
5404
5405     if test $ac_cv_header_stdint_h = yes; then
5406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5407 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5408 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5409   $as_echo_n "(cached) " >&6
5410 else
5411   gl_cv_header_working_stdint_h=no
5412        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h.  */
5414
5415
5416 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5417 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5418 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5419 #include <stdint.h>
5420 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
5421 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5422 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5423 #endif
5424
5425
5426   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5427      included before <wchar.h>.  */
5428   #include <stddef.h>
5429   #include <signal.h>
5430   #if HAVE_WCHAR_H
5431   # include <stdio.h>
5432   # include <time.h>
5433   # include <wchar.h>
5434   #endif
5435
5436
5437 #ifdef INT8_MAX
5438 int8_t a1 = INT8_MAX;
5439 int8_t a1min = INT8_MIN;
5440 #endif
5441 #ifdef INT16_MAX
5442 int16_t a2 = INT16_MAX;
5443 int16_t a2min = INT16_MIN;
5444 #endif
5445 #ifdef INT32_MAX
5446 int32_t a3 = INT32_MAX;
5447 int32_t a3min = INT32_MIN;
5448 #endif
5449 #ifdef INT64_MAX
5450 int64_t a4 = INT64_MAX;
5451 int64_t a4min = INT64_MIN;
5452 #endif
5453 #ifdef UINT8_MAX
5454 uint8_t b1 = UINT8_MAX;
5455 #else
5456 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5457 #endif
5458 #ifdef UINT16_MAX
5459 uint16_t b2 = UINT16_MAX;
5460 #endif
5461 #ifdef UINT32_MAX
5462 uint32_t b3 = UINT32_MAX;
5463 #endif
5464 #ifdef UINT64_MAX
5465 uint64_t b4 = UINT64_MAX;
5466 #endif
5467 int_least8_t c1 = INT8_C (0x7f);
5468 int_least8_t c1max = INT_LEAST8_MAX;
5469 int_least8_t c1min = INT_LEAST8_MIN;
5470 int_least16_t c2 = INT16_C (0x7fff);
5471 int_least16_t c2max = INT_LEAST16_MAX;
5472 int_least16_t c2min = INT_LEAST16_MIN;
5473 int_least32_t c3 = INT32_C (0x7fffffff);
5474 int_least32_t c3max = INT_LEAST32_MAX;
5475 int_least32_t c3min = INT_LEAST32_MIN;
5476 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5477 int_least64_t c4max = INT_LEAST64_MAX;
5478 int_least64_t c4min = INT_LEAST64_MIN;
5479 uint_least8_t d1 = UINT8_C (0xff);
5480 uint_least8_t d1max = UINT_LEAST8_MAX;
5481 uint_least16_t d2 = UINT16_C (0xffff);
5482 uint_least16_t d2max = UINT_LEAST16_MAX;
5483 uint_least32_t d3 = UINT32_C (0xffffffff);
5484 uint_least32_t d3max = UINT_LEAST32_MAX;
5485 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5486 uint_least64_t d4max = UINT_LEAST64_MAX;
5487 int_fast8_t e1 = INT_FAST8_MAX;
5488 int_fast8_t e1min = INT_FAST8_MIN;
5489 int_fast16_t e2 = INT_FAST16_MAX;
5490 int_fast16_t e2min = INT_FAST16_MIN;
5491 int_fast32_t e3 = INT_FAST32_MAX;
5492 int_fast32_t e3min = INT_FAST32_MIN;
5493 int_fast64_t e4 = INT_FAST64_MAX;
5494 int_fast64_t e4min = INT_FAST64_MIN;
5495 uint_fast8_t f1 = UINT_FAST8_MAX;
5496 uint_fast16_t f2 = UINT_FAST16_MAX;
5497 uint_fast32_t f3 = UINT_FAST32_MAX;
5498 uint_fast64_t f4 = UINT_FAST64_MAX;
5499 #ifdef INTPTR_MAX
5500 intptr_t g = INTPTR_MAX;
5501 intptr_t gmin = INTPTR_MIN;
5502 #endif
5503 #ifdef UINTPTR_MAX
5504 uintptr_t h = UINTPTR_MAX;
5505 #endif
5506 intmax_t i = INTMAX_MAX;
5507 uintmax_t j = UINTMAX_MAX;
5508
5509 #include <limits.h> /* for CHAR_BIT */
5510 #define TYPE_MINIMUM(t) \
5511   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5512 #define TYPE_MAXIMUM(t) \
5513   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5514 struct s {
5515   int check_PTRDIFF:
5516       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5517       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5518       ? 1 : -1;
5519   /* Detect bug in FreeBSD 6.0 / ia64.  */
5520   int check_SIG_ATOMIC:
5521       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5522       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5523       ? 1 : -1;
5524   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5525   int check_WCHAR:
5526       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5527       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5528       ? 1 : -1;
5529   /* Detect bug in mingw.  */
5530   int check_WINT:
5531       WINT_MIN == TYPE_MINIMUM (wint_t)
5532       && WINT_MAX == TYPE_MAXIMUM (wint_t)
5533       ? 1 : -1;
5534
5535   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
5536   int check_UINT8_C:
5537         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5538   int check_UINT16_C:
5539         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5540
5541   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
5542 #ifdef UINT8_MAX
5543   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5544 #endif
5545 #ifdef UINT16_MAX
5546   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5547 #endif
5548 #ifdef UINT32_MAX
5549   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5550 #endif
5551 #ifdef UINT64_MAX
5552   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5553 #endif
5554   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5555   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5556   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5557   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5558   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5559   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5560   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5561   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5562   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5563   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5564   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5565 };
5566
5567 int
5568 main ()
5569 {
5570
5571   ;
5572   return 0;
5573 }
5574 _ACEOF
5575 if ac_fn_c_try_compile "$LINENO"; then :
5576                                                     if test "$cross_compiling" = yes; then :
5577                  gl_cv_header_working_stdint_h=yes
5578
5579 else
5580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h.  */
5582
5583
5584 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5585 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5586 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5587 #include <stdint.h>
5588
5589
5590   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5591      included before <wchar.h>.  */
5592   #include <stddef.h>
5593   #include <signal.h>
5594   #if HAVE_WCHAR_H
5595   # include <stdio.h>
5596   # include <time.h>
5597   # include <wchar.h>
5598   #endif
5599
5600
5601 #include <stdio.h>
5602 #include <string.h>
5603 #define MVAL(macro) MVAL1(macro)
5604 #define MVAL1(expression) #expression
5605 static const char *macro_values[] =
5606   {
5607 #ifdef INT8_MAX
5608     MVAL (INT8_MAX),
5609 #endif
5610 #ifdef INT16_MAX
5611     MVAL (INT16_MAX),
5612 #endif
5613 #ifdef INT32_MAX
5614     MVAL (INT32_MAX),
5615 #endif
5616 #ifdef INT64_MAX
5617     MVAL (INT64_MAX),
5618 #endif
5619 #ifdef UINT8_MAX
5620     MVAL (UINT8_MAX),
5621 #endif
5622 #ifdef UINT16_MAX
5623     MVAL (UINT16_MAX),
5624 #endif
5625 #ifdef UINT32_MAX
5626     MVAL (UINT32_MAX),
5627 #endif
5628 #ifdef UINT64_MAX
5629     MVAL (UINT64_MAX),
5630 #endif
5631     NULL
5632   };
5633
5634 int
5635 main ()
5636 {
5637
5638   const char **mv;
5639   for (mv = macro_values; *mv != NULL; mv++)
5640     {
5641       const char *value = *mv;
5642       /* Test whether it looks like a cast expression.  */
5643       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5644           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5645           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5646           || strncmp (value, "((int)"/*)*/, 6) == 0
5647           || strncmp (value, "((signed short)"/*)*/, 15) == 0
5648           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5649         return 1;
5650     }
5651   return 0;
5652
5653   ;
5654   return 0;
5655 }
5656 _ACEOF
5657 if ac_fn_c_try_run "$LINENO"; then :
5658   gl_cv_header_working_stdint_h=yes
5659 fi
5660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5661   conftest.$ac_objext conftest.beam conftest.$ac_ext
5662 fi
5663
5664
5665 fi
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667
5668 fi
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5670 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5671   fi
5672   if test "$gl_cv_header_working_stdint_h" = yes; then
5673     STDINT_H=
5674   else
5675             for ac_header in sys/inttypes.h sys/bitypes.h
5676 do :
5677   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5678 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5679 eval as_val=\$$as_ac_Header
5680    if test "x$as_val" = x""yes; then :
5681   cat >>confdefs.h <<_ACEOF
5682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5683 _ACEOF
5684
5685 fi
5686
5687 done
5688
5689     if test $ac_cv_header_sys_inttypes_h = yes; then
5690       HAVE_SYS_INTTYPES_H=1
5691     else
5692       HAVE_SYS_INTTYPES_H=0
5693     fi
5694
5695     if test $ac_cv_header_sys_bitypes_h = yes; then
5696       HAVE_SYS_BITYPES_H=1
5697     else
5698       HAVE_SYS_BITYPES_H=0
5699     fi
5700
5701
5702
5703   :
5704
5705
5706
5707
5708
5709
5710
5711
5712   if test $APPLE_UNIVERSAL_BUILD = 0; then
5713
5714
5715   for gltype in ptrdiff_t size_t ; do
5716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5717 $as_echo_n "checking for bit size of $gltype... " >&6; }
5718 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5719   $as_echo_n "(cached) " >&6
5720 else
5721   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
5722   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5723      included before <wchar.h>.  */
5724   #include <stddef.h>
5725   #include <signal.h>
5726   #if HAVE_WCHAR_H
5727   # include <stdio.h>
5728   # include <time.h>
5729   # include <wchar.h>
5730   #endif
5731
5732 #include <limits.h>"; then :
5733
5734 else
5735   result=unknown
5736 fi
5737
5738        eval gl_cv_bitsizeof_${gltype}=\$result
5739
5740 fi
5741 eval ac_res=\$gl_cv_bitsizeof_${gltype}
5742                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5743 $as_echo "$ac_res" >&6; }
5744     eval result=\$gl_cv_bitsizeof_${gltype}
5745     if test $result = unknown; then
5746                                                 result=0
5747     fi
5748     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5749     cat >>confdefs.h <<_ACEOF
5750 #define BITSIZEOF_${GLTYPE} $result
5751 _ACEOF
5752
5753     eval BITSIZEOF_${GLTYPE}=\$result
5754   done
5755
5756
5757   fi
5758
5759
5760   for gltype in sig_atomic_t wchar_t wint_t ; do
5761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5762 $as_echo_n "checking for bit size of $gltype... " >&6; }
5763 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5764   $as_echo_n "(cached) " >&6
5765 else
5766   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
5767   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5768      included before <wchar.h>.  */
5769   #include <stddef.h>
5770   #include <signal.h>
5771   #if HAVE_WCHAR_H
5772   # include <stdio.h>
5773   # include <time.h>
5774   # include <wchar.h>
5775   #endif
5776
5777 #include <limits.h>"; then :
5778
5779 else
5780   result=unknown
5781 fi
5782
5783        eval gl_cv_bitsizeof_${gltype}=\$result
5784
5785 fi
5786 eval ac_res=\$gl_cv_bitsizeof_${gltype}
5787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5788 $as_echo "$ac_res" >&6; }
5789     eval result=\$gl_cv_bitsizeof_${gltype}
5790     if test $result = unknown; then
5791                                                 result=0
5792     fi
5793     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5794     cat >>confdefs.h <<_ACEOF
5795 #define BITSIZEOF_${GLTYPE} $result
5796 _ACEOF
5797
5798     eval BITSIZEOF_${GLTYPE}=\$result
5799   done
5800
5801
5802
5803
5804   for gltype in sig_atomic_t wchar_t wint_t ; do
5805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5806 $as_echo_n "checking whether $gltype is signed... " >&6; }
5807 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5808   $as_echo_n "(cached) " >&6
5809 else
5810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h.  */
5812
5813   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5814      included before <wchar.h>.  */
5815   #include <stddef.h>
5816   #include <signal.h>
5817   #if HAVE_WCHAR_H
5818   # include <stdio.h>
5819   # include <time.h>
5820   # include <wchar.h>
5821   #endif
5822
5823             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5824 int
5825 main ()
5826 {
5827
5828   ;
5829   return 0;
5830 }
5831 _ACEOF
5832 if ac_fn_c_try_compile "$LINENO"; then :
5833   result=yes
5834 else
5835   result=no
5836 fi
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838        eval gl_cv_type_${gltype}_signed=\$result
5839
5840 fi
5841 eval ac_res=\$gl_cv_type_${gltype}_signed
5842                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5843 $as_echo "$ac_res" >&6; }
5844     eval result=\$gl_cv_type_${gltype}_signed
5845     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5846     if test "$result" = yes; then
5847       cat >>confdefs.h <<_ACEOF
5848 #define HAVE_SIGNED_${GLTYPE} 1
5849 _ACEOF
5850
5851       eval HAVE_SIGNED_${GLTYPE}=1
5852     else
5853       eval HAVE_SIGNED_${GLTYPE}=0
5854     fi
5855   done
5856
5857
5858   gl_cv_type_ptrdiff_t_signed=yes
5859   gl_cv_type_size_t_signed=no
5860   if test $APPLE_UNIVERSAL_BUILD = 0; then
5861
5862
5863   for gltype in ptrdiff_t size_t ; do
5864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5865 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5866 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   eval gl_cv_type_${gltype}_suffix=no
5870        eval result=\$gl_cv_type_${gltype}_signed
5871        if test "$result" = yes; then
5872          glsufu=
5873        else
5874          glsufu=u
5875        fi
5876        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5877          case $glsuf in
5878            '')  gltype1='int';;
5879            l)   gltype1='long int';;
5880            ll)  gltype1='long long int';;
5881            i64) gltype1='__int64';;
5882            u)   gltype1='unsigned int';;
5883            ul)  gltype1='unsigned long int';;
5884            ull) gltype1='unsigned long long int';;
5885            ui64)gltype1='unsigned __int64';;
5886          esac
5887          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h.  */
5889
5890   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5891      included before <wchar.h>.  */
5892   #include <stddef.h>
5893   #include <signal.h>
5894   #if HAVE_WCHAR_H
5895   # include <stdio.h>
5896   # include <time.h>
5897   # include <wchar.h>
5898   #endif
5899
5900               extern $gltype foo;
5901               extern $gltype1 foo;
5902 int
5903 main ()
5904 {
5905
5906   ;
5907   return 0;
5908 }
5909 _ACEOF
5910 if ac_fn_c_try_compile "$LINENO"; then :
5911   eval gl_cv_type_${gltype}_suffix=\$glsuf
5912 fi
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914          eval result=\$gl_cv_type_${gltype}_suffix
5915          test "$result" != no && break
5916        done
5917 fi
5918 eval ac_res=\$gl_cv_type_${gltype}_suffix
5919                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5920 $as_echo "$ac_res" >&6; }
5921     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5922     eval result=\$gl_cv_type_${gltype}_suffix
5923     test "$result" = no && result=
5924     eval ${GLTYPE}_SUFFIX=\$result
5925     cat >>confdefs.h <<_ACEOF
5926 #define ${GLTYPE}_SUFFIX $result
5927 _ACEOF
5928
5929   done
5930
5931
5932   fi
5933
5934
5935   for gltype in sig_atomic_t wchar_t wint_t ; do
5936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5937 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5938 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5939   $as_echo_n "(cached) " >&6
5940 else
5941   eval gl_cv_type_${gltype}_suffix=no
5942        eval result=\$gl_cv_type_${gltype}_signed
5943        if test "$result" = yes; then
5944          glsufu=
5945        else
5946          glsufu=u
5947        fi
5948        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5949          case $glsuf in
5950            '')  gltype1='int';;
5951            l)   gltype1='long int';;
5952            ll)  gltype1='long long int';;
5953            i64) gltype1='__int64';;
5954            u)   gltype1='unsigned int';;
5955            ul)  gltype1='unsigned long int';;
5956            ull) gltype1='unsigned long long int';;
5957            ui64)gltype1='unsigned __int64';;
5958          esac
5959          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h.  */
5961
5962   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5963      included before <wchar.h>.  */
5964   #include <stddef.h>
5965   #include <signal.h>
5966   #if HAVE_WCHAR_H
5967   # include <stdio.h>
5968   # include <time.h>
5969   # include <wchar.h>
5970   #endif
5971
5972               extern $gltype foo;
5973               extern $gltype1 foo;
5974 int
5975 main ()
5976 {
5977
5978   ;
5979   return 0;
5980 }
5981 _ACEOF
5982 if ac_fn_c_try_compile "$LINENO"; then :
5983   eval gl_cv_type_${gltype}_suffix=\$glsuf
5984 fi
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986          eval result=\$gl_cv_type_${gltype}_suffix
5987          test "$result" != no && break
5988        done
5989 fi
5990 eval ac_res=\$gl_cv_type_${gltype}_suffix
5991                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5992 $as_echo "$ac_res" >&6; }
5993     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5994     eval result=\$gl_cv_type_${gltype}_suffix
5995     test "$result" = no && result=
5996     eval ${GLTYPE}_SUFFIX=\$result
5997     cat >>confdefs.h <<_ACEOF
5998 #define ${GLTYPE}_SUFFIX $result
5999 _ACEOF
6000
6001   done
6002
6003
6004
6005     STDINT_H=stdint.h
6006   fi
6007
6008
6009
6010   for ac_header in inttypes.h
6011 do :
6012   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6013 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
6014   cat >>confdefs.h <<_ACEOF
6015 #define HAVE_INTTYPES_H 1
6016 _ACEOF
6017
6018 fi
6019
6020 done
6021
6022   if test $ac_cv_header_inttypes_h = yes; then
6023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6024 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6025 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
6026   $as_echo_n "(cached) " >&6
6027 else
6028
6029         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h.  */
6031 #include <inttypes.h>
6032 #ifdef PRId32
6033 char *p = PRId32;
6034 #endif
6035
6036 int
6037 main ()
6038 {
6039
6040   ;
6041   return 0;
6042 }
6043 _ACEOF
6044 if ac_fn_c_try_compile "$LINENO"; then :
6045   gt_cv_inttypes_pri_broken=no
6046 else
6047   gt_cv_inttypes_pri_broken=yes
6048 fi
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050
6051 fi
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6053 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6054   fi
6055   if test "$gt_cv_inttypes_pri_broken" = yes; then
6056
6057 cat >>confdefs.h <<_ACEOF
6058 #define PRI_MACROS_BROKEN 1
6059 _ACEOF
6060
6061     PRI_MACROS_BROKEN=1
6062   else
6063     PRI_MACROS_BROKEN=0
6064   fi
6065
6066
6067
6068
6069
6070
6071
6072
6073       ac_fn_c_check_decl "$LINENO" "imaxabs" "ac_cv_have_decl_imaxabs" "$ac_includes_default"
6074 if test "x$ac_cv_have_decl_imaxabs" = x""yes; then :
6075   ac_have_decl=1
6076 else
6077   ac_have_decl=0
6078 fi
6079
6080 cat >>confdefs.h <<_ACEOF
6081 #define HAVE_DECL_IMAXABS $ac_have_decl
6082 _ACEOF
6083
6084
6085
6086       ac_fn_c_check_decl "$LINENO" "imaxdiv" "ac_cv_have_decl_imaxdiv" "$ac_includes_default"
6087 if test "x$ac_cv_have_decl_imaxdiv" = x""yes; then :
6088   ac_have_decl=1
6089 else
6090   ac_have_decl=0
6091 fi
6092
6093 cat >>confdefs.h <<_ACEOF
6094 #define HAVE_DECL_IMAXDIV $ac_have_decl
6095 _ACEOF
6096
6097
6098
6099       ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
6100 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
6101   ac_have_decl=1
6102 else
6103   ac_have_decl=0
6104 fi
6105
6106 cat >>confdefs.h <<_ACEOF
6107 #define HAVE_DECL_STRTOIMAX $ac_have_decl
6108 _ACEOF
6109
6110
6111
6112       ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
6113 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
6114   ac_have_decl=1
6115 else
6116   ac_have_decl=0
6117 fi
6118
6119 cat >>confdefs.h <<_ACEOF
6120 #define HAVE_DECL_STRTOUMAX $ac_have_decl
6121 _ACEOF
6122
6123
6124
6125   GNULIB_IMAXABS=0;
6126   GNULIB_IMAXDIV=0;
6127   GNULIB_STRTOIMAX=0;
6128   GNULIB_STRTOUMAX=0;
6129     HAVE_DECL_IMAXABS=1;
6130   HAVE_DECL_IMAXDIV=1;
6131   HAVE_DECL_STRTOIMAX=1;
6132   HAVE_DECL_STRTOUMAX=1;
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143   for ac_func in $gl_func_list
6144 do :
6145   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6147 eval as_val=\$$as_ac_var
6148    if test "x$as_val" = x""yes; then :
6149   cat >>confdefs.h <<_ACEOF
6150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6151 _ACEOF
6152
6153 fi
6154 done
6155
6156
6157
6158
6159
6160
6161   GNULIB_MEMCHR=0;
6162   GNULIB_MEMMEM=0;
6163   GNULIB_MEMPCPY=0;
6164   GNULIB_MEMRCHR=0;
6165   GNULIB_RAWMEMCHR=0;
6166   GNULIB_STPCPY=0;
6167   GNULIB_STPNCPY=0;
6168   GNULIB_STRCHRNUL=0;
6169   GNULIB_STRDUP=0;
6170   GNULIB_STRNCAT=0;
6171   GNULIB_STRNDUP=0;
6172   GNULIB_STRNLEN=0;
6173   GNULIB_STRPBRK=0;
6174   GNULIB_STRSEP=0;
6175   GNULIB_STRSTR=0;
6176   GNULIB_STRCASESTR=0;
6177   GNULIB_STRTOK_R=0;
6178   GNULIB_MBSLEN=0;
6179   GNULIB_MBSNLEN=0;
6180   GNULIB_MBSCHR=0;
6181   GNULIB_MBSRCHR=0;
6182   GNULIB_MBSSTR=0;
6183   GNULIB_MBSCASECMP=0;
6184   GNULIB_MBSNCASECMP=0;
6185   GNULIB_MBSPCASECMP=0;
6186   GNULIB_MBSCASESTR=0;
6187   GNULIB_MBSCSPN=0;
6188   GNULIB_MBSPBRK=0;
6189   GNULIB_MBSSPN=0;
6190   GNULIB_MBSSEP=0;
6191   GNULIB_MBSTOK_R=0;
6192   GNULIB_STRERROR=0;
6193   GNULIB_STRSIGNAL=0;
6194   GNULIB_STRVERSCMP=0;
6195   HAVE_MBSLEN=0;
6196     HAVE_MEMCHR=1;
6197   HAVE_DECL_MEMMEM=1;
6198   HAVE_MEMPCPY=1;
6199   HAVE_DECL_MEMRCHR=1;
6200   HAVE_RAWMEMCHR=1;
6201   HAVE_STPCPY=1;
6202   HAVE_STPNCPY=1;
6203   HAVE_STRCHRNUL=1;
6204   HAVE_DECL_STRDUP=1;
6205   HAVE_DECL_STRNDUP=1;
6206   HAVE_DECL_STRNLEN=1;
6207   HAVE_STRPBRK=1;
6208   HAVE_STRSEP=1;
6209   HAVE_STRCASESTR=1;
6210   HAVE_DECL_STRTOK_R=1;
6211   HAVE_DECL_STRSIGNAL=1;
6212   HAVE_STRVERSCMP=1;
6213   REPLACE_MEMCHR=0;
6214   REPLACE_MEMMEM=0;
6215   REPLACE_STPNCPY=0;
6216   REPLACE_STRDUP=0;
6217   REPLACE_STRSTR=0;
6218   REPLACE_STRCASESTR=0;
6219   REPLACE_STRERROR=0;
6220   REPLACE_STRNCAT=0;
6221   REPLACE_STRNDUP=0;
6222   REPLACE_STRNLEN=0;
6223   REPLACE_STRSIGNAL=0;
6224   REPLACE_STRTOK_R=0;
6225   UNDEFINE_STRTOK_R=0;
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
6240   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
6241   # irrelevant for anonymous mappings.
6242   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
6243 if test "x$ac_cv_func_mmap" = x""yes; then :
6244   gl_have_mmap=yes
6245 else
6246   gl_have_mmap=no
6247 fi
6248
6249
6250   # Try to allow MAP_ANONYMOUS.
6251   gl_have_mmap_anonymous=no
6252   if test $gl_have_mmap = yes; then
6253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
6254 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
6255     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h.  */
6257
6258 #include <sys/mman.h>
6259 #ifdef MAP_ANONYMOUS
6260     I cant identify this map.
6261 #endif
6262
6263 _ACEOF
6264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6265   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
6266   gl_have_mmap_anonymous=yes
6267 fi
6268 rm -f conftest*
6269
6270     if test $gl_have_mmap_anonymous != yes; then
6271       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h.  */
6273
6274 #include <sys/mman.h>
6275 #ifdef MAP_ANON
6276     I cant identify this map.
6277 #endif
6278
6279 _ACEOF
6280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6281   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
6282
6283 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
6284
6285          gl_have_mmap_anonymous=yes
6286 fi
6287 rm -f conftest*
6288
6289     fi
6290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
6291 $as_echo "$gl_have_mmap_anonymous" >&6; }
6292     if test $gl_have_mmap_anonymous = yes; then
6293
6294 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
6295
6296     fi
6297   fi
6298
6299
6300   :
6301
6302
6303
6304
6305
6306
6307   :
6308
6309
6310
6311
6312
6313
6314
6315
6316   :
6317
6318
6319
6320
6321
6322   if test $ac_cv_func_memchr = yes; then
6323     # Detect platform-specific bugs in some versions of glibc:
6324     # memchr should not dereference anything with length 0
6325     #   http://bugzilla.redhat.com/499689
6326     # memchr should not dereference overestimated length after a match
6327     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
6328     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
6329     # Assume that memchr works on platforms that lack mprotect.
6330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
6331 $as_echo_n "checking whether memchr works... " >&6; }
6332 if test "${gl_cv_func_memchr_works+set}" = set; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335   if test "$cross_compiling" = yes; then :
6336          gl_cv_func_memchr_works="guessing no"
6337 else
6338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h.  */
6340
6341 #include <string.h>
6342 #if HAVE_SYS_MMAN_H
6343 # include <fcntl.h>
6344 # include <unistd.h>
6345 # include <sys/types.h>
6346 # include <sys/mman.h>
6347 # ifndef MAP_FILE
6348 #  define MAP_FILE 0
6349 # endif
6350 #endif
6351
6352 int
6353 main ()
6354 {
6355
6356   char *fence = NULL;
6357 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
6358 # if HAVE_MAP_ANONYMOUS
6359   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
6360   const int fd = -1;
6361 # else /* !HAVE_MAP_ANONYMOUS */
6362   const int flags = MAP_FILE | MAP_PRIVATE;
6363   int fd = open ("/dev/zero", O_RDONLY, 0666);
6364   if (fd >= 0)
6365 # endif
6366     {
6367       int pagesize = getpagesize ();
6368       char *two_pages =
6369         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
6370                        flags, fd, 0);
6371       if (two_pages != (char *)(-1)
6372           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
6373         fence = two_pages + pagesize;
6374     }
6375 #endif
6376   if (fence)
6377     {
6378       if (memchr (fence, 0, 0))
6379         return 1;
6380       strcpy (fence - 9, "12345678");
6381       if (memchr (fence - 9, 0, 79) != fence - 1)
6382         return 2;
6383     }
6384   return 0;
6385
6386   ;
6387   return 0;
6388 }
6389 _ACEOF
6390 if ac_fn_c_try_run "$LINENO"; then :
6391   gl_cv_func_memchr_works=yes
6392 else
6393   gl_cv_func_memchr_works=no
6394 fi
6395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6396   conftest.$ac_objext conftest.beam conftest.$ac_ext
6397 fi
6398
6399 fi
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
6401 $as_echo "$gl_cv_func_memchr_works" >&6; }
6402     if test "$gl_cv_func_memchr_works" != yes; then
6403       REPLACE_MEMCHR=1
6404     fi
6405   else
6406     HAVE_MEMCHR=0
6407   fi
6408   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
6409
6410
6411
6412
6413
6414
6415
6416
6417   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
6418
6419
6420   for ac_header in bp-sym.h
6421 do :
6422   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
6423 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
6424   cat >>confdefs.h <<_ACEOF
6425 #define HAVE_BP_SYM_H 1
6426 _ACEOF
6427
6428 fi
6429
6430 done
6431
6432
6433   fi
6434
6435
6436       ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
6437 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
6438   ac_have_decl=1
6439 else
6440   ac_have_decl=0
6441 fi
6442
6443 cat >>confdefs.h <<_ACEOF
6444 #define HAVE_DECL_MEMMEM $ac_have_decl
6445 _ACEOF
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460   for ac_func in memmem
6461 do :
6462   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6463 if test "x$ac_cv_func_memmem" = x""yes; then :
6464   cat >>confdefs.h <<_ACEOF
6465 #define HAVE_MEMMEM 1
6466 _ACEOF
6467
6468 else
6469
6470     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6471
6472 fi
6473 done
6474
6475
6476
6477   :
6478
6479
6480
6481
6482
6483   if test $ac_cv_have_decl_memmem = no; then
6484     HAVE_DECL_MEMMEM=0
6485   fi
6486   :
6487
6488
6489     REPLACE_NULL=0;
6490   HAVE_WCHAR_T=1;
6491   STDDEF_H='';
6492
6493
6494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6495 $as_echo_n "checking for wchar_t... " >&6; }
6496 if test "${gt_cv_c_wchar_t+set}" = set; then :
6497   $as_echo_n "(cached) " >&6
6498 else
6499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h.  */
6501 #include <stddef.h>
6502        wchar_t foo = (wchar_t)'\0';
6503 int
6504 main ()
6505 {
6506
6507   ;
6508   return 0;
6509 }
6510 _ACEOF
6511 if ac_fn_c_try_compile "$LINENO"; then :
6512   gt_cv_c_wchar_t=yes
6513 else
6514   gt_cv_c_wchar_t=no
6515 fi
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 fi
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6519 $as_echo "$gt_cv_c_wchar_t" >&6; }
6520   if test $gt_cv_c_wchar_t = yes; then
6521
6522 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6523
6524   fi
6525
6526
6527
6528
6529
6530
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6532 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6533 if test "${ac_cv_c_restrict+set}" = set; then :
6534   $as_echo_n "(cached) " >&6
6535 else
6536   ac_cv_c_restrict=no
6537    # The order here caters to the fact that C++ does not require restrict.
6538    for ac_kw in __restrict __restrict__ _Restrict restrict; do
6539      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h.  */
6541 typedef int * int_ptr;
6542         int foo (int_ptr $ac_kw ip) {
6543         return ip[0];
6544        }
6545 int
6546 main ()
6547 {
6548 int s[1];
6549         int * $ac_kw t = s;
6550         t[0] = 0;
6551         return foo(t)
6552   ;
6553   return 0;
6554 }
6555 _ACEOF
6556 if ac_fn_c_try_compile "$LINENO"; then :
6557   ac_cv_c_restrict=$ac_kw
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560      test "$ac_cv_c_restrict" != no && break
6561    done
6562
6563 fi
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6565 $as_echo "$ac_cv_c_restrict" >&6; }
6566
6567  case $ac_cv_c_restrict in
6568    restrict) ;;
6569    no) $as_echo "#define restrict /**/" >>confdefs.h
6570  ;;
6571    *)  cat >>confdefs.h <<_ACEOF
6572 #define restrict $ac_cv_c_restrict
6573 _ACEOF
6574  ;;
6575  esac
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589   :
6590
6591
6592
6593
6594
6595
6596
6597      if test $gl_cv_have_include_next = yes; then
6598        gl_cv_next_string_h='<'string.h'>'
6599      else
6600        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
6601 $as_echo_n "checking absolute name of <string.h>... " >&6; }
6602 if test "${gl_cv_next_string_h+set}" = set; then :
6603   $as_echo_n "(cached) " >&6
6604 else
6605
6606           if test $ac_cv_header_string_h = yes; then
6607             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h.  */
6609 #include <string.h>
6610
6611 _ACEOF
6612                                                                                                 case "$host_os" in
6613               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6614               *)    gl_absname_cpp="$ac_cpp" ;;
6615             esac
6616                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6617                sed -n '\#/string.h#{
6618                  s#.*"\(.*/string.h\)".*#\1#
6619                  s#^/[^/]#//&#
6620                  p
6621                  q
6622                }'`'"'
6623           else
6624             gl_cv_next_string_h='<'string.h'>'
6625           fi
6626
6627 fi
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
6629 $as_echo "$gl_cv_next_string_h" >&6; }
6630      fi
6631      NEXT_STRING_H=$gl_cv_next_string_h
6632
6633      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6634        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6635        gl_next_as_first_directive='<'string.h'>'
6636      else
6637        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6638        gl_next_as_first_directive=$gl_cv_next_string_h
6639      fi
6640      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
6641
6642
6643
6644
6645
6646     for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
6647     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6649 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6650 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6651   $as_echo_n "(cached) " >&6
6652 else
6653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h.  */
6655 #include <string.h>
6656
6657 int
6658 main ()
6659 {
6660 #undef $gl_func
6661   (void) $gl_func;
6662   ;
6663   return 0;
6664 }
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"; then :
6667   eval "$as_gl_Symbol=yes"
6668 else
6669   eval "$as_gl_Symbol=no"
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 fi
6673 eval ac_res=\$$as_gl_Symbol
6674                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6675 $as_echo "$ac_res" >&6; }
6676      eval as_val=\$$as_gl_Symbol
6677    if test "x$as_val" = x""yes; then :
6678   cat >>confdefs.h <<_ACEOF
6679 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6680 _ACEOF
6681
6682                      eval ac_cv_have_decl_$gl_func=yes
6683 fi
6684       done
6685
6686
6687
6688   GNULIB_BTOWC=0;
6689   GNULIB_WCTOB=0;
6690   GNULIB_MBSINIT=0;
6691   GNULIB_MBRTOWC=0;
6692   GNULIB_MBRLEN=0;
6693   GNULIB_MBSRTOWCS=0;
6694   GNULIB_MBSNRTOWCS=0;
6695   GNULIB_WCRTOMB=0;
6696   GNULIB_WCSRTOMBS=0;
6697   GNULIB_WCSNRTOMBS=0;
6698   GNULIB_WCWIDTH=0;
6699     HAVE_BTOWC=1;
6700   HAVE_MBSINIT=1;
6701   HAVE_MBRTOWC=1;
6702   HAVE_MBRLEN=1;
6703   HAVE_MBSRTOWCS=1;
6704   HAVE_MBSNRTOWCS=1;
6705   HAVE_WCRTOMB=1;
6706   HAVE_WCSRTOMBS=1;
6707   HAVE_WCSNRTOMBS=1;
6708   HAVE_DECL_WCTOB=1;
6709   HAVE_DECL_WCWIDTH=1;
6710   REPLACE_MBSTATE_T=0;
6711   REPLACE_BTOWC=0;
6712   REPLACE_WCTOB=0;
6713   REPLACE_MBSINIT=0;
6714   REPLACE_MBRTOWC=0;
6715   REPLACE_MBRLEN=0;
6716   REPLACE_MBSRTOWCS=0;
6717   REPLACE_MBSNRTOWCS=0;
6718   REPLACE_WCRTOMB=0;
6719   REPLACE_WCSRTOMBS=0;
6720   REPLACE_WCSNRTOMBS=0;
6721   REPLACE_WCWIDTH=0;
6722
6723
6724             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
6725 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
6726 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
6727   $as_echo_n "(cached) " >&6
6728 else
6729   gl_cv_header_wchar_h_correct_inline=yes
6730      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h.  */
6732
6733        #define wcstod renamed_wcstod
6734 #include <wchar.h>
6735 extern int zero (void);
6736 int main () { return zero(); }
6737
6738 _ACEOF
6739      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6740   (eval $ac_compile) 2>&5
6741   ac_status=$?
6742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743   test $ac_status = 0; }; then
6744        mv conftest.$ac_objext conftest1.$ac_objext
6745        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h.  */
6747
6748          #define wcstod renamed_wcstod
6749 #include <wchar.h>
6750 int zero (void) { return 0; }
6751
6752 _ACEOF
6753        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6754   (eval $ac_compile) 2>&5
6755   ac_status=$?
6756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757   test $ac_status = 0; }; then
6758          mv conftest.$ac_objext conftest2.$ac_objext
6759          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
6760            :
6761          else
6762            gl_cv_header_wchar_h_correct_inline=no
6763          fi
6764        fi
6765      fi
6766      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
6767
6768 fi
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
6770 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
6771   if test $gl_cv_header_wchar_h_correct_inline = no; then
6772     as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
6773 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
6774 C99 mode. You have four options:
6775   - Add the flag -fgnu89-inline to CC and reconfigure, or
6776   - Fix your include files, using parts of
6777     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
6778   - Use a gcc version older than 4.3, or
6779   - Don't use the flags -std=c99 or -std=gnu99.
6780 Configuration aborted." "$LINENO" 5
6781   fi
6782
6783
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6785 $as_echo_n "checking for wint_t... " >&6; }
6786 if test "${gt_cv_c_wint_t+set}" = set; then :
6787   $as_echo_n "(cached) " >&6
6788 else
6789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h.  */
6791
6792 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6793    <wchar.h>.
6794    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
6795    before <wchar.h>.  */
6796 #include <stddef.h>
6797 #include <stdio.h>
6798 #include <time.h>
6799 #include <wchar.h>
6800        wint_t foo = (wchar_t)'\0';
6801 int
6802 main ()
6803 {
6804
6805   ;
6806   return 0;
6807 }
6808 _ACEOF
6809 if ac_fn_c_try_compile "$LINENO"; then :
6810   gt_cv_c_wint_t=yes
6811 else
6812   gt_cv_c_wint_t=no
6813 fi
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815 fi
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6817 $as_echo "$gt_cv_c_wint_t" >&6; }
6818   if test $gt_cv_c_wint_t = yes; then
6819
6820 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6821
6822   fi
6823
6824
6825    if false; then
6826   GL_COND_LIBTOOL_TRUE=
6827   GL_COND_LIBTOOL_FALSE='#'
6828 else
6829   GL_COND_LIBTOOL_TRUE='#'
6830   GL_COND_LIBTOOL_FALSE=
6831 fi
6832
6833   gl_cond_libtool=false
6834   gl_libdeps=
6835   gl_ltlibdeps=
6836   gl_m4_base='gnulib/m4'
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846   gl_source_base='gnulib'
6847   # Code from module arg-nonnull:
6848   # Code from module c++defs:
6849   # Code from module extensions:
6850   # Code from module include_next:
6851   # Code from module inttypes:
6852
6853
6854
6855
6856   :
6857
6858
6859
6860
6861
6862
6863   :
6864
6865
6866
6867
6868
6869
6870   :
6871
6872
6873
6874
6875
6876
6877   :
6878
6879
6880
6881
6882
6883
6884   :
6885
6886
6887
6888
6889
6890
6891               { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inttypes.h conforms to C99" >&5
6892 $as_echo_n "checking whether inttypes.h conforms to C99... " >&6; }
6893 if test "${gl_cv_header_working_inttypes_h+set}" = set; then :
6894   $as_echo_n "(cached) " >&6
6895 else
6896   gl_cv_header_working_inttypes_h=no
6897      if test "$gl_cv_header_working_stdint_h" = yes \
6898         && test $ac_cv_header_inttypes_h = yes \
6899         && test "$ac_cv_have_decl_imaxabs" = yes \
6900         && test "$ac_cv_have_decl_imaxdiv" = yes \
6901         && test "$ac_cv_have_decl_strtoimax" = yes \
6902         && test "$ac_cv_have_decl_strtoumax" = yes; then
6903        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h.  */
6905
6906
6907 #include <stddef.h>
6908 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6909 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6910 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
6911 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
6912 #include <inttypes.h>
6913
6914 /* No need to duplicate the tests of stdint.m4; they are subsumed by
6915    $gl_cv_header_working_stdint_h = yes.  */
6916
6917 /* Tests for macros supposed to be defined in inttypes.h.  */
6918
6919 const char *k = /* implicit string concatenation */
6920 #ifdef INT8_MAX
6921   PRId8 PRIi8
6922 #endif
6923 #ifdef UINT8_MAX
6924   PRIo8 PRIu8 PRIx8 PRIX8
6925 #endif
6926 #ifdef INT16_MAX
6927   PRId16 PRIi16
6928 #endif
6929 #ifdef UINT16_MAX
6930   PRIo16 PRIu16 PRIx16 PRIX16
6931 #endif
6932 #ifdef INT32_MAX
6933   PRId32 PRIi32
6934 #endif
6935 #ifdef UINT32_MAX
6936   PRIo32 PRIu32 PRIx32 PRIX32
6937 #endif
6938 #ifdef INT64_MAX
6939   PRId64 PRIi64
6940 #endif
6941 #ifdef UINT64_MAX
6942   PRIo64 PRIu64 PRIx64 PRIX64
6943 #endif
6944   PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
6945   PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
6946   PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
6947   PRIdLEAST64 PRIiLEAST64
6948   PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
6949   PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
6950   PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
6951   PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
6952   PRIdFAST64 PRIiFAST64
6953   PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
6954   PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
6955 #ifdef INTPTR_MAX
6956   PRIdPTR PRIiPTR
6957 #endif
6958 #ifdef UINTPTR_MAX
6959   PRIoPTR PRIuPTR PRIxPTR PRIXPTR
6960 #endif
6961   ;
6962 const char *l = /* implicit string concatenation */
6963 #ifdef INT8_MAX
6964   SCNd8 SCNi8
6965 #endif
6966 #ifdef UINT8_MAX
6967   SCNo8 SCNu8 SCNx8
6968 #endif
6969 #ifdef INT16_MAX
6970   SCNd16 SCNi16
6971 #endif
6972 #ifdef UINT16_MAX
6973   SCNo16 SCNu16 SCNx16
6974 #endif
6975 #ifdef INT32_MAX
6976   SCNd32 SCNi32
6977 #endif
6978 #ifdef UINT32_MAX
6979   SCNo32 SCNu32 SCNx32
6980 #endif
6981 #ifdef INT64_MAX
6982   SCNd64 SCNi64
6983 #endif
6984 #ifdef UINT64_MAX
6985   SCNo64 SCNu64 SCNx64
6986 #endif
6987   SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
6988   SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
6989   SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
6990   SCNdLEAST64 SCNiLEAST64
6991   SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
6992   SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
6993   SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
6994   SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
6995   SCNdFAST64 SCNiFAST64
6996   SCNoFAST64 SCNuFAST64 SCNxFAST64
6997   SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
6998 #ifdef INTPTR_MAX
6999   SCNdPTR SCNiPTR
7000 #endif
7001 #ifdef UINTPTR_MAX
7002   SCNoPTR SCNuPTR SCNxPTR
7003 #endif
7004   ;
7005
7006 int
7007 main ()
7008 {
7009
7010   ;
7011   return 0;
7012 }
7013 _ACEOF
7014 if ac_fn_c_try_compile "$LINENO"; then :
7015   gl_cv_header_working_inttypes_h=yes
7016 fi
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018      fi
7019 fi
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_inttypes_h" >&5
7021 $as_echo "$gl_cv_header_working_inttypes_h" >&6; }
7022
7023
7024
7025
7026
7027
7028   :
7029
7030
7031
7032
7033
7034
7035
7036      if test $gl_cv_have_include_next = yes; then
7037        gl_cv_next_inttypes_h='<'inttypes.h'>'
7038      else
7039        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7040 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7041 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7042   $as_echo_n "(cached) " >&6
7043 else
7044
7045           if test $ac_cv_header_inttypes_h = yes; then
7046             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h.  */
7048 #include <inttypes.h>
7049
7050 _ACEOF
7051                                                                                                 case "$host_os" in
7052               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7053               *)    gl_absname_cpp="$ac_cpp" ;;
7054             esac
7055                                                 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7056                sed -n '\#/inttypes.h#{
7057                  s#.*"\(.*/inttypes.h\)".*#\1#
7058                  s#^/[^/]#//&#
7059                  p
7060                  q
7061                }'`'"'
7062           else
7063             gl_cv_next_inttypes_h='<'inttypes.h'>'
7064           fi
7065
7066 fi
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7068 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7069      fi
7070      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7071
7072      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7073        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7074        gl_next_as_first_directive='<'inttypes.h'>'
7075      else
7076        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7077        gl_next_as_first_directive=$gl_cv_next_inttypes_h
7078      fi
7079      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7080
7081
7082
7083
7084
7085
7086
7087 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
7088
7089
7090
7091   PRIPTR_PREFIX=
7092   if test -n "$STDINT_H"; then
7093         PRIPTR_PREFIX='"l"'
7094   else
7095         for glpfx in '' l ll I64; do
7096       case $glpfx in
7097         '')  gltype1='int';;
7098         l)   gltype1='long int';;
7099         ll)  gltype1='long long int';;
7100         I64) gltype1='__int64';;
7101       esac
7102       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h.  */
7104 #include <stdint.h>
7105            extern intptr_t foo;
7106            extern $gltype1 foo;
7107 int
7108 main ()
7109 {
7110
7111   ;
7112   return 0;
7113 }
7114 _ACEOF
7115 if ac_fn_c_try_compile "$LINENO"; then :
7116   PRIPTR_PREFIX='"'$glpfx'"'
7117 fi
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119       test -n "$PRIPTR_PREFIX" && break
7120     done
7121   fi
7122
7123
7124   if test "$ac_cv_have_decl_imaxabs" = yes; then
7125     HAVE_DECL_IMAXABS=1
7126   else
7127     HAVE_DECL_IMAXABS=0
7128   fi
7129
7130   if test "$ac_cv_have_decl_imaxdiv" = yes; then
7131     HAVE_DECL_IMAXDIV=1
7132   else
7133     HAVE_DECL_IMAXDIV=0
7134   fi
7135
7136   if test "$ac_cv_have_decl_strtoimax" = yes; then
7137     HAVE_DECL_STRTOIMAX=1
7138   else
7139     HAVE_DECL_STRTOIMAX=0
7140   fi
7141
7142   if test "$ac_cv_have_decl_strtoumax" = yes; then
7143     HAVE_DECL_STRTOUMAX=1
7144   else
7145     HAVE_DECL_STRTOUMAX=0
7146   fi
7147
7148
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
7150 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
7151 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
7152   $as_echo_n "(cached) " >&6
7153 else
7154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h.  */
7156 /* Work also in C++ mode.  */
7157             #define __STDC_LIMIT_MACROS 1
7158
7159             /* Work if build is not clean.  */
7160             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7161
7162             #include <limits.h>
7163             #if HAVE_STDINT_H
7164              #include <stdint.h>
7165             #endif
7166
7167             #if defined INT32_MAX && defined INTMAX_MAX
7168              #define CONDITION (INT32_MAX < INTMAX_MAX)
7169             #elif HAVE_LONG_LONG_INT
7170              #define CONDITION (sizeof (int) < sizeof (long long int))
7171             #else
7172              #define CONDITION 0
7173             #endif
7174             int test[CONDITION ? 1 : -1];
7175 int
7176 main ()
7177 {
7178
7179   ;
7180   return 0;
7181 }
7182 _ACEOF
7183 if ac_fn_c_try_compile "$LINENO"; then :
7184   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
7185 else
7186   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
7187 fi
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189 fi
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
7191 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
7192   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
7193     INT32_MAX_LT_INTMAX_MAX=1;
7194   else
7195     INT32_MAX_LT_INTMAX_MAX=0;
7196   fi
7197
7198
7199   if test $APPLE_UNIVERSAL_BUILD = 0; then
7200
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
7202 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
7203 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
7204   $as_echo_n "(cached) " >&6
7205 else
7206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h.  */
7208 /* Work also in C++ mode.  */
7209             #define __STDC_LIMIT_MACROS 1
7210
7211             /* Work if build is not clean.  */
7212             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7213
7214             #include <limits.h>
7215             #if HAVE_STDINT_H
7216              #include <stdint.h>
7217             #endif
7218
7219             #if defined INT64_MAX
7220              #define CONDITION (INT64_MAX == LONG_MAX)
7221             #elif HAVE_LONG_LONG_INT
7222              #define CONDITION (sizeof (long long int) == sizeof (long int))
7223             #else
7224              #define CONDITION 0
7225             #endif
7226             int test[CONDITION ? 1 : -1];
7227 int
7228 main ()
7229 {
7230
7231   ;
7232   return 0;
7233 }
7234 _ACEOF
7235 if ac_fn_c_try_compile "$LINENO"; then :
7236   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
7237 else
7238   gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
7239 fi
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 fi
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
7243 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
7244   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
7245     INT64_MAX_EQ_LONG_MAX=1;
7246   else
7247     INT64_MAX_EQ_LONG_MAX=0;
7248   fi
7249
7250
7251   else
7252     INT64_MAX_EQ_LONG_MAX=-1
7253   fi
7254
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
7256 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
7257 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
7258   $as_echo_n "(cached) " >&6
7259 else
7260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h.  */
7262 /* Work also in C++ mode.  */
7263             #define __STDC_LIMIT_MACROS 1
7264
7265             /* Work if build is not clean.  */
7266             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7267
7268             #include <limits.h>
7269             #if HAVE_STDINT_H
7270              #include <stdint.h>
7271             #endif
7272
7273             #if defined UINT32_MAX && defined UINTMAX_MAX
7274              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
7275             #elif HAVE_LONG_LONG_INT
7276              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
7277             #else
7278              #define CONDITION 0
7279             #endif
7280             int test[CONDITION ? 1 : -1];
7281 int
7282 main ()
7283 {
7284
7285   ;
7286   return 0;
7287 }
7288 _ACEOF
7289 if ac_fn_c_try_compile "$LINENO"; then :
7290   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
7291 else
7292   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
7293 fi
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 fi
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
7297 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
7298   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
7299     UINT32_MAX_LT_UINTMAX_MAX=1;
7300   else
7301     UINT32_MAX_LT_UINTMAX_MAX=0;
7302   fi
7303
7304
7305   if test $APPLE_UNIVERSAL_BUILD = 0; then
7306
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
7308 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
7309 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h.  */
7314 /* Work also in C++ mode.  */
7315             #define __STDC_LIMIT_MACROS 1
7316
7317             /* Work if build is not clean.  */
7318             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7319
7320             #include <limits.h>
7321             #if HAVE_STDINT_H
7322              #include <stdint.h>
7323             #endif
7324
7325             #if defined UINT64_MAX
7326              #define CONDITION (UINT64_MAX == ULONG_MAX)
7327             #elif HAVE_LONG_LONG_INT
7328              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
7329             #else
7330              #define CONDITION 0
7331             #endif
7332             int test[CONDITION ? 1 : -1];
7333 int
7334 main ()
7335 {
7336
7337   ;
7338   return 0;
7339 }
7340 _ACEOF
7341 if ac_fn_c_try_compile "$LINENO"; then :
7342   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
7343 else
7344   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
7345 fi
7346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347 fi
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
7349 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
7350   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
7351     UINT64_MAX_EQ_ULONG_MAX=1;
7352   else
7353     UINT64_MAX_EQ_ULONG_MAX=0;
7354   fi
7355
7356
7357   else
7358     UINT64_MAX_EQ_ULONG_MAX=-1
7359   fi
7360
7361
7362     for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7363     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7365 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7366 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7367   $as_echo_n "(cached) " >&6
7368 else
7369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h.  */
7371 #include <inttypes.h>
7372
7373 int
7374 main ()
7375 {
7376 #undef $gl_func
7377   (void) $gl_func;
7378   ;
7379   return 0;
7380 }
7381 _ACEOF
7382 if ac_fn_c_try_compile "$LINENO"; then :
7383   eval "$as_gl_Symbol=yes"
7384 else
7385   eval "$as_gl_Symbol=no"
7386 fi
7387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388 fi
7389 eval ac_res=\$$as_gl_Symbol
7390                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7391 $as_echo "$ac_res" >&6; }
7392      eval as_val=\$$as_gl_Symbol
7393    if test "x$as_val" = x""yes; then :
7394   cat >>confdefs.h <<_ACEOF
7395 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7396 _ACEOF
7397
7398                      eval ac_cv_have_decl_$gl_func=yes
7399 fi
7400       done
7401
7402
7403   # Code from module memchr:
7404
7405
7406
7407
7408   GNULIB_MEMCHR=1
7409
7410
7411
7412 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
7413
7414
7415
7416   # Code from module memmem:
7417
7418
7419   if test $ac_cv_have_decl_memmem = yes; then
7420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
7421 $as_echo_n "checking whether memmem works in linear time... " >&6; }
7422 if test "${gl_cv_func_memmem_works+set}" = set; then :
7423   $as_echo_n "(cached) " >&6
7424 else
7425   if test "$cross_compiling" = yes; then :
7426                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h.  */
7428
7429 #include <features.h>
7430 #ifdef __GNU_LIBRARY__
7431  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
7432   Lucky user
7433  #endif
7434 #endif
7435 #ifdef __CYGWIN__
7436  #include <cygwin/version.h>
7437  #if CYGWIN_VERSION_DLL_MAJOR >= 1007
7438   Lucky user
7439  #endif
7440 #endif
7441
7442 _ACEOF
7443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7444   $EGREP "Lucky user" >/dev/null 2>&1; then :
7445   gl_cv_func_memmem_works=yes
7446 else
7447   gl_cv_func_memmem_works="guessing no"
7448 fi
7449 rm -f conftest*
7450
7451
7452 else
7453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h.  */
7455
7456 #include <signal.h> /* for signal */
7457 #include <string.h> /* for memmem */
7458 #include <stdlib.h> /* for malloc */
7459 #include <unistd.h> /* for alarm */
7460
7461 int
7462 main ()
7463 {
7464 size_t m = 1000000;
7465     char *haystack = (char *) malloc (2 * m + 1);
7466     char *needle = (char *) malloc (m + 1);
7467     void *result = 0;
7468     /* Failure to compile this test due to missing alarm is okay,
7469        since all such platforms (mingw) also lack memmem.  */
7470     signal (SIGALRM, SIG_DFL);
7471     alarm (5);
7472     /* Check for quadratic performance.  */
7473     if (haystack && needle)
7474       {
7475         memset (haystack, 'A', 2 * m);
7476         haystack[2 * m] = 'B';
7477         memset (needle, 'A', m);
7478         needle[m] = 'B';
7479         result = memmem (haystack, 2 * m + 1, needle, m + 1);
7480       }
7481     /* Check for empty needle behavior.  */
7482     return !result || !memmem ("a", 1, 0, 0);
7483   ;
7484   return 0;
7485 }
7486 _ACEOF
7487 if ac_fn_c_try_run "$LINENO"; then :
7488   gl_cv_func_memmem_works=yes
7489 else
7490   gl_cv_func_memmem_works=no
7491 fi
7492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7493   conftest.$ac_objext conftest.beam conftest.$ac_ext
7494 fi
7495
7496
7497 fi
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
7499 $as_echo "$gl_cv_func_memmem_works" >&6; }
7500     if test "$gl_cv_func_memmem_works" != yes; then
7501       REPLACE_MEMMEM=1
7502
7503
7504
7505
7506
7507
7508
7509
7510   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
7511
7512     fi
7513   fi
7514
7515   # Code from module memmem-simple:
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528   for ac_func in memmem
7529 do :
7530   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
7531 if test "x$ac_cv_func_memmem" = x""yes; then :
7532   cat >>confdefs.h <<_ACEOF
7533 #define HAVE_MEMMEM 1
7534 _ACEOF
7535
7536 else
7537
7538     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
7539
7540 fi
7541 done
7542
7543
7544
7545   :
7546
7547
7548
7549
7550
7551   if test $ac_cv_have_decl_memmem = no; then
7552     HAVE_DECL_MEMMEM=0
7553   fi
7554   :
7555
7556
7557
7558
7559   GNULIB_MEMMEM=1
7560
7561
7562
7563 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
7564
7565
7566
7567   # Code from module multiarch:
7568
7569   # Code from module stddef:
7570
7571
7572
7573   if test $gt_cv_c_wchar_t = no; then
7574     HAVE_WCHAR_T=0
7575     STDDEF_H=stddef.h
7576   fi
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
7578 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
7579 if test "${gl_cv_decl_null_works+set}" = set; then :
7580   $as_echo_n "(cached) " >&6
7581 else
7582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h.  */
7584 #include <stddef.h>
7585       int test[2 * (sizeof NULL == sizeof (void *)) -1];
7586
7587 int
7588 main ()
7589 {
7590
7591   ;
7592   return 0;
7593 }
7594 _ACEOF
7595 if ac_fn_c_try_compile "$LINENO"; then :
7596   gl_cv_decl_null_works=yes
7597 else
7598   gl_cv_decl_null_works=no
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
7603 $as_echo "$gl_cv_decl_null_works" >&6; }
7604   if test $gl_cv_decl_null_works = no; then
7605     REPLACE_NULL=1
7606     STDDEF_H=stddef.h
7607   fi
7608   if test -n "$STDDEF_H"; then
7609
7610
7611
7612
7613   :
7614
7615
7616
7617
7618
7619
7620
7621      if test $gl_cv_have_include_next = yes; then
7622        gl_cv_next_stddef_h='<'stddef.h'>'
7623      else
7624        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
7625 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
7626 if test "${gl_cv_next_stddef_h+set}" = set; then :
7627   $as_echo_n "(cached) " >&6
7628 else
7629
7630           if test $ac_cv_header_stddef_h = yes; then
7631             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h.  */
7633 #include <stddef.h>
7634
7635 _ACEOF
7636                                                                                                 case "$host_os" in
7637               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7638               *)    gl_absname_cpp="$ac_cpp" ;;
7639             esac
7640                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7641                sed -n '\#/stddef.h#{
7642                  s#.*"\(.*/stddef.h\)".*#\1#
7643                  s#^/[^/]#//&#
7644                  p
7645                  q
7646                }'`'"'
7647           else
7648             gl_cv_next_stddef_h='<'stddef.h'>'
7649           fi
7650
7651 fi
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
7653 $as_echo "$gl_cv_next_stddef_h" >&6; }
7654      fi
7655      NEXT_STDDEF_H=$gl_cv_next_stddef_h
7656
7657      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7658        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7659        gl_next_as_first_directive='<'stddef.h'>'
7660      else
7661        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7662        gl_next_as_first_directive=$gl_cv_next_stddef_h
7663      fi
7664      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
7665
7666
7667
7668   fi
7669
7670   # Code from module stdint:
7671
7672
7673
7674   if test $ac_cv_type_long_long_int = yes; then
7675     HAVE_LONG_LONG_INT=1
7676   else
7677     HAVE_LONG_LONG_INT=0
7678   fi
7679
7680
7681   if test $ac_cv_type_unsigned_long_long_int = yes; then
7682     HAVE_UNSIGNED_LONG_LONG_INT=1
7683   else
7684     HAVE_UNSIGNED_LONG_LONG_INT=0
7685   fi
7686
7687
7688       if test $ac_cv_header_inttypes_h = yes; then
7689     HAVE_INTTYPES_H=1
7690   else
7691     HAVE_INTTYPES_H=0
7692   fi
7693
7694
7695       if test $ac_cv_header_sys_types_h = yes; then
7696     HAVE_SYS_TYPES_H=1
7697   else
7698     HAVE_SYS_TYPES_H=0
7699   fi
7700
7701
7702
7703
7704
7705
7706   :
7707
7708
7709
7710
7711
7712
7713
7714      if test $gl_cv_have_include_next = yes; then
7715        gl_cv_next_stdint_h='<'stdint.h'>'
7716      else
7717        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7718 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7719 if test "${gl_cv_next_stdint_h+set}" = set; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722
7723           if test $ac_cv_header_stdint_h = yes; then
7724             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h.  */
7726 #include <stdint.h>
7727
7728 _ACEOF
7729                                                                                                 case "$host_os" in
7730               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7731               *)    gl_absname_cpp="$ac_cpp" ;;
7732             esac
7733                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7734                sed -n '\#/stdint.h#{
7735                  s#.*"\(.*/stdint.h\)".*#\1#
7736                  s#^/[^/]#//&#
7737                  p
7738                  q
7739                }'`'"'
7740           else
7741             gl_cv_next_stdint_h='<'stdint.h'>'
7742           fi
7743
7744 fi
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7746 $as_echo "$gl_cv_next_stdint_h" >&6; }
7747      fi
7748      NEXT_STDINT_H=$gl_cv_next_stdint_h
7749
7750      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7751        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7752        gl_next_as_first_directive='<'stdint.h'>'
7753      else
7754        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7755        gl_next_as_first_directive=$gl_cv_next_stdint_h
7756      fi
7757      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7758
7759
7760
7761   if test $ac_cv_header_stdint_h = yes; then
7762     HAVE_STDINT_H=1
7763   else
7764     HAVE_STDINT_H=0
7765   fi
7766
7767
7768     if test $ac_cv_header_stdint_h = yes; then
7769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7770 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7771 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7772   $as_echo_n "(cached) " >&6
7773 else
7774   gl_cv_header_working_stdint_h=no
7775        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h.  */
7777
7778
7779 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
7780 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
7781 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7782 #include <stdint.h>
7783 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
7784 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7785 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7786 #endif
7787
7788
7789   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7790      included before <wchar.h>.  */
7791   #include <stddef.h>
7792   #include <signal.h>
7793   #if HAVE_WCHAR_H
7794   # include <stdio.h>
7795   # include <time.h>
7796   # include <wchar.h>
7797   #endif
7798
7799
7800 #ifdef INT8_MAX
7801 int8_t a1 = INT8_MAX;
7802 int8_t a1min = INT8_MIN;
7803 #endif
7804 #ifdef INT16_MAX
7805 int16_t a2 = INT16_MAX;
7806 int16_t a2min = INT16_MIN;
7807 #endif
7808 #ifdef INT32_MAX
7809 int32_t a3 = INT32_MAX;
7810 int32_t a3min = INT32_MIN;
7811 #endif
7812 #ifdef INT64_MAX
7813 int64_t a4 = INT64_MAX;
7814 int64_t a4min = INT64_MIN;
7815 #endif
7816 #ifdef UINT8_MAX
7817 uint8_t b1 = UINT8_MAX;
7818 #else
7819 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7820 #endif
7821 #ifdef UINT16_MAX
7822 uint16_t b2 = UINT16_MAX;
7823 #endif
7824 #ifdef UINT32_MAX
7825 uint32_t b3 = UINT32_MAX;
7826 #endif
7827 #ifdef UINT64_MAX
7828 uint64_t b4 = UINT64_MAX;
7829 #endif
7830 int_least8_t c1 = INT8_C (0x7f);
7831 int_least8_t c1max = INT_LEAST8_MAX;
7832 int_least8_t c1min = INT_LEAST8_MIN;
7833 int_least16_t c2 = INT16_C (0x7fff);
7834 int_least16_t c2max = INT_LEAST16_MAX;
7835 int_least16_t c2min = INT_LEAST16_MIN;
7836 int_least32_t c3 = INT32_C (0x7fffffff);
7837 int_least32_t c3max = INT_LEAST32_MAX;
7838 int_least32_t c3min = INT_LEAST32_MIN;
7839 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7840 int_least64_t c4max = INT_LEAST64_MAX;
7841 int_least64_t c4min = INT_LEAST64_MIN;
7842 uint_least8_t d1 = UINT8_C (0xff);
7843 uint_least8_t d1max = UINT_LEAST8_MAX;
7844 uint_least16_t d2 = UINT16_C (0xffff);
7845 uint_least16_t d2max = UINT_LEAST16_MAX;
7846 uint_least32_t d3 = UINT32_C (0xffffffff);
7847 uint_least32_t d3max = UINT_LEAST32_MAX;
7848 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7849 uint_least64_t d4max = UINT_LEAST64_MAX;
7850 int_fast8_t e1 = INT_FAST8_MAX;
7851 int_fast8_t e1min = INT_FAST8_MIN;
7852 int_fast16_t e2 = INT_FAST16_MAX;
7853 int_fast16_t e2min = INT_FAST16_MIN;
7854 int_fast32_t e3 = INT_FAST32_MAX;
7855 int_fast32_t e3min = INT_FAST32_MIN;
7856 int_fast64_t e4 = INT_FAST64_MAX;
7857 int_fast64_t e4min = INT_FAST64_MIN;
7858 uint_fast8_t f1 = UINT_FAST8_MAX;
7859 uint_fast16_t f2 = UINT_FAST16_MAX;
7860 uint_fast32_t f3 = UINT_FAST32_MAX;
7861 uint_fast64_t f4 = UINT_FAST64_MAX;
7862 #ifdef INTPTR_MAX
7863 intptr_t g = INTPTR_MAX;
7864 intptr_t gmin = INTPTR_MIN;
7865 #endif
7866 #ifdef UINTPTR_MAX
7867 uintptr_t h = UINTPTR_MAX;
7868 #endif
7869 intmax_t i = INTMAX_MAX;
7870 uintmax_t j = UINTMAX_MAX;
7871
7872 #include <limits.h> /* for CHAR_BIT */
7873 #define TYPE_MINIMUM(t) \
7874   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
7875 #define TYPE_MAXIMUM(t) \
7876   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
7877 struct s {
7878   int check_PTRDIFF:
7879       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7880       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7881       ? 1 : -1;
7882   /* Detect bug in FreeBSD 6.0 / ia64.  */
7883   int check_SIG_ATOMIC:
7884       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7885       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7886       ? 1 : -1;
7887   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7888   int check_WCHAR:
7889       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7890       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7891       ? 1 : -1;
7892   /* Detect bug in mingw.  */
7893   int check_WINT:
7894       WINT_MIN == TYPE_MINIMUM (wint_t)
7895       && WINT_MAX == TYPE_MAXIMUM (wint_t)
7896       ? 1 : -1;
7897
7898   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
7899   int check_UINT8_C:
7900         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7901   int check_UINT16_C:
7902         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7903
7904   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
7905 #ifdef UINT8_MAX
7906   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7907 #endif
7908 #ifdef UINT16_MAX
7909   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7910 #endif
7911 #ifdef UINT32_MAX
7912   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7913 #endif
7914 #ifdef UINT64_MAX
7915   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7916 #endif
7917   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7918   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7919   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7920   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7921   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7922   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7923   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7924   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7925   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7926   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7927   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7928 };
7929
7930 int
7931 main ()
7932 {
7933
7934   ;
7935   return 0;
7936 }
7937 _ACEOF
7938 if ac_fn_c_try_compile "$LINENO"; then :
7939                                                     if test "$cross_compiling" = yes; then :
7940                  gl_cv_header_working_stdint_h=yes
7941
7942 else
7943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h.  */
7945
7946
7947 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
7948 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
7949 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7950 #include <stdint.h>
7951
7952
7953   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7954      included before <wchar.h>.  */
7955   #include <stddef.h>
7956   #include <signal.h>
7957   #if HAVE_WCHAR_H
7958   # include <stdio.h>
7959   # include <time.h>
7960   # include <wchar.h>
7961   #endif
7962
7963
7964 #include <stdio.h>
7965 #include <string.h>
7966 #define MVAL(macro) MVAL1(macro)
7967 #define MVAL1(expression) #expression
7968 static const char *macro_values[] =
7969   {
7970 #ifdef INT8_MAX
7971     MVAL (INT8_MAX),
7972 #endif
7973 #ifdef INT16_MAX
7974     MVAL (INT16_MAX),
7975 #endif
7976 #ifdef INT32_MAX
7977     MVAL (INT32_MAX),
7978 #endif
7979 #ifdef INT64_MAX
7980     MVAL (INT64_MAX),
7981 #endif
7982 #ifdef UINT8_MAX
7983     MVAL (UINT8_MAX),
7984 #endif
7985 #ifdef UINT16_MAX
7986     MVAL (UINT16_MAX),
7987 #endif
7988 #ifdef UINT32_MAX
7989     MVAL (UINT32_MAX),
7990 #endif
7991 #ifdef UINT64_MAX
7992     MVAL (UINT64_MAX),
7993 #endif
7994     NULL
7995   };
7996
7997 int
7998 main ()
7999 {
8000
8001   const char **mv;
8002   for (mv = macro_values; *mv != NULL; mv++)
8003     {
8004       const char *value = *mv;
8005       /* Test whether it looks like a cast expression.  */
8006       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8007           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8008           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8009           || strncmp (value, "((int)"/*)*/, 6) == 0
8010           || strncmp (value, "((signed short)"/*)*/, 15) == 0
8011           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8012         return 1;
8013     }
8014   return 0;
8015
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 if ac_fn_c_try_run "$LINENO"; then :
8021   gl_cv_header_working_stdint_h=yes
8022 fi
8023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8024   conftest.$ac_objext conftest.beam conftest.$ac_ext
8025 fi
8026
8027
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030
8031 fi
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8033 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8034   fi
8035   if test "$gl_cv_header_working_stdint_h" = yes; then
8036     STDINT_H=
8037   else
8038             for ac_header in sys/inttypes.h sys/bitypes.h
8039 do :
8040   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8041 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8042 eval as_val=\$$as_ac_Header
8043    if test "x$as_val" = x""yes; then :
8044   cat >>confdefs.h <<_ACEOF
8045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8046 _ACEOF
8047
8048 fi
8049
8050 done
8051
8052     if test $ac_cv_header_sys_inttypes_h = yes; then
8053       HAVE_SYS_INTTYPES_H=1
8054     else
8055       HAVE_SYS_INTTYPES_H=0
8056     fi
8057
8058     if test $ac_cv_header_sys_bitypes_h = yes; then
8059       HAVE_SYS_BITYPES_H=1
8060     else
8061       HAVE_SYS_BITYPES_H=0
8062     fi
8063
8064
8065
8066   :
8067
8068
8069
8070
8071
8072
8073
8074
8075   if test $APPLE_UNIVERSAL_BUILD = 0; then
8076
8077
8078   for gltype in ptrdiff_t size_t ; do
8079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8080 $as_echo_n "checking for bit size of $gltype... " >&6; }
8081 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8082   $as_echo_n "(cached) " >&6
8083 else
8084   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
8085   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8086      included before <wchar.h>.  */
8087   #include <stddef.h>
8088   #include <signal.h>
8089   #if HAVE_WCHAR_H
8090   # include <stdio.h>
8091   # include <time.h>
8092   # include <wchar.h>
8093   #endif
8094
8095 #include <limits.h>"; then :
8096
8097 else
8098   result=unknown
8099 fi
8100
8101        eval gl_cv_bitsizeof_${gltype}=\$result
8102
8103 fi
8104 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8105                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8106 $as_echo "$ac_res" >&6; }
8107     eval result=\$gl_cv_bitsizeof_${gltype}
8108     if test $result = unknown; then
8109                                                 result=0
8110     fi
8111     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8112     cat >>confdefs.h <<_ACEOF
8113 #define BITSIZEOF_${GLTYPE} $result
8114 _ACEOF
8115
8116     eval BITSIZEOF_${GLTYPE}=\$result
8117   done
8118
8119
8120   fi
8121
8122
8123   for gltype in sig_atomic_t wchar_t wint_t ; do
8124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8125 $as_echo_n "checking for bit size of $gltype... " >&6; }
8126 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
8130   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8131      included before <wchar.h>.  */
8132   #include <stddef.h>
8133   #include <signal.h>
8134   #if HAVE_WCHAR_H
8135   # include <stdio.h>
8136   # include <time.h>
8137   # include <wchar.h>
8138   #endif
8139
8140 #include <limits.h>"; then :
8141
8142 else
8143   result=unknown
8144 fi
8145
8146        eval gl_cv_bitsizeof_${gltype}=\$result
8147
8148 fi
8149 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8150                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8151 $as_echo "$ac_res" >&6; }
8152     eval result=\$gl_cv_bitsizeof_${gltype}
8153     if test $result = unknown; then
8154                                                 result=0
8155     fi
8156     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8157     cat >>confdefs.h <<_ACEOF
8158 #define BITSIZEOF_${GLTYPE} $result
8159 _ACEOF
8160
8161     eval BITSIZEOF_${GLTYPE}=\$result
8162   done
8163
8164
8165
8166
8167   for gltype in sig_atomic_t wchar_t wint_t ; do
8168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8169 $as_echo_n "checking whether $gltype is signed... " >&6; }
8170 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h.  */
8175
8176   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8177      included before <wchar.h>.  */
8178   #include <stddef.h>
8179   #include <signal.h>
8180   #if HAVE_WCHAR_H
8181   # include <stdio.h>
8182   # include <time.h>
8183   # include <wchar.h>
8184   #endif
8185
8186             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8187 int
8188 main ()
8189 {
8190
8191   ;
8192   return 0;
8193 }
8194 _ACEOF
8195 if ac_fn_c_try_compile "$LINENO"; then :
8196   result=yes
8197 else
8198   result=no
8199 fi
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201        eval gl_cv_type_${gltype}_signed=\$result
8202
8203 fi
8204 eval ac_res=\$gl_cv_type_${gltype}_signed
8205                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8206 $as_echo "$ac_res" >&6; }
8207     eval result=\$gl_cv_type_${gltype}_signed
8208     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8209     if test "$result" = yes; then
8210       cat >>confdefs.h <<_ACEOF
8211 #define HAVE_SIGNED_${GLTYPE} 1
8212 _ACEOF
8213
8214       eval HAVE_SIGNED_${GLTYPE}=1
8215     else
8216       eval HAVE_SIGNED_${GLTYPE}=0
8217     fi
8218   done
8219
8220
8221   gl_cv_type_ptrdiff_t_signed=yes
8222   gl_cv_type_size_t_signed=no
8223   if test $APPLE_UNIVERSAL_BUILD = 0; then
8224
8225
8226   for gltype in ptrdiff_t size_t ; do
8227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8228 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8229 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   eval gl_cv_type_${gltype}_suffix=no
8233        eval result=\$gl_cv_type_${gltype}_signed
8234        if test "$result" = yes; then
8235          glsufu=
8236        else
8237          glsufu=u
8238        fi
8239        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8240          case $glsuf in
8241            '')  gltype1='int';;
8242            l)   gltype1='long int';;
8243            ll)  gltype1='long long int';;
8244            i64) gltype1='__int64';;
8245            u)   gltype1='unsigned int';;
8246            ul)  gltype1='unsigned long int';;
8247            ull) gltype1='unsigned long long int';;
8248            ui64)gltype1='unsigned __int64';;
8249          esac
8250          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h.  */
8252
8253   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8254      included before <wchar.h>.  */
8255   #include <stddef.h>
8256   #include <signal.h>
8257   #if HAVE_WCHAR_H
8258   # include <stdio.h>
8259   # include <time.h>
8260   # include <wchar.h>
8261   #endif
8262
8263               extern $gltype foo;
8264               extern $gltype1 foo;
8265 int
8266 main ()
8267 {
8268
8269   ;
8270   return 0;
8271 }
8272 _ACEOF
8273 if ac_fn_c_try_compile "$LINENO"; then :
8274   eval gl_cv_type_${gltype}_suffix=\$glsuf
8275 fi
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277          eval result=\$gl_cv_type_${gltype}_suffix
8278          test "$result" != no && break
8279        done
8280 fi
8281 eval ac_res=\$gl_cv_type_${gltype}_suffix
8282                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8283 $as_echo "$ac_res" >&6; }
8284     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8285     eval result=\$gl_cv_type_${gltype}_suffix
8286     test "$result" = no && result=
8287     eval ${GLTYPE}_SUFFIX=\$result
8288     cat >>confdefs.h <<_ACEOF
8289 #define ${GLTYPE}_SUFFIX $result
8290 _ACEOF
8291
8292   done
8293
8294
8295   fi
8296
8297
8298   for gltype in sig_atomic_t wchar_t wint_t ; do
8299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8300 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8301 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8302   $as_echo_n "(cached) " >&6
8303 else
8304   eval gl_cv_type_${gltype}_suffix=no
8305        eval result=\$gl_cv_type_${gltype}_signed
8306        if test "$result" = yes; then
8307          glsufu=
8308        else
8309          glsufu=u
8310        fi
8311        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8312          case $glsuf in
8313            '')  gltype1='int';;
8314            l)   gltype1='long int';;
8315            ll)  gltype1='long long int';;
8316            i64) gltype1='__int64';;
8317            u)   gltype1='unsigned int';;
8318            ul)  gltype1='unsigned long int';;
8319            ull) gltype1='unsigned long long int';;
8320            ui64)gltype1='unsigned __int64';;
8321          esac
8322          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h.  */
8324
8325   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8326      included before <wchar.h>.  */
8327   #include <stddef.h>
8328   #include <signal.h>
8329   #if HAVE_WCHAR_H
8330   # include <stdio.h>
8331   # include <time.h>
8332   # include <wchar.h>
8333   #endif
8334
8335               extern $gltype foo;
8336               extern $gltype1 foo;
8337 int
8338 main ()
8339 {
8340
8341   ;
8342   return 0;
8343 }
8344 _ACEOF
8345 if ac_fn_c_try_compile "$LINENO"; then :
8346   eval gl_cv_type_${gltype}_suffix=\$glsuf
8347 fi
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349          eval result=\$gl_cv_type_${gltype}_suffix
8350          test "$result" != no && break
8351        done
8352 fi
8353 eval ac_res=\$gl_cv_type_${gltype}_suffix
8354                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8355 $as_echo "$ac_res" >&6; }
8356     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8357     eval result=\$gl_cv_type_${gltype}_suffix
8358     test "$result" = no && result=
8359     eval ${GLTYPE}_SUFFIX=\$result
8360     cat >>confdefs.h <<_ACEOF
8361 #define ${GLTYPE}_SUFFIX $result
8362 _ACEOF
8363
8364   done
8365
8366
8367
8368     STDINT_H=stdint.h
8369   fi
8370
8371
8372   # Code from module string:
8373
8374
8375
8376   # Code from module update-copyright:
8377   # Code from module warn-on-use:
8378   # Code from module wchar:
8379
8380
8381
8382
8383   :
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393   :
8394
8395
8396
8397
8398
8399
8400
8401      if test $gl_cv_have_include_next = yes; then
8402        gl_cv_next_wchar_h='<'wchar.h'>'
8403      else
8404        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
8405 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
8406 if test "${gl_cv_next_wchar_h+set}" = set; then :
8407   $as_echo_n "(cached) " >&6
8408 else
8409
8410           if test $ac_cv_header_wchar_h = yes; then
8411             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h.  */
8413 #include <wchar.h>
8414
8415 _ACEOF
8416                                                                                                 case "$host_os" in
8417               aix*) gl_absname_cpp="$ac_cpp -C" ;;
8418               *)    gl_absname_cpp="$ac_cpp" ;;
8419             esac
8420                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8421                sed -n '\#/wchar.h#{
8422                  s#.*"\(.*/wchar.h\)".*#\1#
8423                  s#^/[^/]#//&#
8424                  p
8425                  q
8426                }'`'"'
8427           else
8428             gl_cv_next_wchar_h='<'wchar.h'>'
8429           fi
8430
8431 fi
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
8433 $as_echo "$gl_cv_next_wchar_h" >&6; }
8434      fi
8435      NEXT_WCHAR_H=$gl_cv_next_wchar_h
8436
8437      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8438        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8439        gl_next_as_first_directive='<'wchar.h'>'
8440      else
8441        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8442        gl_next_as_first_directive=$gl_cv_next_wchar_h
8443      fi
8444      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
8445
8446
8447
8448   if test $ac_cv_header_wchar_h = yes; then
8449     HAVE_WCHAR_H=1
8450   else
8451     HAVE_WCHAR_H=0
8452   fi
8453
8454
8455
8456   if test $gt_cv_c_wint_t = yes; then
8457     HAVE_WINT_T=1
8458   else
8459     HAVE_WINT_T=0
8460   fi
8461
8462
8463
8464     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
8465     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8467 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8468 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8469   $as_echo_n "(cached) " >&6
8470 else
8471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h.  */
8473
8474 /* Some systems require additional headers.  */
8475 #ifndef __GLIBC__
8476 # include <stddef.h>
8477 # include <stdio.h>
8478 # include <time.h>
8479 #endif
8480 #include <wchar.h>
8481
8482 int
8483 main ()
8484 {
8485 #undef $gl_func
8486   (void) $gl_func;
8487   ;
8488   return 0;
8489 }
8490 _ACEOF
8491 if ac_fn_c_try_compile "$LINENO"; then :
8492   eval "$as_gl_Symbol=yes"
8493 else
8494   eval "$as_gl_Symbol=no"
8495 fi
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 fi
8498 eval ac_res=\$$as_gl_Symbol
8499                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8500 $as_echo "$ac_res" >&6; }
8501      eval as_val=\$$as_gl_Symbol
8502    if test "x$as_val" = x""yes; then :
8503   cat >>confdefs.h <<_ACEOF
8504 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8505 _ACEOF
8506
8507                      eval ac_cv_have_decl_$gl_func=yes
8508 fi
8509       done
8510
8511
8512   # Code from module dummy:
8513   # End of code from modules
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523   gltests_libdeps=
8524   gltests_ltlibdeps=
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534   gl_source_base='tests'
8535   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
8536
8537   gl_module_indicator_condition=$gltests_WITNESS
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547   LIBGNU_LIBDEPS="$gl_libdeps"
8548
8549   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
8550
8551
8552
8553 # For Makefile dependencies.
8554 GNULIB_STDINT_H=
8555 if test x"$STDINT_H" != x; then
8556   GNULIB_STDINT_H=gnulib/$STDINT_H
8557 fi
8558
8559
8560 PACKAGE=gdb
8561
8562 cat >>confdefs.h <<_ACEOF
8563 #define PACKAGE "$PACKAGE"
8564 _ACEOF
8565
8566
8567
8568 # We never need to detect it in this sub-configure.
8569 # But preserve it for config.status --recheck.
8570
8571
8572
8573 MAKEINFO_EXTRA_FLAGS=""
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
8575 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
8576 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
8577   $as_echo_n "(cached) " >&6
8578 else
8579   echo '@clicksequence{a @click{} b}' >conftest.texinfo
8580   if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
8581     gdb_cv_have_makeinfo_click=yes
8582   else
8583     gdb_cv_have_makeinfo_click=no
8584   fi
8585 fi
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
8587 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
8588 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
8589   MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
8590 fi
8591
8592
8593 # GDB does not use automake, but gnulib does.  This line lets us
8594 # generate its Makefile.in.
8595 am__api_version='1.11'
8596
8597 # Find a good install program.  We prefer a C program (faster),
8598 # so one script is as good as another.  But avoid the broken or
8599 # incompatible versions:
8600 # SysV /etc/install, /usr/sbin/install
8601 # SunOS /usr/etc/install
8602 # IRIX /sbin/install
8603 # AIX /bin/install
8604 # AmigaOS /C/install, which installs bootblocks on floppy discs
8605 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8606 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8607 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8608 # OS/2's system install, which has a completely different semantic
8609 # ./install, which can be erroneously created by make from ./install.sh.
8610 # Reject install programs that cannot install multiple files.
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8612 $as_echo_n "checking for a BSD-compatible install... " >&6; }
8613 if test -z "$INSTALL"; then
8614 if test "${ac_cv_path_install+set}" = set; then :
8615   $as_echo_n "(cached) " >&6
8616 else
8617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 for as_dir in $PATH
8619 do
8620   IFS=$as_save_IFS
8621   test -z "$as_dir" && as_dir=.
8622     # Account for people who put trailing slashes in PATH elements.
8623 case $as_dir/ in #((
8624   ./ | .// | /[cC]/* | \
8625   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8626   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8627   /usr/ucb/* ) ;;
8628   *)
8629     # OSF1 and SCO ODT 3.0 have their own names for install.
8630     # Don't use installbsd from OSF since it installs stuff as root
8631     # by default.
8632     for ac_prog in ginstall scoinst install; do
8633       for ac_exec_ext in '' $ac_executable_extensions; do
8634         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
8635           if test $ac_prog = install &&
8636             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8637             # AIX install.  It has an incompatible calling convention.
8638             :
8639           elif test $ac_prog = install &&
8640             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8641             # program-specific install script used by HP pwplus--don't use.
8642             :
8643           else
8644             rm -rf conftest.one conftest.two conftest.dir
8645             echo one > conftest.one
8646             echo two > conftest.two
8647             mkdir conftest.dir
8648             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8649               test -s conftest.one && test -s conftest.two &&
8650               test -s conftest.dir/conftest.one &&
8651               test -s conftest.dir/conftest.two
8652             then
8653               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8654               break 3
8655             fi
8656           fi
8657         fi
8658       done
8659     done
8660     ;;
8661 esac
8662
8663   done
8664 IFS=$as_save_IFS
8665
8666 rm -rf conftest.one conftest.two conftest.dir
8667
8668 fi
8669   if test "${ac_cv_path_install+set}" = set; then
8670     INSTALL=$ac_cv_path_install
8671   else
8672     # As a last resort, use the slow shell script.  Don't cache a
8673     # value for INSTALL within a source directory, because that will
8674     # break other packages using the cache if that directory is
8675     # removed, or if the value is a relative name.
8676     INSTALL=$ac_install_sh
8677   fi
8678 fi
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8680 $as_echo "$INSTALL" >&6; }
8681
8682 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8683 # It thinks the first close brace ends the variable substitution.
8684 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8685
8686 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8687
8688 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8689
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8691 $as_echo_n "checking whether build environment is sane... " >&6; }
8692 # Just in case
8693 sleep 1
8694 echo timestamp > conftest.file
8695 # Reject unsafe characters in $srcdir or the absolute working directory
8696 # name.  Accept space and tab only in the latter.
8697 am_lf='
8698 '
8699 case `pwd` in
8700   *[\\\"\#\$\&\'\`$am_lf]*)
8701     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
8702 esac
8703 case $srcdir in
8704   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
8705     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
8706 esac
8707
8708 # Do `set' in a subshell so we don't clobber the current shell's
8709 # arguments.  Must try -L first in case configure is actually a
8710 # symlink; some systems play weird games with the mod time of symlinks
8711 # (eg FreeBSD returns the mod time of the symlink's containing
8712 # directory).
8713 if (
8714    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8715    if test "$*" = "X"; then
8716       # -L didn't work.
8717       set X `ls -t "$srcdir/configure" conftest.file`
8718    fi
8719    rm -f conftest.file
8720    if test "$*" != "X $srcdir/configure conftest.file" \
8721       && test "$*" != "X conftest.file $srcdir/configure"; then
8722
8723       # If neither matched, then we have a broken ls.  This can happen
8724       # if, for instance, CONFIG_SHELL is bash and it inherits a
8725       # broken ls alias from the environment.  This has actually
8726       # happened.  Such a system could not be considered "sane".
8727       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
8728 alias in your environment" "$LINENO" 5
8729    fi
8730
8731    test "$2" = conftest.file
8732    )
8733 then
8734    # Ok.
8735    :
8736 else
8737    as_fn_error "newly created file is older than distributed files!
8738 Check your system clock" "$LINENO" 5
8739 fi
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8741 $as_echo "yes" >&6; }
8742 test "$program_prefix" != NONE &&
8743   program_transform_name="s&^&$program_prefix&;$program_transform_name"
8744 # Use a double $ so make ignores it.
8745 test "$program_suffix" != NONE &&
8746   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8747 # Double any \ or $.
8748 # By default was `s,x,x', remove it if useless.
8749 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
8750 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
8751
8752 # expand $ac_aux_dir to an absolute path
8753 am_aux_dir=`cd $ac_aux_dir && pwd`
8754
8755 if test x"${MISSING+set}" != xset; then
8756   case $am_aux_dir in
8757   *\ * | *\     *)
8758     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
8759   *)
8760     MISSING="\${SHELL} $am_aux_dir/missing" ;;
8761   esac
8762 fi
8763 # Use eval to expand $SHELL
8764 if eval "$MISSING --run true"; then
8765   am_missing_run="$MISSING --run "
8766 else
8767   am_missing_run=
8768   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
8769 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8770 fi
8771
8772 if test x"${install_sh}" != xset; then
8773   case $am_aux_dir in
8774   *\ * | *\     *)
8775     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
8776   *)
8777     install_sh="\${SHELL} $am_aux_dir/install-sh"
8778   esac
8779 fi
8780
8781 # Installed binaries are usually stripped using `strip' when the user
8782 # run `make install-strip'.  However `strip' might not be the right
8783 # tool to use in cross-compilation environments, therefore Automake
8784 # will honor the `STRIP' environment variable to overrule this program.
8785 if test "$cross_compiling" != no; then
8786   if test -n "$ac_tool_prefix"; then
8787   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8788 set dummy ${ac_tool_prefix}strip; ac_word=$2
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790 $as_echo_n "checking for $ac_word... " >&6; }
8791 if test "${ac_cv_prog_STRIP+set}" = set; then :
8792   $as_echo_n "(cached) " >&6
8793 else
8794   if test -n "$STRIP"; then
8795   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8796 else
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798 for as_dir in $PATH
8799 do
8800   IFS=$as_save_IFS
8801   test -z "$as_dir" && as_dir=.
8802     for ac_exec_ext in '' $ac_executable_extensions; do
8803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8804     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8806     break 2
8807   fi
8808 done
8809   done
8810 IFS=$as_save_IFS
8811
8812 fi
8813 fi
8814 STRIP=$ac_cv_prog_STRIP
8815 if test -n "$STRIP"; then
8816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8817 $as_echo "$STRIP" >&6; }
8818 else
8819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8821 fi
8822
8823
8824 fi
8825 if test -z "$ac_cv_prog_STRIP"; then
8826   ac_ct_STRIP=$STRIP
8827   # Extract the first word of "strip", so it can be a program name with args.
8828 set dummy strip; ac_word=$2
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8830 $as_echo_n "checking for $ac_word... " >&6; }
8831 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8832   $as_echo_n "(cached) " >&6
8833 else
8834   if test -n "$ac_ct_STRIP"; then
8835   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8836 else
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 for as_dir in $PATH
8839 do
8840   IFS=$as_save_IFS
8841   test -z "$as_dir" && as_dir=.
8842     for ac_exec_ext in '' $ac_executable_extensions; do
8843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8844     ac_cv_prog_ac_ct_STRIP="strip"
8845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846     break 2
8847   fi
8848 done
8849   done
8850 IFS=$as_save_IFS
8851
8852 fi
8853 fi
8854 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8855 if test -n "$ac_ct_STRIP"; then
8856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8857 $as_echo "$ac_ct_STRIP" >&6; }
8858 else
8859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 $as_echo "no" >&6; }
8861 fi
8862
8863   if test "x$ac_ct_STRIP" = x; then
8864     STRIP=":"
8865   else
8866     case $cross_compiling:$ac_tool_warned in
8867 yes:)
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8870 ac_tool_warned=yes ;;
8871 esac
8872     STRIP=$ac_ct_STRIP
8873   fi
8874 else
8875   STRIP="$ac_cv_prog_STRIP"
8876 fi
8877
8878 fi
8879 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8880
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8882 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
8883 if test -z "$MKDIR_P"; then
8884   if test "${ac_cv_path_mkdir+set}" = set; then :
8885   $as_echo_n "(cached) " >&6
8886 else
8887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8889 do
8890   IFS=$as_save_IFS
8891   test -z "$as_dir" && as_dir=.
8892     for ac_prog in mkdir gmkdir; do
8893          for ac_exec_ext in '' $ac_executable_extensions; do
8894            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
8895            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
8896              'mkdir (GNU coreutils) '* | \
8897              'mkdir (coreutils) '* | \
8898              'mkdir (fileutils) '4.1*)
8899                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
8900                break 3;;
8901            esac
8902          done
8903        done
8904   done
8905 IFS=$as_save_IFS
8906
8907 fi
8908
8909   if test "${ac_cv_path_mkdir+set}" = set; then
8910     MKDIR_P="$ac_cv_path_mkdir -p"
8911   else
8912     # As a last resort, use the slow shell script.  Don't cache a
8913     # value for MKDIR_P within a source directory, because that will
8914     # break other packages using the cache if that directory is
8915     # removed, or if the value is a relative name.
8916     test -d ./--version && rmdir ./--version
8917     MKDIR_P="$ac_install_sh -d"
8918   fi
8919 fi
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8921 $as_echo "$MKDIR_P" >&6; }
8922
8923
8924 mkdir_p="$MKDIR_P"
8925 case $mkdir_p in
8926   [\\/$]* | ?:[\\/]*) ;;
8927   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8928 esac
8929
8930 for ac_prog in gawk mawk nawk awk
8931 do
8932   # Extract the first word of "$ac_prog", so it can be a program name with args.
8933 set dummy $ac_prog; ac_word=$2
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935 $as_echo_n "checking for $ac_word... " >&6; }
8936 if test "${ac_cv_prog_AWK+set}" = set; then :
8937   $as_echo_n "(cached) " >&6
8938 else
8939   if test -n "$AWK"; then
8940   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8941 else
8942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943 for as_dir in $PATH
8944 do
8945   IFS=$as_save_IFS
8946   test -z "$as_dir" && as_dir=.
8947     for ac_exec_ext in '' $ac_executable_extensions; do
8948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8949     ac_cv_prog_AWK="$ac_prog"
8950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8951     break 2
8952   fi
8953 done
8954   done
8955 IFS=$as_save_IFS
8956
8957 fi
8958 fi
8959 AWK=$ac_cv_prog_AWK
8960 if test -n "$AWK"; then
8961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8962 $as_echo "$AWK" >&6; }
8963 else
8964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965 $as_echo "no" >&6; }
8966 fi
8967
8968
8969   test -n "$AWK" && break
8970 done
8971
8972 ac_config_commands="$ac_config_commands depfiles"
8973
8974
8975 am_make=${MAKE-make}
8976 cat > confinc << 'END'
8977 am__doit:
8978         @echo this is the am__doit target
8979 .PHONY: am__doit
8980 END
8981 # If we don't find an include directive, just comment out the code.
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8983 $as_echo_n "checking for style of include used by $am_make... " >&6; }
8984 am__include="#"
8985 am__quote=
8986 _am_result=none
8987 # First try GNU make style include.
8988 echo "include confinc" > confmf
8989 # Ignore all kinds of additional output from `make'.
8990 case `$am_make -s -f confmf 2> /dev/null` in #(
8991 *the\ am__doit\ target*)
8992   am__include=include
8993   am__quote=
8994   _am_result=GNU
8995   ;;
8996 esac
8997 # Now try BSD make style include.
8998 if test "$am__include" = "#"; then
8999    echo '.include "confinc"' > confmf
9000    case `$am_make -s -f confmf 2> /dev/null` in #(
9001    *the\ am__doit\ target*)
9002      am__include=.include
9003      am__quote="\""
9004      _am_result=BSD
9005      ;;
9006    esac
9007 fi
9008
9009
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
9011 $as_echo "$_am_result" >&6; }
9012 rm -f confinc confmf
9013
9014 # Check whether --enable-dependency-tracking was given.
9015 if test "${enable_dependency_tracking+set}" = set; then :
9016   enableval=$enable_dependency_tracking;
9017 fi
9018
9019 if test "x$enable_dependency_tracking" != xno; then
9020   am_depcomp="$ac_aux_dir/depcomp"
9021   AMDEPBACKSLASH='\'
9022 fi
9023  if test "x$enable_dependency_tracking" != xno; then
9024   AMDEP_TRUE=
9025   AMDEP_FALSE='#'
9026 else
9027   AMDEP_TRUE='#'
9028   AMDEP_FALSE=
9029 fi
9030
9031
9032 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9033   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9034   # is not polluted with repeated "-I."
9035   am__isrc=' -I$(srcdir)'
9036   # test to see if srcdir already configured
9037   if test -f $srcdir/config.status; then
9038     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9039   fi
9040 fi
9041
9042 # test whether we have cygpath
9043 if test -z "$CYGPATH_W"; then
9044   if (cygpath --version) >/dev/null 2>/dev/null; then
9045     CYGPATH_W='cygpath -w'
9046   else
9047     CYGPATH_W=echo
9048   fi
9049 fi
9050
9051
9052 # Define the identity of the package.
9053  PACKAGE=gdb
9054  VERSION=UNUSED-VERSION
9055
9056
9057 # Some tools Automake needs.
9058
9059 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9060
9061
9062 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9063
9064
9065 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9066
9067
9068 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9069
9070
9071 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9072
9073 # We need awk for the "check" target.  The system "awk" is bad on
9074 # some platforms.
9075 # Always define AMTAR for backward compatibility.
9076
9077 AMTAR=${AMTAR-"${am_missing_run}tar"}
9078
9079 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
9080
9081
9082
9083
9084 depcc="$CC"   am_compiler_list=
9085
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9087 $as_echo_n "checking dependency style of $depcc... " >&6; }
9088 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
9089   $as_echo_n "(cached) " >&6
9090 else
9091   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9092   # We make a subdir and do the tests there.  Otherwise we can end up
9093   # making bogus files that we don't know about and never remove.  For
9094   # instance it was reported that on HP-UX the gcc test will end up
9095   # making a dummy file named `D' -- because `-MD' means `put the output
9096   # in D'.
9097   mkdir conftest.dir
9098   # Copy depcomp to subdir because otherwise we won't find it if we're
9099   # using a relative directory.
9100   cp "$am_depcomp" conftest.dir
9101   cd conftest.dir
9102   # We will build objects and dependencies in a subdirectory because
9103   # it helps to detect inapplicable dependency modes.  For instance
9104   # both Tru64's cc and ICC support -MD to output dependencies as a
9105   # side effect of compilation, but ICC will put the dependencies in
9106   # the current directory while Tru64 will put them in the object
9107   # directory.
9108   mkdir sub
9109
9110   am_cv_CC_dependencies_compiler_type=none
9111   if test "$am_compiler_list" = ""; then
9112      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9113   fi
9114   am__universal=false
9115   case " $depcc " in #(
9116      *\ -arch\ *\ -arch\ *) am__universal=true ;;
9117      esac
9118
9119   for depmode in $am_compiler_list; do
9120     # Setup a source with many dependencies, because some compilers
9121     # like to wrap large dependency lists on column 80 (with \), and
9122     # we should not choose a depcomp mode which is confused by this.
9123     #
9124     # We need to recreate these files for each test, as the compiler may
9125     # overwrite some of them when testing with obscure command lines.
9126     # This happens at least with the AIX C compiler.
9127     : > sub/conftest.c
9128     for i in 1 2 3 4 5 6; do
9129       echo '#include "conftst'$i'.h"' >> sub/conftest.c
9130       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9131       # Solaris 8's {/usr,}/bin/sh.
9132       touch sub/conftst$i.h
9133     done
9134     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9135
9136     # We check with `-c' and `-o' for the sake of the "dashmstdout"
9137     # mode.  It turns out that the SunPro C++ compiler does not properly
9138     # handle `-M -o', and we need to detect this.  Also, some Intel
9139     # versions had trouble with output in subdirs
9140     am__obj=sub/conftest.${OBJEXT-o}
9141     am__minus_obj="-o $am__obj"
9142     case $depmode in
9143     gcc)
9144       # This depmode causes a compiler race in universal mode.
9145       test "$am__universal" = false || continue
9146       ;;
9147     nosideeffect)
9148       # after this tag, mechanisms are not by side-effect, so they'll
9149       # only be used when explicitly requested
9150       if test "x$enable_dependency_tracking" = xyes; then
9151         continue
9152       else
9153         break
9154       fi
9155       ;;
9156     msvisualcpp | msvcmsys)
9157       # This compiler won't grok `-c -o', but also, the minuso test has
9158       # not run yet.  These depmodes are late enough in the game, and
9159       # so weak that their functioning should not be impacted.
9160       am__obj=conftest.${OBJEXT-o}
9161       am__minus_obj=
9162       ;;
9163     none) break ;;
9164     esac
9165     if depmode=$depmode \
9166        source=sub/conftest.c object=$am__obj \
9167        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9168        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9169          >/dev/null 2>conftest.err &&
9170        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9171        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9172        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9173        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9174       # icc doesn't choke on unknown options, it will just issue warnings
9175       # or remarks (even with -Werror).  So we grep stderr for any message
9176       # that says an option was ignored or not supported.
9177       # When given -MP, icc 7.0 and 7.1 complain thusly:
9178       #   icc: Command line warning: ignoring option '-M'; no argument required
9179       # The diagnosis changed in icc 8.0:
9180       #   icc: Command line remark: option '-MP' not supported
9181       if (grep 'ignoring option' conftest.err ||
9182           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9183         am_cv_CC_dependencies_compiler_type=$depmode
9184         break
9185       fi
9186     fi
9187   done
9188
9189   cd ..
9190   rm -rf conftest.dir
9191 else
9192   am_cv_CC_dependencies_compiler_type=none
9193 fi
9194
9195 fi
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9197 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9198 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9199
9200  if
9201   test "x$enable_dependency_tracking" != xno \
9202   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9203   am__fastdepCC_TRUE=
9204   am__fastdepCC_FALSE='#'
9205 else
9206   am__fastdepCC_TRUE='#'
9207   am__fastdepCC_FALSE=
9208 fi
9209
9210
9211
9212
9213
9214
9215 # Check whether --with-separate-debug-dir was given.
9216 if test "${with_separate_debug_dir+set}" = set; then :
9217   withval=$with_separate_debug_dir;
9218     DEBUGDIR=$withval
9219 else
9220   DEBUGDIR=${libdir}/debug
9221 fi
9222
9223
9224   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9225   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9226   ac_define_dir=`eval echo $DEBUGDIR`
9227   ac_define_dir=`eval echo $ac_define_dir`
9228
9229 cat >>confdefs.h <<_ACEOF
9230 #define DEBUGDIR "$ac_define_dir"
9231 _ACEOF
9232
9233
9234
9235
9236   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9237      if test "x$prefix" = xNONE; then
9238         test_prefix=/usr/local
9239      else
9240         test_prefix=$prefix
9241      fi
9242   else
9243      test_prefix=$exec_prefix
9244   fi
9245   value=0
9246   case ${ac_define_dir} in
9247      "${test_prefix}"|"${test_prefix}/"*|\
9248         '${exec_prefix}'|'${exec_prefix}/'*)
9249      value=1
9250      ;;
9251   esac
9252
9253 cat >>confdefs.h <<_ACEOF
9254 #define DEBUGDIR_RELOCATABLE $value
9255 _ACEOF
9256
9257
9258
9259
9260 # We can't pass paths as command line arguments.
9261 # Mingw32 tries to be clever and will convert the paths for us.
9262 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
9263 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
9264 # This breaks GDB's relocatable path conversions since paths passed in
9265 # config.h would not get so translated, the path prefixes no longer match.
9266
9267   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9268   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9269   ac_define_dir=`eval echo $bindir`
9270   ac_define_dir=`eval echo $ac_define_dir`
9271
9272 cat >>confdefs.h <<_ACEOF
9273 #define BINDIR "$ac_define_dir"
9274 _ACEOF
9275
9276
9277
9278 # GDB's datadir relocation
9279
9280
9281
9282 # Check whether --with-gdb-datadir was given.
9283 if test "${with_gdb_datadir+set}" = set; then :
9284   withval=$with_gdb_datadir;
9285     GDB_DATADIR=$withval
9286 else
9287   GDB_DATADIR=${datadir}/gdb
9288 fi
9289
9290
9291   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9292   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9293   ac_define_dir=`eval echo $GDB_DATADIR`
9294   ac_define_dir=`eval echo $ac_define_dir`
9295
9296 cat >>confdefs.h <<_ACEOF
9297 #define GDB_DATADIR "$ac_define_dir"
9298 _ACEOF
9299
9300
9301
9302
9303   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9304      if test "x$prefix" = xNONE; then
9305         test_prefix=/usr/local
9306      else
9307         test_prefix=$prefix
9308      fi
9309   else
9310      test_prefix=$exec_prefix
9311   fi
9312   value=0
9313   case ${ac_define_dir} in
9314      "${test_prefix}"|"${test_prefix}/"*|\
9315         '${exec_prefix}'|'${exec_prefix}/'*)
9316      value=1
9317      ;;
9318   esac
9319
9320 cat >>confdefs.h <<_ACEOF
9321 #define GDB_DATADIR_RELOCATABLE $value
9322 _ACEOF
9323
9324
9325
9326
9327
9328 # Check whether --with-relocated-sources was given.
9329 if test "${with_relocated_sources+set}" = set; then :
9330   withval=$with_relocated_sources; reloc_srcdir="${withval}"
9331
9332   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9333   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9334   ac_define_dir=`eval echo $reloc_srcdir`
9335   ac_define_dir=`eval echo $ac_define_dir`
9336
9337 cat >>confdefs.h <<_ACEOF
9338 #define RELOC_SRCDIR "$ac_define_dir"
9339 _ACEOF
9340
9341
9342
9343 fi
9344
9345
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
9347 $as_echo_n "checking for default auto-load safe-path... " >&6; }
9348
9349 # Check whether --with-auto-load-safe-path was given.
9350 if test "${with_auto_load_safe_path+set}" = set; then :
9351   withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
9352    with_auto_load_safe_path=""
9353  fi
9354 else
9355   with_auto_load_safe_path="$prefix"
9356 fi
9357
9358
9359   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9360   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9361   ac_define_dir=`eval echo $with_auto_load_safe_path`
9362   ac_define_dir=`eval echo $ac_define_dir`
9363
9364 cat >>confdefs.h <<_ACEOF
9365 #define DEFAULT_AUTO_LOAD_SAFE_PATH "$ac_define_dir"
9366 _ACEOF
9367
9368
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
9370 $as_echo "$with_auto_load_safe_path" >&6; }
9371
9372
9373
9374 subdirs="$subdirs testsuite"
9375
9376
9377 # Check whether to support alternative target configurations
9378 # Check whether --enable-targets was given.
9379 if test "${enable_targets+set}" = set; then :
9380   enableval=$enable_targets; case "${enableval}" in
9381   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
9382             ;;
9383   no)       enable_targets= ;;
9384   *)        enable_targets=$enableval ;;
9385 esac
9386 fi
9387
9388
9389 # Check whether to enable 64-bit support on 32-bit hosts
9390 # Check whether --enable-64-bit-bfd was given.
9391 if test "${enable_64_bit_bfd+set}" = set; then :
9392   enableval=$enable_64_bit_bfd; case "${enableval}" in
9393   yes)  want64=true  ;;
9394   no)   want64=false ;;
9395   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
9396 esac
9397 else
9398   want64=false
9399 fi
9400
9401 # Provide defaults for some variables set by the per-host and per-target
9402 # configuration.
9403 gdb_host_obs=posix-hdep.o
9404
9405 if test "${target}" = "${host}"; then
9406   gdb_native=yes
9407 else
9408   gdb_native=no
9409 fi
9410
9411 . $srcdir/configure.host
9412
9413 # Accumulate some settings from configure.tgt over all enabled targets
9414
9415 TARGET_OBS=
9416 all_targets=
9417
9418 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9419 do
9420   if test "$targ_alias" = "all"; then
9421     all_targets=true
9422   else
9423     # Canonicalize the secondary target names.
9424     result=`$ac_config_sub $targ_alias 2>/dev/null`
9425     if test -n "$result"; then
9426         targ=$result
9427     else
9428         targ=$targ_alias
9429     fi
9430
9431     . ${srcdir}/configure.tgt
9432
9433     if test -z "${gdb_target_obs}"; then :
9434   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
9435 fi
9436
9437     # Target-specific object files
9438     for i in ${gdb_target_obs}; do
9439         case " $TARGET_OBS " in
9440         *" ${i} "*) ;;
9441         *)
9442           TARGET_OBS="$TARGET_OBS ${i}"
9443           ;;
9444         esac
9445     done
9446
9447     # Check whether this target needs 64-bit CORE_ADDR
9448     if test x${want64} = xfalse; then
9449       . ${srcdir}/../bfd/config.bfd
9450     fi
9451   fi
9452 done
9453
9454 if test x${all_targets} = xtrue; then
9455
9456   # We want all 64-bit targets if we either:
9457   #  - run on a 64-bit host  or
9458   #  - already require 64-bit support for some other target  or
9459   #  - the --enable-64-bit-bfd option was supplied
9460   # Otherwise we only support all 32-bit targets.
9461   #
9462   # NOTE: This test must be in sync with the corresponding
9463   #       tests in BFD!
9464
9465   if test x${want64} = xfalse; then
9466     # The cast to long int works around a bug in the HP C Compiler
9467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9469 # This bug is HP SR number 8606223364.
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9471 $as_echo_n "checking size of long... " >&6; }
9472 if test "${ac_cv_sizeof_long+set}" = set; then :
9473   $as_echo_n "(cached) " >&6
9474 else
9475   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
9476
9477 else
9478   if test "$ac_cv_type_long" = yes; then
9479      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9481 { as_fn_set_status 77
9482 as_fn_error "cannot compute sizeof (long)
9483 See \`config.log' for more details." "$LINENO" 5; }; }
9484    else
9485      ac_cv_sizeof_long=0
9486    fi
9487 fi
9488
9489 fi
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9491 $as_echo "$ac_cv_sizeof_long" >&6; }
9492
9493
9494
9495 cat >>confdefs.h <<_ACEOF
9496 #define SIZEOF_LONG $ac_cv_sizeof_long
9497 _ACEOF
9498
9499
9500     if test "x${ac_cv_sizeof_long}" = "x8"; then
9501       want64=true
9502     fi
9503   fi
9504   if test x${want64} = xtrue; then
9505     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
9506   else
9507     TARGET_OBS='$(ALL_TARGET_OBS)'
9508   fi
9509 fi
9510
9511
9512
9513 # For other settings, only the main target counts.
9514 gdb_sim=
9515 gdb_osabi=
9516 build_gdbserver=
9517 targ=$target; . ${srcdir}/configure.tgt
9518
9519 # Fetch the default architecture and default target vector from BFD.
9520 targ=$target; . $srcdir/../bfd/config.bfd
9521
9522 # We only want the first architecture, so strip off the others if
9523 # there is more than one.
9524 targ_archs=`echo $targ_archs | sed 's/ .*//'`
9525
9526 if test "x$targ_archs" != x; then
9527
9528 cat >>confdefs.h <<_ACEOF
9529 #define DEFAULT_BFD_ARCH $targ_archs
9530 _ACEOF
9531
9532 fi
9533 if test "x$targ_defvec" != x; then
9534
9535 cat >>confdefs.h <<_ACEOF
9536 #define DEFAULT_BFD_VEC $targ_defvec
9537 _ACEOF
9538
9539 fi
9540
9541 # The CLI cannot be disabled yet, but may be in the future.
9542
9543 # Enable CLI.
9544 # Check whether --enable-gdbcli was given.
9545 if test "${enable_gdbcli+set}" = set; then :
9546   enableval=$enable_gdbcli; case $enableval in
9547     yes)
9548       ;;
9549     no)
9550       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
9551     *)
9552       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
9553   esac
9554 else
9555   enable_gdbcli=yes
9556 fi
9557
9558 if test x"$enable_gdbcli" = xyes; then
9559   if test -d $srcdir/cli; then
9560     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
9561     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
9562     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
9563     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
9564   fi
9565 fi
9566
9567 # Enable MI.
9568 # Check whether --enable-gdbmi was given.
9569 if test "${enable_gdbmi+set}" = set; then :
9570   enableval=$enable_gdbmi; case $enableval in
9571     yes | no)
9572       ;;
9573     *)
9574       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
9575   esac
9576 else
9577   enable_gdbmi=yes
9578 fi
9579
9580 if test x"$enable_gdbmi" = xyes; then
9581   if test -d $srcdir/mi; then
9582     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
9583     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
9584     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
9585     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
9586   fi
9587 fi
9588
9589 # Enable TUI.
9590 # Check whether --enable-tui was given.
9591 if test "${enable_tui+set}" = set; then :
9592   enableval=$enable_tui; case $enableval in
9593     yes | no | auto)
9594       ;;
9595     *)
9596       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
9597   esac
9598 else
9599   enable_tui=auto
9600 fi
9601
9602
9603 # Enable gdbtk.
9604 # Check whether --enable-gdbtk was given.
9605 if test "${enable_gdbtk+set}" = set; then :
9606   enableval=$enable_gdbtk; case $enableval in
9607     yes | no)
9608       ;;
9609     *)
9610       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
9611   esac
9612 else
9613   if test -d $srcdir/gdbtk; then
9614     enable_gdbtk=yes
9615   else
9616     enable_gdbtk=no
9617   fi
9618 fi
9619
9620 # We unconditionally disable gdbtk tests on selected platforms.
9621 case $host_os in
9622   go32* | windows*)
9623     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
9624 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
9625     enable_gdbtk=no ;;
9626 esac
9627
9628 # Libunwind support for ia64.
9629
9630
9631 # Check whether --with-libunwind-ia64 was given.
9632 if test "${with_libunwind_ia64+set}" = set; then :
9633   withval=$with_libunwind_ia64;
9634 else
9635   with_libunwind_ia64=auto
9636 fi
9637
9638
9639 # Backward compatibility option.
9640 if test "${with_libunwind+set}" = set; then
9641   if test x"$with_libunwind_ia64" != xauto; then
9642     as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
9643   fi
9644   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
9645 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
9646   with_libunwind_ia64="$with_libunwind"
9647 fi
9648
9649 case "$with_libunwind_ia64" in
9650   yes | no)
9651     ;;
9652   auto)
9653     for ac_header in libunwind-ia64.h
9654 do :
9655   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
9656 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
9657   cat >>confdefs.h <<_ACEOF
9658 #define HAVE_LIBUNWIND_IA64_H 1
9659 _ACEOF
9660
9661 fi
9662
9663 done
9664
9665     with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
9666     ;;
9667   *)
9668     as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
9669     ;;
9670 esac
9671
9672 if test x"$with_libunwind_ia64" = xyes; then
9673   for ac_header in libunwind-ia64.h
9674 do :
9675   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
9676 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
9677   cat >>confdefs.h <<_ACEOF
9678 #define HAVE_LIBUNWIND_IA64_H 1
9679 _ACEOF
9680
9681 fi
9682
9683 done
9684
9685   if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
9686     as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
9687   fi
9688   CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
9689   CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
9690   CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
9691 fi
9692
9693 opt_curses=no
9694
9695 # Check whether --with-curses was given.
9696 if test "${with_curses+set}" = set; then :
9697   withval=$with_curses; opt_curses=$withval
9698 fi
9699
9700
9701 prefer_curses=no
9702 if test "$opt_curses" = "yes"; then
9703   prefer_curses=yes
9704 fi
9705
9706 # Profiling support.
9707 # Check whether --enable-profiling was given.
9708 if test "${enable_profiling+set}" = set; then :
9709   enableval=$enable_profiling; case $enableval in
9710     yes | no)
9711       ;;
9712     *)
9713       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
9714   esac
9715 else
9716   enable_profiling=no
9717 fi
9718
9719
9720 for ac_func in monstartup _mcleanup
9721 do :
9722   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9723 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9724 eval as_val=\$$as_ac_var
9725    if test "x$as_val" = x""yes; then :
9726   cat >>confdefs.h <<_ACEOF
9727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9728 _ACEOF
9729
9730 fi
9731 done
9732
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
9734 $as_echo_n "checking for _etext... " >&6; }
9735 if test "${ac_cv_var__etext+set}" = set; then :
9736   $as_echo_n "(cached) " >&6
9737 else
9738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h.  */
9740 #include <stdlib.h>
9741 extern char _etext;
9742
9743 int
9744 main ()
9745 {
9746 free (&_etext);
9747   ;
9748   return 0;
9749 }
9750 _ACEOF
9751 if ac_fn_c_try_link "$LINENO"; then :
9752   ac_cv_var__etext=yes
9753 else
9754   ac_cv_var__etext=no
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext \
9757     conftest$ac_exeext conftest.$ac_ext
9758 fi
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
9760 $as_echo "$ac_cv_var__etext" >&6; }
9761 if test $ac_cv_var__etext = yes; then
9762
9763 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
9764
9765 fi
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
9767 $as_echo_n "checking for etext... " >&6; }
9768 if test "${ac_cv_var_etext+set}" = set; then :
9769   $as_echo_n "(cached) " >&6
9770 else
9771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9772 /* end confdefs.h.  */
9773 #include <stdlib.h>
9774 extern char etext;
9775
9776 int
9777 main ()
9778 {
9779 free (&etext);
9780   ;
9781   return 0;
9782 }
9783 _ACEOF
9784 if ac_fn_c_try_link "$LINENO"; then :
9785   ac_cv_var_etext=yes
9786 else
9787   ac_cv_var_etext=no
9788 fi
9789 rm -f core conftest.err conftest.$ac_objext \
9790     conftest$ac_exeext conftest.$ac_ext
9791 fi
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
9793 $as_echo "$ac_cv_var_etext" >&6; }
9794 if test $ac_cv_var_etext = yes; then
9795
9796 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
9797
9798 fi
9799 if test "$enable_profiling" = yes ; then
9800   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
9801     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
9802   fi
9803   PROFILE_CFLAGS=-pg
9804   OLD_CFLAGS="$CFLAGS"
9805   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
9806
9807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
9808 $as_echo_n "checking whether $CC supports -pg... " >&6; }
9809 if test "${ac_cv_cc_supports_pg+set}" = set; then :
9810   $as_echo_n "(cached) " >&6
9811 else
9812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h.  */
9814
9815 int
9816 main ()
9817 {
9818 int x;
9819   ;
9820   return 0;
9821 }
9822 _ACEOF
9823 if ac_fn_c_try_compile "$LINENO"; then :
9824   ac_cv_cc_supports_pg=yes
9825 else
9826   ac_cv_cc_supports_pg=no
9827 fi
9828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9829 fi
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
9831 $as_echo "$ac_cv_cc_supports_pg" >&6; }
9832
9833   if test $ac_cv_cc_supports_pg = no; then
9834     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
9835   fi
9836
9837   CFLAGS="$OLD_CFLAGS"
9838 fi
9839
9840
9841
9842 # Check whether --with-pkgversion was given.
9843 if test "${with_pkgversion+set}" = set; then :
9844   withval=$with_pkgversion; case "$withval" in
9845       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
9846       no)  PKGVERSION= ;;
9847       *)   PKGVERSION="($withval) " ;;
9848      esac
9849 else
9850   PKGVERSION="(GDB) "
9851
9852 fi
9853
9854
9855
9856
9857
9858 # Check whether --with-bugurl was given.
9859 if test "${with_bugurl+set}" = set; then :
9860   withval=$with_bugurl; case "$withval" in
9861       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
9862       no)  BUGURL=
9863            ;;
9864       *)   BUGURL="$withval"
9865            ;;
9866      esac
9867 else
9868   BUGURL="http://www.gnu.org/software/gdb/bugs/"
9869
9870 fi
9871
9872   case ${BUGURL} in
9873   "")
9874     REPORT_BUGS_TO=
9875     REPORT_BUGS_TEXI=
9876     ;;
9877   *)
9878     REPORT_BUGS_TO="<$BUGURL>"
9879     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
9880     ;;
9881   esac;
9882
9883
9884
9885
9886 cat >>confdefs.h <<_ACEOF
9887 #define PKGVERSION "$PKGVERSION"
9888 _ACEOF
9889
9890
9891 cat >>confdefs.h <<_ACEOF
9892 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
9893 _ACEOF
9894
9895
9896 # --------------------- #
9897 # Checks for programs.  #
9898 # --------------------- #
9899
9900 for ac_prog in gawk mawk nawk awk
9901 do
9902   # Extract the first word of "$ac_prog", so it can be a program name with args.
9903 set dummy $ac_prog; ac_word=$2
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905 $as_echo_n "checking for $ac_word... " >&6; }
9906 if test "${ac_cv_prog_AWK+set}" = set; then :
9907   $as_echo_n "(cached) " >&6
9908 else
9909   if test -n "$AWK"; then
9910   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9911 else
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 for as_dir in $PATH
9914 do
9915   IFS=$as_save_IFS
9916   test -z "$as_dir" && as_dir=.
9917     for ac_exec_ext in '' $ac_executable_extensions; do
9918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9919     ac_cv_prog_AWK="$ac_prog"
9920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921     break 2
9922   fi
9923 done
9924   done
9925 IFS=$as_save_IFS
9926
9927 fi
9928 fi
9929 AWK=$ac_cv_prog_AWK
9930 if test -n "$AWK"; then
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9932 $as_echo "$AWK" >&6; }
9933 else
9934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9936 fi
9937
9938
9939   test -n "$AWK" && break
9940 done
9941
9942
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9944 $as_echo_n "checking whether ln -s works... " >&6; }
9945 LN_S=$as_ln_s
9946 if test "$LN_S" = "ln -s"; then
9947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9948 $as_echo "yes" >&6; }
9949 else
9950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9951 $as_echo "no, using $LN_S" >&6; }
9952 fi
9953
9954 if test -n "$ac_tool_prefix"; then
9955   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9960   $as_echo_n "(cached) " >&6
9961 else
9962   if test -n "$RANLIB"; then
9963   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9964 else
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in $PATH
9967 do
9968   IFS=$as_save_IFS
9969   test -z "$as_dir" && as_dir=.
9970     for ac_exec_ext in '' $ac_executable_extensions; do
9971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974     break 2
9975   fi
9976 done
9977   done
9978 IFS=$as_save_IFS
9979
9980 fi
9981 fi
9982 RANLIB=$ac_cv_prog_RANLIB
9983 if test -n "$RANLIB"; then
9984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9985 $as_echo "$RANLIB" >&6; }
9986 else
9987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9989 fi
9990
9991
9992 fi
9993 if test -z "$ac_cv_prog_RANLIB"; then
9994   ac_ct_RANLIB=$RANLIB
9995   # Extract the first word of "ranlib", so it can be a program name with args.
9996 set dummy ranlib; ac_word=$2
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9998 $as_echo_n "checking for $ac_word... " >&6; }
9999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10000   $as_echo_n "(cached) " >&6
10001 else
10002   if test -n "$ac_ct_RANLIB"; then
10003   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10004 else
10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10007 do
10008   IFS=$as_save_IFS
10009   test -z "$as_dir" && as_dir=.
10010     for ac_exec_ext in '' $ac_executable_extensions; do
10011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10012     ac_cv_prog_ac_ct_RANLIB="ranlib"
10013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10014     break 2
10015   fi
10016 done
10017   done
10018 IFS=$as_save_IFS
10019
10020 fi
10021 fi
10022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10023 if test -n "$ac_ct_RANLIB"; then
10024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10025 $as_echo "$ac_ct_RANLIB" >&6; }
10026 else
10027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10029 fi
10030
10031   if test "x$ac_ct_RANLIB" = x; then
10032     RANLIB=":"
10033   else
10034     case $cross_compiling:$ac_tool_warned in
10035 yes:)
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10038 ac_tool_warned=yes ;;
10039 esac
10040     RANLIB=$ac_ct_RANLIB
10041   fi
10042 else
10043   RANLIB="$ac_cv_prog_RANLIB"
10044 fi
10045
10046 for ac_prog in 'bison -y' byacc
10047 do
10048   # Extract the first word of "$ac_prog", so it can be a program name with args.
10049 set dummy $ac_prog; ac_word=$2
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051 $as_echo_n "checking for $ac_word... " >&6; }
10052 if test "${ac_cv_prog_YACC+set}" = set; then :
10053   $as_echo_n "(cached) " >&6
10054 else
10055   if test -n "$YACC"; then
10056   ac_cv_prog_YACC="$YACC" # Let the user override the test.
10057 else
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10060 do
10061   IFS=$as_save_IFS
10062   test -z "$as_dir" && as_dir=.
10063     for ac_exec_ext in '' $ac_executable_extensions; do
10064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10065     ac_cv_prog_YACC="$ac_prog"
10066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067     break 2
10068   fi
10069 done
10070   done
10071 IFS=$as_save_IFS
10072
10073 fi
10074 fi
10075 YACC=$ac_cv_prog_YACC
10076 if test -n "$YACC"; then
10077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10078 $as_echo "$YACC" >&6; }
10079 else
10080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081 $as_echo "no" >&6; }
10082 fi
10083
10084
10085   test -n "$YACC" && break
10086 done
10087 test -n "$YACC" || YACC="yacc"
10088
10089
10090 if test -n "$ac_tool_prefix"; then
10091   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10092 set dummy ${ac_tool_prefix}ar; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if test "${ac_cv_prog_AR+set}" = set; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   if test -n "$AR"; then
10099   ac_cv_prog_AR="$AR" # Let the user override the test.
10100 else
10101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102 for as_dir in $PATH
10103 do
10104   IFS=$as_save_IFS
10105   test -z "$as_dir" && as_dir=.
10106     for ac_exec_ext in '' $ac_executable_extensions; do
10107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10108     ac_cv_prog_AR="${ac_tool_prefix}ar"
10109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110     break 2
10111   fi
10112 done
10113   done
10114 IFS=$as_save_IFS
10115
10116 fi
10117 fi
10118 AR=$ac_cv_prog_AR
10119 if test -n "$AR"; then
10120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10121 $as_echo "$AR" >&6; }
10122 else
10123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124 $as_echo "no" >&6; }
10125 fi
10126
10127
10128 fi
10129 if test -z "$ac_cv_prog_AR"; then
10130   ac_ct_AR=$AR
10131   # Extract the first word of "ar", so it can be a program name with args.
10132 set dummy ar; ac_word=$2
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134 $as_echo_n "checking for $ac_word... " >&6; }
10135 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10136   $as_echo_n "(cached) " >&6
10137 else
10138   if test -n "$ac_ct_AR"; then
10139   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10140 else
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10143 do
10144   IFS=$as_save_IFS
10145   test -z "$as_dir" && as_dir=.
10146     for ac_exec_ext in '' $ac_executable_extensions; do
10147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10148     ac_cv_prog_ac_ct_AR="ar"
10149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150     break 2
10151   fi
10152 done
10153   done
10154 IFS=$as_save_IFS
10155
10156 fi
10157 fi
10158 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10159 if test -n "$ac_ct_AR"; then
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10161 $as_echo "$ac_ct_AR" >&6; }
10162 else
10163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10165 fi
10166
10167   if test "x$ac_ct_AR" = x; then
10168     AR=""
10169   else
10170     case $cross_compiling:$ac_tool_warned in
10171 yes:)
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10174 ac_tool_warned=yes ;;
10175 esac
10176     AR=$ac_ct_AR
10177   fi
10178 else
10179   AR="$ac_cv_prog_AR"
10180 fi
10181
10182 if test -n "$ac_tool_prefix"; then
10183   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10184 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186 $as_echo_n "checking for $ac_word... " >&6; }
10187 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
10188   $as_echo_n "(cached) " >&6
10189 else
10190   if test -n "$DLLTOOL"; then
10191   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10192 else
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10195 do
10196   IFS=$as_save_IFS
10197   test -z "$as_dir" && as_dir=.
10198     for ac_exec_ext in '' $ac_executable_extensions; do
10199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10200     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202     break 2
10203   fi
10204 done
10205   done
10206 IFS=$as_save_IFS
10207
10208 fi
10209 fi
10210 DLLTOOL=$ac_cv_prog_DLLTOOL
10211 if test -n "$DLLTOOL"; then
10212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10213 $as_echo "$DLLTOOL" >&6; }
10214 else
10215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10217 fi
10218
10219
10220 fi
10221 if test -z "$ac_cv_prog_DLLTOOL"; then
10222   ac_ct_DLLTOOL=$DLLTOOL
10223   # Extract the first word of "dlltool", so it can be a program name with args.
10224 set dummy dlltool; ac_word=$2
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226 $as_echo_n "checking for $ac_word... " >&6; }
10227 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
10228   $as_echo_n "(cached) " >&6
10229 else
10230   if test -n "$ac_ct_DLLTOOL"; then
10231   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10232 else
10233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234 for as_dir in $PATH
10235 do
10236   IFS=$as_save_IFS
10237   test -z "$as_dir" && as_dir=.
10238     for ac_exec_ext in '' $ac_executable_extensions; do
10239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10240     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10242     break 2
10243   fi
10244 done
10245   done
10246 IFS=$as_save_IFS
10247
10248 fi
10249 fi
10250 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10251 if test -n "$ac_ct_DLLTOOL"; then
10252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10253 $as_echo "$ac_ct_DLLTOOL" >&6; }
10254 else
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10257 fi
10258
10259   if test "x$ac_ct_DLLTOOL" = x; then
10260     DLLTOOL=""
10261   else
10262     case $cross_compiling:$ac_tool_warned in
10263 yes:)
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10266 ac_tool_warned=yes ;;
10267 esac
10268     DLLTOOL=$ac_ct_DLLTOOL
10269   fi
10270 else
10271   DLLTOOL="$ac_cv_prog_DLLTOOL"
10272 fi
10273
10274 if test -n "$ac_tool_prefix"; then
10275   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10276 set dummy ${ac_tool_prefix}windres; ac_word=$2
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10278 $as_echo_n "checking for $ac_word... " >&6; }
10279 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10280   $as_echo_n "(cached) " >&6
10281 else
10282   if test -n "$WINDRES"; then
10283   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10284 else
10285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286 for as_dir in $PATH
10287 do
10288   IFS=$as_save_IFS
10289   test -z "$as_dir" && as_dir=.
10290     for ac_exec_ext in '' $ac_executable_extensions; do
10291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10292     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10294     break 2
10295   fi
10296 done
10297   done
10298 IFS=$as_save_IFS
10299
10300 fi
10301 fi
10302 WINDRES=$ac_cv_prog_WINDRES
10303 if test -n "$WINDRES"; then
10304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10305 $as_echo "$WINDRES" >&6; }
10306 else
10307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308 $as_echo "no" >&6; }
10309 fi
10310
10311
10312 fi
10313 if test -z "$ac_cv_prog_WINDRES"; then
10314   ac_ct_WINDRES=$WINDRES
10315   # Extract the first word of "windres", so it can be a program name with args.
10316 set dummy windres; ac_word=$2
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10318 $as_echo_n "checking for $ac_word... " >&6; }
10319 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10320   $as_echo_n "(cached) " >&6
10321 else
10322   if test -n "$ac_ct_WINDRES"; then
10323   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10324 else
10325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326 for as_dir in $PATH
10327 do
10328   IFS=$as_save_IFS
10329   test -z "$as_dir" && as_dir=.
10330     for ac_exec_ext in '' $ac_executable_extensions; do
10331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10332     ac_cv_prog_ac_ct_WINDRES="windres"
10333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10334     break 2
10335   fi
10336 done
10337   done
10338 IFS=$as_save_IFS
10339
10340 fi
10341 fi
10342 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10343 if test -n "$ac_ct_WINDRES"; then
10344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10345 $as_echo "$ac_ct_WINDRES" >&6; }
10346 else
10347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348 $as_echo "no" >&6; }
10349 fi
10350
10351   if test "x$ac_ct_WINDRES" = x; then
10352     WINDRES=""
10353   else
10354     case $cross_compiling:$ac_tool_warned in
10355 yes:)
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10358 ac_tool_warned=yes ;;
10359 esac
10360     WINDRES=$ac_ct_WINDRES
10361   fi
10362 else
10363   WINDRES="$ac_cv_prog_WINDRES"
10364 fi
10365
10366
10367 # Needed for GNU/Hurd.
10368 if test -n "$ac_tool_prefix"; then
10369   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
10370 set dummy ${ac_tool_prefix}mig; ac_word=$2
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10372 $as_echo_n "checking for $ac_word... " >&6; }
10373 if test "${ac_cv_prog_MIG+set}" = set; then :
10374   $as_echo_n "(cached) " >&6
10375 else
10376   if test -n "$MIG"; then
10377   ac_cv_prog_MIG="$MIG" # Let the user override the test.
10378 else
10379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10380 for as_dir in $PATH
10381 do
10382   IFS=$as_save_IFS
10383   test -z "$as_dir" && as_dir=.
10384     for ac_exec_ext in '' $ac_executable_extensions; do
10385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10386     ac_cv_prog_MIG="${ac_tool_prefix}mig"
10387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10388     break 2
10389   fi
10390 done
10391   done
10392 IFS=$as_save_IFS
10393
10394 fi
10395 fi
10396 MIG=$ac_cv_prog_MIG
10397 if test -n "$MIG"; then
10398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
10399 $as_echo "$MIG" >&6; }
10400 else
10401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402 $as_echo "no" >&6; }
10403 fi
10404
10405
10406 fi
10407 if test -z "$ac_cv_prog_MIG"; then
10408   ac_ct_MIG=$MIG
10409   # Extract the first word of "mig", so it can be a program name with args.
10410 set dummy mig; ac_word=$2
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
10414   $as_echo_n "(cached) " >&6
10415 else
10416   if test -n "$ac_ct_MIG"; then
10417   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
10418 else
10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420 for as_dir in $PATH
10421 do
10422   IFS=$as_save_IFS
10423   test -z "$as_dir" && as_dir=.
10424     for ac_exec_ext in '' $ac_executable_extensions; do
10425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10426     ac_cv_prog_ac_ct_MIG="mig"
10427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10428     break 2
10429   fi
10430 done
10431   done
10432 IFS=$as_save_IFS
10433
10434 fi
10435 fi
10436 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
10437 if test -n "$ac_ct_MIG"; then
10438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
10439 $as_echo "$ac_ct_MIG" >&6; }
10440 else
10441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; }
10443 fi
10444
10445   if test "x$ac_ct_MIG" = x; then
10446     MIG=""
10447   else
10448     case $cross_compiling:$ac_tool_warned in
10449 yes:)
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10452 ac_tool_warned=yes ;;
10453 esac
10454     MIG=$ac_ct_MIG
10455   fi
10456 else
10457   MIG="$ac_cv_prog_MIG"
10458 fi
10459
10460
10461 # ---------------------- #
10462 # Checks for libraries.  #
10463 # ---------------------- #
10464
10465 # We might need to link with -lm; most simulators need it.
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
10467 $as_echo_n "checking for main in -lm... " >&6; }
10468 if test "${ac_cv_lib_m_main+set}" = set; then :
10469   $as_echo_n "(cached) " >&6
10470 else
10471   ac_check_lib_save_LIBS=$LIBS
10472 LIBS="-lm  $LIBS"
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h.  */
10475
10476
10477 int
10478 main ()
10479 {
10480 return main ();
10481   ;
10482   return 0;
10483 }
10484 _ACEOF
10485 if ac_fn_c_try_link "$LINENO"; then :
10486   ac_cv_lib_m_main=yes
10487 else
10488   ac_cv_lib_m_main=no
10489 fi
10490 rm -f core conftest.err conftest.$ac_objext \
10491     conftest$ac_exeext conftest.$ac_ext
10492 LIBS=$ac_check_lib_save_LIBS
10493 fi
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
10495 $as_echo "$ac_cv_lib_m_main" >&6; }
10496 if test "x$ac_cv_lib_m_main" = x""yes; then :
10497   cat >>confdefs.h <<_ACEOF
10498 #define HAVE_LIBM 1
10499 _ACEOF
10500
10501   LIBS="-lm $LIBS"
10502
10503 fi
10504
10505
10506 # We need to link with -lw to get `wctype' on Solaris before Solaris
10507 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
10508 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
10509 # is known to have this problem).  Therefore we avoid libw if we can.
10510 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
10511 if test "x$ac_cv_func_wctype" = x""yes; then :
10512
10513 else
10514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
10515 $as_echo_n "checking for wctype in -lw... " >&6; }
10516 if test "${ac_cv_lib_w_wctype+set}" = set; then :
10517   $as_echo_n "(cached) " >&6
10518 else
10519   ac_check_lib_save_LIBS=$LIBS
10520 LIBS="-lw  $LIBS"
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h.  */
10523
10524 /* Override any GCC internal prototype to avoid an error.
10525    Use char because int might match the return type of a GCC
10526    builtin and then its argument prototype would still apply.  */
10527 #ifdef __cplusplus
10528 extern "C"
10529 #endif
10530 char wctype ();
10531 int
10532 main ()
10533 {
10534 return wctype ();
10535   ;
10536   return 0;
10537 }
10538 _ACEOF
10539 if ac_fn_c_try_link "$LINENO"; then :
10540   ac_cv_lib_w_wctype=yes
10541 else
10542   ac_cv_lib_w_wctype=no
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext \
10545     conftest$ac_exeext conftest.$ac_ext
10546 LIBS=$ac_check_lib_save_LIBS
10547 fi
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
10549 $as_echo "$ac_cv_lib_w_wctype" >&6; }
10550 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
10551   cat >>confdefs.h <<_ACEOF
10552 #define HAVE_LIBW 1
10553 _ACEOF
10554
10555   LIBS="-lw $LIBS"
10556
10557 fi
10558
10559 fi
10560
10561
10562 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10564 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10565 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10566   $as_echo_n "(cached) " >&6
10567 else
10568   ac_func_search_save_LIBS=$LIBS
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h.  */
10571
10572 /* Override any GCC internal prototype to avoid an error.
10573    Use char because int might match the return type of a GCC
10574    builtin and then its argument prototype would still apply.  */
10575 #ifdef __cplusplus
10576 extern "C"
10577 #endif
10578 char gethostbyname ();
10579 int
10580 main ()
10581 {
10582 return gethostbyname ();
10583   ;
10584   return 0;
10585 }
10586 _ACEOF
10587 for ac_lib in '' nsl; do
10588   if test -z "$ac_lib"; then
10589     ac_res="none required"
10590   else
10591     ac_res=-l$ac_lib
10592     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10593   fi
10594   if ac_fn_c_try_link "$LINENO"; then :
10595   ac_cv_search_gethostbyname=$ac_res
10596 fi
10597 rm -f core conftest.err conftest.$ac_objext \
10598     conftest$ac_exeext
10599   if test "${ac_cv_search_gethostbyname+set}" = set; then :
10600   break
10601 fi
10602 done
10603 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10604
10605 else
10606   ac_cv_search_gethostbyname=no
10607 fi
10608 rm conftest.$ac_ext
10609 LIBS=$ac_func_search_save_LIBS
10610 fi
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10612 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10613 ac_res=$ac_cv_search_gethostbyname
10614 if test "$ac_res" != no; then :
10615   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10616
10617 fi
10618
10619
10620 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
10622 $as_echo_n "checking for library containing socketpair... " >&6; }
10623 if test "${ac_cv_search_socketpair+set}" = set; then :
10624   $as_echo_n "(cached) " >&6
10625 else
10626   ac_func_search_save_LIBS=$LIBS
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h.  */
10629
10630 /* Override any GCC internal prototype to avoid an error.
10631    Use char because int might match the return type of a GCC
10632    builtin and then its argument prototype would still apply.  */
10633 #ifdef __cplusplus
10634 extern "C"
10635 #endif
10636 char socketpair ();
10637 int
10638 main ()
10639 {
10640 return socketpair ();
10641   ;
10642   return 0;
10643 }
10644 _ACEOF
10645 for ac_lib in '' socket; do
10646   if test -z "$ac_lib"; then
10647     ac_res="none required"
10648   else
10649     ac_res=-l$ac_lib
10650     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10651   fi
10652   if ac_fn_c_try_link "$LINENO"; then :
10653   ac_cv_search_socketpair=$ac_res
10654 fi
10655 rm -f core conftest.err conftest.$ac_objext \
10656     conftest$ac_exeext
10657   if test "${ac_cv_search_socketpair+set}" = set; then :
10658   break
10659 fi
10660 done
10661 if test "${ac_cv_search_socketpair+set}" = set; then :
10662
10663 else
10664   ac_cv_search_socketpair=no
10665 fi
10666 rm conftest.$ac_ext
10667 LIBS=$ac_func_search_save_LIBS
10668 fi
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
10670 $as_echo "$ac_cv_search_socketpair" >&6; }
10671 ac_res=$ac_cv_search_socketpair
10672 if test "$ac_res" != no; then :
10673   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10674
10675 fi
10676
10677
10678 # Link in zlib if we can.  This allows us to read compressed debug sections.
10679
10680   # See if the user specified whether he wants zlib support or not.
10681
10682 # Check whether --with-zlib was given.
10683 if test "${with_zlib+set}" = set; then :
10684   withval=$with_zlib;
10685 else
10686   with_zlib=auto
10687 fi
10688
10689
10690   if test "$with_zlib" != "no"; then
10691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
10692 $as_echo_n "checking for library containing zlibVersion... " >&6; }
10693 if test "${ac_cv_search_zlibVersion+set}" = set; then :
10694   $as_echo_n "(cached) " >&6
10695 else
10696   ac_func_search_save_LIBS=$LIBS
10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h.  */
10699
10700 /* Override any GCC internal prototype to avoid an error.
10701    Use char because int might match the return type of a GCC
10702    builtin and then its argument prototype would still apply.  */
10703 #ifdef __cplusplus
10704 extern "C"
10705 #endif
10706 char zlibVersion ();
10707 int
10708 main ()
10709 {
10710 return zlibVersion ();
10711   ;
10712   return 0;
10713 }
10714 _ACEOF
10715 for ac_lib in '' z; do
10716   if test -z "$ac_lib"; then
10717     ac_res="none required"
10718   else
10719     ac_res=-l$ac_lib
10720     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10721   fi
10722   if ac_fn_c_try_link "$LINENO"; then :
10723   ac_cv_search_zlibVersion=$ac_res
10724 fi
10725 rm -f core conftest.err conftest.$ac_objext \
10726     conftest$ac_exeext
10727   if test "${ac_cv_search_zlibVersion+set}" = set; then :
10728   break
10729 fi
10730 done
10731 if test "${ac_cv_search_zlibVersion+set}" = set; then :
10732
10733 else
10734   ac_cv_search_zlibVersion=no
10735 fi
10736 rm conftest.$ac_ext
10737 LIBS=$ac_func_search_save_LIBS
10738 fi
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
10740 $as_echo "$ac_cv_search_zlibVersion" >&6; }
10741 ac_res=$ac_cv_search_zlibVersion
10742 if test "$ac_res" != no; then :
10743   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10744   for ac_header in zlib.h
10745 do :
10746   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10747 if test "x$ac_cv_header_zlib_h" = x""yes; then :
10748   cat >>confdefs.h <<_ACEOF
10749 #define HAVE_ZLIB_H 1
10750 _ACEOF
10751
10752 fi
10753
10754 done
10755
10756 fi
10757
10758     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
10759       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
10760     fi
10761   fi
10762
10763
10764 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
10766 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
10767 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
10768   $as_echo_n "(cached) " >&6
10769 else
10770   ac_func_search_save_LIBS=$LIBS
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h.  */
10773
10774 /* Override any GCC internal prototype to avoid an error.
10775    Use char because int might match the return type of a GCC
10776    builtin and then its argument prototype would still apply.  */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 char dlgetmodinfo ();
10781 int
10782 main ()
10783 {
10784 return dlgetmodinfo ();
10785   ;
10786   return 0;
10787 }
10788 _ACEOF
10789 for ac_lib in '' dl xpdl; do
10790   if test -z "$ac_lib"; then
10791     ac_res="none required"
10792   else
10793     ac_res=-l$ac_lib
10794     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10795   fi
10796   if ac_fn_c_try_link "$LINENO"; then :
10797   ac_cv_search_dlgetmodinfo=$ac_res
10798 fi
10799 rm -f core conftest.err conftest.$ac_objext \
10800     conftest$ac_exeext
10801   if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
10802   break
10803 fi
10804 done
10805 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
10806
10807 else
10808   ac_cv_search_dlgetmodinfo=no
10809 fi
10810 rm conftest.$ac_ext
10811 LIBS=$ac_func_search_save_LIBS
10812 fi
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
10814 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
10815 ac_res=$ac_cv_search_dlgetmodinfo
10816 if test "$ac_res" != no; then :
10817   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10818
10819 fi
10820
10821
10822
10823
10824
10825 # Check whether --with-libiconv-prefix was given.
10826 if test "${with_libiconv_prefix+set}" = set; then :
10827   withval=$with_libiconv_prefix;
10828     for dir in `echo "$withval" | tr : ' '`; do
10829       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
10830       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
10831     done
10832
10833 fi
10834
10835
10836   BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
10837   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
10838
10839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10840 $as_echo_n "checking for iconv... " >&6; }
10841 if test "${am_cv_func_iconv+set}" = set; then :
10842   $as_echo_n "(cached) " >&6
10843 else
10844
10845     am_cv_func_iconv="no, consider installing GNU libiconv"
10846     am_cv_lib_iconv=no
10847     am_cv_use_build_libiconv=no
10848     am_cv_build_libiconv_path=
10849
10850     # If libiconv is part of the build tree, then try using it over
10851     # any system iconv.
10852     if test -d ../libiconv; then
10853       for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
10854         am_save_LIBS="$LIBS"
10855         am_save_CPPFLAGS="$CPPFLAGS"
10856         LIBS="$LIBS $lib_dir/libiconv.a"
10857         CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10858         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h.  */
10860 #include <stdlib.h>
10861 #include <iconv.h>
10862 int
10863 main ()
10864 {
10865 iconv_t cd = iconv_open("","");
10866            iconv(cd,NULL,NULL,NULL,NULL);
10867            iconv_close(cd);
10868   ;
10869   return 0;
10870 }
10871 _ACEOF
10872 if ac_fn_c_try_link "$LINENO"; then :
10873   am_cv_use_build_libiconv=yes
10874           am_cv_build_libiconv_path=$lib_dir/libiconv.a
10875           am_cv_lib_iconv=yes
10876           am_cv_func_iconv=yes
10877 fi
10878 rm -f core conftest.err conftest.$ac_objext \
10879     conftest$ac_exeext conftest.$ac_ext
10880         LIBS="$am_save_LIBS"
10881         CPPFLAGS="$am_save_CPPFLAGS"
10882         if test "$am_cv_use_build_libiconv" = "yes"; then
10883           break
10884         fi
10885       done
10886     fi
10887
10888     # Next, try to find iconv in libc.
10889     if test "$am_cv_func_iconv" != yes; then
10890       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h.  */
10892 #include <stdlib.h>
10893 #include <iconv.h>
10894 int
10895 main ()
10896 {
10897 iconv_t cd = iconv_open("","");
10898          iconv(cd,NULL,NULL,NULL,NULL);
10899          iconv_close(cd);
10900   ;
10901   return 0;
10902 }
10903 _ACEOF
10904 if ac_fn_c_try_link "$LINENO"; then :
10905   am_cv_func_iconv=yes
10906 fi
10907 rm -f core conftest.err conftest.$ac_objext \
10908     conftest$ac_exeext conftest.$ac_ext
10909     fi
10910
10911     # If iconv was not in libc, try -liconv.  In this case, arrange to
10912     # look in the libiconv prefix, if it was specified by the user.
10913     if test "$am_cv_func_iconv" != yes; then
10914       am_save_CPPFLAGS="$CPPFLAGS"
10915       am_save_LIBS="$LIBS"
10916       if test -n "$LIBICONV_INCLUDE"; then
10917         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10918         LIBS="$LIBS $LIBICONV_LIBDIR"
10919       fi
10920       LIBS="$LIBS -liconv"
10921       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h.  */
10923 #include <stdlib.h>
10924 #include <iconv.h>
10925 int
10926 main ()
10927 {
10928 iconv_t cd = iconv_open("","");
10929          iconv(cd,NULL,NULL,NULL,NULL);
10930          iconv_close(cd);
10931   ;
10932   return 0;
10933 }
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"; then :
10936   am_cv_lib_iconv=yes
10937         am_cv_func_iconv=yes
10938 fi
10939 rm -f core conftest.err conftest.$ac_objext \
10940     conftest$ac_exeext conftest.$ac_ext
10941       LIBS="$am_save_LIBS"
10942       CPPFLAGS="$am_save_CPPFLAGS"
10943     fi
10944
10945 fi
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10947 $as_echo "$am_cv_func_iconv" >&6; }
10948
10949   # Set the various flags based on the cache variables.  We can't rely
10950   # on the flags to remain set from the above code, due to caching.
10951   LIBICONV=
10952   if test "$am_cv_lib_iconv" = yes; then
10953     LIBICONV="-liconv"
10954   else
10955     LIBICONV_LIBDIR=
10956     LIBICONV_INCLUDE=
10957   fi
10958   if test "$am_cv_use_build_libiconv" = yes; then
10959     LIBICONV="$am_cv_build_libiconv_path"
10960     LIBICONV_LIBDIR=""
10961     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
10962   fi
10963   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10964   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10965
10966   if test "$am_cv_func_iconv" = yes; then
10967
10968 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10969
10970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10971 $as_echo_n "checking for iconv declaration... " >&6; }
10972     if test "${am_cv_proto_iconv+set}" = set; then :
10973   $as_echo_n "(cached) " >&6
10974 else
10975
10976       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h.  */
10978
10979 #include <stdlib.h>
10980 #include <iconv.h>
10981 extern
10982 #ifdef __cplusplus
10983 "C"
10984 #endif
10985 #if defined(__STDC__) || defined(__cplusplus)
10986 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10987 #else
10988 size_t iconv();
10989 #endif
10990
10991 int
10992 main ()
10993 {
10994
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 if ac_fn_c_try_compile "$LINENO"; then :
11000   am_cv_proto_iconv_arg1=""
11001 else
11002   am_cv_proto_iconv_arg1="const"
11003 fi
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005       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);"
11006 fi
11007
11008     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11010          }$am_cv_proto_iconv" >&5
11011 $as_echo "${ac_t:-
11012          }$am_cv_proto_iconv" >&6; }
11013
11014 cat >>confdefs.h <<_ACEOF
11015 #define ICONV_CONST $am_cv_proto_iconv_arg1
11016 _ACEOF
11017
11018   fi
11019
11020
11021 # GDB may fork/exec the iconv program to get the list of supported character
11022 # sets.  Allow the user to specify where to find it.
11023 # There are several factors affecting the choice of option name:
11024 # - There is already --with-libiconv-prefix but we can't use it, it specifies
11025 #   the build-time location of libiconv files.
11026 # - The program we need to find is iconv, which comes with glibc.  The user
11027 #   doesn't necessarily have libiconv installed.  Therefore naming this
11028 #   --with-libiconv-foo feels wrong.
11029 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
11030 #   defined to work on directories not files (though it really doesn't know
11031 #   the difference).
11032 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
11033 #   with --with-libiconv-prefix.
11034 # Putting these together is why the option name is --with-iconv-bin.
11035
11036
11037 # Check whether --with-iconv-bin was given.
11038 if test "${with_iconv_bin+set}" = set; then :
11039   withval=$with_iconv_bin; iconv_bin="${withval}"
11040
11041 cat >>confdefs.h <<_ACEOF
11042 #define ICONV_BIN "${iconv_bin}"
11043 _ACEOF
11044
11045
11046   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
11047      if test "x$prefix" = xNONE; then
11048         test_prefix=/usr/local
11049      else
11050         test_prefix=$prefix
11051      fi
11052   else
11053      test_prefix=$exec_prefix
11054   fi
11055   value=0
11056   case ${iconv_bin} in
11057      "${test_prefix}"|"${test_prefix}/"*|\
11058         '${exec_prefix}'|'${exec_prefix}/'*)
11059      value=1
11060      ;;
11061   esac
11062
11063 cat >>confdefs.h <<_ACEOF
11064 #define ICONV_BIN_RELOCATABLE $value
11065 _ACEOF
11066
11067
11068
11069 fi
11070
11071
11072 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
11073 # There is a very specific comment in /usr/include/curses.h explaining that
11074 # termcap routines built into libcurses must not be used.
11075 #
11076 # The symptoms we observed so far is GDB unexpectedly changing
11077 # the terminal settings when tgetent is called - this is particularly
11078 # visible as the output is missing carriage returns, and so rapidly
11079 # becomes very hard to read.
11080 #
11081 # The readline configure script has already decided that libtermcap
11082 # was enough for its purposes, and so decided to build readline using
11083 # libtermcap.  Since the TUI mode requires curses, building GDB with
11084 # TUI enabled results in both libraries to be used at the same time,
11085 # which is not allowed.  This basically means that GDB with TUI is
11086 # broken on alpha-osf.
11087
11088 case $host_os in
11089   osf* )
11090     if test x"$enable_tui" = xyes; then
11091       as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
11092     fi
11093     if test x"$enable_tui" = xauto; then
11094       enable_tui=no
11095     fi
11096     ;;
11097 esac
11098
11099 # For the TUI, we need enhanced curses functionality.
11100 if test x"$enable_tui" != xno; then
11101   prefer_curses=yes
11102 fi
11103
11104 curses_found=no
11105 if test x"$prefer_curses" = xyes; then
11106   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
11107   # curses library because the latter might not provide all the
11108   # functionality we need.  However, this leads to problems on systems
11109   # where the linker searches /usr/local/lib, but the compiler doesn't
11110   # search /usr/local/include, if ncurses is installed in /usr/local.  A
11111   # default installation of ncurses on alpha*-dec-osf* will lead to such
11112   # a situation.
11113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
11114 $as_echo_n "checking for library containing waddstr... " >&6; }
11115 if test "${ac_cv_search_waddstr+set}" = set; then :
11116   $as_echo_n "(cached) " >&6
11117 else
11118   ac_func_search_save_LIBS=$LIBS
11119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h.  */
11121
11122 /* Override any GCC internal prototype to avoid an error.
11123    Use char because int might match the return type of a GCC
11124    builtin and then its argument prototype would still apply.  */
11125 #ifdef __cplusplus
11126 extern "C"
11127 #endif
11128 char waddstr ();
11129 int
11130 main ()
11131 {
11132 return waddstr ();
11133   ;
11134   return 0;
11135 }
11136 _ACEOF
11137 for ac_lib in '' ncurses cursesX curses; do
11138   if test -z "$ac_lib"; then
11139     ac_res="none required"
11140   else
11141     ac_res=-l$ac_lib
11142     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11143   fi
11144   if ac_fn_c_try_link "$LINENO"; then :
11145   ac_cv_search_waddstr=$ac_res
11146 fi
11147 rm -f core conftest.err conftest.$ac_objext \
11148     conftest$ac_exeext
11149   if test "${ac_cv_search_waddstr+set}" = set; then :
11150   break
11151 fi
11152 done
11153 if test "${ac_cv_search_waddstr+set}" = set; then :
11154
11155 else
11156   ac_cv_search_waddstr=no
11157 fi
11158 rm conftest.$ac_ext
11159 LIBS=$ac_func_search_save_LIBS
11160 fi
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
11162 $as_echo "$ac_cv_search_waddstr" >&6; }
11163 ac_res=$ac_cv_search_waddstr
11164 if test "$ac_res" != no; then :
11165   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11166
11167 fi
11168
11169
11170   if test "$ac_cv_search_waddstr" != no; then
11171     curses_found=yes
11172   fi
11173 fi
11174
11175 # Check whether we should enable the TUI, but only do so if we really
11176 # can.
11177 if test x"$enable_tui" != xno; then
11178   if test -d $srcdir/tui; then
11179     if test "$curses_found" != no; then
11180       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
11181       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
11182       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
11183       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
11184     else
11185       if test x"$enable_tui" = xyes; then
11186         as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
11187       else
11188         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
11189 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
11190       fi
11191     fi
11192   fi
11193 fi
11194
11195 # Since GDB uses Readline, we need termcap functionality.  In many
11196 # cases this will be provided by the curses library, but some systems
11197 # have a seperate termcap library, or no curses library at all.
11198
11199 case $host_os in
11200   cygwin*)
11201     if test -d $srcdir/libtermcap; then
11202       LIBS="../libtermcap/libtermcap.a $LIBS"
11203       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
11204     fi ;;
11205   go32* | *djgpp*)
11206     ac_cv_search_tgetent="none required"
11207     ;;
11208   *mingw32*)
11209     ac_cv_search_tgetent="none required"
11210     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
11211     ;;
11212 esac
11213
11214 # These are the libraries checked by Readline.
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
11216 $as_echo_n "checking for library containing tgetent... " >&6; }
11217 if test "${ac_cv_search_tgetent+set}" = set; then :
11218   $as_echo_n "(cached) " >&6
11219 else
11220   ac_func_search_save_LIBS=$LIBS
11221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h.  */
11223
11224 /* Override any GCC internal prototype to avoid an error.
11225    Use char because int might match the return type of a GCC
11226    builtin and then its argument prototype would still apply.  */
11227 #ifdef __cplusplus
11228 extern "C"
11229 #endif
11230 char tgetent ();
11231 int
11232 main ()
11233 {
11234 return tgetent ();
11235   ;
11236   return 0;
11237 }
11238 _ACEOF
11239 for ac_lib in '' termcap tinfo curses ncurses; do
11240   if test -z "$ac_lib"; then
11241     ac_res="none required"
11242   else
11243     ac_res=-l$ac_lib
11244     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11245   fi
11246   if ac_fn_c_try_link "$LINENO"; then :
11247   ac_cv_search_tgetent=$ac_res
11248 fi
11249 rm -f core conftest.err conftest.$ac_objext \
11250     conftest$ac_exeext
11251   if test "${ac_cv_search_tgetent+set}" = set; then :
11252   break
11253 fi
11254 done
11255 if test "${ac_cv_search_tgetent+set}" = set; then :
11256
11257 else
11258   ac_cv_search_tgetent=no
11259 fi
11260 rm conftest.$ac_ext
11261 LIBS=$ac_func_search_save_LIBS
11262 fi
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11264 $as_echo "$ac_cv_search_tgetent" >&6; }
11265 ac_res=$ac_cv_search_tgetent
11266 if test "$ac_res" != no; then :
11267   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11268
11269 fi
11270
11271
11272 if test "$ac_cv_search_tgetent" = no; then
11273   as_fn_error "no termcap library found" "$LINENO" 5
11274 fi
11275
11276
11277 # Check whether --with-system-readline was given.
11278 if test "${with_system_readline+set}" = set; then :
11279   withval=$with_system_readline;
11280 fi
11281
11282
11283 if test "$with_system_readline" = yes; then
11284   READLINE=-lreadline
11285   READLINE_DEPS=
11286   READLINE_CFLAGS=
11287   READLINE_TEXI_INCFLAG=
11288 else
11289   READLINE='$(READLINE_DIR)/libreadline.a'
11290   READLINE_DEPS='$(READLINE)'
11291   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
11292   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
11293 fi
11294
11295
11296
11297
11298
11299 # Generate jit-reader.h
11300
11301 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
11302 TARGET_PTR=
11303
11304 # The cast to long int works around a bug in the HP C Compiler
11305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11307 # This bug is HP SR number 8606223364.
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
11309 $as_echo_n "checking size of unsigned long long... " >&6; }
11310 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
11311   $as_echo_n "(cached) " >&6
11312 else
11313   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
11314
11315 else
11316   if test "$ac_cv_type_unsigned_long_long" = yes; then
11317      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11319 { as_fn_set_status 77
11320 as_fn_error "cannot compute sizeof (unsigned long long)
11321 See \`config.log' for more details." "$LINENO" 5; }; }
11322    else
11323      ac_cv_sizeof_unsigned_long_long=0
11324    fi
11325 fi
11326
11327 fi
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
11329 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
11330
11331
11332
11333 cat >>confdefs.h <<_ACEOF
11334 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
11335 _ACEOF
11336
11337
11338 # The cast to long int works around a bug in the HP C Compiler
11339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11341 # This bug is HP SR number 8606223364.
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
11343 $as_echo_n "checking size of unsigned long... " >&6; }
11344 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
11345   $as_echo_n "(cached) " >&6
11346 else
11347   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
11348
11349 else
11350   if test "$ac_cv_type_unsigned_long" = yes; then
11351      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11353 { as_fn_set_status 77
11354 as_fn_error "cannot compute sizeof (unsigned long)
11355 See \`config.log' for more details." "$LINENO" 5; }; }
11356    else
11357      ac_cv_sizeof_unsigned_long=0
11358    fi
11359 fi
11360
11361 fi
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
11363 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
11364
11365
11366
11367 cat >>confdefs.h <<_ACEOF
11368 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
11369 _ACEOF
11370
11371
11372 # The cast to long int works around a bug in the HP C Compiler
11373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11375 # This bug is HP SR number 8606223364.
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
11377 $as_echo_n "checking size of unsigned __int128... " >&6; }
11378 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
11379   $as_echo_n "(cached) " >&6
11380 else
11381   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :
11382
11383 else
11384   if test "$ac_cv_type_unsigned___int128" = yes; then
11385      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11387 { as_fn_set_status 77
11388 as_fn_error "cannot compute sizeof (unsigned __int128)
11389 See \`config.log' for more details." "$LINENO" 5; }; }
11390    else
11391      ac_cv_sizeof_unsigned___int128=0
11392    fi
11393 fi
11394
11395 fi
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
11397 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
11398
11399
11400
11401 cat >>confdefs.h <<_ACEOF
11402 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
11403 _ACEOF
11404
11405
11406
11407 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
11408   TARGET_PTR="unsigned long"
11409 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
11410   TARGET_PTR="unsigned long long"
11411 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
11412   TARGET_PTR="unsigned __int128"
11413 else
11414   TARGET_PTR="unsigned long"
11415 fi
11416
11417
11418 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
11419
11420
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11422 $as_echo_n "checking for library containing dlopen... " >&6; }
11423 if test "${ac_cv_search_dlopen+set}" = set; then :
11424   $as_echo_n "(cached) " >&6
11425 else
11426   ac_func_search_save_LIBS=$LIBS
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h.  */
11429
11430 /* Override any GCC internal prototype to avoid an error.
11431    Use char because int might match the return type of a GCC
11432    builtin and then its argument prototype would still apply.  */
11433 #ifdef __cplusplus
11434 extern "C"
11435 #endif
11436 char dlopen ();
11437 int
11438 main ()
11439 {
11440 return dlopen ();
11441   ;
11442   return 0;
11443 }
11444 _ACEOF
11445 for ac_lib in '' dl; do
11446   if test -z "$ac_lib"; then
11447     ac_res="none required"
11448   else
11449     ac_res=-l$ac_lib
11450     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11451   fi
11452   if ac_fn_c_try_link "$LINENO"; then :
11453   ac_cv_search_dlopen=$ac_res
11454 fi
11455 rm -f core conftest.err conftest.$ac_objext \
11456     conftest$ac_exeext
11457   if test "${ac_cv_search_dlopen+set}" = set; then :
11458   break
11459 fi
11460 done
11461 if test "${ac_cv_search_dlopen+set}" = set; then :
11462
11463 else
11464   ac_cv_search_dlopen=no
11465 fi
11466 rm conftest.$ac_ext
11467 LIBS=$ac_func_search_save_LIBS
11468 fi
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11470 $as_echo "$ac_cv_search_dlopen" >&6; }
11471 ac_res=$ac_cv_search_dlopen
11472 if test "$ac_res" != no; then :
11473   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11474
11475 fi
11476
11477
11478
11479
11480 # Check whether --with-jit-reader-dir was given.
11481 if test "${with_jit_reader_dir+set}" = set; then :
11482   withval=$with_jit_reader_dir;
11483     JIT_READER_DIR=$withval
11484 else
11485   JIT_READER_DIR=${libdir}/gdb
11486 fi
11487
11488
11489   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
11490   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11491   ac_define_dir=`eval echo $JIT_READER_DIR`
11492   ac_define_dir=`eval echo $ac_define_dir`
11493
11494 cat >>confdefs.h <<_ACEOF
11495 #define JIT_READER_DIR "$ac_define_dir"
11496 _ACEOF
11497
11498
11499
11500
11501   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
11502      if test "x$prefix" = xNONE; then
11503         test_prefix=/usr/local
11504      else
11505         test_prefix=$prefix
11506      fi
11507   else
11508      test_prefix=$exec_prefix
11509   fi
11510   value=0
11511   case ${ac_define_dir} in
11512      "${test_prefix}"|"${test_prefix}/"*|\
11513         '${exec_prefix}'|'${exec_prefix}/'*)
11514      value=1
11515      ;;
11516   esac
11517
11518 cat >>confdefs.h <<_ACEOF
11519 #define JIT_READER_DIR_RELOCATABLE $value
11520 _ACEOF
11521
11522
11523
11524
11525
11526 # Check whether --with-expat was given.
11527 if test "${with_expat+set}" = set; then :
11528   withval=$with_expat;
11529 else
11530   with_expat=auto
11531 fi
11532
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
11534 $as_echo_n "checking whether to use expat... " >&6; }
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
11536 $as_echo "$with_expat" >&6; }
11537
11538 if test "${with_expat}" = no; then
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
11540 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
11541   HAVE_LIBEXPAT=no
11542 else
11543
11544       if test "X$prefix" = "XNONE"; then
11545     acl_final_prefix="$ac_default_prefix"
11546   else
11547     acl_final_prefix="$prefix"
11548   fi
11549   if test "X$exec_prefix" = "XNONE"; then
11550     acl_final_exec_prefix='${prefix}'
11551   else
11552     acl_final_exec_prefix="$exec_prefix"
11553   fi
11554   acl_save_prefix="$prefix"
11555   prefix="$acl_final_prefix"
11556   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11557   prefix="$acl_save_prefix"
11558
11559
11560 # Check whether --with-gnu-ld was given.
11561 if test "${with_gnu_ld+set}" = set; then :
11562   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11563 else
11564   with_gnu_ld=no
11565 fi
11566
11567 # Prepare PATH_SEPARATOR.
11568 # The user is always right.
11569 if test "${PATH_SEPARATOR+set}" != set; then
11570   echo "#! /bin/sh" >conf$$.sh
11571   echo  "exit 0"   >>conf$$.sh
11572   chmod +x conf$$.sh
11573   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11574     PATH_SEPARATOR=';'
11575   else
11576     PATH_SEPARATOR=:
11577   fi
11578   rm -f conf$$.sh
11579 fi
11580 ac_prog=ld
11581 if test "$GCC" = yes; then
11582   # Check if gcc -print-prog-name=ld gives a path.
11583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11584 $as_echo_n "checking for ld used by GCC... " >&6; }
11585   case $host in
11586   *-*-mingw*)
11587     # gcc leaves a trailing carriage return which upsets mingw
11588     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11589   *)
11590     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11591   esac
11592   case $ac_prog in
11593     # Accept absolute paths.
11594     [\\/]* | [A-Za-z]:[\\/]*)
11595       re_direlt='/[^/][^/]*/\.\./'
11596       # Canonicalize the path of ld
11597       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11598       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11599         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11600       done
11601       test -z "$LD" && LD="$ac_prog"
11602       ;;
11603   "")
11604     # If it fails, then pretend we aren't using GCC.
11605     ac_prog=ld
11606     ;;
11607   *)
11608     # If it is relative, then search for the first ld in PATH.
11609     with_gnu_ld=unknown
11610     ;;
11611   esac
11612 elif test "$with_gnu_ld" = yes; then
11613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11614 $as_echo_n "checking for GNU ld... " >&6; }
11615 else
11616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11617 $as_echo_n "checking for non-GNU ld... " >&6; }
11618 fi
11619 if test "${acl_cv_path_LD+set}" = set; then :
11620   $as_echo_n "(cached) " >&6
11621 else
11622   if test -z "$LD"; then
11623   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11624   for ac_dir in $PATH; do
11625     test -z "$ac_dir" && ac_dir=.
11626     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11627       acl_cv_path_LD="$ac_dir/$ac_prog"
11628       # Check to see if the program is GNU ld.  I'd rather use --version,
11629       # but apparently some GNU ld's only accept -v.
11630       # Break only if it was the GNU/non-GNU ld that we prefer.
11631       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11632         test "$with_gnu_ld" != no && break
11633       else
11634         test "$with_gnu_ld" != yes && break
11635       fi
11636     fi
11637   done
11638   IFS="$ac_save_ifs"
11639 else
11640   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11641 fi
11642 fi
11643
11644 LD="$acl_cv_path_LD"
11645 if test -n "$LD"; then
11646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11647 $as_echo "$LD" >&6; }
11648 else
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11651 fi
11652 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11654 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11655 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
11656   $as_echo_n "(cached) " >&6
11657 else
11658   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11659 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11660   acl_cv_prog_gnu_ld=yes
11661 else
11662   acl_cv_prog_gnu_ld=no
11663 fi
11664 fi
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11666 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11667 with_gnu_ld=$acl_cv_prog_gnu_ld
11668
11669
11670
11671                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11672 $as_echo_n "checking for shared library run path origin... " >&6; }
11673 if test "${acl_cv_rpath+set}" = set; then :
11674   $as_echo_n "(cached) " >&6
11675 else
11676
11677     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11678     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11679     . ./conftest.sh
11680     rm -f ./conftest.sh
11681     acl_cv_rpath=done
11682
11683 fi
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11685 $as_echo "$acl_cv_rpath" >&6; }
11686   wl="$acl_cv_wl"
11687   libext="$acl_cv_libext"
11688   shlibext="$acl_cv_shlibext"
11689   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11690   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11691   hardcode_direct="$acl_cv_hardcode_direct"
11692   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11693     # Check whether --enable-rpath was given.
11694 if test "${enable_rpath+set}" = set; then :
11695   enableval=$enable_rpath; :
11696 else
11697   enable_rpath=yes
11698 fi
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709     use_additional=yes
11710
11711   acl_save_prefix="$prefix"
11712   prefix="$acl_final_prefix"
11713   acl_save_exec_prefix="$exec_prefix"
11714   exec_prefix="$acl_final_exec_prefix"
11715
11716     eval additional_includedir=\"$includedir\"
11717     eval additional_libdir=\"$libdir\"
11718
11719   exec_prefix="$acl_save_exec_prefix"
11720   prefix="$acl_save_prefix"
11721
11722
11723 # Check whether --with-libexpat-prefix was given.
11724 if test "${with_libexpat_prefix+set}" = set; then :
11725   withval=$with_libexpat_prefix;
11726     if test "X$withval" = "Xno"; then
11727       use_additional=no
11728     else
11729       if test "X$withval" = "X"; then
11730
11731   acl_save_prefix="$prefix"
11732   prefix="$acl_final_prefix"
11733   acl_save_exec_prefix="$exec_prefix"
11734   exec_prefix="$acl_final_exec_prefix"
11735
11736           eval additional_includedir=\"$includedir\"
11737           eval additional_libdir=\"$libdir\"
11738
11739   exec_prefix="$acl_save_exec_prefix"
11740   prefix="$acl_save_prefix"
11741
11742       else
11743         additional_includedir="$withval/include"
11744         additional_libdir="$withval/lib"
11745       fi
11746     fi
11747
11748 fi
11749
11750       LIBEXPAT=
11751   LTLIBEXPAT=
11752   INCEXPAT=
11753   rpathdirs=
11754   ltrpathdirs=
11755   names_already_handled=
11756   names_next_round='expat '
11757   while test -n "$names_next_round"; do
11758     names_this_round="$names_next_round"
11759     names_next_round=
11760     for name in $names_this_round; do
11761       already_handled=
11762       for n in $names_already_handled; do
11763         if test "$n" = "$name"; then
11764           already_handled=yes
11765           break
11766         fi
11767       done
11768       if test -z "$already_handled"; then
11769         names_already_handled="$names_already_handled $name"
11770                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11771         eval value=\"\$HAVE_LIB$uppername\"
11772         if test -n "$value"; then
11773           if test "$value" = yes; then
11774             eval value=\"\$LIB$uppername\"
11775             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
11776             eval value=\"\$LTLIB$uppername\"
11777             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
11778           else
11779                                     :
11780           fi
11781         else
11782                               found_dir=
11783           found_la=
11784           found_so=
11785           found_a=
11786           if test $use_additional = yes; then
11787             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11788               found_dir="$additional_libdir"
11789               found_so="$additional_libdir/lib$name.$shlibext"
11790               if test -f "$additional_libdir/lib$name.la"; then
11791                 found_la="$additional_libdir/lib$name.la"
11792               fi
11793             else
11794               if test -f "$additional_libdir/lib$name.$libext"; then
11795                 found_dir="$additional_libdir"
11796                 found_a="$additional_libdir/lib$name.$libext"
11797                 if test -f "$additional_libdir/lib$name.la"; then
11798                   found_la="$additional_libdir/lib$name.la"
11799                 fi
11800               fi
11801             fi
11802           fi
11803           if test "X$found_dir" = "X"; then
11804             for x in $LDFLAGS $LTLIBEXPAT; do
11805
11806   acl_save_prefix="$prefix"
11807   prefix="$acl_final_prefix"
11808   acl_save_exec_prefix="$exec_prefix"
11809   exec_prefix="$acl_final_exec_prefix"
11810   eval x=\"$x\"
11811   exec_prefix="$acl_save_exec_prefix"
11812   prefix="$acl_save_prefix"
11813
11814               case "$x" in
11815                 -L*)
11816                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11817                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11818                     found_dir="$dir"
11819                     found_so="$dir/lib$name.$shlibext"
11820                     if test -f "$dir/lib$name.la"; then
11821                       found_la="$dir/lib$name.la"
11822                     fi
11823                   else
11824                     if test -f "$dir/lib$name.$libext"; then
11825                       found_dir="$dir"
11826                       found_a="$dir/lib$name.$libext"
11827                       if test -f "$dir/lib$name.la"; then
11828                         found_la="$dir/lib$name.la"
11829                       fi
11830                     fi
11831                   fi
11832                   ;;
11833               esac
11834               if test "X$found_dir" != "X"; then
11835                 break
11836               fi
11837             done
11838           fi
11839           if test "X$found_dir" != "X"; then
11840                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
11841             if test "X$found_so" != "X"; then
11842                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11843                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11844               else
11845                                                                                 haveit=
11846                 for x in $ltrpathdirs; do
11847                   if test "X$x" = "X$found_dir"; then
11848                     haveit=yes
11849                     break
11850                   fi
11851                 done
11852                 if test -z "$haveit"; then
11853                   ltrpathdirs="$ltrpathdirs $found_dir"
11854                 fi
11855                                 if test "$hardcode_direct" = yes; then
11856                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11857                 else
11858                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11859                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11860                                                             haveit=
11861                     for x in $rpathdirs; do
11862                       if test "X$x" = "X$found_dir"; then
11863                         haveit=yes
11864                         break
11865                       fi
11866                     done
11867                     if test -z "$haveit"; then
11868                       rpathdirs="$rpathdirs $found_dir"
11869                     fi
11870                   else
11871                                                                                 haveit=
11872                     for x in $LDFLAGS $LIBEXPAT; do
11873
11874   acl_save_prefix="$prefix"
11875   prefix="$acl_final_prefix"
11876   acl_save_exec_prefix="$exec_prefix"
11877   exec_prefix="$acl_final_exec_prefix"
11878   eval x=\"$x\"
11879   exec_prefix="$acl_save_exec_prefix"
11880   prefix="$acl_save_prefix"
11881
11882                       if test "X$x" = "X-L$found_dir"; then
11883                         haveit=yes
11884                         break
11885                       fi
11886                     done
11887                     if test -z "$haveit"; then
11888                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11889                     fi
11890                     if test "$hardcode_minus_L" != no; then
11891                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11892                     else
11893                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11894                     fi
11895                   fi
11896                 fi
11897               fi
11898             else
11899               if test "X$found_a" != "X"; then
11900                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11901               else
11902                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11903               fi
11904             fi
11905                         additional_includedir=
11906             case "$found_dir" in
11907               */lib | */lib/)
11908                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11909                 additional_includedir="$basedir/include"
11910                 ;;
11911             esac
11912             if test "X$additional_includedir" != "X"; then
11913                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11914                 haveit=
11915                 if test "X$additional_includedir" = "X/usr/local/include"; then
11916                   if test -n "$GCC"; then
11917                     case $host_os in
11918                       linux*) haveit=yes;;
11919                     esac
11920                   fi
11921                 fi
11922                 if test -z "$haveit"; then
11923                   for x in $CPPFLAGS $INCEXPAT; do
11924
11925   acl_save_prefix="$prefix"
11926   prefix="$acl_final_prefix"
11927   acl_save_exec_prefix="$exec_prefix"
11928   exec_prefix="$acl_final_exec_prefix"
11929   eval x=\"$x\"
11930   exec_prefix="$acl_save_exec_prefix"
11931   prefix="$acl_save_prefix"
11932
11933                     if test "X$x" = "X-I$additional_includedir"; then
11934                       haveit=yes
11935                       break
11936                     fi
11937                   done
11938                   if test -z "$haveit"; then
11939                     if test -d "$additional_includedir"; then
11940                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11941                     fi
11942                   fi
11943                 fi
11944               fi
11945             fi
11946                         if test -n "$found_la"; then
11947                                                         save_libdir="$libdir"
11948               case "$found_la" in
11949                 */* | *\\*) . "$found_la" ;;
11950                 *) . "./$found_la" ;;
11951               esac
11952               libdir="$save_libdir"
11953                             for dep in $dependency_libs; do
11954                 case "$dep" in
11955                   -L*)
11956                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11957                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11958                       haveit=
11959                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11960                         if test -n "$GCC"; then
11961                           case $host_os in
11962                             linux*) haveit=yes;;
11963                           esac
11964                         fi
11965                       fi
11966                       if test -z "$haveit"; then
11967                         haveit=
11968                         for x in $LDFLAGS $LIBEXPAT; do
11969
11970   acl_save_prefix="$prefix"
11971   prefix="$acl_final_prefix"
11972   acl_save_exec_prefix="$exec_prefix"
11973   exec_prefix="$acl_final_exec_prefix"
11974   eval x=\"$x\"
11975   exec_prefix="$acl_save_exec_prefix"
11976   prefix="$acl_save_prefix"
11977
11978                           if test "X$x" = "X-L$additional_libdir"; then
11979                             haveit=yes
11980                             break
11981                           fi
11982                         done
11983                         if test -z "$haveit"; then
11984                           if test -d "$additional_libdir"; then
11985                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11986                           fi
11987                         fi
11988                         haveit=
11989                         for x in $LDFLAGS $LTLIBEXPAT; do
11990
11991   acl_save_prefix="$prefix"
11992   prefix="$acl_final_prefix"
11993   acl_save_exec_prefix="$exec_prefix"
11994   exec_prefix="$acl_final_exec_prefix"
11995   eval x=\"$x\"
11996   exec_prefix="$acl_save_exec_prefix"
11997   prefix="$acl_save_prefix"
11998
11999                           if test "X$x" = "X-L$additional_libdir"; then
12000                             haveit=yes
12001                             break
12002                           fi
12003                         done
12004                         if test -z "$haveit"; then
12005                           if test -d "$additional_libdir"; then
12006                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
12007                           fi
12008                         fi
12009                       fi
12010                     fi
12011                     ;;
12012                   -R*)
12013                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12014                     if test "$enable_rpath" != no; then
12015                                                                   haveit=
12016                       for x in $rpathdirs; do
12017                         if test "X$x" = "X$dir"; then
12018                           haveit=yes
12019                           break
12020                         fi
12021                       done
12022                       if test -z "$haveit"; then
12023                         rpathdirs="$rpathdirs $dir"
12024                       fi
12025                                                                   haveit=
12026                       for x in $ltrpathdirs; do
12027                         if test "X$x" = "X$dir"; then
12028                           haveit=yes
12029                           break
12030                         fi
12031                       done
12032                       if test -z "$haveit"; then
12033                         ltrpathdirs="$ltrpathdirs $dir"
12034                       fi
12035                     fi
12036                     ;;
12037                   -l*)
12038                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12039                     ;;
12040                   *.la)
12041                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12042                     ;;
12043                   *)
12044                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
12045                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
12046                     ;;
12047                 esac
12048               done
12049             fi
12050           else
12051                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
12052             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
12053           fi
12054         fi
12055       fi
12056     done
12057   done
12058   if test "X$rpathdirs" != "X"; then
12059     if test -n "$hardcode_libdir_separator"; then
12060                         alldirs=
12061       for found_dir in $rpathdirs; do
12062         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12063       done
12064             acl_save_libdir="$libdir"
12065       libdir="$alldirs"
12066       eval flag=\"$hardcode_libdir_flag_spec\"
12067       libdir="$acl_save_libdir"
12068       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
12069     else
12070             for found_dir in $rpathdirs; do
12071         acl_save_libdir="$libdir"
12072         libdir="$found_dir"
12073         eval flag=\"$hardcode_libdir_flag_spec\"
12074         libdir="$acl_save_libdir"
12075         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
12076       done
12077     fi
12078   fi
12079   if test "X$ltrpathdirs" != "X"; then
12080             for found_dir in $ltrpathdirs; do
12081       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
12082     done
12083   fi
12084
12085
12086         ac_save_CPPFLAGS="$CPPFLAGS"
12087
12088   for element in $INCEXPAT; do
12089     haveit=
12090     for x in $CPPFLAGS; do
12091
12092   acl_save_prefix="$prefix"
12093   prefix="$acl_final_prefix"
12094   acl_save_exec_prefix="$exec_prefix"
12095   exec_prefix="$acl_final_exec_prefix"
12096   eval x=\"$x\"
12097   exec_prefix="$acl_save_exec_prefix"
12098   prefix="$acl_save_prefix"
12099
12100       if test "X$x" = "X$element"; then
12101         haveit=yes
12102         break
12103       fi
12104     done
12105     if test -z "$haveit"; then
12106       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12107     fi
12108   done
12109
12110
12111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
12112 $as_echo_n "checking for libexpat... " >&6; }
12113 if test "${ac_cv_libexpat+set}" = set; then :
12114   $as_echo_n "(cached) " >&6
12115 else
12116
12117     ac_save_LIBS="$LIBS"
12118     LIBS="$LIBS $LIBEXPAT"
12119     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h.  */
12121 #include "expat.h"
12122 int
12123 main ()
12124 {
12125 XML_Parser p = XML_ParserCreate (0);
12126   ;
12127   return 0;
12128 }
12129 _ACEOF
12130 if ac_fn_c_try_link "$LINENO"; then :
12131   ac_cv_libexpat=yes
12132 else
12133   ac_cv_libexpat=no
12134 fi
12135 rm -f core conftest.err conftest.$ac_objext \
12136     conftest$ac_exeext conftest.$ac_ext
12137     LIBS="$ac_save_LIBS"
12138
12139 fi
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
12141 $as_echo "$ac_cv_libexpat" >&6; }
12142   if test "$ac_cv_libexpat" = yes; then
12143     HAVE_LIBEXPAT=yes
12144
12145 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
12146
12147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
12148 $as_echo_n "checking how to link with libexpat... " >&6; }
12149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
12150 $as_echo "$LIBEXPAT" >&6; }
12151   else
12152     HAVE_LIBEXPAT=no
12153             CPPFLAGS="$ac_save_CPPFLAGS"
12154     LIBEXPAT=
12155     LTLIBEXPAT=
12156   fi
12157
12158
12159
12160
12161
12162
12163   if test "$HAVE_LIBEXPAT" != yes; then
12164     if test "$with_expat" = yes; then
12165       as_fn_error "expat is missing or unusable" "$LINENO" 5
12166     else
12167       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
12168 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
12169     fi
12170   else
12171     save_LIBS=$LIBS
12172     LIBS="$LIBS $LIBEXPAT"
12173     for ac_func in XML_StopParser
12174 do :
12175   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
12176 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
12177   cat >>confdefs.h <<_ACEOF
12178 #define HAVE_XML_STOPPARSER 1
12179 _ACEOF
12180
12181 fi
12182 done
12183
12184     LIBS=$save_LIBS
12185   fi
12186 fi
12187
12188
12189
12190
12191
12192
12193 # Check whether --with-python was given.
12194 if test "${with_python+set}" = set; then :
12195   withval=$with_python;
12196 else
12197   with_python=auto
12198 fi
12199
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
12201 $as_echo_n "checking whether to use python... " >&6; }
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
12203 $as_echo "$with_python" >&6; }
12204
12205 if test "${with_python}" = no; then
12206   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
12207 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
12208   have_libpython=no
12209 else
12210   case "${with_python}" in
12211   [\\/]* | ?:[\\/]*)
12212     if test -d ${with_python}; then
12213       # Assume the python binary is ${with_python}/bin/python.
12214       python_prog="${with_python}/bin/python"
12215       python_prefix=
12216       # If python does not exit ${with_python}/bin, then try in
12217       # ${with_python}.  On Windows/MinGW, this is where the Python
12218       # executable is.
12219       if test ! -x "${python_prog}"; then
12220         python_prog="${with_python}/python"
12221         python_prefix=
12222       fi
12223       if test ! -x "${python_prog}"; then
12224         # Fall back to gdb 7.0/7.1 behaviour.
12225         python_prog=missing
12226         python_prefix=${with_python}
12227       fi
12228     elif test -x "${with_python}"; then
12229       # While we can't run python compiled for $host (unless host == build),
12230       # the user could write a script that provides the needed information,
12231       # so we support that.
12232       python_prog=${with_python}
12233       python_prefix=
12234     else
12235       as_fn_error "invalid value for --with-python" "$LINENO" 5
12236     fi
12237     ;;
12238   */*)
12239     # Disallow --with-python=foo/bar.
12240     as_fn_error "invalid value for --with-python" "$LINENO" 5
12241     ;;
12242   *)
12243     # The user has either specified auto, yes, or the name of the python
12244     # program assumed to be in $PATH.
12245     python_prefix=
12246     case "${with_python}" in
12247     yes | auto)
12248       if test ${build} = ${host}; then
12249         # Extract the first word of "python", so it can be a program name with args.
12250 set dummy python; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if test "${ac_cv_path_python_prog_path+set}" = set; then :
12254   $as_echo_n "(cached) " >&6
12255 else
12256   case $python_prog_path in
12257   [\\/]* | ?:[\\/]*)
12258   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
12259   ;;
12260   *)
12261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $PATH
12263 do
12264   IFS=$as_save_IFS
12265   test -z "$as_dir" && as_dir=.
12266     for ac_exec_ext in '' $ac_executable_extensions; do
12267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12268     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
12269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270     break 2
12271   fi
12272 done
12273   done
12274 IFS=$as_save_IFS
12275
12276   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
12277   ;;
12278 esac
12279 fi
12280 python_prog_path=$ac_cv_path_python_prog_path
12281 if test -n "$python_prog_path"; then
12282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
12283 $as_echo "$python_prog_path" >&6; }
12284 else
12285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12287 fi
12288
12289
12290         if test "${python_prog_path}" = missing; then
12291           python_prog=missing
12292         else
12293           python_prog=${python_prog_path}
12294         fi
12295       else
12296         # Not much we can do except assume the cross-compiler will find the
12297         # right files.
12298         python_prog=missing
12299       fi
12300       ;;
12301     *)
12302       # While we can't run python compiled for $host (unless host == build),
12303       # the user could write a script that provides the needed information,
12304       # so we support that.
12305       python_prog="${with_python}"
12306       # Extract the first word of "${python_prog}", so it can be a program name with args.
12307 set dummy ${python_prog}; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if test "${ac_cv_path_python_prog_path+set}" = set; then :
12311   $as_echo_n "(cached) " >&6
12312 else
12313   case $python_prog_path in
12314   [\\/]* | ?:[\\/]*)
12315   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
12316   ;;
12317   *)
12318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12320 do
12321   IFS=$as_save_IFS
12322   test -z "$as_dir" && as_dir=.
12323     for ac_exec_ext in '' $ac_executable_extensions; do
12324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12325     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
12326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12327     break 2
12328   fi
12329 done
12330   done
12331 IFS=$as_save_IFS
12332
12333   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
12334   ;;
12335 esac
12336 fi
12337 python_prog_path=$ac_cv_path_python_prog_path
12338 if test -n "$python_prog_path"; then
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
12340 $as_echo "$python_prog_path" >&6; }
12341 else
12342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12344 fi
12345
12346
12347       if test "${python_prog_path}" = missing; then
12348         as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
12349       fi
12350       ;;
12351     esac
12352   esac
12353
12354   if test "${python_prog}" != missing; then
12355     # We have a python program to use, but it may be too old.
12356     # Don't flag an error for --with-python=auto (the default).
12357     have_python_config=yes
12358     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
12359     if test $? != 0; then
12360       have_python_config=failed
12361       if test "${with_python}" != auto; then
12362         as_fn_error "failure running python-config --includes" "$LINENO" 5
12363       fi
12364     fi
12365     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
12366     if test $? != 0; then
12367       have_python_config=failed
12368       if test "${with_python}" != auto; then
12369         as_fn_error "failure running python-config --ldflags" "$LINENO" 5
12370       fi
12371     fi
12372     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
12373     if test $? != 0; then
12374       have_python_config=failed
12375       if test "${with_python}" != auto; then
12376         as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
12377       fi
12378     fi
12379   else
12380     # We do not have a python executable we can use to determine where
12381     # to find the Python headers and libs.  We cannot guess the include
12382     # path from the python_prefix either, because that include path
12383     # depends on the Python version.  So, there is nothing much we can
12384     # do except assume that the compiler will be able to find those files.
12385     python_includes=
12386     python_libs=
12387     have_python_config=no
12388   fi
12389
12390   # If we have python-config, only try the configuration it provides.
12391   # Otherwise fallback on the old way of trying different versions of
12392   # python in turn.
12393
12394   have_libpython=no
12395   if test "${have_python_config}" = yes; then
12396     # Determine the Python version by extracting "-lpython<version>"
12397     # part of the python_libs. <version> is usually X.Y with X and Y
12398     # being decimal numbers, but can also be XY (seen on Windows).
12399     #
12400     # The extraction is performed using sed with a regular expression.
12401     # Initially, the regexp used was using the '?' quantifier to make
12402     # the dot in the version number optional.  Unfortunately, this
12403     # does not work with non-GNU versions of sed because, because of
12404     # what looks like a limitation (the '?' quantifier does not work
12405     # with back-references).  We work around this limitation by using
12406     # the '*' quantifier instead.  It means that, in theory, we might
12407     # match unexpected version strings such as "-lpython2..7", but
12408     # this seems unlikely in practice.  And even if that happens,
12409     # an error will be triggered later on, when checking that version
12410     # number.
12411     python_version=`echo " ${python_libs} " \
12412                          | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
12413     case "${python_version}" in
12414     python*)
12415
12416   version=${python_version}
12417
12418   new_CPPFLAGS=${python_includes}
12419   new_LIBS=${python_libs}
12420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12421 $as_echo_n "checking for ${version}... " >&6; }
12422   save_CPPFLAGS=$CPPFLAGS
12423   save_LIBS=$LIBS
12424   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
12425   LIBS="$LIBS $new_LIBS"
12426   found_usable_python=no
12427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h.  */
12429 #include "Python.h"
12430 int
12431 main ()
12432 {
12433 Py_Initialize ();
12434   ;
12435   return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"; then :
12439   have_libpython=${version}
12440                   found_usable_python=yes
12441                   PYTHON_CPPFLAGS=$new_CPPFLAGS
12442                   PYTHON_LIBS=$new_LIBS
12443 fi
12444 rm -f core conftest.err conftest.$ac_objext \
12445     conftest$ac_exeext conftest.$ac_ext
12446   CPPFLAGS=$save_CPPFLAGS
12447   LIBS=$save_LIBS
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12449 $as_echo "${found_usable_python}" >&6; }
12450
12451       ;;
12452     *)
12453       as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
12454       ;;
12455     esac
12456   elif test "${have_python_config}" != failed; then
12457     if test "${have_libpython}" = no; then
12458
12459   version=python2.7
12460
12461   new_CPPFLAGS=${python_includes}
12462   new_LIBS="${python_libs} -lpython2.7"
12463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12464 $as_echo_n "checking for ${version}... " >&6; }
12465   save_CPPFLAGS=$CPPFLAGS
12466   save_LIBS=$LIBS
12467   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
12468   LIBS="$LIBS $new_LIBS"
12469   found_usable_python=no
12470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h.  */
12472 #include "Python.h"
12473 int
12474 main ()
12475 {
12476 Py_Initialize ();
12477   ;
12478   return 0;
12479 }
12480 _ACEOF
12481 if ac_fn_c_try_link "$LINENO"; then :
12482   have_libpython=${version}
12483                   found_usable_python=yes
12484                   PYTHON_CPPFLAGS=$new_CPPFLAGS
12485                   PYTHON_LIBS=$new_LIBS
12486 fi
12487 rm -f core conftest.err conftest.$ac_objext \
12488     conftest$ac_exeext conftest.$ac_ext
12489   CPPFLAGS=$save_CPPFLAGS
12490   LIBS=$save_LIBS
12491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12492 $as_echo "${found_usable_python}" >&6; }
12493
12494     fi
12495     if test "${have_libpython}" = no; then
12496
12497   version=python2.6
12498
12499   new_CPPFLAGS=${python_includes}
12500   new_LIBS="${python_libs} -lpython2.6"
12501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12502 $as_echo_n "checking for ${version}... " >&6; }
12503   save_CPPFLAGS=$CPPFLAGS
12504   save_LIBS=$LIBS
12505   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
12506   LIBS="$LIBS $new_LIBS"
12507   found_usable_python=no
12508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h.  */
12510 #include "Python.h"
12511 int
12512 main ()
12513 {
12514 Py_Initialize ();
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 if ac_fn_c_try_link "$LINENO"; then :
12520   have_libpython=${version}
12521                   found_usable_python=yes
12522                   PYTHON_CPPFLAGS=$new_CPPFLAGS
12523                   PYTHON_LIBS=$new_LIBS
12524 fi
12525 rm -f core conftest.err conftest.$ac_objext \
12526     conftest$ac_exeext conftest.$ac_ext
12527   CPPFLAGS=$save_CPPFLAGS
12528   LIBS=$save_LIBS
12529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12530 $as_echo "${found_usable_python}" >&6; }
12531
12532     fi
12533     if test ${have_libpython} = no; then
12534
12535   version=python2.5
12536
12537   new_CPPFLAGS=${python_includes}
12538   new_LIBS="${python_libs} -lpython2.5"
12539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12540 $as_echo_n "checking for ${version}... " >&6; }
12541   save_CPPFLAGS=$CPPFLAGS
12542   save_LIBS=$LIBS
12543   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
12544   LIBS="$LIBS $new_LIBS"
12545   found_usable_python=no
12546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h.  */
12548 #include "Python.h"
12549 int
12550 main ()
12551 {
12552 Py_Initialize ();
12553   ;
12554   return 0;
12555 }
12556 _ACEOF
12557 if ac_fn_c_try_link "$LINENO"; then :
12558   have_libpython=${version}
12559                   found_usable_python=yes
12560                   PYTHON_CPPFLAGS=$new_CPPFLAGS
12561                   PYTHON_LIBS=$new_LIBS
12562 fi
12563 rm -f core conftest.err conftest.$ac_objext \
12564     conftest$ac_exeext conftest.$ac_ext
12565   CPPFLAGS=$save_CPPFLAGS
12566   LIBS=$save_LIBS
12567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12568 $as_echo "${found_usable_python}" >&6; }
12569
12570     fi
12571     if test ${have_libpython} = no; then
12572
12573   version=python2.4
12574
12575   new_CPPFLAGS=${python_includes}
12576   new_LIBS="${python_libs} -lpython2.4"
12577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12578 $as_echo_n "checking for ${version}... " >&6; }
12579   save_CPPFLAGS=$CPPFLAGS
12580   save_LIBS=$LIBS
12581   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
12582   LIBS="$LIBS $new_LIBS"
12583   found_usable_python=no
12584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h.  */
12586 #include "Python.h"
12587 int
12588 main ()
12589 {
12590 Py_Initialize ();
12591   ;
12592   return 0;
12593 }
12594 _ACEOF
12595 if ac_fn_c_try_link "$LINENO"; then :
12596   have_libpython=${version}
12597                   found_usable_python=yes
12598                   PYTHON_CPPFLAGS=$new_CPPFLAGS
12599                   PYTHON_LIBS=$new_LIBS
12600 fi
12601 rm -f core conftest.err conftest.$ac_objext \
12602     conftest$ac_exeext conftest.$ac_ext
12603   CPPFLAGS=$save_CPPFLAGS
12604   LIBS=$save_LIBS
12605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12606 $as_echo "${found_usable_python}" >&6; }
12607
12608     fi
12609   fi
12610   if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
12611
12612 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
12613
12614   elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
12615
12616 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
12617
12618   elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
12619
12620 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
12621
12622   elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
12623
12624 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
12625
12626   fi
12627
12628   if test "${have_libpython}" = no; then
12629     case "${with_python}" in
12630     yes)
12631       as_fn_error "python is missing or unusable" "$LINENO" 5
12632       ;;
12633     auto)
12634       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
12635 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
12636       ;;
12637     *)
12638       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
12639       ;;
12640     esac
12641   else
12642     if test -n "${python_prefix}"; then
12643
12644 cat >>confdefs.h <<_ACEOF
12645 #define WITH_PYTHON_PATH "${python_prefix}"
12646 _ACEOF
12647
12648
12649   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12650      if test "x$prefix" = xNONE; then
12651         test_prefix=/usr/local
12652      else
12653         test_prefix=$prefix
12654      fi
12655   else
12656      test_prefix=$exec_prefix
12657   fi
12658   value=0
12659   case ${python_prefix} in
12660      "${test_prefix}"|"${test_prefix}/"*|\
12661         '${exec_prefix}'|'${exec_prefix}/'*)
12662      value=1
12663      ;;
12664   esac
12665
12666 cat >>confdefs.h <<_ACEOF
12667 #define PYTHON_PATH_RELOCATABLE $value
12668 _ACEOF
12669
12670
12671     fi
12672   fi
12673 fi
12674
12675 if test "${have_libpython}" != no; then
12676
12677 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
12678
12679   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
12680   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
12681   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
12682   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
12683   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
12684
12685   # Flags needed to compile Python code (taken from python-config --cflags).
12686   # We cannot call python-config directly because it will output whatever was
12687   # used when compiling the Python interpreter itself, including flags which
12688   # would make the python-related objects be compiled differently from the
12689   # rest of GDB (e.g., -O2 and -fPIC).
12690   if test "${GCC}" = yes; then
12691     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
12692   fi
12693
12694   if test "x${tentative_python_cflags}" != x; then
12695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
12696 $as_echo_n "checking compiler flags for python code... " >&6; }
12697     for flag in ${tentative_python_cflags}; do
12698       # Check that the compiler accepts it
12699       saved_CFLAGS="$CFLAGS"
12700       CFLAGS="$CFLAGS $flag"
12701       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h.  */
12703
12704 int
12705 main ()
12706 {
12707
12708   ;
12709   return 0;
12710 }
12711 _ACEOF
12712 if ac_fn_c_try_compile "$LINENO"; then :
12713   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
12714 fi
12715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716       CFLAGS="$saved_CFLAGS"
12717     done
12718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
12719 $as_echo "${PYTHON_CFLAGS}" >&6; }
12720   fi
12721
12722   # On IRIX, type siginfo is not defined.  Instead, sys/siginfo.h provides:
12723   #    #if _SGIAPI
12724   #    #define siginfo __siginfo
12725   #    #endif
12726   # The problem is that including Python causes some XOPEN macros to be
12727   # unilaterally defined, and that in turn causes _SGIAPI to evaluate
12728   # to false.  So, we work around this issue by defining siginfo ourself
12729   # though the command-line.
12730   case "$gdb_host" in
12731     irix*) if test "${GCC}" = yes; then
12732              CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
12733            fi
12734            ;;
12735   esac
12736 else
12737   # Even if Python support is not compiled in, we need to have these files
12738   # included.
12739   CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
12740   CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
12741         python/py-prettyprint.c python/py-auto-load.c"
12742 fi
12743
12744
12745
12746
12747 # ------------------------- #
12748 # Checks for header files.  #
12749 # ------------------------- #
12750
12751 ac_header_dirent=no
12752 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12753   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12755 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12757   $as_echo_n "(cached) " >&6
12758 else
12759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h.  */
12761 #include <sys/types.h>
12762 #include <$ac_hdr>
12763
12764 int
12765 main ()
12766 {
12767 if ((DIR *) 0)
12768 return 0;
12769   ;
12770   return 0;
12771 }
12772 _ACEOF
12773 if ac_fn_c_try_compile "$LINENO"; then :
12774   eval "$as_ac_Header=yes"
12775 else
12776   eval "$as_ac_Header=no"
12777 fi
12778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12779 fi
12780 eval ac_res=\$$as_ac_Header
12781                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12782 $as_echo "$ac_res" >&6; }
12783 eval as_val=\$$as_ac_Header
12784    if test "x$as_val" = x""yes; then :
12785   cat >>confdefs.h <<_ACEOF
12786 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12787 _ACEOF
12788
12789 ac_header_dirent=$ac_hdr; break
12790 fi
12791
12792 done
12793 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12794 if test $ac_header_dirent = dirent.h; then
12795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12796 $as_echo_n "checking for library containing opendir... " >&6; }
12797 if test "${ac_cv_search_opendir+set}" = set; then :
12798   $as_echo_n "(cached) " >&6
12799 else
12800   ac_func_search_save_LIBS=$LIBS
12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h.  */
12803
12804 /* Override any GCC internal prototype to avoid an error.
12805    Use char because int might match the return type of a GCC
12806    builtin and then its argument prototype would still apply.  */
12807 #ifdef __cplusplus
12808 extern "C"
12809 #endif
12810 char opendir ();
12811 int
12812 main ()
12813 {
12814 return opendir ();
12815   ;
12816   return 0;
12817 }
12818 _ACEOF
12819 for ac_lib in '' dir; do
12820   if test -z "$ac_lib"; then
12821     ac_res="none required"
12822   else
12823     ac_res=-l$ac_lib
12824     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12825   fi
12826   if ac_fn_c_try_link "$LINENO"; then :
12827   ac_cv_search_opendir=$ac_res
12828 fi
12829 rm -f core conftest.err conftest.$ac_objext \
12830     conftest$ac_exeext
12831   if test "${ac_cv_search_opendir+set}" = set; then :
12832   break
12833 fi
12834 done
12835 if test "${ac_cv_search_opendir+set}" = set; then :
12836
12837 else
12838   ac_cv_search_opendir=no
12839 fi
12840 rm conftest.$ac_ext
12841 LIBS=$ac_func_search_save_LIBS
12842 fi
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12844 $as_echo "$ac_cv_search_opendir" >&6; }
12845 ac_res=$ac_cv_search_opendir
12846 if test "$ac_res" != no; then :
12847   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12848
12849 fi
12850
12851 else
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12853 $as_echo_n "checking for library containing opendir... " >&6; }
12854 if test "${ac_cv_search_opendir+set}" = set; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   ac_func_search_save_LIBS=$LIBS
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h.  */
12860
12861 /* Override any GCC internal prototype to avoid an error.
12862    Use char because int might match the return type of a GCC
12863    builtin and then its argument prototype would still apply.  */
12864 #ifdef __cplusplus
12865 extern "C"
12866 #endif
12867 char opendir ();
12868 int
12869 main ()
12870 {
12871 return opendir ();
12872   ;
12873   return 0;
12874 }
12875 _ACEOF
12876 for ac_lib in '' x; do
12877   if test -z "$ac_lib"; then
12878     ac_res="none required"
12879   else
12880     ac_res=-l$ac_lib
12881     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12882   fi
12883   if ac_fn_c_try_link "$LINENO"; then :
12884   ac_cv_search_opendir=$ac_res
12885 fi
12886 rm -f core conftest.err conftest.$ac_objext \
12887     conftest$ac_exeext
12888   if test "${ac_cv_search_opendir+set}" = set; then :
12889   break
12890 fi
12891 done
12892 if test "${ac_cv_search_opendir+set}" = set; then :
12893
12894 else
12895   ac_cv_search_opendir=no
12896 fi
12897 rm conftest.$ac_ext
12898 LIBS=$ac_func_search_save_LIBS
12899 fi
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12901 $as_echo "$ac_cv_search_opendir" >&6; }
12902 ac_res=$ac_cv_search_opendir
12903 if test "$ac_res" != no; then :
12904   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12905
12906 fi
12907
12908 fi
12909
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12911 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
12912 if test "${ac_cv_header_stat_broken+set}" = set; then :
12913   $as_echo_n "(cached) " >&6
12914 else
12915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h.  */
12917 #include <sys/types.h>
12918 #include <sys/stat.h>
12919
12920 #if defined S_ISBLK && defined S_IFDIR
12921 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12922 #endif
12923
12924 #if defined S_ISBLK && defined S_IFCHR
12925 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12926 #endif
12927
12928 #if defined S_ISLNK && defined S_IFREG
12929 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12930 #endif
12931
12932 #if defined S_ISSOCK && defined S_IFREG
12933 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12934 #endif
12935
12936 _ACEOF
12937 if ac_fn_c_try_compile "$LINENO"; then :
12938   ac_cv_header_stat_broken=no
12939 else
12940   ac_cv_header_stat_broken=yes
12941 fi
12942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12943 fi
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12945 $as_echo "$ac_cv_header_stat_broken" >&6; }
12946 if test $ac_cv_header_stat_broken = yes; then
12947
12948 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12949
12950 fi
12951
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12953 $as_echo_n "checking for ANSI C header files... " >&6; }
12954 if test "${ac_cv_header_stdc+set}" = set; then :
12955   $as_echo_n "(cached) " >&6
12956 else
12957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h.  */
12959 #include <stdlib.h>
12960 #include <stdarg.h>
12961 #include <string.h>
12962 #include <float.h>
12963
12964 int
12965 main ()
12966 {
12967
12968   ;
12969   return 0;
12970 }
12971 _ACEOF
12972 if ac_fn_c_try_compile "$LINENO"; then :
12973   ac_cv_header_stdc=yes
12974 else
12975   ac_cv_header_stdc=no
12976 fi
12977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12978
12979 if test $ac_cv_header_stdc = yes; then
12980   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h.  */
12983 #include <string.h>
12984
12985 _ACEOF
12986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12987   $EGREP "memchr" >/dev/null 2>&1; then :
12988
12989 else
12990   ac_cv_header_stdc=no
12991 fi
12992 rm -f conftest*
12993
12994 fi
12995
12996 if test $ac_cv_header_stdc = yes; then
12997   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h.  */
13000 #include <stdlib.h>
13001
13002 _ACEOF
13003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13004   $EGREP "free" >/dev/null 2>&1; then :
13005
13006 else
13007   ac_cv_header_stdc=no
13008 fi
13009 rm -f conftest*
13010
13011 fi
13012
13013 if test $ac_cv_header_stdc = yes; then
13014   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13015   if test "$cross_compiling" = yes; then :
13016   :
13017 else
13018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13019 /* end confdefs.h.  */
13020 #include <ctype.h>
13021 #include <stdlib.h>
13022 #if ((' ' & 0x0FF) == 0x020)
13023 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13024 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13025 #else
13026 # define ISLOWER(c) \
13027                    (('a' <= (c) && (c) <= 'i') \
13028                      || ('j' <= (c) && (c) <= 'r') \
13029                      || ('s' <= (c) && (c) <= 'z'))
13030 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13031 #endif
13032
13033 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13034 int
13035 main ()
13036 {
13037   int i;
13038   for (i = 0; i < 256; i++)
13039     if (XOR (islower (i), ISLOWER (i))
13040         || toupper (i) != TOUPPER (i))
13041       return 2;
13042   return 0;
13043 }
13044 _ACEOF
13045 if ac_fn_c_try_run "$LINENO"; then :
13046
13047 else
13048   ac_cv_header_stdc=no
13049 fi
13050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13051   conftest.$ac_objext conftest.beam conftest.$ac_ext
13052 fi
13053
13054 fi
13055 fi
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13057 $as_echo "$ac_cv_header_stdc" >&6; }
13058 if test $ac_cv_header_stdc = yes; then
13059
13060 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13061
13062 fi
13063
13064 # elf_hp.h is for HP/UX 64-bit shared library support.
13065 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
13066 # unconditionally, so what's the point in checking these?
13067 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
13068                   thread_db.h gnu/libc-version.h signal.h stddef.h \
13069                   stdlib.h string.h memory.h strings.h sys/fault.h \
13070                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
13071                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
13072                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
13073                   sys/types.h sys/wait.h wait.h termios.h termio.h \
13074                   sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h \
13075                   dlfcn.h sys/socket.h sys/un.h
13076 do :
13077   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13078 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13079 eval as_val=\$$as_ac_Header
13080    if test "x$as_val" = x""yes; then :
13081   cat >>confdefs.h <<_ACEOF
13082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13083 _ACEOF
13084
13085 fi
13086
13087 done
13088
13089 for ac_header in link.h
13090 do :
13091   ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
13092 # include <sys/types.h>
13093 #endif
13094 #if HAVE_NLIST_H
13095 # include <nlist.h>
13096 #endif
13097
13098 "
13099 if test "x$ac_cv_header_link_h" = x""yes; then :
13100   cat >>confdefs.h <<_ACEOF
13101 #define HAVE_LINK_H 1
13102 _ACEOF
13103
13104 fi
13105
13106 done
13107
13108 for ac_header in sys/proc.h
13109 do :
13110   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
13111 # include <sys/param.h>
13112 #endif
13113
13114 "
13115 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
13116   cat >>confdefs.h <<_ACEOF
13117 #define HAVE_SYS_PROC_H 1
13118 _ACEOF
13119
13120 fi
13121
13122 done
13123
13124 for ac_header in sys/user.h
13125 do :
13126   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
13127 # include <sys/param.h>
13128 #endif
13129
13130 "
13131 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
13132   cat >>confdefs.h <<_ACEOF
13133 #define HAVE_SYS_USER_H 1
13134 _ACEOF
13135
13136 fi
13137
13138 done
13139
13140
13141 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
13142 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
13143 # think that we don't have <curses.h> if we're using GCC.
13144 case $host_os in
13145   solaris2.[789])
13146     if test "$GCC" = yes; then
13147
13148 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
13149
13150     fi ;;
13151 esac
13152 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
13153 do :
13154   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13155 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13156 eval as_val=\$$as_ac_Header
13157    if test "x$as_val" = x""yes; then :
13158   cat >>confdefs.h <<_ACEOF
13159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13160 _ACEOF
13161
13162 fi
13163
13164 done
13165
13166 for ac_header in term.h
13167 do :
13168   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
13169 # include <curses.h>
13170 #endif
13171
13172 "
13173 if test "x$ac_cv_header_term_h" = x""yes; then :
13174   cat >>confdefs.h <<_ACEOF
13175 #define HAVE_TERM_H 1
13176 _ACEOF
13177
13178 fi
13179
13180 done
13181
13182
13183 # ------------------------- #
13184 # Checks for declarations.  #
13185 # ------------------------- #
13186
13187 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13188 if test "x$ac_cv_have_decl_free" = x""yes; then :
13189   ac_have_decl=1
13190 else
13191   ac_have_decl=0
13192 fi
13193
13194 cat >>confdefs.h <<_ACEOF
13195 #define HAVE_DECL_FREE $ac_have_decl
13196 _ACEOF
13197 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13198 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13199   ac_have_decl=1
13200 else
13201   ac_have_decl=0
13202 fi
13203
13204 cat >>confdefs.h <<_ACEOF
13205 #define HAVE_DECL_MALLOC $ac_have_decl
13206 _ACEOF
13207 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13208 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13209   ac_have_decl=1
13210 else
13211   ac_have_decl=0
13212 fi
13213
13214 cat >>confdefs.h <<_ACEOF
13215 #define HAVE_DECL_REALLOC $ac_have_decl
13216 _ACEOF
13217 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13218 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
13219   ac_have_decl=1
13220 else
13221   ac_have_decl=0
13222 fi
13223
13224 cat >>confdefs.h <<_ACEOF
13225 #define HAVE_DECL_STRERROR $ac_have_decl
13226 _ACEOF
13227 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13228 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13229   ac_have_decl=1
13230 else
13231   ac_have_decl=0
13232 fi
13233
13234 cat >>confdefs.h <<_ACEOF
13235 #define HAVE_DECL_STRSTR $ac_have_decl
13236 _ACEOF
13237 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
13238 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
13239   ac_have_decl=1
13240 else
13241   ac_have_decl=0
13242 fi
13243
13244 cat >>confdefs.h <<_ACEOF
13245 #define HAVE_DECL_GETOPT $ac_have_decl
13246 _ACEOF
13247 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13248 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13249   ac_have_decl=1
13250 else
13251   ac_have_decl=0
13252 fi
13253
13254 cat >>confdefs.h <<_ACEOF
13255 #define HAVE_DECL_SNPRINTF $ac_have_decl
13256 _ACEOF
13257 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13258 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13259   ac_have_decl=1
13260 else
13261   ac_have_decl=0
13262 fi
13263
13264 cat >>confdefs.h <<_ACEOF
13265 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13266 _ACEOF
13267
13268
13269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13270 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13271 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13272   $as_echo_n "(cached) " >&6
13273 else
13274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h.  */
13276 #include <locale.h>
13277 int
13278 main ()
13279 {
13280 return LC_MESSAGES
13281   ;
13282   return 0;
13283 }
13284 _ACEOF
13285 if ac_fn_c_try_link "$LINENO"; then :
13286   am_cv_val_LC_MESSAGES=yes
13287 else
13288   am_cv_val_LC_MESSAGES=no
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext \
13291     conftest$ac_exeext conftest.$ac_ext
13292 fi
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13294 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13295   if test $am_cv_val_LC_MESSAGES = yes; then
13296
13297 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13298
13299   fi
13300
13301
13302 # ----------------------- #
13303 # Checks for structures.  #
13304 # ----------------------- #
13305
13306 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13307 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13308
13309 cat >>confdefs.h <<_ACEOF
13310 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13311 _ACEOF
13312
13313
13314 fi
13315 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13316 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
13317
13318 cat >>confdefs.h <<_ACEOF
13319 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13320 _ACEOF
13321
13322
13323 fi
13324
13325
13326 # ------------------ #
13327 # Checks for types.  #
13328 # ------------------ #
13329
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13331 $as_echo_n "checking return type of signal handlers... " >&6; }
13332 if test "${ac_cv_type_signal+set}" = set; then :
13333   $as_echo_n "(cached) " >&6
13334 else
13335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h.  */
13337 #include <sys/types.h>
13338 #include <signal.h>
13339
13340 int
13341 main ()
13342 {
13343 return *(signal (0, 0)) (0) == 1;
13344   ;
13345   return 0;
13346 }
13347 _ACEOF
13348 if ac_fn_c_try_compile "$LINENO"; then :
13349   ac_cv_type_signal=int
13350 else
13351   ac_cv_type_signal=void
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13356 $as_echo "$ac_cv_type_signal" >&6; }
13357
13358 cat >>confdefs.h <<_ACEOF
13359 #define RETSIGTYPE $ac_cv_type_signal
13360 _ACEOF
13361
13362
13363 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13364 #include <sys/socket.h>
13365
13366 "
13367 if test "x$ac_cv_type_socklen_t" = x""yes; then :
13368
13369 cat >>confdefs.h <<_ACEOF
13370 #define HAVE_SOCKLEN_T 1
13371 _ACEOF
13372
13373
13374 fi
13375
13376
13377 # ------------------------------------- #
13378 # Checks for compiler characteristics.  #
13379 # ------------------------------------- #
13380
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13382 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13383 if test "${ac_cv_c_const+set}" = set; then :
13384   $as_echo_n "(cached) " >&6
13385 else
13386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h.  */
13388
13389 int
13390 main ()
13391 {
13392 /* FIXME: Include the comments suggested by Paul. */
13393 #ifndef __cplusplus
13394   /* Ultrix mips cc rejects this.  */
13395   typedef int charset[2];
13396   const charset cs;
13397   /* SunOS 4.1.1 cc rejects this.  */
13398   char const *const *pcpcc;
13399   char **ppc;
13400   /* NEC SVR4.0.2 mips cc rejects this.  */
13401   struct point {int x, y;};
13402   static struct point const zero = {0,0};
13403   /* AIX XL C 1.02.0.0 rejects this.
13404      It does not let you subtract one const X* pointer from another in
13405      an arm of an if-expression whose if-part is not a constant
13406      expression */
13407   const char *g = "string";
13408   pcpcc = &g + (g ? g-g : 0);
13409   /* HPUX 7.0 cc rejects these. */
13410   ++pcpcc;
13411   ppc = (char**) pcpcc;
13412   pcpcc = (char const *const *) ppc;
13413   { /* SCO 3.2v4 cc rejects this.  */
13414     char *t;
13415     char const *s = 0 ? (char *) 0 : (char const *) 0;
13416
13417     *t++ = 0;
13418     if (s) return 0;
13419   }
13420   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13421     int x[] = {25, 17};
13422     const int *foo = &x[0];
13423     ++foo;
13424   }
13425   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13426     typedef const int *iptr;
13427     iptr p = 0;
13428     ++p;
13429   }
13430   { /* AIX XL C 1.02.0.0 rejects this saying
13431        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13432     struct s { int j; const int *ap[3]; };
13433     struct s *b; b->j = 5;
13434   }
13435   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13436     const int foo = 10;
13437     if (!foo) return 0;
13438   }
13439   return !cs[0] && !zero.x;
13440 #endif
13441
13442   ;
13443   return 0;
13444 }
13445 _ACEOF
13446 if ac_fn_c_try_compile "$LINENO"; then :
13447   ac_cv_c_const=yes
13448 else
13449   ac_cv_c_const=no
13450 fi
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13454 $as_echo "$ac_cv_c_const" >&6; }
13455 if test $ac_cv_c_const = no; then
13456
13457 $as_echo "#define const /**/" >>confdefs.h
13458
13459 fi
13460
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13462 $as_echo_n "checking for inline... " >&6; }
13463 if test "${ac_cv_c_inline+set}" = set; then :
13464   $as_echo_n "(cached) " >&6
13465 else
13466   ac_cv_c_inline=no
13467 for ac_kw in inline __inline__ __inline; do
13468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h.  */
13470 #ifndef __cplusplus
13471 typedef int foo_t;
13472 static $ac_kw foo_t static_foo () {return 0; }
13473 $ac_kw foo_t foo () {return 0; }
13474 #endif
13475
13476 _ACEOF
13477 if ac_fn_c_try_compile "$LINENO"; then :
13478   ac_cv_c_inline=$ac_kw
13479 fi
13480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481   test "$ac_cv_c_inline" != no && break
13482 done
13483
13484 fi
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13486 $as_echo "$ac_cv_c_inline" >&6; }
13487
13488 case $ac_cv_c_inline in
13489   inline | yes) ;;
13490   *)
13491     case $ac_cv_c_inline in
13492       no) ac_val=;;
13493       *) ac_val=$ac_cv_c_inline;;
13494     esac
13495     cat >>confdefs.h <<_ACEOF
13496 #ifndef __cplusplus
13497 #define inline $ac_val
13498 #endif
13499 _ACEOF
13500     ;;
13501 esac
13502
13503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13504 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13505 if test "${ac_cv_c_bigendian+set}" = set; then :
13506   $as_echo_n "(cached) " >&6
13507 else
13508   ac_cv_c_bigendian=unknown
13509     # See if we're dealing with a universal compiler.
13510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h.  */
13512 #ifndef __APPLE_CC__
13513                not a universal capable compiler
13514              #endif
13515              typedef int dummy;
13516
13517 _ACEOF
13518 if ac_fn_c_try_compile "$LINENO"; then :
13519
13520         # Check for potential -arch flags.  It is not universal unless
13521         # there are at least two -arch flags with different values.
13522         ac_arch=
13523         ac_prev=
13524         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13525          if test -n "$ac_prev"; then
13526            case $ac_word in
13527              i?86 | x86_64 | ppc | ppc64)
13528                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13529                  ac_arch=$ac_word
13530                else
13531                  ac_cv_c_bigendian=universal
13532                  break
13533                fi
13534                ;;
13535            esac
13536            ac_prev=
13537          elif test "x$ac_word" = "x-arch"; then
13538            ac_prev=arch
13539          fi
13540        done
13541 fi
13542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13543     if test $ac_cv_c_bigendian = unknown; then
13544       # See if sys/param.h defines the BYTE_ORDER macro.
13545       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h.  */
13547 #include <sys/types.h>
13548              #include <sys/param.h>
13549
13550 int
13551 main ()
13552 {
13553 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13554                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13555                      && LITTLE_ENDIAN)
13556               bogus endian macros
13557              #endif
13558
13559   ;
13560   return 0;
13561 }
13562 _ACEOF
13563 if ac_fn_c_try_compile "$LINENO"; then :
13564   # It does; now see whether it defined to BIG_ENDIAN or not.
13565          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h.  */
13567 #include <sys/types.h>
13568                 #include <sys/param.h>
13569
13570 int
13571 main ()
13572 {
13573 #if BYTE_ORDER != BIG_ENDIAN
13574                  not big endian
13575                 #endif
13576
13577   ;
13578   return 0;
13579 }
13580 _ACEOF
13581 if ac_fn_c_try_compile "$LINENO"; then :
13582   ac_cv_c_bigendian=yes
13583 else
13584   ac_cv_c_bigendian=no
13585 fi
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 fi
13588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589     fi
13590     if test $ac_cv_c_bigendian = unknown; then
13591       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13592       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h.  */
13594 #include <limits.h>
13595
13596 int
13597 main ()
13598 {
13599 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13600               bogus endian macros
13601              #endif
13602
13603   ;
13604   return 0;
13605 }
13606 _ACEOF
13607 if ac_fn_c_try_compile "$LINENO"; then :
13608   # It does; now see whether it defined to _BIG_ENDIAN or not.
13609          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h.  */
13611 #include <limits.h>
13612
13613 int
13614 main ()
13615 {
13616 #ifndef _BIG_ENDIAN
13617                  not big endian
13618                 #endif
13619
13620   ;
13621   return 0;
13622 }
13623 _ACEOF
13624 if ac_fn_c_try_compile "$LINENO"; then :
13625   ac_cv_c_bigendian=yes
13626 else
13627   ac_cv_c_bigendian=no
13628 fi
13629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630 fi
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632     fi
13633     if test $ac_cv_c_bigendian = unknown; then
13634       # Compile a test program.
13635       if test "$cross_compiling" = yes; then :
13636   # Try to guess by grepping values from an object file.
13637          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h.  */
13639 short int ascii_mm[] =
13640                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13641                 short int ascii_ii[] =
13642                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13643                 int use_ascii (int i) {
13644                   return ascii_mm[i] + ascii_ii[i];
13645                 }
13646                 short int ebcdic_ii[] =
13647                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13648                 short int ebcdic_mm[] =
13649                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13650                 int use_ebcdic (int i) {
13651                   return ebcdic_mm[i] + ebcdic_ii[i];
13652                 }
13653                 extern int foo;
13654
13655 int
13656 main ()
13657 {
13658 return use_ascii (foo) == use_ebcdic (foo);
13659   ;
13660   return 0;
13661 }
13662 _ACEOF
13663 if ac_fn_c_try_compile "$LINENO"; then :
13664   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13665               ac_cv_c_bigendian=yes
13666             fi
13667             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13668               if test "$ac_cv_c_bigendian" = unknown; then
13669                 ac_cv_c_bigendian=no
13670               else
13671                 # finding both strings is unlikely to happen, but who knows?
13672                 ac_cv_c_bigendian=unknown
13673               fi
13674             fi
13675 fi
13676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13677 else
13678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h.  */
13680 $ac_includes_default
13681 int
13682 main ()
13683 {
13684
13685              /* Are we little or big endian?  From Harbison&Steele.  */
13686              union
13687              {
13688                long int l;
13689                char c[sizeof (long int)];
13690              } u;
13691              u.l = 1;
13692              return u.c[sizeof (long int) - 1] == 1;
13693
13694   ;
13695   return 0;
13696 }
13697 _ACEOF
13698 if ac_fn_c_try_run "$LINENO"; then :
13699   ac_cv_c_bigendian=no
13700 else
13701   ac_cv_c_bigendian=yes
13702 fi
13703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13704   conftest.$ac_objext conftest.beam conftest.$ac_ext
13705 fi
13706
13707     fi
13708 fi
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13710 $as_echo "$ac_cv_c_bigendian" >&6; }
13711  case $ac_cv_c_bigendian in #(
13712    yes)
13713      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13714 ;; #(
13715    no)
13716       ;; #(
13717    universal)
13718
13719 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13720
13721      ;; #(
13722    *)
13723      as_fn_error "unknown endianness
13724  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13725  esac
13726
13727
13728 # ------------------------------ #
13729 # Checks for library functions.  #
13730 # ------------------------------ #
13731
13732 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13733 # for constant arguments.  Useless!
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13735 $as_echo_n "checking for working alloca.h... " >&6; }
13736 if test "${ac_cv_working_alloca_h+set}" = set; then :
13737   $as_echo_n "(cached) " >&6
13738 else
13739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h.  */
13741 #include <alloca.h>
13742 int
13743 main ()
13744 {
13745 char *p = (char *) alloca (2 * sizeof (int));
13746                           if (p) return 0;
13747   ;
13748   return 0;
13749 }
13750 _ACEOF
13751 if ac_fn_c_try_link "$LINENO"; then :
13752   ac_cv_working_alloca_h=yes
13753 else
13754   ac_cv_working_alloca_h=no
13755 fi
13756 rm -f core conftest.err conftest.$ac_objext \
13757     conftest$ac_exeext conftest.$ac_ext
13758 fi
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13760 $as_echo "$ac_cv_working_alloca_h" >&6; }
13761 if test $ac_cv_working_alloca_h = yes; then
13762
13763 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13764
13765 fi
13766
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13768 $as_echo_n "checking for alloca... " >&6; }
13769 if test "${ac_cv_func_alloca_works+set}" = set; then :
13770   $as_echo_n "(cached) " >&6
13771 else
13772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h.  */
13774 #ifdef __GNUC__
13775 # define alloca __builtin_alloca
13776 #else
13777 # ifdef _MSC_VER
13778 #  include <malloc.h>
13779 #  define alloca _alloca
13780 # else
13781 #  ifdef HAVE_ALLOCA_H
13782 #   include <alloca.h>
13783 #  else
13784 #   ifdef _AIX
13785  #pragma alloca
13786 #   else
13787 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13788 char *alloca ();
13789 #    endif
13790 #   endif
13791 #  endif
13792 # endif
13793 #endif
13794
13795 int
13796 main ()
13797 {
13798 char *p = (char *) alloca (1);
13799                                     if (p) return 0;
13800   ;
13801   return 0;
13802 }
13803 _ACEOF
13804 if ac_fn_c_try_link "$LINENO"; then :
13805   ac_cv_func_alloca_works=yes
13806 else
13807   ac_cv_func_alloca_works=no
13808 fi
13809 rm -f core conftest.err conftest.$ac_objext \
13810     conftest$ac_exeext conftest.$ac_ext
13811 fi
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13813 $as_echo "$ac_cv_func_alloca_works" >&6; }
13814
13815 if test $ac_cv_func_alloca_works = yes; then
13816
13817 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13818
13819 else
13820   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13821 # that cause trouble.  Some versions do not even contain alloca or
13822 # contain a buggy version.  If you still want to use their alloca,
13823 # use ar to extract alloca.o from them instead of compiling alloca.c.
13824
13825 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13826
13827 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13828
13829
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13831 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13832 if test "${ac_cv_os_cray+set}" = set; then :
13833   $as_echo_n "(cached) " >&6
13834 else
13835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h.  */
13837 #if defined CRAY && ! defined CRAY2
13838 webecray
13839 #else
13840 wenotbecray
13841 #endif
13842
13843 _ACEOF
13844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13845   $EGREP "webecray" >/dev/null 2>&1; then :
13846   ac_cv_os_cray=yes
13847 else
13848   ac_cv_os_cray=no
13849 fi
13850 rm -f conftest*
13851
13852 fi
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13854 $as_echo "$ac_cv_os_cray" >&6; }
13855 if test $ac_cv_os_cray = yes; then
13856   for ac_func in _getb67 GETB67 getb67; do
13857     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13858 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13859 eval as_val=\$$as_ac_var
13860    if test "x$as_val" = x""yes; then :
13861
13862 cat >>confdefs.h <<_ACEOF
13863 #define CRAY_STACKSEG_END $ac_func
13864 _ACEOF
13865
13866     break
13867 fi
13868
13869   done
13870 fi
13871
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13873 $as_echo_n "checking stack direction for C alloca... " >&6; }
13874 if test "${ac_cv_c_stack_direction+set}" = set; then :
13875   $as_echo_n "(cached) " >&6
13876 else
13877   if test "$cross_compiling" = yes; then :
13878   ac_cv_c_stack_direction=0
13879 else
13880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h.  */
13882 $ac_includes_default
13883 int
13884 find_stack_direction ()
13885 {
13886   static char *addr = 0;
13887   auto char dummy;
13888   if (addr == 0)
13889     {
13890       addr = &dummy;
13891       return find_stack_direction ();
13892     }
13893   else
13894     return (&dummy > addr) ? 1 : -1;
13895 }
13896
13897 int
13898 main ()
13899 {
13900   return find_stack_direction () < 0;
13901 }
13902 _ACEOF
13903 if ac_fn_c_try_run "$LINENO"; then :
13904   ac_cv_c_stack_direction=1
13905 else
13906   ac_cv_c_stack_direction=-1
13907 fi
13908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13909   conftest.$ac_objext conftest.beam conftest.$ac_ext
13910 fi
13911
13912 fi
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13914 $as_echo "$ac_cv_c_stack_direction" >&6; }
13915 cat >>confdefs.h <<_ACEOF
13916 #define STACK_DIRECTION $ac_cv_c_stack_direction
13917 _ACEOF
13918
13919
13920 fi
13921
13922 for ac_header in stdlib.h unistd.h
13923 do :
13924   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13925 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13926 eval as_val=\$$as_ac_Header
13927    if test "x$as_val" = x""yes; then :
13928   cat >>confdefs.h <<_ACEOF
13929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13930 _ACEOF
13931
13932 fi
13933
13934 done
13935
13936 for ac_func in getpagesize
13937 do :
13938   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13939 if test "x$ac_cv_func_getpagesize" = x""yes; then :
13940   cat >>confdefs.h <<_ACEOF
13941 #define HAVE_GETPAGESIZE 1
13942 _ACEOF
13943
13944 fi
13945 done
13946
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13948 $as_echo_n "checking for working mmap... " >&6; }
13949 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
13950   $as_echo_n "(cached) " >&6
13951 else
13952   if test "$cross_compiling" = yes; then :
13953   ac_cv_func_mmap_fixed_mapped=no
13954 else
13955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h.  */
13957 $ac_includes_default
13958 /* malloc might have been renamed as rpl_malloc. */
13959 #undef malloc
13960
13961 /* Thanks to Mike Haertel and Jim Avera for this test.
13962    Here is a matrix of mmap possibilities:
13963         mmap private not fixed
13964         mmap private fixed at somewhere currently unmapped
13965         mmap private fixed at somewhere already mapped
13966         mmap shared not fixed
13967         mmap shared fixed at somewhere currently unmapped
13968         mmap shared fixed at somewhere already mapped
13969    For private mappings, we should verify that changes cannot be read()
13970    back from the file, nor mmap's back from the file at a different
13971    address.  (There have been systems where private was not correctly
13972    implemented like the infamous i386 svr4.0, and systems where the
13973    VM page cache was not coherent with the file system buffer cache
13974    like early versions of FreeBSD and possibly contemporary NetBSD.)
13975    For shared mappings, we should conversely verify that changes get
13976    propagated back to all the places they're supposed to be.
13977
13978    Grep wants private fixed already mapped.
13979    The main things grep needs to know about mmap are:
13980    * does it exist and is it safe to write into the mmap'd area
13981    * how to use it (BSD variants)  */
13982
13983 #include <fcntl.h>
13984 #include <sys/mman.h>
13985
13986 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13987 char *malloc ();
13988 #endif
13989
13990 /* This mess was copied from the GNU getpagesize.h.  */
13991 #ifndef HAVE_GETPAGESIZE
13992 /* Assume that all systems that can run configure have sys/param.h.  */
13993 # ifndef HAVE_SYS_PARAM_H
13994 #  define HAVE_SYS_PARAM_H 1
13995 # endif
13996
13997 # ifdef _SC_PAGESIZE
13998 #  define getpagesize() sysconf(_SC_PAGESIZE)
13999 # else /* no _SC_PAGESIZE */
14000 #  ifdef HAVE_SYS_PARAM_H
14001 #   include <sys/param.h>
14002 #   ifdef EXEC_PAGESIZE
14003 #    define getpagesize() EXEC_PAGESIZE
14004 #   else /* no EXEC_PAGESIZE */
14005 #    ifdef NBPG
14006 #     define getpagesize() NBPG * CLSIZE
14007 #     ifndef CLSIZE
14008 #      define CLSIZE 1
14009 #     endif /* no CLSIZE */
14010 #    else /* no NBPG */
14011 #     ifdef NBPC
14012 #      define getpagesize() NBPC
14013 #     else /* no NBPC */
14014 #      ifdef PAGESIZE
14015 #       define getpagesize() PAGESIZE
14016 #      endif /* PAGESIZE */
14017 #     endif /* no NBPC */
14018 #    endif /* no NBPG */
14019 #   endif /* no EXEC_PAGESIZE */
14020 #  else /* no HAVE_SYS_PARAM_H */
14021 #   define getpagesize() 8192   /* punt totally */
14022 #  endif /* no HAVE_SYS_PARAM_H */
14023 # endif /* no _SC_PAGESIZE */
14024
14025 #endif /* no HAVE_GETPAGESIZE */
14026
14027 int
14028 main ()
14029 {
14030   char *data, *data2, *data3;
14031   int i, pagesize;
14032   int fd;
14033
14034   pagesize = getpagesize ();
14035
14036   /* First, make a file with some known garbage in it. */
14037   data = (char *) malloc (pagesize);
14038   if (!data)
14039     return 1;
14040   for (i = 0; i < pagesize; ++i)
14041     *(data + i) = rand ();
14042   umask (0);
14043   fd = creat ("conftest.mmap", 0600);
14044   if (fd < 0)
14045     return 1;
14046   if (write (fd, data, pagesize) != pagesize)
14047     return 1;
14048   close (fd);
14049
14050   /* Next, try to mmap the file at a fixed address which already has
14051      something else allocated at it.  If we can, also make sure that
14052      we see the same garbage.  */
14053   fd = open ("conftest.mmap", O_RDWR);
14054   if (fd < 0)
14055     return 1;
14056   data2 = (char *) malloc (2 * pagesize);
14057   if (!data2)
14058     return 1;
14059   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
14060   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14061                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14062     return 1;
14063   for (i = 0; i < pagesize; ++i)
14064     if (*(data + i) != *(data2 + i))
14065       return 1;
14066
14067   /* Finally, make sure that changes to the mapped area do not
14068      percolate back to the file as seen by read().  (This is a bug on
14069      some variants of i386 svr4.0.)  */
14070   for (i = 0; i < pagesize; ++i)
14071     *(data2 + i) = *(data2 + i) + 1;
14072   data3 = (char *) malloc (pagesize);
14073   if (!data3)
14074     return 1;
14075   if (read (fd, data3, pagesize) != pagesize)
14076     return 1;
14077   for (i = 0; i < pagesize; ++i)
14078     if (*(data + i) != *(data3 + i))
14079       return 1;
14080   close (fd);
14081   return 0;
14082 }
14083 _ACEOF
14084 if ac_fn_c_try_run "$LINENO"; then :
14085   ac_cv_func_mmap_fixed_mapped=yes
14086 else
14087   ac_cv_func_mmap_fixed_mapped=no
14088 fi
14089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14090   conftest.$ac_objext conftest.beam conftest.$ac_ext
14091 fi
14092
14093 fi
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14095 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14096 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14097
14098 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14099
14100 fi
14101 rm -f conftest.mmap
14102
14103 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14104 if test "x$ac_cv_type_pid_t" = x""yes; then :
14105
14106 else
14107
14108 cat >>confdefs.h <<_ACEOF
14109 #define pid_t int
14110 _ACEOF
14111
14112 fi
14113
14114 for ac_header in vfork.h
14115 do :
14116   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14117 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14118   cat >>confdefs.h <<_ACEOF
14119 #define HAVE_VFORK_H 1
14120 _ACEOF
14121
14122 fi
14123
14124 done
14125
14126 for ac_func in fork vfork
14127 do :
14128   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14129 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14130 eval as_val=\$$as_ac_var
14131    if test "x$as_val" = x""yes; then :
14132   cat >>confdefs.h <<_ACEOF
14133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14134 _ACEOF
14135
14136 fi
14137 done
14138
14139 if test "x$ac_cv_func_fork" = xyes; then
14140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14141 $as_echo_n "checking for working fork... " >&6; }
14142 if test "${ac_cv_func_fork_works+set}" = set; then :
14143   $as_echo_n "(cached) " >&6
14144 else
14145   if test "$cross_compiling" = yes; then :
14146   ac_cv_func_fork_works=cross
14147 else
14148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h.  */
14150 $ac_includes_default
14151 int
14152 main ()
14153 {
14154
14155           /* By Ruediger Kuhlmann. */
14156           return fork () < 0;
14157
14158   ;
14159   return 0;
14160 }
14161 _ACEOF
14162 if ac_fn_c_try_run "$LINENO"; then :
14163   ac_cv_func_fork_works=yes
14164 else
14165   ac_cv_func_fork_works=no
14166 fi
14167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14168   conftest.$ac_objext conftest.beam conftest.$ac_ext
14169 fi
14170
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14173 $as_echo "$ac_cv_func_fork_works" >&6; }
14174
14175 else
14176   ac_cv_func_fork_works=$ac_cv_func_fork
14177 fi
14178 if test "x$ac_cv_func_fork_works" = xcross; then
14179   case $host in
14180     *-*-amigaos* | *-*-msdosdjgpp*)
14181       # Override, as these systems have only a dummy fork() stub
14182       ac_cv_func_fork_works=no
14183       ;;
14184     *)
14185       ac_cv_func_fork_works=yes
14186       ;;
14187   esac
14188   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14189 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14190 fi
14191 ac_cv_func_vfork_works=$ac_cv_func_vfork
14192 if test "x$ac_cv_func_vfork" = xyes; then
14193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14194 $as_echo_n "checking for working vfork... " >&6; }
14195 if test "${ac_cv_func_vfork_works+set}" = set; then :
14196   $as_echo_n "(cached) " >&6
14197 else
14198   if test "$cross_compiling" = yes; then :
14199   ac_cv_func_vfork_works=cross
14200 else
14201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h.  */
14203 /* Thanks to Paul Eggert for this test.  */
14204 $ac_includes_default
14205 #include <sys/wait.h>
14206 #ifdef HAVE_VFORK_H
14207 # include <vfork.h>
14208 #endif
14209 /* On some sparc systems, changes by the child to local and incoming
14210    argument registers are propagated back to the parent.  The compiler
14211    is told about this with #include <vfork.h>, but some compilers
14212    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14213    static variable whose address is put into a register that is
14214    clobbered by the vfork.  */
14215 static void
14216 #ifdef __cplusplus
14217 sparc_address_test (int arg)
14218 # else
14219 sparc_address_test (arg) int arg;
14220 #endif
14221 {
14222   static pid_t child;
14223   if (!child) {
14224     child = vfork ();
14225     if (child < 0) {
14226       perror ("vfork");
14227       _exit(2);
14228     }
14229     if (!child) {
14230       arg = getpid();
14231       write(-1, "", 0);
14232       _exit (arg);
14233     }
14234   }
14235 }
14236
14237 int
14238 main ()
14239 {
14240   pid_t parent = getpid ();
14241   pid_t child;
14242
14243   sparc_address_test (0);
14244
14245   child = vfork ();
14246
14247   if (child == 0) {
14248     /* Here is another test for sparc vfork register problems.  This
14249        test uses lots of local variables, at least as many local
14250        variables as main has allocated so far including compiler
14251        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14252        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14253        reuse the register of parent for one of the local variables,
14254        since it will think that parent can't possibly be used any more
14255        in this routine.  Assigning to the local variable will thus
14256        munge parent in the parent process.  */
14257     pid_t
14258       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14259       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14260     /* Convince the compiler that p..p7 are live; otherwise, it might
14261        use the same hardware register for all 8 local variables.  */
14262     if (p != p1 || p != p2 || p != p3 || p != p4
14263         || p != p5 || p != p6 || p != p7)
14264       _exit(1);
14265
14266     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14267        from child file descriptors.  If the child closes a descriptor
14268        before it execs or exits, this munges the parent's descriptor
14269        as well.  Test for this by closing stdout in the child.  */
14270     _exit(close(fileno(stdout)) != 0);
14271   } else {
14272     int status;
14273     struct stat st;
14274
14275     while (wait(&status) != child)
14276       ;
14277     return (
14278          /* Was there some problem with vforking?  */
14279          child < 0
14280
14281          /* Did the child fail?  (This shouldn't happen.)  */
14282          || status
14283
14284          /* Did the vfork/compiler bug occur?  */
14285          || parent != getpid()
14286
14287          /* Did the file descriptor bug occur?  */
14288          || fstat(fileno(stdout), &st) != 0
14289          );
14290   }
14291 }
14292 _ACEOF
14293 if ac_fn_c_try_run "$LINENO"; then :
14294   ac_cv_func_vfork_works=yes
14295 else
14296   ac_cv_func_vfork_works=no
14297 fi
14298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14299   conftest.$ac_objext conftest.beam conftest.$ac_ext
14300 fi
14301
14302 fi
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14304 $as_echo "$ac_cv_func_vfork_works" >&6; }
14305
14306 fi;
14307 if test "x$ac_cv_func_fork_works" = xcross; then
14308   ac_cv_func_vfork_works=$ac_cv_func_vfork
14309   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14310 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14311 fi
14312
14313 if test "x$ac_cv_func_vfork_works" = xyes; then
14314
14315 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14316
14317 else
14318
14319 $as_echo "#define vfork fork" >>confdefs.h
14320
14321 fi
14322 if test "x$ac_cv_func_fork_works" = xyes; then
14323
14324 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14325
14326 fi
14327
14328 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
14329                 pipe poll pread pread64 pwrite readlink resize_term \
14330                 sbrk setpgid setpgrp setsid \
14331                 sigaction sigprocmask sigsetmask socketpair syscall \
14332                 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
14333                 setrlimit getrlimit posix_madvise waitpid lstat
14334 do :
14335   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14336 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14337 eval as_val=\$$as_ac_var
14338    if test "x$as_val" = x""yes; then :
14339   cat >>confdefs.h <<_ACEOF
14340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14341 _ACEOF
14342
14343 fi
14344 done
14345
14346
14347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14348 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14349 if test "${am_cv_langinfo_codeset+set}" = set; then :
14350   $as_echo_n "(cached) " >&6
14351 else
14352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h.  */
14354 #include <langinfo.h>
14355 int
14356 main ()
14357 {
14358 char* cs = nl_langinfo(CODESET);
14359   ;
14360   return 0;
14361 }
14362 _ACEOF
14363 if ac_fn_c_try_link "$LINENO"; then :
14364   am_cv_langinfo_codeset=yes
14365 else
14366   am_cv_langinfo_codeset=no
14367 fi
14368 rm -f core conftest.err conftest.$ac_objext \
14369     conftest$ac_exeext conftest.$ac_ext
14370
14371 fi
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14373 $as_echo "$am_cv_langinfo_codeset" >&6; }
14374   if test $am_cv_langinfo_codeset = yes; then
14375
14376 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14377
14378   fi
14379
14380
14381 # Check the return and argument types of ptrace.  No canned test for
14382 # this, so roll our own.
14383 gdb_ptrace_headers='
14384 #if HAVE_SYS_TYPES_H
14385 # include <sys/types.h>
14386 #endif
14387 #if HAVE_SYS_PTRACE_H
14388 # include <sys/ptrace.h>
14389 #endif
14390 #if HAVE_UNISTD_H
14391 # include <unistd.h>
14392 #endif
14393 '
14394 # There is no point in checking if we don't have a prototype.
14395 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
14396 "
14397 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
14398   ac_have_decl=1
14399 else
14400   ac_have_decl=0
14401 fi
14402
14403 cat >>confdefs.h <<_ACEOF
14404 #define HAVE_DECL_PTRACE $ac_have_decl
14405 _ACEOF
14406 if test $ac_have_decl = 1; then :
14407
14408 else
14409
14410   : ${gdb_cv_func_ptrace_ret='int'}
14411   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14412
14413 fi
14414
14415 # Check return type.  Varargs (used on GNU/Linux) conflict with the
14416 # empty argument list, so check for that explicitly.
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
14418 $as_echo_n "checking return type of ptrace... " >&6; }
14419 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
14420   $as_echo_n "(cached) " >&6
14421 else
14422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h.  */
14424 $gdb_ptrace_headers
14425 int
14426 main ()
14427 {
14428 extern long ptrace (enum __ptrace_request, ...);
14429   ;
14430   return 0;
14431 }
14432 _ACEOF
14433 if ac_fn_c_try_compile "$LINENO"; then :
14434   gdb_cv_func_ptrace_ret='long'
14435 else
14436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h.  */
14438 $gdb_ptrace_headers
14439 int
14440 main ()
14441 {
14442 extern int ptrace ();
14443   ;
14444   return 0;
14445 }
14446 _ACEOF
14447 if ac_fn_c_try_compile "$LINENO"; then :
14448   gdb_cv_func_ptrace_ret='int'
14449 else
14450   gdb_cv_func_ptrace_ret='long'
14451 fi
14452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14453 fi
14454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14455 fi
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
14457 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
14458
14459 cat >>confdefs.h <<_ACEOF
14460 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
14461 _ACEOF
14462
14463 # Check argument types.
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
14465 $as_echo_n "checking types of arguments for ptrace... " >&6; }
14466 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
14467   $as_echo_n "(cached) " >&6
14468 else
14469
14470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h.  */
14472 $gdb_ptrace_headers
14473 int
14474 main ()
14475 {
14476 extern long ptrace (enum __ptrace_request, ...);
14477   ;
14478   return 0;
14479 }
14480 _ACEOF
14481 if ac_fn_c_try_compile "$LINENO"; then :
14482   gdb_cv_func_ptrace_args='int,int,long,long'
14483 else
14484
14485 for gdb_arg1 in 'int' 'long'; do
14486  for gdb_arg2 in 'pid_t' 'int' 'long'; do
14487   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
14488    for gdb_arg4 in 'int' 'long'; do
14489      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h.  */
14491 $gdb_ptrace_headers
14492 int
14493 main ()
14494 {
14495
14496 extern $gdb_cv_func_ptrace_ret
14497   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
14498
14499   ;
14500   return 0;
14501 }
14502 _ACEOF
14503 if ac_fn_c_try_compile "$LINENO"; then :
14504   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
14505     break 4;
14506 fi
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508     for gdb_arg5 in 'int *' 'int' 'long'; do
14509      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h.  */
14511 $gdb_ptrace_headers
14512 int
14513 main ()
14514 {
14515
14516 extern $gdb_cv_func_ptrace_ret
14517   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
14518
14519   ;
14520   return 0;
14521 }
14522 _ACEOF
14523 if ac_fn_c_try_compile "$LINENO"; then :
14524
14525 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
14526     break 5;
14527 fi
14528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529     done
14530    done
14531   done
14532  done
14533 done
14534 # Provide a safe default value.
14535 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14536
14537 fi
14538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539 fi
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
14541 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
14542 ac_save_IFS=$IFS; IFS=','
14543 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
14544 IFS=$ac_save_IFS
14545 shift
14546
14547 cat >>confdefs.h <<_ACEOF
14548 #define PTRACE_TYPE_ARG3 $3
14549 _ACEOF
14550
14551 if test -n "$5"; then
14552
14553 cat >>confdefs.h <<_ACEOF
14554 #define PTRACE_TYPE_ARG5 $5
14555 _ACEOF
14556
14557 fi
14558
14559 if test "$cross_compiling" = no; then
14560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14561 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14562 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
14563   $as_echo_n "(cached) " >&6
14564 else
14565   if test "$cross_compiling" = yes; then :
14566   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
14567 else
14568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h.  */
14570 $ac_includes_default
14571 int
14572 main ()
14573 {
14574 /* If this system has a BSD-style setpgrp which takes arguments,
14575   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14576   exit successfully. */
14577   return setpgrp (1,1) != -1;
14578   ;
14579   return 0;
14580 }
14581 _ACEOF
14582 if ac_fn_c_try_run "$LINENO"; then :
14583   ac_cv_func_setpgrp_void=no
14584 else
14585   ac_cv_func_setpgrp_void=yes
14586 fi
14587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14588   conftest.$ac_objext conftest.beam conftest.$ac_ext
14589 fi
14590
14591 fi
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14593 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14594 if test $ac_cv_func_setpgrp_void = yes; then
14595
14596 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14597
14598 fi
14599
14600 else
14601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14602 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14603 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
14604   $as_echo_n "(cached) " >&6
14605 else
14606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h.  */
14608
14609 #include <unistd.h>
14610
14611 int
14612 main ()
14613 {
14614
14615   if (setpgrp(1,1) == -1)
14616     exit (0);
14617   else
14618     exit (1);
14619
14620   ;
14621   return 0;
14622 }
14623 _ACEOF
14624 if ac_fn_c_try_compile "$LINENO"; then :
14625   ac_cv_func_setpgrp_void=no
14626 else
14627   ac_cv_func_setpgrp_void=yes
14628 fi
14629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14630 fi
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14632 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14633 if test $ac_cv_func_setpgrp_void = yes; then
14634   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14635
14636 fi
14637 fi
14638
14639 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
14640 # since sigsetjmp might only be defined as a macro.
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14642 $as_echo_n "checking for sigsetjmp... " >&6; }
14643 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
14644   $as_echo_n "(cached) " >&6
14645 else
14646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h.  */
14648
14649 #include <setjmp.h>
14650
14651 int
14652 main ()
14653 {
14654 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14655   ;
14656   return 0;
14657 }
14658 _ACEOF
14659 if ac_fn_c_try_compile "$LINENO"; then :
14660   gdb_cv_func_sigsetjmp=yes
14661 else
14662   gdb_cv_func_sigsetjmp=no
14663 fi
14664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665 fi
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14667 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14668 if test $gdb_cv_func_sigsetjmp = yes; then
14669
14670 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14671
14672 fi
14673
14674 # Assume we'll default to using the included libiberty regex.
14675 gdb_use_included_regex=yes
14676
14677 # However, if the system regex is GNU regex, then default to *not*
14678 # using the included regex.
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14680 $as_echo_n "checking for GNU regex... " >&6; }
14681 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
14682   $as_echo_n "(cached) " >&6
14683 else
14684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14685 /* end confdefs.h.  */
14686 #include <gnu-versions.h>
14687 int
14688 main ()
14689 {
14690 #define REGEX_INTERFACE_VERSION 1
14691 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14692 # error "Version mismatch"
14693 #endif
14694   ;
14695   return 0;
14696 }
14697 _ACEOF
14698 if ac_fn_c_try_compile "$LINENO"; then :
14699   gdb_cv_have_gnu_regex=yes
14700 else
14701   gdb_cv_have_gnu_regex=no
14702 fi
14703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704 fi
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14706 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14707 if test $gdb_cv_have_gnu_regex = yes; then
14708   gdb_use_included_regex=no
14709 fi
14710
14711
14712 # Check whether --with-included-regex was given.
14713 if test "${with_included_regex+set}" = set; then :
14714   withval=$with_included_regex; gdb_with_regex=$withval
14715 else
14716   gdb_with_regex=$gdb_use_included_regex
14717 fi
14718
14719 if test "$gdb_with_regex" = yes; then
14720
14721 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14722
14723 fi
14724
14725 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14726 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14727 #include <sys/proc.h>
14728
14729 "
14730 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
14731
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_STRUCT_THREAD_TD_PCB 1
14734 _ACEOF
14735
14736
14737 fi
14738
14739
14740 # See if <sys/lwp.h> defines `struct lwp`.
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14742 $as_echo_n "checking for struct lwp... " >&6; }
14743 if test "${gdb_cv_struct_lwp+set}" = set; then :
14744   $as_echo_n "(cached) " >&6
14745 else
14746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h.  */
14748 #include <sys/param.h>
14749 #include <sys/lwp.h>
14750 int
14751 main ()
14752 {
14753 struct lwp l;
14754   ;
14755   return 0;
14756 }
14757 _ACEOF
14758 if ac_fn_c_try_compile "$LINENO"; then :
14759   gdb_cv_struct_lwp=yes
14760 else
14761   gdb_cv_struct_lwp=no
14762 fi
14763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764 fi
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14766 $as_echo "$gdb_cv_struct_lwp" >&6; }
14767 if test $gdb_cv_struct_lwp = yes; then
14768
14769 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14770
14771 fi
14772
14773 # See if <machine/reg.h> degines `struct reg'.
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14775 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14776 if test "${gdb_cv_struct_reg+set}" = set; then :
14777   $as_echo_n "(cached) " >&6
14778 else
14779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h.  */
14781 #include <sys/types.h>
14782 #include <machine/reg.h>
14783 int
14784 main ()
14785 {
14786 struct reg r;
14787   ;
14788   return 0;
14789 }
14790 _ACEOF
14791 if ac_fn_c_try_compile "$LINENO"; then :
14792   gdb_cv_struct_reg=yes
14793 else
14794   gdb_cv_struct_reg=no
14795 fi
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 fi
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14799 $as_echo "$gdb_cv_struct_reg" >&6; }
14800 if test $gdb_cv_struct_reg = yes; then
14801
14802 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14803
14804 fi
14805
14806 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14807 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14808 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
14809 "
14810 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
14811
14812 cat >>confdefs.h <<_ACEOF
14813 #define HAVE_STRUCT_REG_R_FS 1
14814 _ACEOF
14815
14816
14817 fi
14818 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
14819 "
14820 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
14821
14822 cat >>confdefs.h <<_ACEOF
14823 #define HAVE_STRUCT_REG_R_GS 1
14824 _ACEOF
14825
14826
14827 fi
14828
14829
14830 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14832 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14833 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
14834   $as_echo_n "(cached) " >&6
14835 else
14836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837 /* end confdefs.h.  */
14838 #include <sys/ptrace.h>
14839 int
14840 main ()
14841 {
14842 PTRACE_GETREGS;
14843   ;
14844   return 0;
14845 }
14846 _ACEOF
14847 if ac_fn_c_try_compile "$LINENO"; then :
14848   gdb_cv_have_ptrace_getregs=yes
14849 else
14850   gdb_cv_have_ptrace_getregs=no
14851 fi
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853 fi
14854
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14856 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14857 if test $gdb_cv_have_ptrace_getregs = yes; then
14858
14859 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14860
14861 fi
14862
14863 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14865 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14866 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
14867   $as_echo_n "(cached) " >&6
14868 else
14869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h.  */
14871 #include <sys/ptrace.h>
14872 int
14873 main ()
14874 {
14875 PTRACE_GETFPXREGS;
14876   ;
14877   return 0;
14878 }
14879 _ACEOF
14880 if ac_fn_c_try_compile "$LINENO"; then :
14881   gdb_cv_have_ptrace_getfpxregs=yes
14882 else
14883   gdb_cv_have_ptrace_getfpxregs=no
14884 fi
14885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14886 fi
14887
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14889 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14890 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14891
14892 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14893
14894 fi
14895
14896 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14898 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14899 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
14900   $as_echo_n "(cached) " >&6
14901 else
14902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h.  */
14904 #include <sys/types.h>
14905 #include <sys/ptrace.h>
14906 int
14907 main ()
14908 {
14909 PT_GETDBREGS;
14910   ;
14911   return 0;
14912 }
14913 _ACEOF
14914 if ac_fn_c_try_compile "$LINENO"; then :
14915   gdb_cv_have_pt_getdbregs=yes
14916 else
14917   gdb_cv_have_pt_getdbregs=no
14918 fi
14919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14920 fi
14921
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14923 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14924 if test $gdb_cv_have_pt_getdbregs = yes; then
14925
14926 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14927
14928 fi
14929
14930 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14932 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14933 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
14934   $as_echo_n "(cached) " >&6
14935 else
14936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h.  */
14938 #include <sys/types.h>
14939 #include <sys/ptrace.h>
14940 int
14941 main ()
14942 {
14943 PT_GETXMMREGS;
14944   ;
14945   return 0;
14946 }
14947 _ACEOF
14948 if ac_fn_c_try_compile "$LINENO"; then :
14949   gdb_cv_have_pt_getxmmregs=yes
14950 else
14951   gdb_cv_have_pt_getxmmregs=no
14952 fi
14953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14954 fi
14955
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14957 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14958 if test $gdb_cv_have_pt_getxmmregs = yes; then
14959
14960 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14961
14962 fi
14963
14964 # Detect which type of /proc is in use, such as for Unixware or Solaris.
14965
14966 if test "${target}" = "${host}"; then
14967   case "${host}" in
14968   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
14969
14970 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
14971
14972       ;;
14973   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
14974
14975 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
14976
14977       ;;
14978   mips-sgi-irix5*)
14979       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
14980
14981 $as_echo "#define _KMEMUSER 1" >>confdefs.h
14982
14983       ;;
14984   esac
14985 fi
14986
14987 if test "$ac_cv_header_sys_procfs_h" = yes; then
14988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14989 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14990  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
14991   $as_echo_n "(cached) " >&6
14992 else
14993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h.  */
14995
14996 #define _SYSCALL32
14997 /* Needed for new procfs interface on sparc-solaris.  */
14998 #define _STRUCTURED_PROC 1
14999 #include <sys/procfs.h>
15000 int
15001 main ()
15002 {
15003 pstatus_t avar
15004   ;
15005   return 0;
15006 }
15007 _ACEOF
15008 if ac_fn_c_try_compile "$LINENO"; then :
15009   bfd_cv_have_sys_procfs_type_pstatus_t=yes
15010 else
15011   bfd_cv_have_sys_procfs_type_pstatus_t=no
15012
15013 fi
15014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15015 fi
15016
15017  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
15018
15019 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
15020
15021  fi
15022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
15023 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
15024
15025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
15026 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
15027  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
15028   $as_echo_n "(cached) " >&6
15029 else
15030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h.  */
15032
15033 #define _SYSCALL32
15034 /* Needed for new procfs interface on sparc-solaris.  */
15035 #define _STRUCTURED_PROC 1
15036 #include <sys/procfs.h>
15037 int
15038 main ()
15039 {
15040 prrun_t avar
15041   ;
15042   return 0;
15043 }
15044 _ACEOF
15045 if ac_fn_c_try_compile "$LINENO"; then :
15046   bfd_cv_have_sys_procfs_type_prrun_t=yes
15047 else
15048   bfd_cv_have_sys_procfs_type_prrun_t=no
15049
15050 fi
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 fi
15053
15054  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
15055
15056 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
15057
15058  fi
15059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
15060 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
15061
15062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15063 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15064  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
15065   $as_echo_n "(cached) " >&6
15066 else
15067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h.  */
15069
15070 #define _SYSCALL32
15071 /* Needed for new procfs interface on sparc-solaris.  */
15072 #define _STRUCTURED_PROC 1
15073 #include <sys/procfs.h>
15074 int
15075 main ()
15076 {
15077 gregset_t avar
15078   ;
15079   return 0;
15080 }
15081 _ACEOF
15082 if ac_fn_c_try_compile "$LINENO"; then :
15083   bfd_cv_have_sys_procfs_type_gregset_t=yes
15084 else
15085   bfd_cv_have_sys_procfs_type_gregset_t=no
15086
15087 fi
15088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15089 fi
15090
15091  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15092
15093 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15094
15095  fi
15096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15097 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15098
15099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15100 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15101  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
15102   $as_echo_n "(cached) " >&6
15103 else
15104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h.  */
15106
15107 #define _SYSCALL32
15108 /* Needed for new procfs interface on sparc-solaris.  */
15109 #define _STRUCTURED_PROC 1
15110 #include <sys/procfs.h>
15111 int
15112 main ()
15113 {
15114 fpregset_t avar
15115   ;
15116   return 0;
15117 }
15118 _ACEOF
15119 if ac_fn_c_try_compile "$LINENO"; then :
15120   bfd_cv_have_sys_procfs_type_fpregset_t=yes
15121 else
15122   bfd_cv_have_sys_procfs_type_fpregset_t=no
15123
15124 fi
15125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15126 fi
15127
15128  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15129
15130 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15131
15132  fi
15133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15134 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15135
15136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15137 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15138  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
15139   $as_echo_n "(cached) " >&6
15140 else
15141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15142 /* end confdefs.h.  */
15143
15144 #define _SYSCALL32
15145 /* Needed for new procfs interface on sparc-solaris.  */
15146 #define _STRUCTURED_PROC 1
15147 #include <sys/procfs.h>
15148 int
15149 main ()
15150 {
15151 prgregset_t avar
15152   ;
15153   return 0;
15154 }
15155 _ACEOF
15156 if ac_fn_c_try_compile "$LINENO"; then :
15157   bfd_cv_have_sys_procfs_type_prgregset_t=yes
15158 else
15159   bfd_cv_have_sys_procfs_type_prgregset_t=no
15160
15161 fi
15162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15163 fi
15164
15165  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15166
15167 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15168
15169  fi
15170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15171 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15172
15173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15174 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15175  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
15176   $as_echo_n "(cached) " >&6
15177 else
15178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h.  */
15180
15181 #define _SYSCALL32
15182 /* Needed for new procfs interface on sparc-solaris.  */
15183 #define _STRUCTURED_PROC 1
15184 #include <sys/procfs.h>
15185 int
15186 main ()
15187 {
15188 prfpregset_t avar
15189   ;
15190   return 0;
15191 }
15192 _ACEOF
15193 if ac_fn_c_try_compile "$LINENO"; then :
15194   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
15195 else
15196   bfd_cv_have_sys_procfs_type_prfpregset_t=no
15197
15198 fi
15199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15200 fi
15201
15202  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15203
15204 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15205
15206  fi
15207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15208 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15209
15210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15211 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15212  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
15213   $as_echo_n "(cached) " >&6
15214 else
15215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h.  */
15217
15218 #define _SYSCALL32
15219 /* Needed for new procfs interface on sparc-solaris.  */
15220 #define _STRUCTURED_PROC 1
15221 #include <sys/procfs.h>
15222 int
15223 main ()
15224 {
15225 prgregset32_t avar
15226   ;
15227   return 0;
15228 }
15229 _ACEOF
15230 if ac_fn_c_try_compile "$LINENO"; then :
15231   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
15232 else
15233   bfd_cv_have_sys_procfs_type_prgregset32_t=no
15234
15235 fi
15236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15237 fi
15238
15239  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15240
15241 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15242
15243  fi
15244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15245 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15246
15247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
15248 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
15249  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
15250   $as_echo_n "(cached) " >&6
15251 else
15252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h.  */
15254
15255 #define _SYSCALL32
15256 /* Needed for new procfs interface on sparc-solaris.  */
15257 #define _STRUCTURED_PROC 1
15258 #include <sys/procfs.h>
15259 int
15260 main ()
15261 {
15262 prfpregset32_t avar
15263   ;
15264   return 0;
15265 }
15266 _ACEOF
15267 if ac_fn_c_try_compile "$LINENO"; then :
15268   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
15269 else
15270   bfd_cv_have_sys_procfs_type_prfpregset32_t=no
15271
15272 fi
15273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15274 fi
15275
15276  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
15277
15278 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
15279
15280  fi
15281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
15282 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
15283
15284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15285 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15286  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
15287   $as_echo_n "(cached) " >&6
15288 else
15289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15290 /* end confdefs.h.  */
15291
15292 #define _SYSCALL32
15293 /* Needed for new procfs interface on sparc-solaris.  */
15294 #define _STRUCTURED_PROC 1
15295 #include <sys/procfs.h>
15296 int
15297 main ()
15298 {
15299 lwpid_t avar
15300   ;
15301   return 0;
15302 }
15303 _ACEOF
15304 if ac_fn_c_try_compile "$LINENO"; then :
15305   bfd_cv_have_sys_procfs_type_lwpid_t=yes
15306 else
15307   bfd_cv_have_sys_procfs_type_lwpid_t=no
15308
15309 fi
15310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15311 fi
15312
15313  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15314
15315 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15316
15317  fi
15318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15319 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15320
15321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15322 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15323  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
15324   $as_echo_n "(cached) " >&6
15325 else
15326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h.  */
15328
15329 #define _SYSCALL32
15330 /* Needed for new procfs interface on sparc-solaris.  */
15331 #define _STRUCTURED_PROC 1
15332 #include <sys/procfs.h>
15333 int
15334 main ()
15335 {
15336 psaddr_t avar
15337   ;
15338   return 0;
15339 }
15340 _ACEOF
15341 if ac_fn_c_try_compile "$LINENO"; then :
15342   bfd_cv_have_sys_procfs_type_psaddr_t=yes
15343 else
15344   bfd_cv_have_sys_procfs_type_psaddr_t=no
15345
15346 fi
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348 fi
15349
15350  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15351
15352 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15353
15354  fi
15355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15356 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15357
15358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
15359 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
15360  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
15361   $as_echo_n "(cached) " >&6
15362 else
15363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h.  */
15365
15366 #define _SYSCALL32
15367 /* Needed for new procfs interface on sparc-solaris.  */
15368 #define _STRUCTURED_PROC 1
15369 #include <sys/procfs.h>
15370 int
15371 main ()
15372 {
15373 prsysent_t avar
15374   ;
15375   return 0;
15376 }
15377 _ACEOF
15378 if ac_fn_c_try_compile "$LINENO"; then :
15379   bfd_cv_have_sys_procfs_type_prsysent_t=yes
15380 else
15381   bfd_cv_have_sys_procfs_type_prsysent_t=no
15382
15383 fi
15384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15385 fi
15386
15387  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
15388
15389 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
15390
15391  fi
15392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
15393 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
15394
15395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
15396 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
15397  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
15398   $as_echo_n "(cached) " >&6
15399 else
15400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h.  */
15402
15403 #define _SYSCALL32
15404 /* Needed for new procfs interface on sparc-solaris.  */
15405 #define _STRUCTURED_PROC 1
15406 #include <sys/procfs.h>
15407 int
15408 main ()
15409 {
15410 pr_sigset_t avar
15411   ;
15412   return 0;
15413 }
15414 _ACEOF
15415 if ac_fn_c_try_compile "$LINENO"; then :
15416   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
15417 else
15418   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
15419
15420 fi
15421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15422 fi
15423
15424  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
15425
15426 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
15427
15428  fi
15429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
15430 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
15431
15432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
15433 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
15434  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
15435   $as_echo_n "(cached) " >&6
15436 else
15437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h.  */
15439
15440 #define _SYSCALL32
15441 /* Needed for new procfs interface on sparc-solaris.  */
15442 #define _STRUCTURED_PROC 1
15443 #include <sys/procfs.h>
15444 int
15445 main ()
15446 {
15447 pr_sigaction64_t avar
15448   ;
15449   return 0;
15450 }
15451 _ACEOF
15452 if ac_fn_c_try_compile "$LINENO"; then :
15453   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
15454 else
15455   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
15456
15457 fi
15458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15459 fi
15460
15461  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
15462
15463 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
15464
15465  fi
15466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
15467 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
15468
15469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
15470 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
15471  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
15472   $as_echo_n "(cached) " >&6
15473 else
15474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h.  */
15476
15477 #define _SYSCALL32
15478 /* Needed for new procfs interface on sparc-solaris.  */
15479 #define _STRUCTURED_PROC 1
15480 #include <sys/procfs.h>
15481 int
15482 main ()
15483 {
15484 pr_siginfo64_t avar
15485   ;
15486   return 0;
15487 }
15488 _ACEOF
15489 if ac_fn_c_try_compile "$LINENO"; then :
15490   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
15491 else
15492   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
15493
15494 fi
15495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496 fi
15497
15498  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
15499
15500 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
15501
15502  fi
15503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
15504 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
15505
15506
15507
15508
15509
15510   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
15512 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
15513     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
15514   $as_echo_n "(cached) " >&6
15515 else
15516   if test "$cross_compiling" = yes; then :
15517   gdb_cv_prfpregset_t_broken=yes
15518 else
15519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15520 /* end confdefs.h.  */
15521 #include <sys/procfs.h>
15522        int main ()
15523        {
15524          if (sizeof (prfpregset_t) == sizeof (void *))
15525            return 1;
15526          return 0;
15527        }
15528 _ACEOF
15529 if ac_fn_c_try_run "$LINENO"; then :
15530   gdb_cv_prfpregset_t_broken=no
15531 else
15532   gdb_cv_prfpregset_t_broken=yes
15533 fi
15534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15535   conftest.$ac_objext conftest.beam conftest.$ac_ext
15536 fi
15537
15538 fi
15539
15540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
15541 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
15542     if test $gdb_cv_prfpregset_t_broken = yes; then
15543
15544 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
15545
15546     fi
15547   fi
15548
15549
15550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
15551 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
15552   if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
15553   $as_echo_n "(cached) " >&6
15554 else
15555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h.  */
15557 #include <unistd.h>
15558 #include <sys/types.h>
15559 #include <sys/procfs.h>
15560
15561 int
15562 main ()
15563 {
15564
15565     int dummy;;
15566     dummy = ioctl(0, PIOCSET, &dummy);
15567
15568   ;
15569   return 0;
15570 }
15571 _ACEOF
15572 if ac_fn_c_try_compile "$LINENO"; then :
15573   gdb_cv_have_procfs_piocset=yes
15574 else
15575   gdb_cv_have_procfs_piocset=no
15576 fi
15577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15578 fi
15579
15580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
15581 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
15582   if test $gdb_cv_have_procfs_piocset = yes; then
15583
15584 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
15585
15586   fi
15587 fi
15588
15589 if test ${host} = ${target} ; then
15590
15591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
15592 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
15593   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
15594   $as_echo_n "(cached) " >&6
15595 else
15596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597 /* end confdefs.h.  */
15598 #include <link.h>
15599 int
15600 main ()
15601 {
15602 struct link_map lm; (void) lm.l_addr;
15603   ;
15604   return 0;
15605 }
15606 _ACEOF
15607 if ac_fn_c_try_compile "$LINENO"; then :
15608   gdb_cv_have_struct_link_map_with_l_members=yes
15609 else
15610   gdb_cv_have_struct_link_map_with_l_members=no
15611 fi
15612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15613 fi
15614
15615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
15616 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
15617   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
15618
15619 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
15620
15621   fi
15622
15623
15624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
15625 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
15626   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
15627   $as_echo_n "(cached) " >&6
15628 else
15629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15630 /* end confdefs.h.  */
15631 #include <sys/types.h>
15632 #include <link.h>
15633 int
15634 main ()
15635 {
15636 struct link_map lm; (void) lm.lm_addr;
15637   ;
15638   return 0;
15639 }
15640 _ACEOF
15641 if ac_fn_c_try_compile "$LINENO"; then :
15642   gdb_cv_have_struct_link_map_with_lm_members=yes
15643 else
15644   gdb_cv_have_struct_link_map_with_lm_members=no
15645 fi
15646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15647 fi
15648
15649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
15650 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
15651   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
15652
15653 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
15654
15655   fi
15656
15657
15658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
15659 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
15660   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
15661   $as_echo_n "(cached) " >&6
15662 else
15663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h.  */
15665 #include <sys/types.h>
15666 #ifdef HAVE_NLIST_H
15667 #include <nlist.h>
15668 #endif
15669 #include <link.h>
15670 int
15671 main ()
15672 {
15673 struct so_map lm; (void) lm.som_addr;
15674   ;
15675   return 0;
15676 }
15677 _ACEOF
15678 if ac_fn_c_try_compile "$LINENO"; then :
15679   gdb_cv_have_struct_so_map_with_som_members=yes
15680 else
15681   gdb_cv_have_struct_so_map_with_som_members=no
15682 fi
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 fi
15685
15686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
15687 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
15688   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
15689
15690 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
15691
15692   fi
15693
15694
15695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
15696 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
15697   if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
15698   $as_echo_n "(cached) " >&6
15699 else
15700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15701 /* end confdefs.h.  */
15702 #define _SYSCALL32
15703 #include <sys/link.h>
15704 int
15705 main ()
15706 {
15707 struct link_map32 l;
15708   ;
15709   return 0;
15710 }
15711 _ACEOF
15712 if ac_fn_c_try_compile "$LINENO"; then :
15713   gdb_cv_have_struct_link_map32=yes
15714 else
15715   gdb_cv_have_struct_link_map32=no
15716 fi
15717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718 fi
15719
15720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
15721 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
15722   if test $gdb_cv_have_struct_link_map32 = yes; then
15723
15724 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
15725
15726
15727 $as_echo "#define _SYSCALL32 1" >>confdefs.h
15728
15729   fi
15730 fi
15731
15732 # Check if the compiler supports the `long long' type.
15733
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15735 $as_echo_n "checking for long long support in compiler... " >&6; }
15736 if test "${gdb_cv_c_long_long+set}" = set; then :
15737   $as_echo_n "(cached) " >&6
15738 else
15739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h.  */
15741 extern long long foo;
15742 int
15743 main ()
15744 {
15745 switch (foo & 2) { case 0: return 1; }
15746   ;
15747   return 0;
15748 }
15749 _ACEOF
15750 if ac_fn_c_try_compile "$LINENO"; then :
15751   gdb_cv_c_long_long=yes
15752 else
15753   gdb_cv_c_long_long=no
15754 fi
15755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756 fi
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15758 $as_echo "$gdb_cv_c_long_long" >&6; }
15759 if test $gdb_cv_c_long_long = yes; then
15760
15761 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
15762
15763 fi
15764
15765 # Check if the compiler and runtime support printing long longs.
15766
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15768 $as_echo_n "checking for long long support in printf... " >&6; }
15769 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
15770   $as_echo_n "(cached) " >&6
15771 else
15772   if test "$cross_compiling" = yes; then :
15773   gdb_cv_printf_has_long_long=no
15774 else
15775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h.  */
15777 $ac_includes_default
15778 int
15779 main ()
15780 {
15781 char buf[32];
15782   long long l = 0;
15783   l = (l << 16) + 0x0123;
15784   l = (l << 16) + 0x4567;
15785   l = (l << 16) + 0x89ab;
15786   l = (l << 16) + 0xcdef;
15787   sprintf (buf, "0x%016llx", l);
15788   return (strcmp ("0x0123456789abcdef", buf));
15789   ;
15790   return 0;
15791 }
15792 _ACEOF
15793 if ac_fn_c_try_run "$LINENO"; then :
15794   gdb_cv_printf_has_long_long=yes
15795 else
15796   gdb_cv_printf_has_long_long=no
15797 fi
15798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15799   conftest.$ac_objext conftest.beam conftest.$ac_ext
15800 fi
15801
15802 fi
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15804 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15805 if test $gdb_cv_printf_has_long_long = yes; then
15806
15807 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15808
15809 fi
15810
15811 # Check if the compiler and runtime support printing decfloats.
15812
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15814 $as_echo_n "checking for decfloat support in printf... " >&6; }
15815 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
15816   $as_echo_n "(cached) " >&6
15817 else
15818   if test "$cross_compiling" = yes; then :
15819   gdb_cv_printf_has_decfloat=no
15820 else
15821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h.  */
15823 $ac_includes_default
15824 int
15825 main ()
15826 {
15827 char buf[64];
15828   _Decimal32 d32 = 1.2345df;
15829   _Decimal64 d64 = 1.2345dd;
15830   _Decimal128 d128 = 1.2345dl;
15831   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15832   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 if ac_fn_c_try_run "$LINENO"; then :
15838   gdb_cv_printf_has_decfloat=yes
15839 else
15840   gdb_cv_printf_has_decfloat=no
15841 fi
15842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15843   conftest.$ac_objext conftest.beam conftest.$ac_ext
15844 fi
15845
15846 fi
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15848 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15849 if test $gdb_cv_printf_has_decfloat = yes; then
15850
15851 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15852
15853 fi
15854
15855 # Check if the compiler supports the `long double' type.  We can't use
15856 # AC_C_LONG_DOUBLE because that one does additional checks on the
15857 # constants defined in <float.h> that fail on some systems,
15858 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15859
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15861 $as_echo_n "checking for long double support in compiler... " >&6; }
15862 if test "${gdb_cv_c_long_double+set}" = set; then :
15863   $as_echo_n "(cached) " >&6
15864 else
15865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866 /* end confdefs.h.  */
15867 long double foo;
15868 _ACEOF
15869 if ac_fn_c_try_compile "$LINENO"; then :
15870   gdb_cv_c_long_double=yes
15871 else
15872   gdb_cv_c_long_double=no
15873 fi
15874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15875 fi
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15877 $as_echo "$gdb_cv_c_long_double" >&6; }
15878 if test $gdb_cv_c_long_double = yes; then
15879
15880 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15881
15882 fi
15883
15884 # Check if the compiler and runtime support printing long doubles.
15885
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15887 $as_echo_n "checking for long double support in printf... " >&6; }
15888 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
15889   $as_echo_n "(cached) " >&6
15890 else
15891   if test "$cross_compiling" = yes; then :
15892   gdb_cv_printf_has_long_double=no
15893 else
15894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895 /* end confdefs.h.  */
15896 $ac_includes_default
15897 int
15898 main ()
15899 {
15900 char buf[16];
15901   long double f = 3.141592653;
15902   sprintf (buf, "%Lg", f);
15903   return (strncmp ("3.14159", buf, 7));
15904   ;
15905   return 0;
15906 }
15907 _ACEOF
15908 if ac_fn_c_try_run "$LINENO"; then :
15909   gdb_cv_printf_has_long_double=yes
15910 else
15911   gdb_cv_printf_has_long_double=no
15912 fi
15913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15914   conftest.$ac_objext conftest.beam conftest.$ac_ext
15915 fi
15916
15917 fi
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15919 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15920 if test $gdb_cv_printf_has_long_double = yes; then
15921
15922 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15923
15924 fi
15925
15926 # Check if the compiler and runtime support scanning long doubles.
15927
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15929 $as_echo_n "checking for long double support in scanf... " >&6; }
15930 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
15931   $as_echo_n "(cached) " >&6
15932 else
15933   if test "$cross_compiling" = yes; then :
15934   gdb_cv_scanf_has_long_double=no
15935 else
15936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h.  */
15938 #include <stdio.h>
15939 int
15940 main ()
15941 {
15942 char *buf = "3.141592653";
15943   long double f = 0;
15944   sscanf (buf, "%Lg", &f);
15945   return !(f > 3.14159 && f < 3.14160);
15946   ;
15947   return 0;
15948 }
15949 _ACEOF
15950 if ac_fn_c_try_run "$LINENO"; then :
15951   gdb_cv_scanf_has_long_double=yes
15952 else
15953   gdb_cv_scanf_has_long_double=no
15954 fi
15955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15956   conftest.$ac_objext conftest.beam conftest.$ac_ext
15957 fi
15958
15959 fi
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
15961 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
15962 if test $gdb_cv_scanf_has_long_double = yes; then
15963
15964 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
15965
15966 fi
15967
15968 case ${host_os} in
15969 aix*)
15970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
15971 $as_echo_n "checking for -bbigtoc option... " >&6; }
15972 if test "${gdb_cv_bigtoc+set}" = set; then :
15973   $as_echo_n "(cached) " >&6
15974 else
15975
15976     SAVE_LDFLAGS=$LDFLAGS
15977
15978     case $GCC in
15979     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
15980     *) gdb_cv_bigtoc=-bbigtoc ;;
15981     esac
15982
15983     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
15984     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h.  */
15986
15987 int
15988 main ()
15989 {
15990 int i;
15991   ;
15992   return 0;
15993 }
15994 _ACEOF
15995 if ac_fn_c_try_link "$LINENO"; then :
15996
15997 else
15998   gdb_cv_bigtoc=
15999 fi
16000 rm -f core conftest.err conftest.$ac_objext \
16001     conftest$ac_exeext conftest.$ac_ext
16002     LDFLAGS="${SAVE_LDFLAGS}"
16003
16004 fi
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16006 $as_echo "$gdb_cv_bigtoc" >&6; }
16007   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16008   ;;
16009 esac
16010
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16012 $as_echo_n "checking for the dynamic export flag... " >&6; }
16013 dynamic_list=false
16014 if test "${gdb_native}" = yes; then
16015    # The dynamically loaded libthread_db needs access to symbols in the gdb
16016    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
16017    # may not be supported there.
16018    old_LDFLAGS="$LDFLAGS"
16019    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16020    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16021    LDFLAGS="$LDFLAGS $RDYNAMIC"
16022    if test "${have_libpython}" = no; then
16023      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h.  */
16025
16026 int
16027 main ()
16028 {
16029
16030   ;
16031   return 0;
16032 }
16033 _ACEOF
16034 if ac_fn_c_try_link "$LINENO"; then :
16035   dynamic_list=true
16036 fi
16037 rm -f core conftest.err conftest.$ac_objext \
16038     conftest$ac_exeext conftest.$ac_ext
16039    else
16040      # Workaround http://bugs.python.org/issue4434 where static
16041      # libpythonX.Y.a would get its symbols required for
16042      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16043      # Problem does not happen for the recommended libpythonX.Y.so linkage.
16044      old_CFLAGS="$CFLAGS"
16045      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
16046      if test "$cross_compiling" = yes; then :
16047   true
16048 else
16049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h.  */
16051 #include "${have_libpython}/Python.h"
16052 int
16053 main ()
16054 {
16055 int err;
16056           Py_Initialize ();
16057           err = PyRun_SimpleString ("import itertools\n");
16058           Py_Finalize ();
16059           return err == 0 ? 0 : 1;
16060   ;
16061   return 0;
16062 }
16063 _ACEOF
16064 if ac_fn_c_try_run "$LINENO"; then :
16065   dynamic_list=true
16066 fi
16067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16068   conftest.$ac_objext conftest.beam conftest.$ac_ext
16069 fi
16070
16071      CFLAGS="$old_CFLAGS"
16072    fi
16073    LDFLAGS="$old_LDFLAGS"
16074 fi
16075 if $dynamic_list; then
16076   found="-Wl,--dynamic-list"
16077   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16078 else
16079   found="-rdynamic"
16080   RDYNAMIC="-rdynamic"
16081 fi
16082
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16084 $as_echo "$found" >&6; }
16085
16086
16087 if test ${build} = ${host} -a ${host} = ${target} ; then
16088    case ${host_os} in
16089    solaris*)
16090       # See if thread_db library is around for Solaris thread debugging.
16091       # Note that we must explicitly test for version 1 of the library
16092       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
16093       # the same API.
16094       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
16095 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
16096       if test -f /usr/lib/libthread_db.so.1 ; then
16097          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16098 $as_echo "yes" >&6; }
16099
16100 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
16101
16102          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
16103          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
16104          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16105 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16106 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16107   $as_echo_n "(cached) " >&6
16108 else
16109   ac_check_lib_save_LIBS=$LIBS
16110 LIBS="-ldl  $LIBS"
16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h.  */
16113
16114 /* Override any GCC internal prototype to avoid an error.
16115    Use char because int might match the return type of a GCC
16116    builtin and then its argument prototype would still apply.  */
16117 #ifdef __cplusplus
16118 extern "C"
16119 #endif
16120 char dlopen ();
16121 int
16122 main ()
16123 {
16124 return dlopen ();
16125   ;
16126   return 0;
16127 }
16128 _ACEOF
16129 if ac_fn_c_try_link "$LINENO"; then :
16130   ac_cv_lib_dl_dlopen=yes
16131 else
16132   ac_cv_lib_dl_dlopen=no
16133 fi
16134 rm -f core conftest.err conftest.$ac_objext \
16135     conftest$ac_exeext conftest.$ac_ext
16136 LIBS=$ac_check_lib_save_LIBS
16137 fi
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16139 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16140 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16141   cat >>confdefs.h <<_ACEOF
16142 #define HAVE_LIBDL 1
16143 _ACEOF
16144
16145   LIBS="-ldl $LIBS"
16146
16147 fi
16148
16149          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
16150          # Sun randomly tweaked the prototypes in <proc_service.h>
16151          # at one point.
16152          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
16153 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
16154          if test "${gdb_cv_proc_service_is_old+set}" = set; then :
16155   $as_echo_n "(cached) " >&6
16156 else
16157
16158             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h.  */
16160
16161                 #include <proc_service.h>
16162                 ps_err_e ps_pdwrite
16163                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
16164
16165 int
16166 main ()
16167 {
16168
16169   ;
16170   return 0;
16171 }
16172 _ACEOF
16173 if ac_fn_c_try_compile "$LINENO"; then :
16174   gdb_cv_proc_service_is_old=no
16175 else
16176   gdb_cv_proc_service_is_old=yes
16177 fi
16178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16179
16180 fi
16181
16182          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
16183 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
16184          if test $gdb_cv_proc_service_is_old = yes; then
16185
16186 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
16187
16188          fi
16189       else
16190          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16191 $as_echo "no" >&6; }
16192       fi
16193       ;;
16194    aix*)
16195       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16196 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16197       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
16198   $as_echo_n "(cached) " >&6
16199 else
16200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201 /* end confdefs.h.  */
16202 #include <sys/pthdebug.h>
16203 int
16204 main ()
16205 {
16206 #ifndef PTHDB_VERSION_3
16207                                     #error
16208                                     #endif
16209   ;
16210   return 0;
16211 }
16212 _ACEOF
16213 if ac_fn_c_try_compile "$LINENO"; then :
16214   gdb_cv_have_aix_thread_debug=yes
16215 else
16216   gdb_cv_have_aix_thread_debug=no
16217 fi
16218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219 fi
16220
16221       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16222 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16223       if test $gdb_cv_have_aix_thread_debug = yes; then
16224          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
16225          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
16226          LIBS="$LIBS -lpthdebug"
16227
16228          # Older versions of AIX do not provide the declaration for
16229          # the getthrds function (it appears that it was introduced
16230          # with AIX 6.x).
16231          ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16232 "
16233 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
16234   ac_have_decl=1
16235 else
16236   ac_have_decl=0
16237 fi
16238
16239 cat >>confdefs.h <<_ACEOF
16240 #define HAVE_DECL_GETTHRDS $ac_have_decl
16241 _ACEOF
16242
16243       fi
16244       ;;
16245    esac
16246
16247 fi
16248
16249 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16250    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16251 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16252 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
16253   $as_echo_n "(cached) " >&6
16254 else
16255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16256 /* end confdefs.h.  */
16257 #include <thread_db.h>
16258 int
16259 main ()
16260 {
16261 int i = TD_NOTALLOC;
16262   ;
16263   return 0;
16264 }
16265 _ACEOF
16266 if ac_fn_c_try_compile "$LINENO"; then :
16267   gdb_cv_thread_db_h_has_td_notalloc=yes
16268 else
16269   gdb_cv_thread_db_h_has_td_notalloc=no
16270
16271 fi
16272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273
16274 fi
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16276 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16277    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16278 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16279 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
16280   $as_echo_n "(cached) " >&6
16281 else
16282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16283 /* end confdefs.h.  */
16284 #include <thread_db.h>
16285 int
16286 main ()
16287 {
16288 int i = TD_VERSION;
16289   ;
16290   return 0;
16291 }
16292 _ACEOF
16293 if ac_fn_c_try_compile "$LINENO"; then :
16294   gdb_cv_thread_db_h_has_td_version=yes
16295 else
16296   gdb_cv_thread_db_h_has_td_version=no
16297
16298 fi
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300
16301 fi
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16303 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16304    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16305 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16306 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
16307   $as_echo_n "(cached) " >&6
16308 else
16309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h.  */
16311 #include <thread_db.h>
16312 int
16313 main ()
16314 {
16315 int i = TD_NOTLS;
16316   ;
16317   return 0;
16318 }
16319 _ACEOF
16320 if ac_fn_c_try_compile "$LINENO"; then :
16321   gdb_cv_thread_db_h_has_td_notls=yes
16322 else
16323   gdb_cv_thread_db_h_has_td_notls=no
16324
16325 fi
16326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16327
16328 fi
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16330 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16331 fi
16332 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16333
16334 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16335
16336 fi
16337 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16338
16339 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16340
16341 fi
16342 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16343
16344 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16345
16346 fi
16347
16348 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
16349    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
16350 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
16351 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
16352   $as_echo_n "(cached) " >&6
16353 else
16354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h.  */
16356 #include <sys/syscall.h>
16357 int
16358 main ()
16359 {
16360 int i = __NR_tkill;
16361   ;
16362   return 0;
16363 }
16364 _ACEOF
16365 if ac_fn_c_try_compile "$LINENO"; then :
16366   gdb_cv_sys_syscall_h_has_tkill=yes
16367 else
16368   gdb_cv_sys_syscall_h_has_tkill=no
16369
16370 fi
16371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16372
16373 fi
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
16375 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
16376 fi
16377 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
16378
16379 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
16380
16381 fi
16382
16383 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
16384 "
16385 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
16386   ac_have_decl=1
16387 else
16388   ac_have_decl=0
16389 fi
16390
16391 cat >>confdefs.h <<_ACEOF
16392 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
16393 _ACEOF
16394
16395
16396 if test "$cross_compiling" = yes; then :
16397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h.  */
16399 #include <sys/personality.h>
16400 int
16401 main ()
16402 {
16403
16404 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
16405 #       define ADDR_NO_RANDOMIZE 0x0040000
16406 #      endif
16407        /* Test the flag could be set and stays set.  */
16408        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
16409        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
16410            return 1
16411   ;
16412   return 0;
16413 }
16414 _ACEOF
16415 if ac_fn_c_try_link "$LINENO"; then :
16416   have_personality=true
16417 else
16418   have_personality=false
16419 fi
16420 rm -f core conftest.err conftest.$ac_objext \
16421     conftest$ac_exeext conftest.$ac_ext
16422 else
16423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16424 /* end confdefs.h.  */
16425 #include <sys/personality.h>
16426 int
16427 main ()
16428 {
16429
16430 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
16431 #       define ADDR_NO_RANDOMIZE 0x0040000
16432 #      endif
16433        /* Test the flag could be set and stays set.  */
16434        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
16435        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
16436            return 1
16437   ;
16438   return 0;
16439 }
16440 _ACEOF
16441 if ac_fn_c_try_run "$LINENO"; then :
16442   have_personality=true
16443 else
16444   have_personality=false
16445 fi
16446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16447   conftest.$ac_objext conftest.beam conftest.$ac_ext
16448 fi
16449
16450 if $have_personality
16451 then
16452
16453 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
16454
16455 fi
16456
16457
16458 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16459 # except that the argument to --with-sysroot is optional.
16460 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16461 if test "x$with_sysroot" = xyes; then
16462   with_sysroot="${exec_prefix}/${target_alias}/sys-root"
16463 fi
16464
16465 # Check whether --with-sysroot was given.
16466 if test "${with_sysroot+set}" = set; then :
16467   withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
16468 else
16469   TARGET_SYSTEM_ROOT=
16470 fi
16471
16472
16473   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16474   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16475   ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
16476   ac_define_dir=`eval echo $ac_define_dir`
16477
16478 cat >>confdefs.h <<_ACEOF
16479 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16480 _ACEOF
16481
16482
16483
16484
16485   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
16486      if test "x$prefix" = xNONE; then
16487         test_prefix=/usr/local
16488      else
16489         test_prefix=$prefix
16490      fi
16491   else
16492      test_prefix=$exec_prefix
16493   fi
16494   value=0
16495   case ${ac_define_dir} in
16496      "${test_prefix}"|"${test_prefix}/"*|\
16497         '${exec_prefix}'|'${exec_prefix}/'*)
16498      value=1
16499      ;;
16500   esac
16501
16502 cat >>confdefs.h <<_ACEOF
16503 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16504 _ACEOF
16505
16506
16507
16508
16509
16510 # Check whether --with-system-gdbinit was given.
16511 if test "${with_system_gdbinit+set}" = set; then :
16512   withval=$with_system_gdbinit;
16513     SYSTEM_GDBINIT=$withval
16514 else
16515   SYSTEM_GDBINIT=
16516 fi
16517
16518
16519   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16520   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16521   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
16522   ac_define_dir=`eval echo $ac_define_dir`
16523
16524 cat >>confdefs.h <<_ACEOF
16525 #define SYSTEM_GDBINIT "$ac_define_dir"
16526 _ACEOF
16527
16528
16529
16530
16531   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
16532      if test "x$prefix" = xNONE; then
16533         test_prefix=/usr/local
16534      else
16535         test_prefix=$prefix
16536      fi
16537   else
16538      test_prefix=$exec_prefix
16539   fi
16540   value=0
16541   case ${ac_define_dir} in
16542      "${test_prefix}"|"${test_prefix}/"*|\
16543         '${exec_prefix}'|'${exec_prefix}/'*)
16544      value=1
16545      ;;
16546   esac
16547
16548 cat >>confdefs.h <<_ACEOF
16549 #define SYSTEM_GDBINIT_RELOCATABLE $value
16550 _ACEOF
16551
16552
16553
16554
16555 # Check whether --enable-werror was given.
16556 if test "${enable_werror+set}" = set; then :
16557   enableval=$enable_werror; case "${enableval}" in
16558      yes | y) ERROR_ON_WARNING="yes" ;;
16559      no | n)  ERROR_ON_WARNING="no" ;;
16560      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16561    esac
16562 fi
16563
16564
16565 # Enable -Werror by default when using gcc
16566 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16567     ERROR_ON_WARNING=yes
16568 fi
16569
16570 WERROR_CFLAGS=""
16571 if test "${ERROR_ON_WARNING}" = yes ; then
16572     WERROR_CFLAGS="-Werror"
16573 fi
16574
16575 # The entries after -Wno-pointer-sign are disabled warnings which may
16576 # be enabled in the future, which can not currently be used to build
16577 # GDB.
16578 # NOTE: If you change this list, remember to update
16579 # gdb/doc/gdbint.texinfo.
16580 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
16581 -Wformat-nonliteral -Wno-pointer-sign \
16582 -Wno-unused -Wunused-value -Wunused-function \
16583 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
16584
16585 # Enable -Wno-format by default when using gcc on mingw since many
16586 # GCC versions complain about %I64.
16587 case "${host}" in
16588   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
16589 esac
16590
16591 # Check whether --enable-build-warnings was given.
16592 if test "${enable_build_warnings+set}" = set; then :
16593   enableval=$enable_build_warnings; case "${enableval}" in
16594   yes)  ;;
16595   no)   build_warnings="-w";;
16596   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16597         build_warnings="${build_warnings} ${t}";;
16598   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16599         build_warnings="${t} ${build_warnings}";;
16600   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16601 esac
16602 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16603   echo "Setting compiler warning flags = $build_warnings" 6>&1
16604 fi
16605 fi
16606 # Check whether --enable-gdb-build-warnings was given.
16607 if test "${enable_gdb_build_warnings+set}" = set; then :
16608   enableval=$enable_gdb_build_warnings; case "${enableval}" in
16609   yes)  ;;
16610   no)   build_warnings="-w";;
16611   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16612         build_warnings="${build_warnings} ${t}";;
16613   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16614         build_warnings="${t} ${build_warnings}";;
16615   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16616 esac
16617 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16618   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16619 fi
16620 fi
16621 WARN_CFLAGS=""
16622 if test "x${build_warnings}" != x -a "x$GCC" = xyes
16623 then
16624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16625 $as_echo_n "checking compiler warning flags... " >&6; }
16626     # Separate out the -Werror flag as some files just cannot be
16627     # compiled with it enabled.
16628     for w in ${build_warnings}; do
16629         case $w in
16630         -Werr*) WERROR_CFLAGS=-Werror ;;
16631         *) # Check that GCC accepts it
16632             saved_CFLAGS="$CFLAGS"
16633             CFLAGS="$CFLAGS $w"
16634             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h.  */
16636
16637 int
16638 main ()
16639 {
16640
16641   ;
16642   return 0;
16643 }
16644 _ACEOF
16645 if ac_fn_c_try_compile "$LINENO"; then :
16646   WARN_CFLAGS="${WARN_CFLAGS} $w"
16647 fi
16648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16649             CFLAGS="$saved_CFLAGS"
16650         esac
16651     done
16652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16653 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16654 fi
16655
16656
16657
16658 # In the Cygwin environment, we need some additional flags.
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
16660 $as_echo_n "checking for cygwin... " >&6; }
16661 if test "${gdb_cv_os_cygwin+set}" = set; then :
16662   $as_echo_n "(cached) " >&6
16663 else
16664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665 /* end confdefs.h.  */
16666
16667 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16668 lose
16669 #endif
16670 _ACEOF
16671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16672   $EGREP "lose" >/dev/null 2>&1; then :
16673   gdb_cv_os_cygwin=yes
16674 else
16675   gdb_cv_os_cygwin=no
16676 fi
16677 rm -f conftest*
16678
16679 fi
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
16681 $as_echo "$gdb_cv_os_cygwin" >&6; }
16682
16683
16684 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
16685 case ${host} in
16686   *go32* ) SER_HARDWIRE=ser-go32.o ;;
16687   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16688   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
16689 esac
16690
16691
16692 # libreadline needs libuser32.a in a cygwin environment
16693 WIN32LIBS=
16694 if test x$gdb_cv_os_cygwin = xyes; then
16695     WIN32LIBS="-luser32"
16696     case "${target}" in
16697         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16698         ;;
16699     esac
16700 fi
16701
16702 # The ser-tcp.c module requires sockets.
16703 case ${host} in
16704   *mingw32*)
16705
16706 $as_echo "#define USE_WIN32API 1" >>confdefs.h
16707
16708     WIN32LIBS="$WIN32LIBS -lws2_32"
16709     ;;
16710 esac
16711
16712
16713 # Add ELF support to GDB, but only if BFD includes ELF support.
16714 OLD_CFLAGS=$CFLAGS
16715 OLD_LDFLAGS=$LDFLAGS
16716 OLD_LIBS=$LIBS
16717 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16718 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
16719 # always want our bfd.
16720 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16721 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
16722 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16723 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16724 if test "$plugins" = "yes"; then
16725   LIBS="-ldl $LIBS"
16726 fi
16727 LIBS="-lbfd -liberty $intl $LIBS"
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
16729 $as_echo_n "checking for ELF support in BFD... " >&6; }
16730 if test "${gdb_cv_var_elf+set}" = set; then :
16731   $as_echo_n "(cached) " >&6
16732 else
16733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h.  */
16735 #include <stdlib.h>
16736 #include "bfd.h"
16737 #include "elf-bfd.h"
16738
16739 int
16740 main ()
16741 {
16742 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
16743   ;
16744   return 0;
16745 }
16746 _ACEOF
16747 if ac_fn_c_try_link "$LINENO"; then :
16748   gdb_cv_var_elf=yes
16749 else
16750   gdb_cv_var_elf=no
16751 fi
16752 rm -f core conftest.err conftest.$ac_objext \
16753     conftest$ac_exeext conftest.$ac_ext
16754 fi
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
16756 $as_echo "$gdb_cv_var_elf" >&6; }
16757 if test $gdb_cv_var_elf = yes; then
16758   CONFIG_OBS="$CONFIG_OBS elfread.o"
16759
16760 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16761
16762   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16763   if test "$plugins" = "yes"; then
16764     OLD_LIBS="-ldl $OLD_LIBS"
16765   fi
16766 fi
16767 CFLAGS=$OLD_CFLAGS
16768 LDFLAGS=$OLD_LDFLAGS
16769 LIBS=$OLD_LIBS
16770
16771 # Add any host-specific objects to GDB.
16772 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
16773
16774 LIBGUI="../libgui/src/libgui.a"
16775 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
16776
16777
16778
16779 WIN32LDAPP=
16780
16781
16782
16783 case "${host}" in
16784 *-*-cygwin* | *-*-mingw* )
16785     configdir="win"
16786     ;;
16787 *)
16788     configdir="unix"
16789     ;;
16790 esac
16791
16792 GDBTKLIBS=
16793 if test "${enable_gdbtk}" = "yes"; then
16794
16795     # Gdbtk must have an absolute path to srcdir in order to run
16796     # properly when not installed.
16797     here=`pwd`
16798     cd ${srcdir}
16799     GDBTK_SRC_DIR=`pwd`
16800     cd $here
16801
16802
16803     #
16804     # Ok, lets find the tcl configuration
16805     # First, look for one uninstalled.
16806     # the alternative search directory is invoked by --with-tcl
16807     #
16808
16809     if test x"${no_tcl}" = x ; then
16810         # we reset no_tcl in case something fails here
16811         no_tcl=true
16812
16813 # Check whether --with-tcl was given.
16814 if test "${with_tcl+set}" = set; then :
16815   withval=$with_tcl; with_tclconfig=${withval}
16816 fi
16817
16818         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16819 $as_echo_n "checking for Tcl configuration... " >&6; }
16820         if test "${ac_cv_c_tclconfig+set}" = set; then :
16821   $as_echo_n "(cached) " >&6
16822 else
16823
16824
16825             # First check to see if --with-tcl was specified.
16826             case "${host}" in
16827                 *-*-cygwin*) platDir="win" ;;
16828                 *) platDir="unix" ;;
16829             esac
16830             if test x"${with_tclconfig}" != x ; then
16831                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16832                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
16833                 else
16834                     as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16835                 fi
16836             fi
16837
16838             # then check for a private Tcl installation
16839             if test x"${ac_cv_c_tclconfig}" = x ; then
16840                 for i in \
16841                         ../tcl \
16842                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16843                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16844                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16845                         ../../tcl \
16846                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16847                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16848                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16849                         ../../../tcl \
16850                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16851                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16852                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16853                     if test -f "$i/$platDir/tclConfig.sh" ; then
16854                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16855                         break
16856                     fi
16857                 done
16858             fi
16859
16860             # on Darwin, check in Framework installation locations
16861             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
16862                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16863                         `ls -d /Library/Frameworks 2>/dev/null` \
16864                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
16865                         `ls -d /System/Library/Frameworks 2>/dev/null` \
16866                         ; do
16867                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16868                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
16869                         break
16870                     fi
16871                 done
16872             fi
16873
16874             # check in a few common install locations
16875             if test x"${ac_cv_c_tclconfig}" = x ; then
16876                 for i in `ls -d ${libdir} 2>/dev/null` \
16877                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
16878                         `ls -d ${prefix}/lib 2>/dev/null` \
16879                         `ls -d /usr/local/lib 2>/dev/null` \
16880                         `ls -d /usr/contrib/lib 2>/dev/null` \
16881                         `ls -d /usr/lib 2>/dev/null` \
16882                         ; do
16883                     if test -f "$i/tclConfig.sh" ; then
16884                         ac_cv_c_tclconfig=`(cd $i; pwd)`
16885                         break
16886                     fi
16887                 done
16888             fi
16889
16890             # check in a few other private locations
16891             if test x"${ac_cv_c_tclconfig}" = x ; then
16892                 for i in \
16893                         ${srcdir}/../tcl \
16894                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16895                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16896                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16897                     if test -f "$i/$platDir/tclConfig.sh" ; then
16898                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16899                     break
16900                 fi
16901                 done
16902             fi
16903
16904 fi
16905
16906
16907         if test x"${ac_cv_c_tclconfig}" = x ; then
16908             TCL_BIN_DIR="# no Tcl configs found"
16909             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16910 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16911         else
16912             no_tcl=
16913             TCL_BIN_DIR=${ac_cv_c_tclconfig}
16914             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16915 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16916         fi
16917     fi
16918
16919
16920     # If $no_tk is nonempty, then we can't do Tk, and there is no
16921     # point to doing Tcl.
16922
16923     #
16924     # Ok, lets find the tk configuration
16925     # First, look for one uninstalled.
16926     # the alternative search directory is invoked by --with-tk
16927     #
16928
16929     if test x"${no_tk}" = x ; then
16930         # we reset no_tk in case something fails here
16931         no_tk=true
16932
16933 # Check whether --with-tk was given.
16934 if test "${with_tk+set}" = set; then :
16935   withval=$with_tk; with_tkconfig=${withval}
16936 fi
16937
16938         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16939 $as_echo_n "checking for Tk configuration... " >&6; }
16940         if test "${ac_cv_c_tkconfig+set}" = set; then :
16941   $as_echo_n "(cached) " >&6
16942 else
16943
16944
16945             # First check to see if --with-tkconfig was specified.
16946             if test x"${with_tkconfig}" != x ; then
16947                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16948                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
16949                 else
16950                     as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16951                 fi
16952             fi
16953
16954             # then check for a private Tk library
16955             case "${host}" in
16956                 *-*-cygwin*) platDir="win" ;;
16957                 *) platDir="unix" ;;
16958             esac
16959             if test x"${ac_cv_c_tkconfig}" = x ; then
16960                 for i in \
16961                         ../tk \
16962                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16963                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16964                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16965                         ../../tk \
16966                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16967                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16968                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16969                         ../../../tk \
16970                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16971                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16972                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16973                     if test -f "$i/$platDir/tkConfig.sh" ; then
16974                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16975                         break
16976                     fi
16977                 done
16978             fi
16979
16980             # on Darwin, check in Framework installation locations
16981             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
16982                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16983                         `ls -d /Library/Frameworks 2>/dev/null` \
16984                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
16985                         `ls -d /System/Library/Frameworks 2>/dev/null` \
16986                         ; do
16987                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
16988                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
16989                         break
16990                     fi
16991                 done
16992             fi
16993
16994             # check in a few common install locations
16995             if test x"${ac_cv_c_tkconfig}" = x ; then
16996                 for i in `ls -d ${libdir} 2>/dev/null` \
16997                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
16998                         `ls -d ${prefix}/lib 2>/dev/null` \
16999                         `ls -d /usr/local/lib 2>/dev/null` \
17000                         `ls -d /usr/contrib/lib 2>/dev/null` \
17001                         `ls -d /usr/lib 2>/dev/null` \
17002                         ; do
17003                     if test -f "$i/tkConfig.sh" ; then
17004                         ac_cv_c_tkconfig=`(cd $i; pwd)`
17005                         break
17006                     fi
17007                 done
17008             fi
17009             # check in a few other private locations
17010             if test x"${ac_cv_c_tkconfig}" = x ; then
17011                 for i in \
17012                         ${srcdir}/../tk \
17013                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17014                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
17015                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
17016                     if test -f "$i/$platDir/tkConfig.sh" ; then
17017                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
17018                         break
17019                     fi
17020                 done
17021             fi
17022
17023 fi
17024
17025
17026         if test x"${ac_cv_c_tkconfig}" = x ; then
17027             TK_BIN_DIR="# no Tk configs found"
17028             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
17029 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
17030         else
17031             no_tk=
17032             TK_BIN_DIR=${ac_cv_c_tkconfig}
17033             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17034 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17035         fi
17036     fi
17037
17038
17039     if test -z "${no_tcl}" -a -z "${no_tk}"; then
17040
17041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17042 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17043
17044     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17045         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17046 $as_echo "loading" >&6; }
17047         . ${TCL_BIN_DIR}/tclConfig.sh
17048     else
17049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17050 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17051     fi
17052
17053     # eval is required to do the TCL_DBGX substitution
17054     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17055     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17056
17057     # If the TCL_BIN_DIR is the build directory (not the install directory),
17058     # then set the common variable name to the value of the build variables.
17059     # For example, the variable TCL_LIB_SPEC will be set to the value
17060     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17061     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17062     # installed and uninstalled version of Tcl.
17063     if test -f "${TCL_BIN_DIR}/Makefile" ; then
17064         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
17065         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
17066         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
17067     elif test "`uname -s`" = "Darwin"; then
17068         # If Tcl was built as a framework, attempt to use the libraries
17069         # from the framework at the given location so that linking works
17070         # against Tcl.framework installed in an arbitary location.
17071         case ${TCL_DEFS} in
17072             *TCL_FRAMEWORK*)
17073                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17074                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
17075                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17076                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17077                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17078                             break
17079                         fi
17080                     done
17081                 fi
17082                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17083                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17084                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17085                 fi
17086                 ;;
17087         esac
17088     fi
17089
17090     # eval is required to do the TCL_DBGX substitution
17091     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17092     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17093     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17094     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110         # Check for in-tree tcl
17111         here=`pwd`
17112         cd ${srcdir}/..
17113         topdir=`pwd`
17114         cd ${here}
17115
17116         intree="no"
17117         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17118           intree="yes"
17119         fi
17120
17121         # Find Tcl private headers
17122         if test x"${intree}" = xno; then
17123
17124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17125 $as_echo_n "checking for Tcl private headers... " >&6; }
17126   private_dir=""
17127   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17128   if test -f ${dir}/tclInt.h ; then
17129     private_dir=${dir}
17130   fi
17131
17132   if test x"${private_dir}" = x; then
17133     as_fn_error "could not find private Tcl headers" "$LINENO" 5
17134   else
17135     TCL_PRIVATE_INCLUDE="-I${private_dir}"
17136     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17137 $as_echo "${private_dir}" >&6; }
17138   fi
17139
17140           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17141           TCL_LIBRARY="${TCL_LIB_SPEC}"
17142           TCL_DEPS=""
17143         else
17144           # If building tcl in the same src tree, private headers
17145           # are not needed, but we need to be sure to use the right
17146           # headers library
17147           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
17148           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
17149           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
17150         fi
17151
17152
17153
17154
17155
17156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17157 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17158
17159     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17160         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17161 $as_echo "loading" >&6; }
17162         . ${TK_BIN_DIR}/tkConfig.sh
17163     else
17164         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17165 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17166     fi
17167
17168     # eval is required to do the TK_DBGX substitution
17169     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17170     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17171
17172     # If the TK_BIN_DIR is the build directory (not the install directory),
17173     # then set the common variable name to the value of the build variables.
17174     # For example, the variable TK_LIB_SPEC will be set to the value
17175     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17176     # instead of TK_BUILD_LIB_SPEC since it will work with both an
17177     # installed and uninstalled version of Tcl.
17178     if test -f "${TK_BIN_DIR}/Makefile" ; then
17179         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
17180         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
17181         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
17182     elif test "`uname -s`" = "Darwin"; then
17183         # If Tk was built as a framework, attempt to use the libraries
17184         # from the framework at the given location so that linking works
17185         # against Tk.framework installed in an arbitary location.
17186         case ${TK_DEFS} in
17187             *TK_FRAMEWORK*)
17188                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17189                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
17190                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17191                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17192                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17193                             break
17194                         fi
17195                     done
17196                 fi
17197                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17198                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17199                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17200                 fi
17201                 ;;
17202         esac
17203     fi
17204
17205     # eval is required to do the TK_DBGX substitution
17206     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17207     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17208     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17209     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224         # Check for in-tree Tk
17225         intree="no"
17226         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17227           intree="yes"
17228         fi
17229
17230         # Find Tk private headers
17231         if test x"${intree}" = xno; then
17232
17233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17234 $as_echo_n "checking for Tk private headers... " >&6; }
17235   private_dir=""
17236   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17237   if test -f ${dir}/tkInt.h; then
17238     private_dir=${dir}
17239   fi
17240
17241   if test x"${private_dir}" = x; then
17242     as_fn_error "could not find Tk private headers" "$LINENO" 5
17243   else
17244     TK_PRIVATE_INCLUDE="-I${private_dir}"
17245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17246 $as_echo "${private_dir}" >&6; }
17247   fi
17248
17249           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17250           TK_LIBRARY=${TK_LIB_SPEC}
17251           TK_DEPS=""
17252         else
17253           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
17254           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
17255           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
17256         fi
17257
17258
17259
17260
17261
17262         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17263
17264         # Include some libraries that Tcl and Tk want.
17265         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17266         # Yes, the ordering seems wrong here.  But it isn't.
17267         # TK_LIBS is the list of libraries that need to be linked
17268         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
17269         # were in LIBS then any link tests after this point would
17270         # try to include things like `$(LIBGUI)', which wouldn't work.
17271         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
17272
17273         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17274         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17275         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17276         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
17277         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
17278         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
17279         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
17280
17281         if test x$gdb_cv_os_cygwin = xyes; then
17282           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17283           WIN32LDAPP="-Wl,--subsystem,console"
17284           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
17285         fi
17286
17287         subdirs="$subdirs gdbtk"
17288
17289     fi
17290 fi
17291
17292
17293
17294
17295
17296
17297
17298
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17300 $as_echo_n "checking for X... " >&6; }
17301
17302
17303 # Check whether --with-x was given.
17304 if test "${with_x+set}" = set; then :
17305   withval=$with_x;
17306 fi
17307
17308 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17309 if test "x$with_x" = xno; then
17310   # The user explicitly disabled X.
17311   have_x=disabled
17312 else
17313   case $x_includes,$x_libraries in #(
17314     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
17315     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
17316   $as_echo_n "(cached) " >&6
17317 else
17318   # One or both of the vars are not set, and there is no cached value.
17319 ac_x_includes=no ac_x_libraries=no
17320 rm -f -r conftest.dir
17321 if mkdir conftest.dir; then
17322   cd conftest.dir
17323   cat >Imakefile <<'_ACEOF'
17324 incroot:
17325         @echo incroot='${INCROOT}'
17326 usrlibdir:
17327         @echo usrlibdir='${USRLIBDIR}'
17328 libdir:
17329         @echo libdir='${LIBDIR}'
17330 _ACEOF
17331   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17332     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17333     for ac_var in incroot usrlibdir libdir; do
17334       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17335     done
17336     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17337     for ac_extension in a so sl dylib la dll; do
17338       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17339          test -f "$ac_im_libdir/libX11.$ac_extension"; then
17340         ac_im_usrlibdir=$ac_im_libdir; break
17341       fi
17342     done
17343     # Screen out bogus values from the imake configuration.  They are
17344     # bogus both because they are the default anyway, and because
17345     # using them would break gcc on systems where it needs fixed includes.
17346     case $ac_im_incroot in
17347         /usr/include) ac_x_includes= ;;
17348         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17349     esac
17350     case $ac_im_usrlibdir in
17351         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
17352         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17353     esac
17354   fi
17355   cd ..
17356   rm -f -r conftest.dir
17357 fi
17358
17359 # Standard set of common directories for X headers.
17360 # Check X11 before X11Rn because it is often a symlink to the current release.
17361 ac_x_header_dirs='
17362 /usr/X11/include
17363 /usr/X11R7/include
17364 /usr/X11R6/include
17365 /usr/X11R5/include
17366 /usr/X11R4/include
17367
17368 /usr/include/X11
17369 /usr/include/X11R7
17370 /usr/include/X11R6
17371 /usr/include/X11R5
17372 /usr/include/X11R4
17373
17374 /usr/local/X11/include
17375 /usr/local/X11R7/include
17376 /usr/local/X11R6/include
17377 /usr/local/X11R5/include
17378 /usr/local/X11R4/include
17379
17380 /usr/local/include/X11
17381 /usr/local/include/X11R7
17382 /usr/local/include/X11R6
17383 /usr/local/include/X11R5
17384 /usr/local/include/X11R4
17385
17386 /usr/X386/include
17387 /usr/x386/include
17388 /usr/XFree86/include/X11
17389
17390 /usr/include
17391 /usr/local/include
17392 /usr/unsupported/include
17393 /usr/athena/include
17394 /usr/local/x11r5/include
17395 /usr/lpp/Xamples/include
17396
17397 /usr/openwin/include
17398 /usr/openwin/share/include'
17399
17400 if test "$ac_x_includes" = no; then
17401   # Guess where to find include files, by looking for Xlib.h.
17402   # First, try using that file with no special directory specified.
17403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17404 /* end confdefs.h.  */
17405 #include <X11/Xlib.h>
17406 _ACEOF
17407 if ac_fn_c_try_cpp "$LINENO"; then :
17408   # We can compile using X headers with no special include directory.
17409 ac_x_includes=
17410 else
17411   for ac_dir in $ac_x_header_dirs; do
17412   if test -r "$ac_dir/X11/Xlib.h"; then
17413     ac_x_includes=$ac_dir
17414     break
17415   fi
17416 done
17417 fi
17418 rm -f conftest.err conftest.$ac_ext
17419 fi # $ac_x_includes = no
17420
17421 if test "$ac_x_libraries" = no; then
17422   # Check for the libraries.
17423   # See if we find them without any special options.
17424   # Don't add to $LIBS permanently.
17425   ac_save_LIBS=$LIBS
17426   LIBS="-lX11 $LIBS"
17427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h.  */
17429 #include <X11/Xlib.h>
17430 int
17431 main ()
17432 {
17433 XrmInitialize ()
17434   ;
17435   return 0;
17436 }
17437 _ACEOF
17438 if ac_fn_c_try_link "$LINENO"; then :
17439   LIBS=$ac_save_LIBS
17440 # We can link X programs with no special library path.
17441 ac_x_libraries=
17442 else
17443   LIBS=$ac_save_LIBS
17444 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17445 do
17446   # Don't even attempt the hair of trying to link an X program!
17447   for ac_extension in a so sl dylib la dll; do
17448     if test -r "$ac_dir/libX11.$ac_extension"; then
17449       ac_x_libraries=$ac_dir
17450       break 2
17451     fi
17452   done
17453 done
17454 fi
17455 rm -f core conftest.err conftest.$ac_objext \
17456     conftest$ac_exeext conftest.$ac_ext
17457 fi # $ac_x_libraries = no
17458
17459 case $ac_x_includes,$ac_x_libraries in #(
17460   no,* | *,no | *\'*)
17461     # Didn't find X, or a directory has "'" in its name.
17462     ac_cv_have_x="have_x=no";; #(
17463   *)
17464     # Record where we found X for the cache.
17465     ac_cv_have_x="have_x=yes\
17466         ac_x_includes='$ac_x_includes'\
17467         ac_x_libraries='$ac_x_libraries'"
17468 esac
17469 fi
17470 ;; #(
17471     *) have_x=yes;;
17472   esac
17473   eval "$ac_cv_have_x"
17474 fi # $with_x != no
17475
17476 if test "$have_x" != yes; then
17477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17478 $as_echo "$have_x" >&6; }
17479   no_x=yes
17480 else
17481   # If each of the values was on the command line, it overrides each guess.
17482   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17483   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17484   # Update the cache value to reflect the command line values.
17485   ac_cv_have_x="have_x=yes\
17486         ac_x_includes='$x_includes'\
17487         ac_x_libraries='$x_libraries'"
17488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17489 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17490 fi
17491
17492
17493 # Unlike the sim directory, whether a simulator is linked is controlled by
17494 # presence of a gdb_sim definition in the target configure.tgt entry.
17495 # This code just checks for a few cases where we'd like to ignore those
17496 # definitions, even when they're present in the '.mt' file.  These cases
17497 # are when --disable-sim is specified, or if the simulator directory is
17498 # not part of the source tree.
17499 #
17500 # Check whether --enable-sim was given.
17501 if test "${enable_sim+set}" = set; then :
17502   enableval=$enable_sim; echo "enable_sim = $enable_sim";
17503  echo "enableval = ${enableval}";
17504  case "${enableval}" in
17505   yes) ignore_sim=false ;;
17506   no)  ignore_sim=true ;;
17507   *)   ignore_sim=false ;;
17508  esac
17509 else
17510   ignore_sim=false
17511 fi
17512
17513
17514 if test ! -d "${srcdir}/../sim"; then
17515   ignore_sim=true
17516 fi
17517
17518 SIM=
17519 SIM_OBS=
17520 if test "${ignore_sim}" = "false"; then
17521   if test x"${gdb_sim}" != x ; then
17522     SIM="${gdb_sim}"
17523     SIM_OBS="remote-sim.o"
17524
17525 $as_echo "#define WITH_SIM 1" >>confdefs.h
17526
17527   fi
17528 fi
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543 # List of host floatformats.
17544
17545 cat >>confdefs.h <<_ACEOF
17546 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17547 _ACEOF
17548
17549
17550 cat >>confdefs.h <<_ACEOF
17551 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17552 _ACEOF
17553
17554
17555 cat >>confdefs.h <<_ACEOF
17556 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17557 _ACEOF
17558
17559
17560 # target_subdir is used by the testsuite to find the target libraries.
17561 target_subdir=
17562 if test "${host}" != "${target}"; then
17563     target_subdir="${target_alias}/"
17564 fi
17565
17566
17567 frags=
17568 if test "${gdb_native}" = "yes"; then
17569   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
17570   if test ! -f ${host_makefile_frag}; then
17571     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
17572   fi
17573   frags="$frags $host_makefile_frag"
17574 else
17575   host_makefile_frag=/dev/null
17576 fi
17577
17578
17579
17580
17581 if test "${gdb_native}" = "yes"; then
17582 # We pick this up from the host configuration file (.mh) because we
17583 # do not have a native configuration Makefile fragment.
17584 nativefile=`sed -n '
17585 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
17586 ' ${host_makefile_frag}`
17587 fi
17588
17589
17590 if test x"${gdb_osabi}" != x ; then
17591
17592 cat >>confdefs.h <<_ACEOF
17593 #define GDB_OSABI_DEFAULT $gdb_osabi
17594 _ACEOF
17595
17596 fi
17597
17598 # Enable multi-ice-gdb-server.
17599 # Check whether --enable-multi-ice was given.
17600 if test "${enable_multi_ice+set}" = set; then :
17601   enableval=$enable_multi_ice; case $enableval in
17602     yes | no)
17603       ;;
17604     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
17605   esac
17606 fi
17607
17608 if test "x$enable_multi_ice" = xyes; then
17609    subdirs="$subdirs multi-ice"
17610
17611 fi
17612
17613 # Check whether --enable-gdbserver was given.
17614 if test "${enable_gdbserver+set}" = set; then :
17615   enableval=$enable_gdbserver; case "${enableval}" in
17616   yes| no|auto) ;;
17617   *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17618 esac
17619 else
17620   enable_gdbserver=auto
17621 fi
17622
17623
17624 # We only build gdbserver automatically in a native configuration, and
17625 # only if the user did not explicitly disable its build.
17626 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17628 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17629   if test "x$build_gdbserver" = xyes; then
17630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17631 $as_echo "yes" >&6; }
17632     subdirs="$subdirs gdbserver"
17633
17634     gdbserver_build_enabled=yes
17635   else
17636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17637 $as_echo "no" >&6; }
17638   fi
17639 fi
17640
17641 # If the user explicitly request the gdbserver to be built, verify that
17642 # we were in fact able to enable it.
17643 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17644   as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17645 fi
17646
17647 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
17648 # to an empty version.
17649
17650 files=
17651 links=
17652
17653 rm -f nm.h
17654 if test "${nativefile}" != ""; then
17655     case "${nativefile}" in
17656       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
17657       * ) GDB_NM_FILE="${nativefile}"
17658     esac
17659     files="${files} ${GDB_NM_FILE}"
17660     links="${links} nm.h"
17661
17662 cat >>confdefs.h <<_ACEOF
17663 #define GDB_NM_FILE "${GDB_NM_FILE}"
17664 _ACEOF
17665
17666 fi
17667
17668
17669 ac_sources="$files"
17670 ac_dests="$links"
17671 while test -n "$ac_sources"; do
17672   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17673   set $ac_sources; ac_source=$1; shift; ac_sources=$*
17674   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
17675 done
17676 ac_config_links="$ac_config_links $ac_config_links_1"
17677
17678
17679
17680
17681
17682 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17683
17684
17685 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile gnulib/Makefile data-directory/Makefile"
17686
17687 ac_config_commands="$ac_config_commands default"
17688
17689 cat >confcache <<\_ACEOF
17690 # This file is a shell script that caches the results of configure
17691 # tests run on this system so they can be shared between configure
17692 # scripts and configure runs, see configure's option --config-cache.
17693 # It is not useful on other systems.  If it contains results you don't
17694 # want to keep, you may remove or edit it.
17695 #
17696 # config.status only pays attention to the cache file if you give it
17697 # the --recheck option to rerun configure.
17698 #
17699 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17700 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17701 # following values.
17702
17703 _ACEOF
17704
17705 # The following way of writing the cache mishandles newlines in values,
17706 # but we know of no workaround that is simple, portable, and efficient.
17707 # So, we kill variables containing newlines.
17708 # Ultrix sh set writes to stderr and can't be redirected directly,
17709 # and sets the high bit in the cache file unless we assign to the vars.
17710 (
17711   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17712     eval ac_val=\$$ac_var
17713     case $ac_val in #(
17714     *${as_nl}*)
17715       case $ac_var in #(
17716       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17717 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17718       esac
17719       case $ac_var in #(
17720       _ | IFS | as_nl) ;; #(
17721       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17722       *) { eval $ac_var=; unset $ac_var;} ;;
17723       esac ;;
17724     esac
17725   done
17726
17727   (set) 2>&1 |
17728     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17729     *${as_nl}ac_space=\ *)
17730       # `set' does not quote correctly, so add quotes: double-quote
17731       # substitution turns \\\\ into \\, and sed turns \\ into \.
17732       sed -n \
17733         "s/'/'\\\\''/g;
17734           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17735       ;; #(
17736     *)
17737       # `set' quotes correctly as required by POSIX, so do not add quotes.
17738       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17739       ;;
17740     esac |
17741     sort
17742 ) |
17743   sed '
17744      /^ac_cv_env_/b end
17745      t clear
17746      :clear
17747      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17748      t end
17749      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17750      :end' >>confcache
17751 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17752   if test -w "$cache_file"; then
17753     test "x$cache_file" != "x/dev/null" &&
17754       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17755 $as_echo "$as_me: updating cache $cache_file" >&6;}
17756     cat confcache >$cache_file
17757   else
17758     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17759 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17760   fi
17761 fi
17762 rm -f confcache
17763
17764 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17765 # Let make expand exec_prefix.
17766 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17767
17768 DEFS=-DHAVE_CONFIG_H
17769
17770 ac_libobjs=
17771 ac_ltlibobjs=
17772 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17773   # 1. Remove the extension, and $U if already installed.
17774   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17775   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17776   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17777   #    will be set to the directory where LIBOBJS objects are built.
17778   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17779   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17780 done
17781 LIBOBJS=$ac_libobjs
17782
17783 LTLIBOBJS=$ac_ltlibobjs
17784
17785
17786 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17787   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17789 fi
17790 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
17791   as_fn_error "conditional \"GMAKE\" was never defined.
17792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17793 fi
17794 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17795   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
17796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17797 fi
17798
17799     gl_libobjs=
17800     gl_ltlibobjs=
17801     if test -n "$gl_LIBOBJS"; then
17802       # Remove the extension.
17803       sed_drop_objext='s/\.o$//;s/\.obj$//'
17804       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17805         gl_libobjs="$gl_libobjs $i.$ac_objext"
17806         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17807       done
17808     fi
17809     gl_LIBOBJS=$gl_libobjs
17810
17811     gl_LTLIBOBJS=$gl_ltlibobjs
17812
17813
17814
17815     gltests_libobjs=
17816     gltests_ltlibobjs=
17817     if test -n "$gltests_LIBOBJS"; then
17818       # Remove the extension.
17819       sed_drop_objext='s/\.o$//;s/\.obj$//'
17820       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17821         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17822         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17823       done
17824     fi
17825     gltests_LIBOBJS=$gltests_libobjs
17826
17827     gltests_LTLIBOBJS=$gltests_ltlibobjs
17828
17829
17830 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17831   as_fn_error "conditional \"AMDEP\" was never defined.
17832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17833 fi
17834 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17835   as_fn_error "conditional \"am__fastdepCC\" was never defined.
17836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17837 fi
17838  if test -n "$EXEEXT"; then
17839   am__EXEEXT_TRUE=
17840   am__EXEEXT_FALSE='#'
17841 else
17842   am__EXEEXT_TRUE='#'
17843   am__EXEEXT_FALSE=
17844 fi
17845
17846
17847
17848 : ${CONFIG_STATUS=./config.status}
17849 ac_write_fail=0
17850 ac_clean_files_save=$ac_clean_files
17851 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17853 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17854 as_write_fail=0
17855 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17856 #! $SHELL
17857 # Generated by $as_me.
17858 # Run this file to recreate the current configuration.
17859 # Compiler output produced by configure, useful for debugging
17860 # configure, is in config.log if it exists.
17861
17862 debug=false
17863 ac_cs_recheck=false
17864 ac_cs_silent=false
17865
17866 SHELL=\${CONFIG_SHELL-$SHELL}
17867 export SHELL
17868 _ASEOF
17869 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17870 ## -------------------- ##
17871 ## M4sh Initialization. ##
17872 ## -------------------- ##
17873
17874 # Be more Bourne compatible
17875 DUALCASE=1; export DUALCASE # for MKS sh
17876 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17877   emulate sh
17878   NULLCMD=:
17879   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17880   # is contrary to our usage.  Disable this feature.
17881   alias -g '${1+"$@"}'='"$@"'
17882   setopt NO_GLOB_SUBST
17883 else
17884   case `(set -o) 2>/dev/null` in #(
17885   *posix*) :
17886     set -o posix ;; #(
17887   *) :
17888      ;;
17889 esac
17890 fi
17891
17892
17893 as_nl='
17894 '
17895 export as_nl
17896 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17897 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17898 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17899 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17900 # Prefer a ksh shell builtin over an external printf program on Solaris,
17901 # but without wasting forks for bash or zsh.
17902 if test -z "$BASH_VERSION$ZSH_VERSION" \
17903     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17904   as_echo='print -r --'
17905   as_echo_n='print -rn --'
17906 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17907   as_echo='printf %s\n'
17908   as_echo_n='printf %s'
17909 else
17910   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17911     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17912     as_echo_n='/usr/ucb/echo -n'
17913   else
17914     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17915     as_echo_n_body='eval
17916       arg=$1;
17917       case $arg in #(
17918       *"$as_nl"*)
17919         expr "X$arg" : "X\\(.*\\)$as_nl";
17920         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17921       esac;
17922       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17923     '
17924     export as_echo_n_body
17925     as_echo_n='sh -c $as_echo_n_body as_echo'
17926   fi
17927   export as_echo_body
17928   as_echo='sh -c $as_echo_body as_echo'
17929 fi
17930
17931 # The user is always right.
17932 if test "${PATH_SEPARATOR+set}" != set; then
17933   PATH_SEPARATOR=:
17934   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17935     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17936       PATH_SEPARATOR=';'
17937   }
17938 fi
17939
17940
17941 # IFS
17942 # We need space, tab and new line, in precisely that order.  Quoting is
17943 # there to prevent editors from complaining about space-tab.
17944 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17945 # splitting by setting IFS to empty value.)
17946 IFS=" ""        $as_nl"
17947
17948 # Find who we are.  Look in the path if we contain no directory separator.
17949 case $0 in #((
17950   *[\\/]* ) as_myself=$0 ;;
17951   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17952 for as_dir in $PATH
17953 do
17954   IFS=$as_save_IFS
17955   test -z "$as_dir" && as_dir=.
17956     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17957   done
17958 IFS=$as_save_IFS
17959
17960      ;;
17961 esac
17962 # We did not find ourselves, most probably we were run as `sh COMMAND'
17963 # in which case we are not to be found in the path.
17964 if test "x$as_myself" = x; then
17965   as_myself=$0
17966 fi
17967 if test ! -f "$as_myself"; then
17968   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17969   exit 1
17970 fi
17971
17972 # Unset variables that we do not need and which cause bugs (e.g. in
17973 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17974 # suppresses any "Segmentation fault" message there.  '((' could
17975 # trigger a bug in pdksh 5.2.14.
17976 for as_var in BASH_ENV ENV MAIL MAILPATH
17977 do eval test x\${$as_var+set} = xset \
17978   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17979 done
17980 PS1='$ '
17981 PS2='> '
17982 PS4='+ '
17983
17984 # NLS nuisances.
17985 LC_ALL=C
17986 export LC_ALL
17987 LANGUAGE=C
17988 export LANGUAGE
17989
17990 # CDPATH.
17991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17992
17993
17994 # as_fn_error ERROR [LINENO LOG_FD]
17995 # ---------------------------------
17996 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17997 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17998 # script with status $?, using 1 if that was 0.
17999 as_fn_error ()
18000 {
18001   as_status=$?; test $as_status -eq 0 && as_status=1
18002   if test "$3"; then
18003     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18004     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18005   fi
18006   $as_echo "$as_me: error: $1" >&2
18007   as_fn_exit $as_status
18008 } # as_fn_error
18009
18010
18011 # as_fn_set_status STATUS
18012 # -----------------------
18013 # Set $? to STATUS, without forking.
18014 as_fn_set_status ()
18015 {
18016   return $1
18017 } # as_fn_set_status
18018
18019 # as_fn_exit STATUS
18020 # -----------------
18021 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18022 as_fn_exit ()
18023 {
18024   set +e
18025   as_fn_set_status $1
18026   exit $1
18027 } # as_fn_exit
18028
18029 # as_fn_unset VAR
18030 # ---------------
18031 # Portably unset VAR.
18032 as_fn_unset ()
18033 {
18034   { eval $1=; unset $1;}
18035 }
18036 as_unset=as_fn_unset
18037 # as_fn_append VAR VALUE
18038 # ----------------------
18039 # Append the text in VALUE to the end of the definition contained in VAR. Take
18040 # advantage of any shell optimizations that allow amortized linear growth over
18041 # repeated appends, instead of the typical quadratic growth present in naive
18042 # implementations.
18043 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18044   eval 'as_fn_append ()
18045   {
18046     eval $1+=\$2
18047   }'
18048 else
18049   as_fn_append ()
18050   {
18051     eval $1=\$$1\$2
18052   }
18053 fi # as_fn_append
18054
18055 # as_fn_arith ARG...
18056 # ------------------
18057 # Perform arithmetic evaluation on the ARGs, and store the result in the
18058 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18059 # must be portable across $(()) and expr.
18060 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18061   eval 'as_fn_arith ()
18062   {
18063     as_val=$(( $* ))
18064   }'
18065 else
18066   as_fn_arith ()
18067   {
18068     as_val=`expr "$@" || test $? -eq 1`
18069   }
18070 fi # as_fn_arith
18071
18072
18073 if expr a : '\(a\)' >/dev/null 2>&1 &&
18074    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18075   as_expr=expr
18076 else
18077   as_expr=false
18078 fi
18079
18080 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18081   as_basename=basename
18082 else
18083   as_basename=false
18084 fi
18085
18086 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18087   as_dirname=dirname
18088 else
18089   as_dirname=false
18090 fi
18091
18092 as_me=`$as_basename -- "$0" ||
18093 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18094          X"$0" : 'X\(//\)$' \| \
18095          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18096 $as_echo X/"$0" |
18097     sed '/^.*\/\([^/][^/]*\)\/*$/{
18098             s//\1/
18099             q
18100           }
18101           /^X\/\(\/\/\)$/{
18102             s//\1/
18103             q
18104           }
18105           /^X\/\(\/\).*/{
18106             s//\1/
18107             q
18108           }
18109           s/.*/./; q'`
18110
18111 # Avoid depending upon Character Ranges.
18112 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18113 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18114 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18115 as_cr_digits='0123456789'
18116 as_cr_alnum=$as_cr_Letters$as_cr_digits
18117
18118 ECHO_C= ECHO_N= ECHO_T=
18119 case `echo -n x` in #(((((
18120 -n*)
18121   case `echo 'xy\c'` in
18122   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18123   xy)  ECHO_C='\c';;
18124   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18125        ECHO_T=' ';;
18126   esac;;
18127 *)
18128   ECHO_N='-n';;
18129 esac
18130
18131 rm -f conf$$ conf$$.exe conf$$.file
18132 if test -d conf$$.dir; then
18133   rm -f conf$$.dir/conf$$.file
18134 else
18135   rm -f conf$$.dir
18136   mkdir conf$$.dir 2>/dev/null
18137 fi
18138 if (echo >conf$$.file) 2>/dev/null; then
18139   if ln -s conf$$.file conf$$ 2>/dev/null; then
18140     as_ln_s='ln -s'
18141     # ... but there are two gotchas:
18142     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18143     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18144     # In both cases, we have to default to `cp -p'.
18145     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18146       as_ln_s='cp -p'
18147   elif ln conf$$.file conf$$ 2>/dev/null; then
18148     as_ln_s=ln
18149   else
18150     as_ln_s='cp -p'
18151   fi
18152 else
18153   as_ln_s='cp -p'
18154 fi
18155 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18156 rmdir conf$$.dir 2>/dev/null
18157
18158
18159 # as_fn_mkdir_p
18160 # -------------
18161 # Create "$as_dir" as a directory, including parents if necessary.
18162 as_fn_mkdir_p ()
18163 {
18164
18165   case $as_dir in #(
18166   -*) as_dir=./$as_dir;;
18167   esac
18168   test -d "$as_dir" || eval $as_mkdir_p || {
18169     as_dirs=
18170     while :; do
18171       case $as_dir in #(
18172       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18173       *) as_qdir=$as_dir;;
18174       esac
18175       as_dirs="'$as_qdir' $as_dirs"
18176       as_dir=`$as_dirname -- "$as_dir" ||
18177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18178          X"$as_dir" : 'X\(//\)[^/]' \| \
18179          X"$as_dir" : 'X\(//\)$' \| \
18180          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18181 $as_echo X"$as_dir" |
18182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18183             s//\1/
18184             q
18185           }
18186           /^X\(\/\/\)[^/].*/{
18187             s//\1/
18188             q
18189           }
18190           /^X\(\/\/\)$/{
18191             s//\1/
18192             q
18193           }
18194           /^X\(\/\).*/{
18195             s//\1/
18196             q
18197           }
18198           s/.*/./; q'`
18199       test -d "$as_dir" && break
18200     done
18201     test -z "$as_dirs" || eval "mkdir $as_dirs"
18202   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18203
18204
18205 } # as_fn_mkdir_p
18206 if mkdir -p . 2>/dev/null; then
18207   as_mkdir_p='mkdir -p "$as_dir"'
18208 else
18209   test -d ./-p && rmdir ./-p
18210   as_mkdir_p=false
18211 fi
18212
18213 if test -x / >/dev/null 2>&1; then
18214   as_test_x='test -x'
18215 else
18216   if ls -dL / >/dev/null 2>&1; then
18217     as_ls_L_option=L
18218   else
18219     as_ls_L_option=
18220   fi
18221   as_test_x='
18222     eval sh -c '\''
18223       if test -d "$1"; then
18224         test -d "$1/.";
18225       else
18226         case $1 in #(
18227         -*)set "./$1";;
18228         esac;
18229         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18230         ???[sx]*):;;*)false;;esac;fi
18231     '\'' sh
18232   '
18233 fi
18234 as_executable_p=$as_test_x
18235
18236 # Sed expression to map a string onto a valid CPP name.
18237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18238
18239 # Sed expression to map a string onto a valid variable name.
18240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18241
18242
18243 exec 6>&1
18244 ## ----------------------------------- ##
18245 ## Main body of $CONFIG_STATUS script. ##
18246 ## ----------------------------------- ##
18247 _ASEOF
18248 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18249
18250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18251 # Save the log message, to keep $0 and so on meaningful, and to
18252 # report actual input values of CONFIG_FILES etc. instead of their
18253 # values after options handling.
18254 ac_log="
18255 This file was extended by $as_me, which was
18256 generated by GNU Autoconf 2.64.  Invocation command line was
18257
18258   CONFIG_FILES    = $CONFIG_FILES
18259   CONFIG_HEADERS  = $CONFIG_HEADERS
18260   CONFIG_LINKS    = $CONFIG_LINKS
18261   CONFIG_COMMANDS = $CONFIG_COMMANDS
18262   $ $0 $@
18263
18264 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18265 "
18266
18267 _ACEOF
18268
18269 case $ac_config_files in *"
18270 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18271 esac
18272
18273 case $ac_config_headers in *"
18274 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18275 esac
18276
18277
18278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18279 # Files that config.status was made for.
18280 config_files="$ac_config_files"
18281 config_headers="$ac_config_headers"
18282 config_links="$ac_config_links"
18283 config_commands="$ac_config_commands"
18284
18285 _ACEOF
18286
18287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18288 ac_cs_usage="\
18289 \`$as_me' instantiates files and other configuration actions
18290 from templates according to the current configuration.  Unless the files
18291 and actions are specified as TAGs, all are instantiated by default.
18292
18293 Usage: $0 [OPTION]... [TAG]...
18294
18295   -h, --help       print this help, then exit
18296   -V, --version    print version number and configuration settings, then exit
18297   -q, --quiet, --silent
18298                    do not print progress messages
18299   -d, --debug      don't remove temporary files
18300       --recheck    update $as_me by reconfiguring in the same conditions
18301       --file=FILE[:TEMPLATE]
18302                    instantiate the configuration file FILE
18303       --header=FILE[:TEMPLATE]
18304                    instantiate the configuration header FILE
18305
18306 Configuration files:
18307 $config_files
18308
18309 Configuration headers:
18310 $config_headers
18311
18312 Configuration links:
18313 $config_links
18314
18315 Configuration commands:
18316 $config_commands
18317
18318 Report bugs to the package provider."
18319
18320 _ACEOF
18321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18322 ac_cs_version="\\
18323 config.status
18324 configured by $0, generated by GNU Autoconf 2.64,
18325   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18326
18327 Copyright (C) 2009 Free Software Foundation, Inc.
18328 This config.status script is free software; the Free Software Foundation
18329 gives unlimited permission to copy, distribute and modify it."
18330
18331 ac_pwd='$ac_pwd'
18332 srcdir='$srcdir'
18333 INSTALL='$INSTALL'
18334 MKDIR_P='$MKDIR_P'
18335 AWK='$AWK'
18336 test -n "\$AWK" || AWK=awk
18337 _ACEOF
18338
18339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18340 # The default lists apply if the user does not specify any file.
18341 ac_need_defaults=:
18342 while test $# != 0
18343 do
18344   case $1 in
18345   --*=*)
18346     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18347     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18348     ac_shift=:
18349     ;;
18350   *)
18351     ac_option=$1
18352     ac_optarg=$2
18353     ac_shift=shift
18354     ;;
18355   esac
18356
18357   case $ac_option in
18358   # Handling of the options.
18359   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18360     ac_cs_recheck=: ;;
18361   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18362     $as_echo "$ac_cs_version"; exit ;;
18363   --debug | --debu | --deb | --de | --d | -d )
18364     debug=: ;;
18365   --file | --fil | --fi | --f )
18366     $ac_shift
18367     case $ac_optarg in
18368     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18369     esac
18370     as_fn_append CONFIG_FILES " '$ac_optarg'"
18371     ac_need_defaults=false;;
18372   --header | --heade | --head | --hea )
18373     $ac_shift
18374     case $ac_optarg in
18375     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18376     esac
18377     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18378     ac_need_defaults=false;;
18379   --he | --h)
18380     # Conflict between --help and --header
18381     as_fn_error "ambiguous option: \`$1'
18382 Try \`$0 --help' for more information.";;
18383   --help | --hel | -h )
18384     $as_echo "$ac_cs_usage"; exit ;;
18385   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18386   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18387     ac_cs_silent=: ;;
18388
18389   # This is an error.
18390   -*) as_fn_error "unrecognized option: \`$1'
18391 Try \`$0 --help' for more information." ;;
18392
18393   *) as_fn_append ac_config_targets " $1"
18394      ac_need_defaults=false ;;
18395
18396   esac
18397   shift
18398 done
18399
18400 ac_configure_extra_args=
18401
18402 if $ac_cs_silent; then
18403   exec 6>/dev/null
18404   ac_configure_extra_args="$ac_configure_extra_args --silent"
18405 fi
18406
18407 _ACEOF
18408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18409 if \$ac_cs_recheck; then
18410   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18411   shift
18412   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18413   CONFIG_SHELL='$SHELL'
18414   export CONFIG_SHELL
18415   exec "\$@"
18416 fi
18417
18418 _ACEOF
18419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18420 exec 5>>config.log
18421 {
18422   echo
18423   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18424 ## Running $as_me. ##
18425 _ASBOX
18426   $as_echo "$ac_log"
18427 } >&5
18428
18429 _ACEOF
18430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18431 #
18432 # INIT-COMMANDS
18433 #
18434 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18435 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18436
18437 _ACEOF
18438
18439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18440
18441 # Handling of arguments.
18442 for ac_config_target in $ac_config_targets
18443 do
18444   case $ac_config_target in
18445     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18446     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
18447     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18448     "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18449     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
18450     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18451     "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
18452     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18453     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
18454     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
18455     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18456
18457   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18458   esac
18459 done
18460
18461
18462 # If the user did not use the arguments to specify the items to instantiate,
18463 # then the envvar interface is used.  Set only those that are not.
18464 # We use the long form for the default assignment because of an extremely
18465 # bizarre bug on SunOS 4.1.3.
18466 if $ac_need_defaults; then
18467   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18468   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18469   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18470   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18471 fi
18472
18473 # Have a temporary directory for convenience.  Make it in the build tree
18474 # simply because there is no reason against having it here, and in addition,
18475 # creating and moving files from /tmp can sometimes cause problems.
18476 # Hook for its removal unless debugging.
18477 # Note that there is a small window in which the directory will not be cleaned:
18478 # after its creation but before its name has been assigned to `$tmp'.
18479 $debug ||
18480 {
18481   tmp=
18482   trap 'exit_status=$?
18483   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18484 ' 0
18485   trap 'as_fn_exit 1' 1 2 13 15
18486 }
18487 # Create a (secure) tmp directory for tmp files.
18488
18489 {
18490   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18491   test -n "$tmp" && test -d "$tmp"
18492 }  ||
18493 {
18494   tmp=./conf$$-$RANDOM
18495   (umask 077 && mkdir "$tmp")
18496 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18497
18498 # Set up the scripts for CONFIG_FILES section.
18499 # No need to generate them if there are no CONFIG_FILES.
18500 # This happens for instance with `./config.status config.h'.
18501 if test -n "$CONFIG_FILES"; then
18502
18503 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18504   ac_cs_awk_getline=:
18505   ac_cs_awk_pipe_init=
18506   ac_cs_awk_read_file='
18507       while ((getline aline < (F[key])) > 0)
18508         print(aline)
18509       close(F[key])'
18510   ac_cs_awk_pipe_fini=
18511 else
18512   ac_cs_awk_getline=false
18513   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18514   ac_cs_awk_read_file='
18515       print "|#_!!_#|"
18516       print "cat " F[key] " &&"
18517       '$ac_cs_awk_pipe_init
18518   # The final `:' finishes the AND list.
18519   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18520 fi
18521 ac_cr=`echo X | tr X '\015'`
18522 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18523 # But we know of no other shell where ac_cr would be empty at this
18524 # point, so we can use a bashism as a fallback.
18525 if test "x$ac_cr" = x; then
18526   eval ac_cr=\$\'\\r\'
18527 fi
18528 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18529 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18530   ac_cs_awk_cr='\r'
18531 else
18532   ac_cs_awk_cr=$ac_cr
18533 fi
18534
18535 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18536 _ACEOF
18537
18538 # Create commands to substitute file output variables.
18539 {
18540   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18541   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18542   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18543   echo "_ACAWK" &&
18544   echo "_ACEOF"
18545 } >conf$$files.sh &&
18546 . ./conf$$files.sh ||
18547   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18548 rm -f conf$$files.sh
18549
18550 {
18551   echo "cat >conf$$subs.awk <<_ACEOF" &&
18552   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18553   echo "_ACEOF"
18554 } >conf$$subs.sh ||
18555   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18556 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18557 ac_delim='%!_!# '
18558 for ac_last_try in false false false false false :; do
18559   . ./conf$$subs.sh ||
18560     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18561
18562   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18563   if test $ac_delim_n = $ac_delim_num; then
18564     break
18565   elif $ac_last_try; then
18566     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18567   else
18568     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18569   fi
18570 done
18571 rm -f conf$$subs.sh
18572
18573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18574 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18575 _ACEOF
18576 sed -n '
18577 h
18578 s/^/S["/; s/!.*/"]=/
18579 p
18580 g
18581 s/^[^!]*!//
18582 :repl
18583 t repl
18584 s/'"$ac_delim"'$//
18585 t delim
18586 :nl
18587 h
18588 s/\(.\{148\}\).*/\1/
18589 t more1
18590 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18591 p
18592 n
18593 b repl
18594 :more1
18595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18596 p
18597 g
18598 s/.\{148\}//
18599 t nl
18600 :delim
18601 h
18602 s/\(.\{148\}\).*/\1/
18603 t more2
18604 s/["\\]/\\&/g; s/^/"/; s/$/"/
18605 p
18606 b
18607 :more2
18608 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18609 p
18610 g
18611 s/.\{148\}//
18612 t delim
18613 ' <conf$$subs.awk | sed '
18614 /^[^""]/{
18615   N
18616   s/\n//
18617 }
18618 ' >>$CONFIG_STATUS || ac_write_fail=1
18619 rm -f conf$$subs.awk
18620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18621 _ACAWK
18622 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18623   for (key in S) S_is_set[key] = 1
18624   FS = "\a"
18625   \$ac_cs_awk_pipe_init
18626 }
18627 {
18628   line = $ 0
18629   nfields = split(line, field, "@")
18630   substed = 0
18631   len = length(field[1])
18632   for (i = 2; i < nfields; i++) {
18633     key = field[i]
18634     keylen = length(key)
18635     if (S_is_set[key]) {
18636       value = S[key]
18637       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18638       len += length(value) + length(field[++i])
18639       substed = 1
18640     } else
18641       len += 1 + keylen
18642   }
18643   if (nfields == 3 && !substed) {
18644     key = field[2]
18645     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
18646       \$ac_cs_awk_read_file
18647       next
18648     }
18649   }
18650   print line
18651 }
18652 \$ac_cs_awk_pipe_fini
18653 _ACAWK
18654 _ACEOF
18655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18656 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18657   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18658 else
18659   cat
18660 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18661   || as_fn_error "could not setup config files machinery" "$LINENO" 5
18662 _ACEOF
18663
18664 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18665 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18666 # trailing colons and then remove the whole line if VPATH becomes empty
18667 # (actually we leave an empty line to preserve line numbers).
18668 if test "x$srcdir" = x.; then
18669   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18670 s/:*\$(srcdir):*/:/
18671 s/:*\${srcdir}:*/:/
18672 s/:*@srcdir@:*/:/
18673 s/^\([^=]*=[     ]*\):*/\1/
18674 s/:*$//
18675 s/^[^=]*=[       ]*$//
18676 }'
18677 fi
18678
18679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18680 fi # test -n "$CONFIG_FILES"
18681
18682 # Set up the scripts for CONFIG_HEADERS section.
18683 # No need to generate them if there are no CONFIG_HEADERS.
18684 # This happens for instance with `./config.status Makefile'.
18685 if test -n "$CONFIG_HEADERS"; then
18686 cat >"$tmp/defines.awk" <<\_ACAWK ||
18687 BEGIN {
18688 _ACEOF
18689
18690 # Transform confdefs.h into an awk script `defines.awk', embedded as
18691 # here-document in config.status, that substitutes the proper values into
18692 # config.h.in to produce config.h.
18693
18694 # Create a delimiter string that does not exist in confdefs.h, to ease
18695 # handling of long lines.
18696 ac_delim='%!_!# '
18697 for ac_last_try in false false :; do
18698   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18699   if test -z "$ac_t"; then
18700     break
18701   elif $ac_last_try; then
18702     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18703   else
18704     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18705   fi
18706 done
18707
18708 # For the awk script, D is an array of macro values keyed by name,
18709 # likewise P contains macro parameters if any.  Preserve backslash
18710 # newline sequences.
18711
18712 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18713 sed -n '
18714 s/.\{148\}/&'"$ac_delim"'/g
18715 t rset
18716 :rset
18717 s/^[     ]*#[    ]*define[       ][      ]*/ /
18718 t def
18719 d
18720 :def
18721 s/\\$//
18722 t bsnl
18723 s/["\\]/\\&/g
18724 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18725 D["\1"]=" \3"/p
18726 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18727 d
18728 :bsnl
18729 s/["\\]/\\&/g
18730 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18731 D["\1"]=" \3\\\\\\n"\\/p
18732 t cont
18733 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18734 t cont
18735 d
18736 :cont
18737 n
18738 s/.\{148\}/&'"$ac_delim"'/g
18739 t clear
18740 :clear
18741 s/\\$//
18742 t bsnlc
18743 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18744 d
18745 :bsnlc
18746 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18747 b cont
18748 ' <confdefs.h | sed '
18749 s/'"$ac_delim"'/"\\\
18750 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18751
18752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18753   for (key in D) D_is_set[key] = 1
18754   FS = "\a"
18755 }
18756 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18757   line = \$ 0
18758   split(line, arg, " ")
18759   if (arg[1] == "#") {
18760     defundef = arg[2]
18761     mac1 = arg[3]
18762   } else {
18763     defundef = substr(arg[1], 2)
18764     mac1 = arg[2]
18765   }
18766   split(mac1, mac2, "(") #)
18767   macro = mac2[1]
18768   prefix = substr(line, 1, index(line, defundef) - 1)
18769   if (D_is_set[macro]) {
18770     # Preserve the white space surrounding the "#".
18771     print prefix "define", macro P[macro] D[macro]
18772     next
18773   } else {
18774     # Replace #undef with comments.  This is necessary, for example,
18775     # in the case of _POSIX_SOURCE, which is predefined and required
18776     # on some systems where configure will not decide to define it.
18777     if (defundef == "undef") {
18778       print "/*", prefix defundef, macro, "*/"
18779       next
18780     }
18781   }
18782 }
18783 { print }
18784 _ACAWK
18785 _ACEOF
18786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18787   as_fn_error "could not setup config headers machinery" "$LINENO" 5
18788 fi # test -n "$CONFIG_HEADERS"
18789
18790
18791 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
18792 shift
18793 for ac_tag
18794 do
18795   case $ac_tag in
18796   :[FHLC]) ac_mode=$ac_tag; continue;;
18797   esac
18798   case $ac_mode$ac_tag in
18799   :[FHL]*:*);;
18800   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18801   :[FH]-) ac_tag=-:-;;
18802   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18803   esac
18804   ac_save_IFS=$IFS
18805   IFS=:
18806   set x $ac_tag
18807   IFS=$ac_save_IFS
18808   shift
18809   ac_file=$1
18810   shift
18811
18812   case $ac_mode in
18813   :L) ac_source=$1;;
18814   :[FH])
18815     ac_file_inputs=
18816     for ac_f
18817     do
18818       case $ac_f in
18819       -) ac_f="$tmp/stdin";;
18820       *) # Look for the file first in the build tree, then in the source tree
18821          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18822          # because $ac_f cannot contain `:'.
18823          test -f "$ac_f" ||
18824            case $ac_f in
18825            [\\/$]*) false;;
18826            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18827            esac ||
18828            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18829       esac
18830       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18831       as_fn_append ac_file_inputs " '$ac_f'"
18832     done
18833
18834     # Let's still pretend it is `configure' which instantiates (i.e., don't
18835     # use $as_me), people would be surprised to read:
18836     #    /* config.h.  Generated by config.status.  */
18837     configure_input='Generated from '`
18838           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18839         `' by configure.'
18840     if test x"$ac_file" != x-; then
18841       configure_input="$ac_file.  $configure_input"
18842       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18843 $as_echo "$as_me: creating $ac_file" >&6;}
18844     fi
18845     # Neutralize special characters interpreted by sed in replacement strings.
18846     case $configure_input in #(
18847     *\&* | *\|* | *\\* )
18848        ac_sed_conf_input=`$as_echo "$configure_input" |
18849        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18850     *) ac_sed_conf_input=$configure_input;;
18851     esac
18852
18853     case $ac_tag in
18854     *:-:* | *:-) cat >"$tmp/stdin" \
18855       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18856     esac
18857     ;;
18858   esac
18859
18860   ac_dir=`$as_dirname -- "$ac_file" ||
18861 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18862          X"$ac_file" : 'X\(//\)[^/]' \| \
18863          X"$ac_file" : 'X\(//\)$' \| \
18864          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18865 $as_echo X"$ac_file" |
18866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18867             s//\1/
18868             q
18869           }
18870           /^X\(\/\/\)[^/].*/{
18871             s//\1/
18872             q
18873           }
18874           /^X\(\/\/\)$/{
18875             s//\1/
18876             q
18877           }
18878           /^X\(\/\).*/{
18879             s//\1/
18880             q
18881           }
18882           s/.*/./; q'`
18883   as_dir="$ac_dir"; as_fn_mkdir_p
18884   ac_builddir=.
18885
18886 case "$ac_dir" in
18887 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18888 *)
18889   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18890   # A ".." for each directory in $ac_dir_suffix.
18891   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18892   case $ac_top_builddir_sub in
18893   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18894   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18895   esac ;;
18896 esac
18897 ac_abs_top_builddir=$ac_pwd
18898 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18899 # for backward compatibility:
18900 ac_top_builddir=$ac_top_build_prefix
18901
18902 case $srcdir in
18903   .)  # We are building in place.
18904     ac_srcdir=.
18905     ac_top_srcdir=$ac_top_builddir_sub
18906     ac_abs_top_srcdir=$ac_pwd ;;
18907   [\\/]* | ?:[\\/]* )  # Absolute name.
18908     ac_srcdir=$srcdir$ac_dir_suffix;
18909     ac_top_srcdir=$srcdir
18910     ac_abs_top_srcdir=$srcdir ;;
18911   *) # Relative name.
18912     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18913     ac_top_srcdir=$ac_top_build_prefix$srcdir
18914     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18915 esac
18916 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18917
18918
18919   case $ac_mode in
18920   :F)
18921   #
18922   # CONFIG_FILE
18923   #
18924
18925   case $INSTALL in
18926   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18927   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18928   esac
18929   ac_MKDIR_P=$MKDIR_P
18930   case $MKDIR_P in
18931   [\\/$]* | ?:[\\/]* ) ;;
18932   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18933   esac
18934 _ACEOF
18935
18936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18937 # If the template does not know about datarootdir, expand it.
18938 # FIXME: This hack should be removed a few years after 2.60.
18939 ac_datarootdir_hack=; ac_datarootdir_seen=
18940 ac_sed_dataroot='
18941 /datarootdir/ {
18942   p
18943   q
18944 }
18945 /@datadir@/p
18946 /@docdir@/p
18947 /@infodir@/p
18948 /@localedir@/p
18949 /@mandir@/p'
18950 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18951 *datarootdir*) ac_datarootdir_seen=yes;;
18952 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18953   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18954 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18955 _ACEOF
18956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18957   ac_datarootdir_hack='
18958   s&@datadir@&$datadir&g
18959   s&@docdir@&$docdir&g
18960   s&@infodir@&$infodir&g
18961   s&@localedir@&$localedir&g
18962   s&@mandir@&$mandir&g
18963   s&\\\${datarootdir}&$datarootdir&g' ;;
18964 esac
18965 _ACEOF
18966
18967 # Neutralize VPATH when `$srcdir' = `.'.
18968 # Shell code in configure.ac might set extrasub.
18969 # FIXME: do we really want to maintain this feature?
18970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18971 ac_sed_extra="$ac_vpsub
18972 $extrasub
18973 _ACEOF
18974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18975 :t
18976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18977 s|@configure_input@|$ac_sed_conf_input|;t t
18978 s&@top_builddir@&$ac_top_builddir_sub&;t t
18979 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18980 s&@srcdir@&$ac_srcdir&;t t
18981 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18982 s&@top_srcdir@&$ac_top_srcdir&;t t
18983 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18984 s&@builddir@&$ac_builddir&;t t
18985 s&@abs_builddir@&$ac_abs_builddir&;t t
18986 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18987 s&@INSTALL@&$ac_INSTALL&;t t
18988 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18989 $ac_datarootdir_hack
18990 "
18991 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18992 if $ac_cs_awk_getline; then
18993   $AWK -f "$tmp/subs.awk"
18994 else
18995   $AWK -f "$tmp/subs.awk" | $SHELL
18996 fi >$tmp/out \
18997   || as_fn_error "could not create $ac_file" "$LINENO" 5
18998
18999 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19000   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19001   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19002   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19003 which seems to be undefined.  Please make sure it is defined." >&5
19004 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19005 which seems to be undefined.  Please make sure it is defined." >&2;}
19006
19007   rm -f "$tmp/stdin"
19008   case $ac_file in
19009   -) cat "$tmp/out" && rm -f "$tmp/out";;
19010   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19011   esac \
19012   || as_fn_error "could not create $ac_file" "$LINENO" 5
19013  ;;
19014   :H)
19015   #
19016   # CONFIG_HEADER
19017   #
19018   if test x"$ac_file" != x-; then
19019     {
19020       $as_echo "/* $configure_input  */" \
19021       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19022     } >"$tmp/config.h" \
19023       || as_fn_error "could not create $ac_file" "$LINENO" 5
19024     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19025       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19026 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19027     else
19028       rm -f "$ac_file"
19029       mv "$tmp/config.h" "$ac_file" \
19030         || as_fn_error "could not create $ac_file" "$LINENO" 5
19031     fi
19032   else
19033     $as_echo "/* $configure_input  */" \
19034       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19035       || as_fn_error "could not create -" "$LINENO" 5
19036   fi
19037 # Compute "$ac_file"'s index in $config_headers.
19038 _am_arg="$ac_file"
19039 _am_stamp_count=1
19040 for _am_header in $config_headers :; do
19041   case $_am_header in
19042     $_am_arg | $_am_arg:* )
19043       break ;;
19044     * )
19045       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19046   esac
19047 done
19048 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19049 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19050          X"$_am_arg" : 'X\(//\)[^/]' \| \
19051          X"$_am_arg" : 'X\(//\)$' \| \
19052          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19053 $as_echo X"$_am_arg" |
19054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19055             s//\1/
19056             q
19057           }
19058           /^X\(\/\/\)[^/].*/{
19059             s//\1/
19060             q
19061           }
19062           /^X\(\/\/\)$/{
19063             s//\1/
19064             q
19065           }
19066           /^X\(\/\).*/{
19067             s//\1/
19068             q
19069           }
19070           s/.*/./; q'`/stamp-h$_am_stamp_count
19071  ;;
19072   :L)
19073   #
19074   # CONFIG_LINK
19075   #
19076
19077   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19078     :
19079   else
19080     # Prefer the file from the source tree if names are identical.
19081     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19082       ac_source=$srcdir/$ac_source
19083     fi
19084
19085     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19086 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19087
19088     if test ! -r "$ac_source"; then
19089       as_fn_error "$ac_source: file not found" "$LINENO" 5
19090     fi
19091     rm -f "$ac_file"
19092
19093     # Try a relative symlink, then a hard link, then a copy.
19094     case $srcdir in
19095     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19096         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19097     esac
19098     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19099       ln "$ac_source" "$ac_file" 2>/dev/null ||
19100       cp -p "$ac_source" "$ac_file" ||
19101       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19102   fi
19103  ;;
19104   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19105 $as_echo "$as_me: executing $ac_file commands" >&6;}
19106  ;;
19107   esac
19108
19109
19110   case $ac_file$ac_mode in
19111     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19112     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19113   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19114   # are listed without --file.  Let's play safe and only enable the eval
19115   # if we detect the quoting.
19116   case $CONFIG_FILES in
19117   *\'*) eval set x "$CONFIG_FILES" ;;
19118   *)   set x $CONFIG_FILES ;;
19119   esac
19120   shift
19121   for mf
19122   do
19123     # Strip MF so we end up with the name of the file.
19124     mf=`echo "$mf" | sed -e 's/:.*$//'`
19125     # Check whether this is an Automake generated Makefile or not.
19126     # We used to match only the files named `Makefile.in', but
19127     # some people rename them; so instead we look at the file content.
19128     # Grep'ing the first line is not enough: some people post-process
19129     # each Makefile.in and add a new line on top of each file to say so.
19130     # Grep'ing the whole file is not good either: AIX grep has a line
19131     # limit of 2048, but all sed's we know have understand at least 4000.
19132     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19133       dirpart=`$as_dirname -- "$mf" ||
19134 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19135          X"$mf" : 'X\(//\)[^/]' \| \
19136          X"$mf" : 'X\(//\)$' \| \
19137          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19138 $as_echo X"$mf" |
19139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19140             s//\1/
19141             q
19142           }
19143           /^X\(\/\/\)[^/].*/{
19144             s//\1/
19145             q
19146           }
19147           /^X\(\/\/\)$/{
19148             s//\1/
19149             q
19150           }
19151           /^X\(\/\).*/{
19152             s//\1/
19153             q
19154           }
19155           s/.*/./; q'`
19156     else
19157       continue
19158     fi
19159     # Extract the definition of DEPDIR, am__include, and am__quote
19160     # from the Makefile without running `make'.
19161     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19162     test -z "$DEPDIR" && continue
19163     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19164     test -z "am__include" && continue
19165     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19166     # When using ansi2knr, U may be empty or an underscore; expand it
19167     U=`sed -n 's/^U = //p' < "$mf"`
19168     # Find all dependency output files, they are included files with
19169     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19170     # simplest approach to changing $(DEPDIR) to its actual value in the
19171     # expansion.
19172     for file in `sed -n "
19173       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19174          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19175       # Make sure the directory exists.
19176       test -f "$dirpart/$file" && continue
19177       fdir=`$as_dirname -- "$file" ||
19178 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19179          X"$file" : 'X\(//\)[^/]' \| \
19180          X"$file" : 'X\(//\)$' \| \
19181          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19182 $as_echo X"$file" |
19183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19184             s//\1/
19185             q
19186           }
19187           /^X\(\/\/\)[^/].*/{
19188             s//\1/
19189             q
19190           }
19191           /^X\(\/\/\)$/{
19192             s//\1/
19193             q
19194           }
19195           /^X\(\/\).*/{
19196             s//\1/
19197             q
19198           }
19199           s/.*/./; q'`
19200       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19201       # echo "creating $dirpart/$file"
19202       echo '# dummy' > "$dirpart/$file"
19203     done
19204   done
19205 }
19206  ;;
19207     "default":C)
19208 case x$CONFIG_HEADERS in
19209 xconfig.h:config.in)
19210 echo > stamp-h ;;
19211 esac
19212  ;;
19213
19214   esac
19215 done # for ac_tag
19216
19217
19218 as_fn_exit 0
19219 _ACEOF
19220 ac_clean_files=$ac_clean_files_save
19221
19222 test $ac_write_fail = 0 ||
19223   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19224
19225
19226 # configure is writing to config.log, and then calls config.status.
19227 # config.status does its own redirection, appending to config.log.
19228 # Unfortunately, on DOS this fails, as config.log is still kept open
19229 # by configure, so config.status won't be able to write to it; its
19230 # output is simply discarded.  So we exec the FD to /dev/null,
19231 # effectively closing config.log, so it can be properly (re)opened and
19232 # appended to by config.status.  When coming back to configure, we
19233 # need to make the FD available again.
19234 if test "$no_create" != yes; then
19235   ac_cs_success=:
19236   ac_config_status_args=
19237   test "$silent" = yes &&
19238     ac_config_status_args="$ac_config_status_args --quiet"
19239   exec 5>/dev/null
19240   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19241   exec 5>>config.log
19242   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19243   # would make configure fail if this is the last instruction.
19244   $ac_cs_success || as_fn_exit $?
19245 fi
19246
19247 #
19248 # CONFIG_SUBDIRS section.
19249 #
19250 if test "$no_recursion" != yes; then
19251
19252   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19253   # so they do not pile up.
19254   ac_sub_configure_args=
19255   ac_prev=
19256   eval "set x $ac_configure_args"
19257   shift
19258   for ac_arg
19259   do
19260     if test -n "$ac_prev"; then
19261       ac_prev=
19262       continue
19263     fi
19264     case $ac_arg in
19265     -cache-file | --cache-file | --cache-fil | --cache-fi \
19266     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19267       ac_prev=cache_file ;;
19268     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19269     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19270     | --c=*)
19271       ;;
19272     --config-cache | -C)
19273       ;;
19274     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19275       ac_prev=srcdir ;;
19276     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19277       ;;
19278     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19279       ac_prev=prefix ;;
19280     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19281       ;;
19282     --disable-option-checking)
19283       ;;
19284     *)
19285       case $ac_arg in
19286       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19287       esac
19288       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19289     esac
19290   done
19291
19292   # Always prepend --prefix to ensure using the same prefix
19293   # in subdir configurations.
19294   ac_arg="--prefix=$prefix"
19295   case $ac_arg in
19296   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19297   esac
19298   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19299
19300   # Pass --silent
19301   if test "$silent" = yes; then
19302     ac_sub_configure_args="--silent $ac_sub_configure_args"
19303   fi
19304
19305   # Always prepend --disable-option-checking to silence warnings, since
19306   # different subdirs can have different --enable and --with options.
19307   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19308
19309   ac_popdir=`pwd`
19310   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19311
19312     # Do not complain, so a configure script can configure whichever
19313     # parts of a large source tree are present.
19314     test -d "$srcdir/$ac_dir" || continue
19315
19316     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19317     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19318     $as_echo "$ac_msg" >&6
19319     as_dir="$ac_dir"; as_fn_mkdir_p
19320     ac_builddir=.
19321
19322 case "$ac_dir" in
19323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19324 *)
19325   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19326   # A ".." for each directory in $ac_dir_suffix.
19327   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19328   case $ac_top_builddir_sub in
19329   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19330   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19331   esac ;;
19332 esac
19333 ac_abs_top_builddir=$ac_pwd
19334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19335 # for backward compatibility:
19336 ac_top_builddir=$ac_top_build_prefix
19337
19338 case $srcdir in
19339   .)  # We are building in place.
19340     ac_srcdir=.
19341     ac_top_srcdir=$ac_top_builddir_sub
19342     ac_abs_top_srcdir=$ac_pwd ;;
19343   [\\/]* | ?:[\\/]* )  # Absolute name.
19344     ac_srcdir=$srcdir$ac_dir_suffix;
19345     ac_top_srcdir=$srcdir
19346     ac_abs_top_srcdir=$srcdir ;;
19347   *) # Relative name.
19348     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19349     ac_top_srcdir=$ac_top_build_prefix$srcdir
19350     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19351 esac
19352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19353
19354
19355     cd "$ac_dir"
19356
19357     # Check for guested configure; otherwise get Cygnus style configure.
19358     if test -f "$ac_srcdir/configure.gnu"; then
19359       ac_sub_configure=$ac_srcdir/configure.gnu
19360     elif test -f "$ac_srcdir/configure"; then
19361       ac_sub_configure=$ac_srcdir/configure
19362     elif test -f "$ac_srcdir/configure.in"; then
19363       # This should be Cygnus configure.
19364       ac_sub_configure=$ac_aux_dir/configure
19365     else
19366       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19367 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19368       ac_sub_configure=
19369     fi
19370
19371     # The recursion is here.
19372     if test -n "$ac_sub_configure"; then
19373       # Make the cache file name correct relative to the subdirectory.
19374       case $cache_file in
19375       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19376       *) # Relative name.
19377         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19378       esac
19379
19380       { $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
19381 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19382       # The eval makes quoting arguments work.
19383       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19384            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19385         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19386     fi
19387
19388     cd "$ac_popdir"
19389   done
19390 fi
19391 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19392   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19393 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19394 fi
19395
19396
19397 exit 0