2012-01-20 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 STDINT_H
763 WINT_T_SUFFIX
764 WCHAR_T_SUFFIX
765 SIG_ATOMIC_T_SUFFIX
766 SIZE_T_SUFFIX
767 PTRDIFF_T_SUFFIX
768 HAVE_SIGNED_WINT_T
769 HAVE_SIGNED_WCHAR_T
770 HAVE_SIGNED_SIG_ATOMIC_T
771 BITSIZEOF_WINT_T
772 BITSIZEOF_WCHAR_T
773 BITSIZEOF_SIG_ATOMIC_T
774 BITSIZEOF_SIZE_T
775 BITSIZEOF_PTRDIFF_T
776 HAVE_SYS_BITYPES_H
777 HAVE_SYS_INTTYPES_H
778 HAVE_STDINT_H
779 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
780 NEXT_STDINT_H
781 HAVE_SYS_TYPES_H
782 HAVE_INTTYPES_H
783 HAVE_UNSIGNED_LONG_LONG_INT
784 HAVE_LONG_LONG_INT
785 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
786 NEXT_STDDEF_H
787 PRAGMA_SYSTEM_HEADER
788 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
789 INCLUDE_NEXT
790 STDDEF_H
791 HAVE_WCHAR_T
792 REPLACE_NULL
793 APPLE_UNIVERSAL_BUILD
794 UNDEFINE_STRTOK_R
795 REPLACE_STRTOK_R
796 REPLACE_STRSIGNAL
797 REPLACE_STRNLEN
798 REPLACE_STRNDUP
799 REPLACE_STRNCAT
800 REPLACE_STRERROR
801 REPLACE_STRCASESTR
802 REPLACE_STRSTR
803 REPLACE_STRDUP
804 REPLACE_STPNCPY
805 REPLACE_MEMMEM
806 REPLACE_MEMCHR
807 HAVE_STRVERSCMP
808 HAVE_DECL_STRSIGNAL
809 HAVE_DECL_STRTOK_R
810 HAVE_STRCASESTR
811 HAVE_STRSEP
812 HAVE_STRPBRK
813 HAVE_DECL_STRNLEN
814 HAVE_DECL_STRNDUP
815 HAVE_DECL_STRDUP
816 HAVE_STRCHRNUL
817 HAVE_STPNCPY
818 HAVE_STPCPY
819 HAVE_RAWMEMCHR
820 HAVE_DECL_MEMRCHR
821 HAVE_MEMPCPY
822 HAVE_DECL_MEMMEM
823 HAVE_MEMCHR
824 HAVE_MBSLEN
825 GNULIB_STRVERSCMP
826 GNULIB_STRSIGNAL
827 GNULIB_STRERROR
828 GNULIB_MBSTOK_R
829 GNULIB_MBSSEP
830 GNULIB_MBSSPN
831 GNULIB_MBSPBRK
832 GNULIB_MBSCSPN
833 GNULIB_MBSCASESTR
834 GNULIB_MBSPCASECMP
835 GNULIB_MBSNCASECMP
836 GNULIB_MBSCASECMP
837 GNULIB_MBSSTR
838 GNULIB_MBSRCHR
839 GNULIB_MBSCHR
840 GNULIB_MBSNLEN
841 GNULIB_MBSLEN
842 GNULIB_STRTOK_R
843 GNULIB_STRCASESTR
844 GNULIB_STRSTR
845 GNULIB_STRSEP
846 GNULIB_STRPBRK
847 GNULIB_STRNLEN
848 GNULIB_STRNDUP
849 GNULIB_STRNCAT
850 GNULIB_STRDUP
851 GNULIB_STRCHRNUL
852 GNULIB_STPNCPY
853 GNULIB_STPCPY
854 GNULIB_RAWMEMCHR
855 GNULIB_MEMRCHR
856 GNULIB_MEMPCPY
857 GNULIB_MEMMEM
858 GNULIB_MEMCHR
859 GL_COND_LIBTOOL_FALSE
860 GL_COND_LIBTOOL_TRUE
861 CATOBJEXT
862 GENCAT
863 INSTOBJEXT
864 DATADIRNAME
865 CATALOGS
866 POSUB
867 GMSGFMT
868 XGETTEXT
869 INCINTL
870 LIBINTL_DEP
871 LIBINTL
872 USE_NLS
873 SET_MAKE
874 GMAKE_FALSE
875 GMAKE_TRUE
876 MAKE
877 CCDEPMODE
878 DEPDIR
879 am__leading_dot
880 target_os
881 target_vendor
882 target_cpu
883 target
884 RANLIB
885 EGREP
886 GREP
887 CPP
888 host_os
889 host_vendor
890 host_cpu
891 host
892 build_os
893 build_vendor
894 build_cpu
895 build
896 OBJEXT
897 EXEEXT
898 ac_ct_CC
899 CPPFLAGS
900 LDFLAGS
901 CFLAGS
902 CC
903 MAINT
904 MAINTAINER_MODE_FALSE
905 MAINTAINER_MODE_TRUE
906 target_alias
907 host_alias
908 build_alias
909 LIBS
910 ECHO_T
911 ECHO_N
912 ECHO_C
913 DEFS
914 mandir
915 localedir
916 libdir
917 psdir
918 pdfdir
919 dvidir
920 htmldir
921 infodir
922 docdir
923 oldincludedir
924 includedir
925 localstatedir
926 sharedstatedir
927 sysconfdir
928 datadir
929 datarootdir
930 libexecdir
931 sbindir
932 bindir
933 program_transform_name
934 prefix
935 exec_prefix
936 PACKAGE_URL
937 PACKAGE_BUGREPORT
938 PACKAGE_STRING
939 PACKAGE_VERSION
940 PACKAGE_TARNAME
941 PACKAGE_NAME
942 PATH_SEPARATOR
943 SHELL'
944 ac_subst_files='host_makefile_frag'
945 ac_user_opts='
946 enable_option_checking
947 enable_maintainer_mode
948 enable_plugins
949 enable_largefile
950 enable_dependency_tracking
951 with_separate_debug_dir
952 with_gdb_datadir
953 with_relocated_sources
954 enable_targets
955 enable_64_bit_bfd
956 enable_gdbcli
957 enable_gdbmi
958 enable_tui
959 enable_gdbtk
960 with_libunwind
961 with_curses
962 enable_profiling
963 with_pkgversion
964 with_bugurl
965 with_zlib
966 with_libiconv_prefix
967 with_iconv_bin
968 with_system_readline
969 with_jit_reader_dir
970 with_expat
971 with_gnu_ld
972 enable_rpath
973 with_libexpat_prefix
974 with_python
975 with_included_regex
976 with_sysroot
977 with_system_gdbinit
978 enable_werror
979 enable_build_warnings
980 enable_gdb_build_warnings
981 with_tcl
982 with_tk
983 with_x
984 enable_sim
985 enable_multi_ice
986 enable_gdbserver
987 '
988       ac_precious_vars='build_alias
989 host_alias
990 target_alias
991 CC
992 CFLAGS
993 LDFLAGS
994 LIBS
995 CPPFLAGS
996 CPP
997 YACC
998 YFLAGS
999 XMKMF'
1000 ac_subdirs_all='testsuite
1001 gdbtk
1002 multi-ice
1003 gdbserver'
1004
1005 # Initialize some variables set by options.
1006 ac_init_help=
1007 ac_init_version=false
1008 ac_unrecognized_opts=
1009 ac_unrecognized_sep=
1010 # The variables have the same names as the options, with
1011 # dashes changed to underlines.
1012 cache_file=/dev/null
1013 exec_prefix=NONE
1014 no_create=
1015 no_recursion=
1016 prefix=NONE
1017 program_prefix=NONE
1018 program_suffix=NONE
1019 program_transform_name=s,x,x,
1020 silent=
1021 site=
1022 srcdir=
1023 verbose=
1024 x_includes=NONE
1025 x_libraries=NONE
1026
1027 # Installation directory options.
1028 # These are left unexpanded so users can "make install exec_prefix=/foo"
1029 # and all the variables that are supposed to be based on exec_prefix
1030 # by default will actually change.
1031 # Use braces instead of parens because sh, perl, etc. also accept them.
1032 # (The list follows the same order as the GNU Coding Standards.)
1033 bindir='${exec_prefix}/bin'
1034 sbindir='${exec_prefix}/sbin'
1035 libexecdir='${exec_prefix}/libexec'
1036 datarootdir='${prefix}/share'
1037 datadir='${datarootdir}'
1038 sysconfdir='${prefix}/etc'
1039 sharedstatedir='${prefix}/com'
1040 localstatedir='${prefix}/var'
1041 includedir='${prefix}/include'
1042 oldincludedir='/usr/include'
1043 docdir='${datarootdir}/doc/${PACKAGE}'
1044 infodir='${datarootdir}/info'
1045 htmldir='${docdir}'
1046 dvidir='${docdir}'
1047 pdfdir='${docdir}'
1048 psdir='${docdir}'
1049 libdir='${exec_prefix}/lib'
1050 localedir='${datarootdir}/locale'
1051 mandir='${datarootdir}/man'
1052
1053 ac_prev=
1054 ac_dashdash=
1055 for ac_option
1056 do
1057   # If the previous option needs an argument, assign it.
1058   if test -n "$ac_prev"; then
1059     eval $ac_prev=\$ac_option
1060     ac_prev=
1061     continue
1062   fi
1063
1064   case $ac_option in
1065   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066   *)    ac_optarg=yes ;;
1067   esac
1068
1069   # Accept the important Cygnus configure options, so we can diagnose typos.
1070
1071   case $ac_dashdash$ac_option in
1072   --)
1073     ac_dashdash=yes ;;
1074
1075   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1076     ac_prev=bindir ;;
1077   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1078     bindir=$ac_optarg ;;
1079
1080   -build | --build | --buil | --bui | --bu)
1081     ac_prev=build_alias ;;
1082   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1083     build_alias=$ac_optarg ;;
1084
1085   -cache-file | --cache-file | --cache-fil | --cache-fi \
1086   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1087     ac_prev=cache_file ;;
1088   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1089   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1090     cache_file=$ac_optarg ;;
1091
1092   --config-cache | -C)
1093     cache_file=config.cache ;;
1094
1095   -datadir | --datadir | --datadi | --datad)
1096     ac_prev=datadir ;;
1097   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1098     datadir=$ac_optarg ;;
1099
1100   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1101   | --dataroo | --dataro | --datar)
1102     ac_prev=datarootdir ;;
1103   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1104   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1105     datarootdir=$ac_optarg ;;
1106
1107   -disable-* | --disable-*)
1108     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1109     # Reject names that are not valid shell variable names.
1110     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111       as_fn_error "invalid feature name: $ac_useropt"
1112     ac_useropt_orig=$ac_useropt
1113     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114     case $ac_user_opts in
1115       *"
1116 "enable_$ac_useropt"
1117 "*) ;;
1118       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1119          ac_unrecognized_sep=', ';;
1120     esac
1121     eval enable_$ac_useropt=no ;;
1122
1123   -docdir | --docdir | --docdi | --doc | --do)
1124     ac_prev=docdir ;;
1125   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1126     docdir=$ac_optarg ;;
1127
1128   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1129     ac_prev=dvidir ;;
1130   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1131     dvidir=$ac_optarg ;;
1132
1133   -enable-* | --enable-*)
1134     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1135     # Reject names that are not valid shell variable names.
1136     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137       as_fn_error "invalid feature name: $ac_useropt"
1138     ac_useropt_orig=$ac_useropt
1139     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140     case $ac_user_opts in
1141       *"
1142 "enable_$ac_useropt"
1143 "*) ;;
1144       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1145          ac_unrecognized_sep=', ';;
1146     esac
1147     eval enable_$ac_useropt=\$ac_optarg ;;
1148
1149   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1150   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1151   | --exec | --exe | --ex)
1152     ac_prev=exec_prefix ;;
1153   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1154   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1155   | --exec=* | --exe=* | --ex=*)
1156     exec_prefix=$ac_optarg ;;
1157
1158   -gas | --gas | --ga | --g)
1159     # Obsolete; use --with-gas.
1160     with_gas=yes ;;
1161
1162   -help | --help | --hel | --he | -h)
1163     ac_init_help=long ;;
1164   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1165     ac_init_help=recursive ;;
1166   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1167     ac_init_help=short ;;
1168
1169   -host | --host | --hos | --ho)
1170     ac_prev=host_alias ;;
1171   -host=* | --host=* | --hos=* | --ho=*)
1172     host_alias=$ac_optarg ;;
1173
1174   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1175     ac_prev=htmldir ;;
1176   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1177   | --ht=*)
1178     htmldir=$ac_optarg ;;
1179
1180   -includedir | --includedir | --includedi | --included | --include \
1181   | --includ | --inclu | --incl | --inc)
1182     ac_prev=includedir ;;
1183   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1184   | --includ=* | --inclu=* | --incl=* | --inc=*)
1185     includedir=$ac_optarg ;;
1186
1187   -infodir | --infodir | --infodi | --infod | --info | --inf)
1188     ac_prev=infodir ;;
1189   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1190     infodir=$ac_optarg ;;
1191
1192   -libdir | --libdir | --libdi | --libd)
1193     ac_prev=libdir ;;
1194   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1195     libdir=$ac_optarg ;;
1196
1197   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1198   | --libexe | --libex | --libe)
1199     ac_prev=libexecdir ;;
1200   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1201   | --libexe=* | --libex=* | --libe=*)
1202     libexecdir=$ac_optarg ;;
1203
1204   -localedir | --localedir | --localedi | --localed | --locale)
1205     ac_prev=localedir ;;
1206   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1207     localedir=$ac_optarg ;;
1208
1209   -localstatedir | --localstatedir | --localstatedi | --localstated \
1210   | --localstate | --localstat | --localsta | --localst | --locals)
1211     ac_prev=localstatedir ;;
1212   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1213   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1214     localstatedir=$ac_optarg ;;
1215
1216   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1217     ac_prev=mandir ;;
1218   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1219     mandir=$ac_optarg ;;
1220
1221   -nfp | --nfp | --nf)
1222     # Obsolete; use --without-fp.
1223     with_fp=no ;;
1224
1225   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1226   | --no-cr | --no-c | -n)
1227     no_create=yes ;;
1228
1229   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1230   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1231     no_recursion=yes ;;
1232
1233   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1234   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1235   | --oldin | --oldi | --old | --ol | --o)
1236     ac_prev=oldincludedir ;;
1237   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1238   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1239   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1240     oldincludedir=$ac_optarg ;;
1241
1242   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1243     ac_prev=prefix ;;
1244   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1245     prefix=$ac_optarg ;;
1246
1247   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1248   | --program-pre | --program-pr | --program-p)
1249     ac_prev=program_prefix ;;
1250   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1251   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1252     program_prefix=$ac_optarg ;;
1253
1254   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1255   | --program-suf | --program-su | --program-s)
1256     ac_prev=program_suffix ;;
1257   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1258   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1259     program_suffix=$ac_optarg ;;
1260
1261   -program-transform-name | --program-transform-name \
1262   | --program-transform-nam | --program-transform-na \
1263   | --program-transform-n | --program-transform- \
1264   | --program-transform | --program-transfor \
1265   | --program-transfo | --program-transf \
1266   | --program-trans | --program-tran \
1267   | --progr-tra | --program-tr | --program-t)
1268     ac_prev=program_transform_name ;;
1269   -program-transform-name=* | --program-transform-name=* \
1270   | --program-transform-nam=* | --program-transform-na=* \
1271   | --program-transform-n=* | --program-transform-=* \
1272   | --program-transform=* | --program-transfor=* \
1273   | --program-transfo=* | --program-transf=* \
1274   | --program-trans=* | --program-tran=* \
1275   | --progr-tra=* | --program-tr=* | --program-t=*)
1276     program_transform_name=$ac_optarg ;;
1277
1278   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1279     ac_prev=pdfdir ;;
1280   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1281     pdfdir=$ac_optarg ;;
1282
1283   -psdir | --psdir | --psdi | --psd | --ps)
1284     ac_prev=psdir ;;
1285   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1286     psdir=$ac_optarg ;;
1287
1288   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289   | -silent | --silent | --silen | --sile | --sil)
1290     silent=yes ;;
1291
1292   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1293     ac_prev=sbindir ;;
1294   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1295   | --sbi=* | --sb=*)
1296     sbindir=$ac_optarg ;;
1297
1298   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1299   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1300   | --sharedst | --shareds | --shared | --share | --shar \
1301   | --sha | --sh)
1302     ac_prev=sharedstatedir ;;
1303   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1304   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1305   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1306   | --sha=* | --sh=*)
1307     sharedstatedir=$ac_optarg ;;
1308
1309   -site | --site | --sit)
1310     ac_prev=site ;;
1311   -site=* | --site=* | --sit=*)
1312     site=$ac_optarg ;;
1313
1314   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1315     ac_prev=srcdir ;;
1316   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1317     srcdir=$ac_optarg ;;
1318
1319   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1320   | --syscon | --sysco | --sysc | --sys | --sy)
1321     ac_prev=sysconfdir ;;
1322   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1323   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1324     sysconfdir=$ac_optarg ;;
1325
1326   -target | --target | --targe | --targ | --tar | --ta | --t)
1327     ac_prev=target_alias ;;
1328   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1329     target_alias=$ac_optarg ;;
1330
1331   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1332     verbose=yes ;;
1333
1334   -version | --version | --versio | --versi | --vers | -V)
1335     ac_init_version=: ;;
1336
1337   -with-* | --with-*)
1338     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1339     # Reject names that are not valid shell variable names.
1340     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1341       as_fn_error "invalid package name: $ac_useropt"
1342     ac_useropt_orig=$ac_useropt
1343     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1344     case $ac_user_opts in
1345       *"
1346 "with_$ac_useropt"
1347 "*) ;;
1348       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1349          ac_unrecognized_sep=', ';;
1350     esac
1351     eval with_$ac_useropt=\$ac_optarg ;;
1352
1353   -without-* | --without-*)
1354     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1355     # Reject names that are not valid shell variable names.
1356     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1357       as_fn_error "invalid package name: $ac_useropt"
1358     ac_useropt_orig=$ac_useropt
1359     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1360     case $ac_user_opts in
1361       *"
1362 "with_$ac_useropt"
1363 "*) ;;
1364       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1365          ac_unrecognized_sep=', ';;
1366     esac
1367     eval with_$ac_useropt=no ;;
1368
1369   --x)
1370     # Obsolete; use --with-x.
1371     with_x=yes ;;
1372
1373   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1374   | --x-incl | --x-inc | --x-in | --x-i)
1375     ac_prev=x_includes ;;
1376   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1377   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1378     x_includes=$ac_optarg ;;
1379
1380   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1381   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1382     ac_prev=x_libraries ;;
1383   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1384   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1385     x_libraries=$ac_optarg ;;
1386
1387   -*) as_fn_error "unrecognized option: \`$ac_option'
1388 Try \`$0 --help' for more information."
1389     ;;
1390
1391   *=*)
1392     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1393     # Reject names that are not valid shell variable names.
1394     case $ac_envvar in #(
1395       '' | [0-9]* | *[!_$as_cr_alnum]* )
1396       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1397     esac
1398     eval $ac_envvar=\$ac_optarg
1399     export $ac_envvar ;;
1400
1401   *)
1402     # FIXME: should be removed in autoconf 3.0.
1403     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1404     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1405       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1406     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1407     ;;
1408
1409   esac
1410 done
1411
1412 if test -n "$ac_prev"; then
1413   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1414   as_fn_error "missing argument to $ac_option"
1415 fi
1416
1417 if test -n "$ac_unrecognized_opts"; then
1418   case $enable_option_checking in
1419     no) ;;
1420     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1421     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422   esac
1423 fi
1424
1425 # Check all directory arguments for consistency.
1426 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427                 datadir sysconfdir sharedstatedir localstatedir includedir \
1428                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429                 libdir localedir mandir
1430 do
1431   eval ac_val=\$$ac_var
1432   # Remove trailing slashes.
1433   case $ac_val in
1434     */ )
1435       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436       eval $ac_var=\$ac_val;;
1437   esac
1438   # Be sure to have absolute directory names.
1439   case $ac_val in
1440     [\\/$]* | ?:[\\/]* )  continue;;
1441     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442   esac
1443   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1444 done
1445
1446 # There might be people who depend on the old broken behavior: `$host'
1447 # used to hold the argument of --host etc.
1448 # FIXME: To remove some day.
1449 build=$build_alias
1450 host=$host_alias
1451 target=$target_alias
1452
1453 # FIXME: To remove some day.
1454 if test "x$host_alias" != x; then
1455   if test "x$build_alias" = x; then
1456     cross_compiling=maybe
1457     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1458     If a cross compiler is detected then cross compile mode will be used." >&2
1459   elif test "x$build_alias" != "x$host_alias"; then
1460     cross_compiling=yes
1461   fi
1462 fi
1463
1464 ac_tool_prefix=
1465 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1466
1467 test "$silent" = yes && exec 6>/dev/null
1468
1469
1470 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1471 ac_ls_di=`ls -di .` &&
1472 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1473   as_fn_error "working directory cannot be determined"
1474 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1475   as_fn_error "pwd does not report name of working directory"
1476
1477
1478 # Find the source files, if location was not specified.
1479 if test -z "$srcdir"; then
1480   ac_srcdir_defaulted=yes
1481   # Try the directory containing this script, then the parent directory.
1482   ac_confdir=`$as_dirname -- "$as_myself" ||
1483 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1484          X"$as_myself" : 'X\(//\)[^/]' \| \
1485          X"$as_myself" : 'X\(//\)$' \| \
1486          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1487 $as_echo X"$as_myself" |
1488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1489             s//\1/
1490             q
1491           }
1492           /^X\(\/\/\)[^/].*/{
1493             s//\1/
1494             q
1495           }
1496           /^X\(\/\/\)$/{
1497             s//\1/
1498             q
1499           }
1500           /^X\(\/\).*/{
1501             s//\1/
1502             q
1503           }
1504           s/.*/./; q'`
1505   srcdir=$ac_confdir
1506   if test ! -r "$srcdir/$ac_unique_file"; then
1507     srcdir=..
1508   fi
1509 else
1510   ac_srcdir_defaulted=no
1511 fi
1512 if test ! -r "$srcdir/$ac_unique_file"; then
1513   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1514   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1515 fi
1516 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 ac_abs_confdir=`(
1518         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1519         pwd)`
1520 # When building in place, set srcdir=.
1521 if test "$ac_abs_confdir" = "$ac_pwd"; then
1522   srcdir=.
1523 fi
1524 # Remove unnecessary trailing slashes from srcdir.
1525 # Double slashes in file names in object file debugging info
1526 # mess up M-x gdb in Emacs.
1527 case $srcdir in
1528 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1529 esac
1530 for ac_var in $ac_precious_vars; do
1531   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1532   eval ac_env_${ac_var}_value=\$${ac_var}
1533   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1534   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1535 done
1536
1537 #
1538 # Report the --help message.
1539 #
1540 if test "$ac_init_help" = "long"; then
1541   # Omit some internal or obsolete options to make the list less imposing.
1542   # This message is too long to be a string in the A/UX 3.1 sh.
1543   cat <<_ACEOF
1544 \`configure' configures this package to adapt to many kinds of systems.
1545
1546 Usage: $0 [OPTION]... [VAR=VALUE]...
1547
1548 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1549 VAR=VALUE.  See below for descriptions of some of the useful variables.
1550
1551 Defaults for the options are specified in brackets.
1552
1553 Configuration:
1554   -h, --help              display this help and exit
1555       --help=short        display options specific to this package
1556       --help=recursive    display the short help of all the included packages
1557   -V, --version           display version information and exit
1558   -q, --quiet, --silent   do not print \`checking...' messages
1559       --cache-file=FILE   cache test results in FILE [disabled]
1560   -C, --config-cache      alias for \`--cache-file=config.cache'
1561   -n, --no-create         do not create output files
1562       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1563
1564 Installation directories:
1565   --prefix=PREFIX         install architecture-independent files in PREFIX
1566                           [$ac_default_prefix]
1567   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1568                           [PREFIX]
1569
1570 By default, \`make install' will install all the files in
1571 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1572 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1573 for instance \`--prefix=\$HOME'.
1574
1575 For better control, use the options below.
1576
1577 Fine tuning of the installation directories:
1578   --bindir=DIR            user executables [EPREFIX/bin]
1579   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1580   --libexecdir=DIR        program executables [EPREFIX/libexec]
1581   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1582   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1583   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1584   --libdir=DIR            object code libraries [EPREFIX/lib]
1585   --includedir=DIR        C header files [PREFIX/include]
1586   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1587   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1588   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1589   --infodir=DIR           info documentation [DATAROOTDIR/info]
1590   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1591   --mandir=DIR            man documentation [DATAROOTDIR/man]
1592   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1593   --htmldir=DIR           html documentation [DOCDIR]
1594   --dvidir=DIR            dvi documentation [DOCDIR]
1595   --pdfdir=DIR            pdf documentation [DOCDIR]
1596   --psdir=DIR             ps documentation [DOCDIR]
1597 _ACEOF
1598
1599   cat <<\_ACEOF
1600
1601 Program names:
1602   --program-prefix=PREFIX            prepend PREFIX to installed program names
1603   --program-suffix=SUFFIX            append SUFFIX to installed program names
1604   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1605
1606 X features:
1607   --x-includes=DIR    X include files are in DIR
1608   --x-libraries=DIR   X library files are in DIR
1609
1610 System types:
1611   --build=BUILD     configure for building on BUILD [guessed]
1612   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1613   --target=TARGET   configure for building compilers for TARGET [HOST]
1614 _ACEOF
1615 fi
1616
1617 if test -n "$ac_init_help"; then
1618
1619   cat <<\_ACEOF
1620
1621 Optional Features:
1622   --disable-option-checking  ignore unrecognized --enable/--with options
1623   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1624   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1625   --enable-maintainer-mode  enable make rules and dependencies not useful
1626                           (and sometimes confusing) to the casual installer
1627   --enable-plugins        Enable support for plugins (defaults no)
1628   --disable-largefile     omit support for large files
1629   --disable-dependency-tracking  speeds up one-time build
1630   --enable-dependency-tracking   do not reject slow dependency extractors
1631   --enable-targets=TARGETS
1632                           alternative target configurations
1633   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1634   --disable-gdbcli        disable command-line interface (CLI)
1635   --disable-gdbmi         disable machine-interface (MI)
1636   --enable-tui            enable full-screen terminal user interface (TUI)
1637   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1638   --enable-profiling      enable profiling of GDB
1639   --disable-rpath         do not hardcode runtime library paths
1640   --enable-werror         treat compile warnings as errors
1641   --enable-build-warnings enable build-time compiler warnings if gcc is used
1642   --enable-gdb-build-warnings
1643                           enable GDB specific build-time compiler warnings if
1644                           gcc is used
1645   --enable-sim            link gdb with simulator
1646   --enable-multi-ice      build the multi-ice-gdb-server
1647   --enable-gdbserver      automatically build gdbserver (yes/no/auto, default
1648                           is auto)
1649
1650 Optional Packages:
1651   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1652   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1653   --with-separate-debug-dir=PATH
1654                           look for global separate debug info in this path
1655                           [LIBDIR/debug]
1656   --with-gdb-datadir=PATH look for global separate data files in this path
1657                           [DATADIR/gdb]
1658   --with-relocated-sources=PATH
1659                           automatically relocate this path for source files
1660   --with-libunwind        use libunwind frame unwinding support
1661   --with-curses           use the curses library instead of the termcap
1662                           library
1663   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1664   --with-bugurl=URL       Direct users to URL to report a bug
1665   --with-zlib             include zlib support (auto/yes/no) default=auto
1666   --with-libiconv-prefix=DIR
1667                           search for libiconv in DIR/include and DIR/lib
1668   --with-iconv-bin=PATH   specify where to find the iconv program
1669   --with-system-readline  use installed readline library
1670   --with-jit-reader-dir=PATH
1671                           directory to load the JIT readers from
1672   --with-expat            include expat support (auto/yes/no)
1673   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1674   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1675   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1676   --with-python[=PYTHON]  include python support
1677                           (auto/yes/no/<python-program>)
1678   --without-included-regex
1679                           don't use included regex; this is the default on
1680                           systems with version 2 of the GNU C library (use
1681                           with caution on other system)
1682   --with-sysroot[=DIR]    search for usr/lib et al within DIR
1683   --with-system-gdbinit=PATH
1684                           automatically load a system-wide gdbinit file
1685   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1686   --with-tk               directory containing tk configuration (tkConfig.sh)
1687   --with-x                use the X Window System
1688
1689 Some influential environment variables:
1690   CC          C compiler command
1691   CFLAGS      C compiler flags
1692   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1693               nonstandard directory <lib dir>
1694   LIBS        libraries to pass to the linker, e.g. -l<library>
1695   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1696               you have headers in a nonstandard directory <include dir>
1697   CPP         C preprocessor
1698   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1699               the first program found out of: `bison -y', `byacc', `yacc'.
1700   YFLAGS      The list of arguments that will be passed by default to $YACC.
1701               This script will default YFLAGS to the empty string to avoid a
1702               default value of `-d' given by some make applications.
1703   XMKMF       Path to xmkmf, Makefile generator for X Window System
1704
1705 Use these variables to override the choices made by `configure' or to help
1706 it to find libraries and programs with nonstandard names/locations.
1707
1708 Report bugs to the package provider.
1709 _ACEOF
1710 ac_status=$?
1711 fi
1712
1713 if test "$ac_init_help" = "recursive"; then
1714   # If there are subdirs, report their specific --help.
1715   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1716     test -d "$ac_dir" ||
1717       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1718       continue
1719     ac_builddir=.
1720
1721 case "$ac_dir" in
1722 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723 *)
1724   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1725   # A ".." for each directory in $ac_dir_suffix.
1726   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1727   case $ac_top_builddir_sub in
1728   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1730   esac ;;
1731 esac
1732 ac_abs_top_builddir=$ac_pwd
1733 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1734 # for backward compatibility:
1735 ac_top_builddir=$ac_top_build_prefix
1736
1737 case $srcdir in
1738   .)  # We are building in place.
1739     ac_srcdir=.
1740     ac_top_srcdir=$ac_top_builddir_sub
1741     ac_abs_top_srcdir=$ac_pwd ;;
1742   [\\/]* | ?:[\\/]* )  # Absolute name.
1743     ac_srcdir=$srcdir$ac_dir_suffix;
1744     ac_top_srcdir=$srcdir
1745     ac_abs_top_srcdir=$srcdir ;;
1746   *) # Relative name.
1747     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1748     ac_top_srcdir=$ac_top_build_prefix$srcdir
1749     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1750 esac
1751 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1752
1753     cd "$ac_dir" || { ac_status=$?; continue; }
1754     # Check for guested configure.
1755     if test -f "$ac_srcdir/configure.gnu"; then
1756       echo &&
1757       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1758     elif test -f "$ac_srcdir/configure"; then
1759       echo &&
1760       $SHELL "$ac_srcdir/configure" --help=recursive
1761     else
1762       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1763     fi || ac_status=$?
1764     cd "$ac_pwd" || { ac_status=$?; break; }
1765   done
1766 fi
1767
1768 test -n "$ac_init_help" && exit $ac_status
1769 if $ac_init_version; then
1770   cat <<\_ACEOF
1771 configure
1772 generated by GNU Autoconf 2.64
1773
1774 Copyright (C) 2009 Free Software Foundation, Inc.
1775 This configure script is free software; the Free Software Foundation
1776 gives unlimited permission to copy, distribute and modify it.
1777 _ACEOF
1778   exit
1779 fi
1780
1781 ## ------------------------ ##
1782 ## Autoconf initialization. ##
1783 ## ------------------------ ##
1784
1785 # ac_fn_c_try_compile LINENO
1786 # --------------------------
1787 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_compile ()
1789 {
1790   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791   rm -f conftest.$ac_objext
1792   if { { ac_try="$ac_compile"
1793 case "(($ac_try" in
1794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795   *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799   (eval "$ac_compile") 2>conftest.err
1800   ac_status=$?
1801   if test -s conftest.err; then
1802     grep -v '^ *+' conftest.err >conftest.er1
1803     cat conftest.er1 >&5
1804     mv -f conftest.er1 conftest.err
1805   fi
1806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807   test $ac_status = 0; } && {
1808          test -z "$ac_c_werror_flag" ||
1809          test ! -s conftest.err
1810        } && test -s conftest.$ac_objext; then :
1811   ac_retval=0
1812 else
1813   $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816         ac_retval=1
1817 fi
1818   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819   return $ac_retval
1820
1821 } # ac_fn_c_try_compile
1822
1823 # ac_fn_c_try_cpp LINENO
1824 # ----------------------
1825 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_c_try_cpp ()
1827 {
1828   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829   if { { ac_try="$ac_cpp conftest.$ac_ext"
1830 case "(($ac_try" in
1831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832   *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1837   ac_status=$?
1838   if test -s conftest.err; then
1839     grep -v '^ *+' conftest.err >conftest.er1
1840     cat conftest.er1 >&5
1841     mv -f conftest.er1 conftest.err
1842   fi
1843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844   test $ac_status = 0; } >/dev/null && {
1845          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1846          test ! -s conftest.err
1847        }; then :
1848   ac_retval=0
1849 else
1850   $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853     ac_retval=1
1854 fi
1855   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856   return $ac_retval
1857
1858 } # ac_fn_c_try_cpp
1859
1860 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1861 # -------------------------------------------------------
1862 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1863 # the include files in INCLUDES and setting the cache variable VAR
1864 # accordingly.
1865 ac_fn_c_check_header_mongrel ()
1866 {
1867   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1872   $as_echo_n "(cached) " >&6
1873 fi
1874 eval ac_res=\$$3
1875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 else
1878   # Is the header compilable?
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1880 $as_echo_n "checking $2 usability... " >&6; }
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h.  */
1883 $4
1884 #include <$2>
1885 _ACEOF
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887   ac_header_compiler=yes
1888 else
1889   ac_header_compiler=no
1890 fi
1891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1893 $as_echo "$ac_header_compiler" >&6; }
1894
1895 # Is the header present?
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1897 $as_echo_n "checking $2 presence... " >&6; }
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h.  */
1900 #include <$2>
1901 _ACEOF
1902 if ac_fn_c_try_cpp "$LINENO"; then :
1903   ac_header_preproc=yes
1904 else
1905   ac_header_preproc=no
1906 fi
1907 rm -f conftest.err conftest.$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1909 $as_echo "$ac_header_preproc" >&6; }
1910
1911 # So?  What about this header?
1912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1913   yes:no: )
1914     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1915 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1916     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1917 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918     ;;
1919   no:yes:* )
1920     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1921 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1922     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1923 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1924     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1925 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1927 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1928     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1929 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930     ;;
1931 esac
1932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1935   $as_echo_n "(cached) " >&6
1936 else
1937   eval "$3=\$ac_header_compiler"
1938 fi
1939 eval ac_res=\$$3
1940                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 fi
1943   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944
1945 } # ac_fn_c_check_header_mongrel
1946
1947 # ac_fn_c_try_run LINENO
1948 # ----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1950 # that executables *can* be run.
1951 ac_fn_c_try_run ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   if { { ac_try="$ac_link"
1955 case "(($ac_try" in
1956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957   *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961   (eval "$ac_link") 2>&5
1962   ac_status=$?
1963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1965   { { case "(($ac_try" in
1966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967   *) ac_try_echo=$ac_try;;
1968 esac
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971   (eval "$ac_try") 2>&5
1972   ac_status=$?
1973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974   test $ac_status = 0; }; }; then :
1975   ac_retval=0
1976 else
1977   $as_echo "$as_me: program exited with status $ac_status" >&5
1978        $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981        ac_retval=$ac_status
1982 fi
1983   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985   return $ac_retval
1986
1987 } # ac_fn_c_try_run
1988
1989 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1990 # -------------------------------------------------------
1991 # Tests whether HEADER exists and can be compiled using the include files in
1992 # INCLUDES, setting the cache variable VAR accordingly.
1993 ac_fn_c_check_header_compile ()
1994 {
1995   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1999   $as_echo_n "(cached) " >&6
2000 else
2001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 $4
2004 #include <$2>
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007   eval "$3=yes"
2008 else
2009   eval "$3=no"
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 fi
2013 eval ac_res=\$$3
2014                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2016   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017
2018 } # ac_fn_c_check_header_compile
2019
2020 # ac_fn_c_try_link LINENO
2021 # -----------------------
2022 # Try to link conftest.$ac_ext, and return whether this succeeded.
2023 ac_fn_c_try_link ()
2024 {
2025   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026   rm -f conftest.$ac_objext conftest$ac_exeext
2027   if { { ac_try="$ac_link"
2028 case "(($ac_try" in
2029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030   *) ac_try_echo=$ac_try;;
2031 esac
2032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033 $as_echo "$ac_try_echo"; } >&5
2034   (eval "$ac_link") 2>conftest.err
2035   ac_status=$?
2036   if test -s conftest.err; then
2037     grep -v '^ *+' conftest.err >conftest.er1
2038     cat conftest.er1 >&5
2039     mv -f conftest.er1 conftest.err
2040   fi
2041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042   test $ac_status = 0; } && {
2043          test -z "$ac_c_werror_flag" ||
2044          test ! -s conftest.err
2045        } && test -s conftest$ac_exeext && {
2046          test "$cross_compiling" = yes ||
2047          $as_test_x conftest$ac_exeext
2048        }; then :
2049   ac_retval=0
2050 else
2051   $as_echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054         ac_retval=1
2055 fi
2056   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2057   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2058   # interfere with the next link command; also delete a directory that is
2059   # left behind by Apple's compiler.  We do this before executing the actions.
2060   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062   return $ac_retval
2063
2064 } # ac_fn_c_try_link
2065
2066 # ac_fn_c_check_func LINENO FUNC VAR
2067 # ----------------------------------
2068 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2069 ac_fn_c_check_func ()
2070 {
2071   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2075   $as_echo_n "(cached) " >&6
2076 else
2077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h.  */
2079 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2081 #define $2 innocuous_$2
2082
2083 /* System header to define __stub macros and hopefully few prototypes,
2084     which can conflict with char $2 (); below.
2085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2086     <limits.h> exists even on freestanding compilers.  */
2087
2088 #ifdef __STDC__
2089 # include <limits.h>
2090 #else
2091 # include <assert.h>
2092 #endif
2093
2094 #undef $2
2095
2096 /* Override any GCC internal prototype to avoid an error.
2097    Use char because int might match the return type of a GCC
2098    builtin and then its argument prototype would still apply.  */
2099 #ifdef __cplusplus
2100 extern "C"
2101 #endif
2102 char $2 ();
2103 /* The GNU C library defines this for functions which it implements
2104     to always fail with ENOSYS.  Some functions are actually named
2105     something starting with __ and the normal name is an alias.  */
2106 #if defined __stub_$2 || defined __stub___$2
2107 choke me
2108 #endif
2109
2110 int
2111 main ()
2112 {
2113 return $2 ();
2114   ;
2115   return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_link "$LINENO"; then :
2119   eval "$3=yes"
2120 else
2121   eval "$3=no"
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext \
2124     conftest$ac_exeext conftest.$ac_ext
2125 fi
2126 eval ac_res=\$$3
2127                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130
2131 } # ac_fn_c_check_func
2132
2133 # ac_fn_c_check_decl LINENO SYMBOL VAR
2134 # ------------------------------------
2135 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2136 ac_fn_c_check_decl ()
2137 {
2138   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139   as_decl_name=`echo $2|sed 's/ *(.*//'`
2140   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2142 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2143 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2144   $as_echo_n "(cached) " >&6
2145 else
2146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h.  */
2148 $4
2149 int
2150 main ()
2151 {
2152 #ifndef $as_decl_name
2153 #ifdef __cplusplus
2154   (void) $as_decl_use;
2155 #else
2156   (void) $as_decl_name;
2157 #endif
2158 #endif
2159
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165   eval "$3=yes"
2166 else
2167   eval "$3=no"
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 fi
2171 eval ac_res=\$$3
2172                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2174   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175
2176 } # ac_fn_c_check_decl
2177
2178 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2179 # --------------------------------------------
2180 # Tries to find the compile-time value of EXPR in a program that includes
2181 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2182 # computed
2183 ac_fn_c_compute_int ()
2184 {
2185   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186   if test "$cross_compiling" = yes; then
2187     # Depending upon the size, compute the lo and hi bounds.
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h.  */
2190 $4
2191 int
2192 main ()
2193 {
2194 static int test_array [1 - 2 * !(($2) >= 0)];
2195 test_array [0] = 0
2196
2197   ;
2198   return 0;
2199 }
2200 _ACEOF
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202   ac_lo=0 ac_mid=0
2203   while :; do
2204     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h.  */
2206 $4
2207 int
2208 main ()
2209 {
2210 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2211 test_array [0] = 0
2212
2213   ;
2214   return 0;
2215 }
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218   ac_hi=$ac_mid; break
2219 else
2220   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2221                         if test $ac_lo -le $ac_mid; then
2222                           ac_lo= ac_hi=
2223                           break
2224                         fi
2225                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2226 fi
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228   done
2229 else
2230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h.  */
2232 $4
2233 int
2234 main ()
2235 {
2236 static int test_array [1 - 2 * !(($2) < 0)];
2237 test_array [0] = 0
2238
2239   ;
2240   return 0;
2241 }
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244   ac_hi=-1 ac_mid=-1
2245   while :; do
2246     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h.  */
2248 $4
2249 int
2250 main ()
2251 {
2252 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2253 test_array [0] = 0
2254
2255   ;
2256   return 0;
2257 }
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260   ac_lo=$ac_mid; break
2261 else
2262   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2263                         if test $ac_mid -le $ac_hi; then
2264                           ac_lo= ac_hi=
2265                           break
2266                         fi
2267                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270   done
2271 else
2272   ac_lo= ac_hi=
2273 fi
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 fi
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 # Binary search between lo and hi bounds.
2278 while test "x$ac_lo" != "x$ac_hi"; do
2279   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h.  */
2282 $4
2283 int
2284 main ()
2285 {
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2287 test_array [0] = 0
2288
2289   ;
2290   return 0;
2291 }
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294   ac_hi=$ac_mid
2295 else
2296   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 done
2300 case $ac_lo in #((
2301 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2302 '') ac_retval=1 ;;
2303 esac
2304   else
2305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h.  */
2307 $4
2308 static long int longval () { return $2; }
2309 static unsigned long int ulongval () { return $2; }
2310 #include <stdio.h>
2311 #include <stdlib.h>
2312 int
2313 main ()
2314 {
2315
2316   FILE *f = fopen ("conftest.val", "w");
2317   if (! f)
2318     return 1;
2319   if (($2) < 0)
2320     {
2321       long int i = longval ();
2322       if (i != ($2))
2323         return 1;
2324       fprintf (f, "%ld", i);
2325     }
2326   else
2327     {
2328       unsigned long int i = ulongval ();
2329       if (i != ($2))
2330         return 1;
2331       fprintf (f, "%lu", i);
2332     }
2333   /* Do not output a trailing newline, as this causes \r\n confusion
2334      on some platforms.  */
2335   return ferror (f) || fclose (f) != 0;
2336
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_run "$LINENO"; then :
2342   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2343 else
2344   ac_retval=1
2345 fi
2346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2347   conftest.$ac_objext conftest.beam conftest.$ac_ext
2348 rm -f conftest.val
2349
2350   fi
2351   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2352   return $ac_retval
2353
2354 } # ac_fn_c_compute_int
2355
2356 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2357 # ----------------------------------------------------
2358 # Tries to find if the field MEMBER exists in type AGGR, after including
2359 # INCLUDES, setting cache variable VAR accordingly.
2360 ac_fn_c_check_member ()
2361 {
2362   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2364 $as_echo_n "checking for $2.$3... " >&6; }
2365 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2366   $as_echo_n "(cached) " >&6
2367 else
2368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h.  */
2370 $5
2371 int
2372 main ()
2373 {
2374 static $2 ac_aggr;
2375 if (ac_aggr.$3)
2376 return 0;
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 if ac_fn_c_try_compile "$LINENO"; then :
2382   eval "$4=yes"
2383 else
2384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h.  */
2386 $5
2387 int
2388 main ()
2389 {
2390 static $2 ac_aggr;
2391 if (sizeof ac_aggr.$3)
2392 return 0;
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 if ac_fn_c_try_compile "$LINENO"; then :
2398   eval "$4=yes"
2399 else
2400   eval "$4=no"
2401 fi
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 fi
2406 eval ac_res=\$$4
2407                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410
2411 } # ac_fn_c_check_member
2412
2413 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2414 # -------------------------------------------
2415 # Tests whether TYPE exists after having included INCLUDES, setting cache
2416 # variable VAR accordingly.
2417 ac_fn_c_check_type ()
2418 {
2419   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2421 $as_echo_n "checking for $2... " >&6; }
2422 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2423   $as_echo_n "(cached) " >&6
2424 else
2425   eval "$3=no"
2426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h.  */
2428 $4
2429 int
2430 main ()
2431 {
2432 if (sizeof ($2))
2433          return 0;
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 if ac_fn_c_try_compile "$LINENO"; then :
2439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h.  */
2441 $4
2442 int
2443 main ()
2444 {
2445 if (sizeof (($2)))
2446             return 0;
2447   ;
2448   return 0;
2449 }
2450 _ACEOF
2451 if ac_fn_c_try_compile "$LINENO"; then :
2452
2453 else
2454   eval "$3=yes"
2455 fi
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 fi
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 fi
2460 eval ac_res=\$$3
2461                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2462 $as_echo "$ac_res" >&6; }
2463   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2464
2465 } # ac_fn_c_check_type
2466 cat >config.log <<_ACEOF
2467 This file contains any messages produced by compilers while
2468 running configure, to aid debugging if configure makes a mistake.
2469
2470 It was created by $as_me, which was
2471 generated by GNU Autoconf 2.64.  Invocation command line was
2472
2473   $ $0 $@
2474
2475 _ACEOF
2476 exec 5>>config.log
2477 {
2478 cat <<_ASUNAME
2479 ## --------- ##
2480 ## Platform. ##
2481 ## --------- ##
2482
2483 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2484 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2485 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2486 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2487 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2488
2489 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2490 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2491
2492 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2493 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2494 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2495 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2496 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2497 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2498 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2499
2500 _ASUNAME
2501
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505   IFS=$as_save_IFS
2506   test -z "$as_dir" && as_dir=.
2507     $as_echo "PATH: $as_dir"
2508   done
2509 IFS=$as_save_IFS
2510
2511 } >&5
2512
2513 cat >&5 <<_ACEOF
2514
2515
2516 ## ----------- ##
2517 ## Core tests. ##
2518 ## ----------- ##
2519
2520 _ACEOF
2521
2522
2523 # Keep a trace of the command line.
2524 # Strip out --no-create and --no-recursion so they do not pile up.
2525 # Strip out --silent because we don't want to record it for future runs.
2526 # Also quote any args containing shell meta-characters.
2527 # Make two passes to allow for proper duplicate-argument suppression.
2528 ac_configure_args=
2529 ac_configure_args0=
2530 ac_configure_args1=
2531 ac_must_keep_next=false
2532 for ac_pass in 1 2
2533 do
2534   for ac_arg
2535   do
2536     case $ac_arg in
2537     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2538     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2539     | -silent | --silent | --silen | --sile | --sil)
2540       continue ;;
2541     *\'*)
2542       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2543     esac
2544     case $ac_pass in
2545     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2546     2)
2547       as_fn_append ac_configure_args1 " '$ac_arg'"
2548       if test $ac_must_keep_next = true; then
2549         ac_must_keep_next=false # Got value, back to normal.
2550       else
2551         case $ac_arg in
2552           *=* | --config-cache | -C | -disable-* | --disable-* \
2553           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2554           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2555           | -with-* | --with-* | -without-* | --without-* | --x)
2556             case "$ac_configure_args0 " in
2557               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2558             esac
2559             ;;
2560           -* ) ac_must_keep_next=true ;;
2561         esac
2562       fi
2563       as_fn_append ac_configure_args " '$ac_arg'"
2564       ;;
2565     esac
2566   done
2567 done
2568 { ac_configure_args0=; unset ac_configure_args0;}
2569 { ac_configure_args1=; unset ac_configure_args1;}
2570
2571 # When interrupted or exit'd, cleanup temporary files, and complete
2572 # config.log.  We remove comments because anyway the quotes in there
2573 # would cause problems or look ugly.
2574 # WARNING: Use '\'' to represent an apostrophe within the trap.
2575 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2576 trap 'exit_status=$?
2577   # Save into config.log some information that might help in debugging.
2578   {
2579     echo
2580
2581     cat <<\_ASBOX
2582 ## ---------------- ##
2583 ## Cache variables. ##
2584 ## ---------------- ##
2585 _ASBOX
2586     echo
2587     # The following way of writing the cache mishandles newlines in values,
2588 (
2589   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2590     eval ac_val=\$$ac_var
2591     case $ac_val in #(
2592     *${as_nl}*)
2593       case $ac_var in #(
2594       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2595 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2596       esac
2597       case $ac_var in #(
2598       _ | IFS | as_nl) ;; #(
2599       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2600       *) { eval $ac_var=; unset $ac_var;} ;;
2601       esac ;;
2602     esac
2603   done
2604   (set) 2>&1 |
2605     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2606     *${as_nl}ac_space=\ *)
2607       sed -n \
2608         "s/'\''/'\''\\\\'\'''\''/g;
2609           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2610       ;; #(
2611     *)
2612       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2613       ;;
2614     esac |
2615     sort
2616 )
2617     echo
2618
2619     cat <<\_ASBOX
2620 ## ----------------- ##
2621 ## Output variables. ##
2622 ## ----------------- ##
2623 _ASBOX
2624     echo
2625     for ac_var in $ac_subst_vars
2626     do
2627       eval ac_val=\$$ac_var
2628       case $ac_val in
2629       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2630       esac
2631       $as_echo "$ac_var='\''$ac_val'\''"
2632     done | sort
2633     echo
2634
2635     if test -n "$ac_subst_files"; then
2636       cat <<\_ASBOX
2637 ## ------------------- ##
2638 ## File substitutions. ##
2639 ## ------------------- ##
2640 _ASBOX
2641       echo
2642       for ac_var in $ac_subst_files
2643       do
2644         eval ac_val=\$$ac_var
2645         case $ac_val in
2646         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2647         esac
2648         $as_echo "$ac_var='\''$ac_val'\''"
2649       done | sort
2650       echo
2651     fi
2652
2653     if test -s confdefs.h; then
2654       cat <<\_ASBOX
2655 ## ----------- ##
2656 ## confdefs.h. ##
2657 ## ----------- ##
2658 _ASBOX
2659       echo
2660       cat confdefs.h
2661       echo
2662     fi
2663     test "$ac_signal" != 0 &&
2664       $as_echo "$as_me: caught signal $ac_signal"
2665     $as_echo "$as_me: exit $exit_status"
2666   } >&5
2667   rm -f core *.core core.conftest.* &&
2668     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2669     exit $exit_status
2670 ' 0
2671 for ac_signal in 1 2 13 15; do
2672   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2673 done
2674 ac_signal=0
2675
2676 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2677 rm -f -r conftest* confdefs.h
2678
2679 $as_echo "/* confdefs.h */" > confdefs.h
2680
2681 # Predefined preprocessor variables.
2682
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_NAME "$PACKAGE_NAME"
2685 _ACEOF
2686
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2689 _ACEOF
2690
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2693 _ACEOF
2694
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_STRING "$PACKAGE_STRING"
2697 _ACEOF
2698
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2701 _ACEOF
2702
2703 cat >>confdefs.h <<_ACEOF
2704 #define PACKAGE_URL "$PACKAGE_URL"
2705 _ACEOF
2706
2707
2708 # Let the site file select an alternate cache file if it wants to.
2709 # Prefer an explicitly selected file to automatically selected ones.
2710 ac_site_file1=NONE
2711 ac_site_file2=NONE
2712 if test -n "$CONFIG_SITE"; then
2713   ac_site_file1=$CONFIG_SITE
2714 elif test "x$prefix" != xNONE; then
2715   ac_site_file1=$prefix/share/config.site
2716   ac_site_file2=$prefix/etc/config.site
2717 else
2718   ac_site_file1=$ac_default_prefix/share/config.site
2719   ac_site_file2=$ac_default_prefix/etc/config.site
2720 fi
2721 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2722 do
2723   test "x$ac_site_file" = xNONE && continue
2724   if test -r "$ac_site_file"; then
2725     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2726 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2727     sed 's/^/| /' "$ac_site_file" >&5
2728     . "$ac_site_file"
2729   fi
2730 done
2731
2732 if test -r "$cache_file"; then
2733   # Some versions of bash will fail to source /dev/null (special
2734   # files actually), so we avoid doing that.
2735   if test -f "$cache_file"; then
2736     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2737 $as_echo "$as_me: loading cache $cache_file" >&6;}
2738     case $cache_file in
2739       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2740       *)                      . "./$cache_file";;
2741     esac
2742   fi
2743 else
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2745 $as_echo "$as_me: creating cache $cache_file" >&6;}
2746   >$cache_file
2747 fi
2748
2749 gl_header_list="$gl_header_list sys/mman.h"
2750 gl_func_list="$gl_func_list mprotect"
2751 gl_func_list="$gl_func_list memchr"
2752 gl_header_list="$gl_header_list stddef.h"
2753 gl_header_list="$gl_header_list stdint.h"
2754 gl_header_list="$gl_header_list wchar.h"
2755 gl_header_list="$gl_header_list string.h"
2756 # Check that the precious variables saved in the cache have kept the same
2757 # value.
2758 ac_cache_corrupted=false
2759 for ac_var in $ac_precious_vars; do
2760   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2761   eval ac_new_set=\$ac_env_${ac_var}_set
2762   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2763   eval ac_new_val=\$ac_env_${ac_var}_value
2764   case $ac_old_set,$ac_new_set in
2765     set,)
2766       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2767 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2768       ac_cache_corrupted=: ;;
2769     ,set)
2770       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2771 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2772       ac_cache_corrupted=: ;;
2773     ,);;
2774     *)
2775       if test "x$ac_old_val" != "x$ac_new_val"; then
2776         # differences in whitespace do not lead to failure.
2777         ac_old_val_w=`echo x $ac_old_val`
2778         ac_new_val_w=`echo x $ac_new_val`
2779         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2780           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2781 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2782           ac_cache_corrupted=:
2783         else
2784           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2785 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2786           eval $ac_var=\$ac_old_val
2787         fi
2788         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2789 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2790         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2791 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2792       fi;;
2793   esac
2794   # Pass precious variables to config.status.
2795   if test "$ac_new_set" = set; then
2796     case $ac_new_val in
2797     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2798     *) ac_arg=$ac_var=$ac_new_val ;;
2799     esac
2800     case " $ac_configure_args " in
2801       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2802       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2803     esac
2804   fi
2805 done
2806 if $ac_cache_corrupted; then
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2810 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2811   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2812 fi
2813 ## -------------------- ##
2814 ## Main body of script. ##
2815 ## -------------------- ##
2816
2817 ac_ext=c
2818 ac_cpp='$CPP $CPPFLAGS'
2819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822
2823
2824
2825
2826
2827 ac_config_headers="$ac_config_headers config.h:config.in"
2828
2829
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2831 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2832     # Check whether --enable-maintainer-mode was given.
2833 if test "${enable_maintainer_mode+set}" = set; then :
2834   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2835 else
2836   USE_MAINTAINER_MODE=no
2837 fi
2838
2839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2840 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2841    if test $USE_MAINTAINER_MODE = yes; then
2842   MAINTAINER_MODE_TRUE=
2843   MAINTAINER_MODE_FALSE='#'
2844 else
2845   MAINTAINER_MODE_TRUE='#'
2846   MAINTAINER_MODE_FALSE=
2847 fi
2848
2849   MAINT=$MAINTAINER_MODE_TRUE
2850
2851
2852
2853 ac_ext=c
2854 ac_cpp='$CPP $CPPFLAGS'
2855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2858 if test -n "$ac_tool_prefix"; then
2859   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2860 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if test "${ac_cv_prog_CC+set}" = set; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   if test -n "$CC"; then
2867   ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872   IFS=$as_save_IFS
2873   test -z "$as_dir" && as_dir=.
2874     for ac_exec_ext in '' $ac_executable_extensions; do
2875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878     break 2
2879   fi
2880 done
2881   done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 CC=$ac_cv_prog_CC
2887 if test -n "$CC"; then
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889 $as_echo "$CC" >&6; }
2890 else
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896 fi
2897 if test -z "$ac_cv_prog_CC"; then
2898   ac_ct_CC=$CC
2899   # Extract the first word of "gcc", so it can be a program name with args.
2900 set dummy gcc; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2904   $as_echo_n "(cached) " >&6
2905 else
2906   if test -n "$ac_ct_CC"; then
2907   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912   IFS=$as_save_IFS
2913   test -z "$as_dir" && as_dir=.
2914     for ac_exec_ext in '' $ac_executable_extensions; do
2915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916     ac_cv_prog_ac_ct_CC="gcc"
2917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918     break 2
2919   fi
2920 done
2921   done
2922 IFS=$as_save_IFS
2923
2924 fi
2925 fi
2926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2927 if test -n "$ac_ct_CC"; then
2928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2929 $as_echo "$ac_ct_CC" >&6; }
2930 else
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2933 fi
2934
2935   if test "x$ac_ct_CC" = x; then
2936     CC=""
2937   else
2938     case $cross_compiling:$ac_tool_warned in
2939 yes:)
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2942 ac_tool_warned=yes ;;
2943 esac
2944     CC=$ac_ct_CC
2945   fi
2946 else
2947   CC="$ac_cv_prog_CC"
2948 fi
2949
2950 if test -z "$CC"; then
2951           if test -n "$ac_tool_prefix"; then
2952     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2953 set dummy ${ac_tool_prefix}cc; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if test "${ac_cv_prog_CC+set}" = set; then :
2957   $as_echo_n "(cached) " >&6
2958 else
2959   if test -n "$CC"; then
2960   ac_cv_prog_CC="$CC" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965   IFS=$as_save_IFS
2966   test -z "$as_dir" && as_dir=.
2967     for ac_exec_ext in '' $ac_executable_extensions; do
2968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969     ac_cv_prog_CC="${ac_tool_prefix}cc"
2970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971     break 2
2972   fi
2973 done
2974   done
2975 IFS=$as_save_IFS
2976
2977 fi
2978 fi
2979 CC=$ac_cv_prog_CC
2980 if test -n "$CC"; then
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2982 $as_echo "$CC" >&6; }
2983 else
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2986 fi
2987
2988
2989   fi
2990 fi
2991 if test -z "$CC"; then
2992   # Extract the first word of "cc", so it can be a program name with args.
2993 set dummy cc; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if test "${ac_cv_prog_CC+set}" = set; then :
2997   $as_echo_n "(cached) " >&6
2998 else
2999   if test -n "$CC"; then
3000   ac_cv_prog_CC="$CC" # Let the user override the test.
3001 else
3002   ac_prog_rejected=no
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006   IFS=$as_save_IFS
3007   test -z "$as_dir" && as_dir=.
3008     for ac_exec_ext in '' $ac_executable_extensions; do
3009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3011        ac_prog_rejected=yes
3012        continue
3013      fi
3014     ac_cv_prog_CC="cc"
3015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016     break 2
3017   fi
3018 done
3019   done
3020 IFS=$as_save_IFS
3021
3022 if test $ac_prog_rejected = yes; then
3023   # We found a bogon in the path, so make sure we never use it.
3024   set dummy $ac_cv_prog_CC
3025   shift
3026   if test $# != 0; then
3027     # We chose a different compiler from the bogus one.
3028     # However, it has the same basename, so the bogon will be chosen
3029     # first if we set CC to just the basename; use the full file name.
3030     shift
3031     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3032   fi
3033 fi
3034 fi
3035 fi
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3040 else
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 fi
3044
3045
3046 fi
3047 if test -z "$CC"; then
3048   if test -n "$ac_tool_prefix"; then
3049   for ac_prog in cl.exe
3050   do
3051     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if test "${ac_cv_prog_CC+set}" = set; then :
3056   $as_echo_n "(cached) " >&6
3057 else
3058   if test -n "$CC"; then
3059   ac_cv_prog_CC="$CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064   IFS=$as_save_IFS
3065   test -z "$as_dir" && as_dir=.
3066     for ac_exec_ext in '' $ac_executable_extensions; do
3067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070     break 2
3071   fi
3072 done
3073   done
3074 IFS=$as_save_IFS
3075
3076 fi
3077 fi
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3082 else
3083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087
3088     test -n "$CC" && break
3089   done
3090 fi
3091 if test -z "$CC"; then
3092   ac_ct_CC=$CC
3093   for ac_prog in cl.exe
3094 do
3095   # Extract the first word of "$ac_prog", so it can be a program name with args.
3096 set dummy $ac_prog; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test -n "$ac_ct_CC"; then
3103   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110     for ac_exec_ext in '' $ac_executable_extensions; do
3111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112     ac_cv_prog_ac_ct_CC="$ac_prog"
3113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114     break 2
3115   fi
3116 done
3117   done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3123 if test -n "$ac_ct_CC"; then
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3125 $as_echo "$ac_ct_CC" >&6; }
3126 else
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132   test -n "$ac_ct_CC" && break
3133 done
3134
3135   if test "x$ac_ct_CC" = x; then
3136     CC=""
3137   else
3138     case $cross_compiling:$ac_tool_warned in
3139 yes:)
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3142 ac_tool_warned=yes ;;
3143 esac
3144     CC=$ac_ct_CC
3145   fi
3146 fi
3147
3148 fi
3149
3150
3151 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error "no acceptable C compiler found in \$PATH
3154 See \`config.log' for more details." "$LINENO" 5; }
3155
3156 # Provide some information about the compiler.
3157 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3158 set X $ac_compile
3159 ac_compiler=$2
3160 for ac_option in --version -v -V -qversion; do
3161   { { ac_try="$ac_compiler $ac_option >&5"
3162 case "(($ac_try" in
3163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164   *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3169   ac_status=$?
3170   if test -s conftest.err; then
3171     sed '10a\
3172 ... rest of stderr output deleted ...
3173          10q' conftest.err >conftest.er1
3174     cat conftest.er1 >&5
3175     rm -f conftest.er1 conftest.err
3176   fi
3177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178   test $ac_status = 0; }
3179 done
3180
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h.  */
3183
3184 int
3185 main ()
3186 {
3187
3188   ;
3189   return 0;
3190 }
3191 _ACEOF
3192 ac_clean_files_save=$ac_clean_files
3193 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3194 # Try to create an executable without -o first, disregard a.out.
3195 # It will help us diagnose broken compilers, and finding out an intuition
3196 # of exeext.
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3198 $as_echo_n "checking for C compiler default output file name... " >&6; }
3199 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3200
3201 # The possible output files:
3202 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3203
3204 ac_rmfiles=
3205 for ac_file in $ac_files
3206 do
3207   case $ac_file in
3208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3209     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3210   esac
3211 done
3212 rm -f $ac_rmfiles
3213
3214 if { { ac_try="$ac_link_default"
3215 case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221   (eval "$ac_link_default") 2>&5
3222   ac_status=$?
3223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224   test $ac_status = 0; }; then :
3225   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3226 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3227 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3228 # so that the user can short-circuit this test for compilers unknown to
3229 # Autoconf.
3230 for ac_file in $ac_files ''
3231 do
3232   test -f "$ac_file" || continue
3233   case $ac_file in
3234     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3235         ;;
3236     [ab].out )
3237         # We found the default executable, but exeext='' is most
3238         # certainly right.
3239         break;;
3240     *.* )
3241         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3242         then :; else
3243            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3244         fi
3245         # We set ac_cv_exeext here because the later test for it is not
3246         # safe: cross compilers may not add the suffix if given an `-o'
3247         # argument, so we may need to know it at that point already.
3248         # Even if this section looks crufty: it has the advantage of
3249         # actually working.
3250         break;;
3251     * )
3252         break;;
3253   esac
3254 done
3255 test "$ac_cv_exeext" = no && ac_cv_exeext=
3256
3257 else
3258   ac_file=''
3259 fi
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3261 $as_echo "$ac_file" >&6; }
3262 if test -z "$ac_file"; then :
3263   $as_echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 { as_fn_set_status 77
3269 as_fn_error "C compiler cannot create executables
3270 See \`config.log' for more details." "$LINENO" 5; }; }
3271 fi
3272 ac_exeext=$ac_cv_exeext
3273
3274 # Check that the compiler produces executables we can run.  If not, either
3275 # the compiler is broken, or we cross compile.
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3277 $as_echo_n "checking whether the C compiler works... " >&6; }
3278 # If not cross compiling, check that we can run a simple program.
3279 if test "$cross_compiling" != yes; then
3280   if { ac_try='./$ac_file'
3281   { { case "(($ac_try" in
3282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283   *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287   (eval "$ac_try") 2>&5
3288   ac_status=$?
3289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290   test $ac_status = 0; }; }; then
3291     cross_compiling=no
3292   else
3293     if test "$cross_compiling" = maybe; then
3294         cross_compiling=yes
3295     else
3296         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error "cannot run C compiled programs.
3299 If you meant to cross compile, use \`--host'.
3300 See \`config.log' for more details." "$LINENO" 5; }
3301     fi
3302   fi
3303 fi
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305 $as_echo "yes" >&6; }
3306
3307 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3308 ac_clean_files=$ac_clean_files_save
3309 # Check that the compiler produces executables we can run.  If not, either
3310 # the compiler is broken, or we cross compile.
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3312 $as_echo_n "checking whether we are cross compiling... " >&6; }
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3314 $as_echo "$cross_compiling" >&6; }
3315
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3317 $as_echo_n "checking for suffix of executables... " >&6; }
3318 if { { ac_try="$ac_link"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325   (eval "$ac_link") 2>&5
3326   ac_status=$?
3327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328   test $ac_status = 0; }; then :
3329   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3330 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3331 # work properly (i.e., refer to `conftest.exe'), while it won't with
3332 # `rm'.
3333 for ac_file in conftest.exe conftest conftest.*; do
3334   test -f "$ac_file" || continue
3335   case $ac_file in
3336     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3337     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338           break;;
3339     * ) break;;
3340   esac
3341 done
3342 else
3343   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error "cannot compute suffix of executables: cannot compile and link
3346 See \`config.log' for more details." "$LINENO" 5; }
3347 fi
3348 rm -f conftest$ac_cv_exeext
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3350 $as_echo "$ac_cv_exeext" >&6; }
3351
3352 rm -f conftest.$ac_ext
3353 EXEEXT=$ac_cv_exeext
3354 ac_exeext=$EXEEXT
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3356 $as_echo_n "checking for suffix of object files... " >&6; }
3357 if test "${ac_cv_objext+set}" = set; then :
3358   $as_echo_n "(cached) " >&6
3359 else
3360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h.  */
3362
3363 int
3364 main ()
3365 {
3366
3367   ;
3368   return 0;
3369 }
3370 _ACEOF
3371 rm -f conftest.o conftest.obj
3372 if { { ac_try="$ac_compile"
3373 case "(($ac_try" in
3374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375   *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379   (eval "$ac_compile") 2>&5
3380   ac_status=$?
3381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382   test $ac_status = 0; }; then :
3383   for ac_file in conftest.o conftest.obj conftest.*; do
3384   test -f "$ac_file" || continue;
3385   case $ac_file in
3386     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3387     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3388        break;;
3389   esac
3390 done
3391 else
3392   $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error "cannot compute suffix of object files: cannot compile
3398 See \`config.log' for more details." "$LINENO" 5; }
3399 fi
3400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3403 $as_echo "$ac_cv_objext" >&6; }
3404 OBJEXT=$ac_cv_objext
3405 ac_objext=$OBJEXT
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3407 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3408 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3409   $as_echo_n "(cached) " >&6
3410 else
3411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h.  */
3413
3414 int
3415 main ()
3416 {
3417 #ifndef __GNUC__
3418        choke me
3419 #endif
3420
3421   ;
3422   return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426   ac_compiler_gnu=yes
3427 else
3428   ac_compiler_gnu=no
3429 fi
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3432
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3435 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3436 if test $ac_compiler_gnu = yes; then
3437   GCC=yes
3438 else
3439   GCC=
3440 fi
3441 ac_test_CFLAGS=${CFLAGS+set}
3442 ac_save_CFLAGS=$CFLAGS
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3444 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3445 if test "${ac_cv_prog_cc_g+set}" = set; then :
3446   $as_echo_n "(cached) " >&6
3447 else
3448   ac_save_c_werror_flag=$ac_c_werror_flag
3449    ac_c_werror_flag=yes
3450    ac_cv_prog_cc_g=no
3451    CFLAGS="-g"
3452    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h.  */
3454
3455 int
3456 main ()
3457 {
3458
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 if ac_fn_c_try_compile "$LINENO"; then :
3464   ac_cv_prog_cc_g=yes
3465 else
3466   CFLAGS=""
3467       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h.  */
3469
3470 int
3471 main ()
3472 {
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479
3480 else
3481   ac_c_werror_flag=$ac_save_c_werror_flag
3482          CFLAGS="-g"
3483          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h.  */
3485
3486 int
3487 main ()
3488 {
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495   ac_cv_prog_cc_g=yes
3496 fi
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 fi
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502    ac_c_werror_flag=$ac_save_c_werror_flag
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3505 $as_echo "$ac_cv_prog_cc_g" >&6; }
3506 if test "$ac_test_CFLAGS" = set; then
3507   CFLAGS=$ac_save_CFLAGS
3508 elif test $ac_cv_prog_cc_g = yes; then
3509   if test "$GCC" = yes; then
3510     CFLAGS="-g -O2"
3511   else
3512     CFLAGS="-g"
3513   fi
3514 else
3515   if test "$GCC" = yes; then
3516     CFLAGS="-O2"
3517   else
3518     CFLAGS=
3519   fi
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3522 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3523 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3524   $as_echo_n "(cached) " >&6
3525 else
3526   ac_cv_prog_cc_c89=no
3527 ac_save_CC=$CC
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h.  */
3530 #include <stdarg.h>
3531 #include <stdio.h>
3532 #include <sys/types.h>
3533 #include <sys/stat.h>
3534 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3535 struct buf { int x; };
3536 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3537 static char *e (p, i)
3538      char **p;
3539      int i;
3540 {
3541   return p[i];
3542 }
3543 static char *f (char * (*g) (char **, int), char **p, ...)
3544 {
3545   char *s;
3546   va_list v;
3547   va_start (v,p);
3548   s = g (p, va_arg (v,int));
3549   va_end (v);
3550   return s;
3551 }
3552
3553 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3554    function prototypes and stuff, but not '\xHH' hex character constants.
3555    These don't provoke an error unfortunately, instead are silently treated
3556    as 'x'.  The following induces an error, until -std is added to get
3557    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3558    array size at least.  It's necessary to write '\x00'==0 to get something
3559    that's true only with -std.  */
3560 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3561
3562 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3563    inside strings and character constants.  */
3564 #define FOO(x) 'x'
3565 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3566
3567 int test (int i, double x);
3568 struct s1 {int (*f) (int a);};
3569 struct s2 {int (*f) (double a);};
3570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571 int argc;
3572 char **argv;
3573 int
3574 main ()
3575 {
3576 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3582         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3583 do
3584   CC="$ac_save_CC $ac_arg"
3585   if ac_fn_c_try_compile "$LINENO"; then :
3586   ac_cv_prog_cc_c89=$ac_arg
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext
3589   test "x$ac_cv_prog_cc_c89" != "xno" && break
3590 done
3591 rm -f conftest.$ac_ext
3592 CC=$ac_save_CC
3593
3594 fi
3595 # AC_CACHE_VAL
3596 case "x$ac_cv_prog_cc_c89" in
3597   x)
3598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3599 $as_echo "none needed" >&6; } ;;
3600   xno)
3601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3602 $as_echo "unsupported" >&6; } ;;
3603   *)
3604     CC="$CC $ac_cv_prog_cc_c89"
3605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3606 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3607 esac
3608 if test "x$ac_cv_prog_cc_c89" != xno; then :
3609
3610 fi
3611
3612 ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618 ac_aux_dir=
3619 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3620   for ac_t in install-sh install.sh shtool; do
3621     if test -f "$ac_dir/$ac_t"; then
3622       ac_aux_dir=$ac_dir
3623       ac_install_sh="$ac_aux_dir/$ac_t -c"
3624       break 2
3625     fi
3626   done
3627 done
3628 if test -z "$ac_aux_dir"; then
3629   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3630 fi
3631
3632 # These three variables are undocumented and unsupported,
3633 # and are intended to be withdrawn in a future Autoconf release.
3634 # They can cause serious problems if a builder's source tree is in a directory
3635 # whose full name contains unusual characters.
3636 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3637 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3638 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3639
3640
3641 # Make sure we can run config.sub.
3642 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3643   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3644
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3646 $as_echo_n "checking build system type... " >&6; }
3647 if test "${ac_cv_build+set}" = set; then :
3648   $as_echo_n "(cached) " >&6
3649 else
3650   ac_build_alias=$build_alias
3651 test "x$ac_build_alias" = x &&
3652   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3653 test "x$ac_build_alias" = x &&
3654   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3655 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3656   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3657
3658 fi
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3660 $as_echo "$ac_cv_build" >&6; }
3661 case $ac_cv_build in
3662 *-*-*) ;;
3663 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3664 esac
3665 build=$ac_cv_build
3666 ac_save_IFS=$IFS; IFS='-'
3667 set x $ac_cv_build
3668 shift
3669 build_cpu=$1
3670 build_vendor=$2
3671 shift; shift
3672 # Remember, the first character of IFS is used to create $*,
3673 # except with old shells:
3674 build_os=$*
3675 IFS=$ac_save_IFS
3676 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3677
3678
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3680 $as_echo_n "checking host system type... " >&6; }
3681 if test "${ac_cv_host+set}" = set; then :
3682   $as_echo_n "(cached) " >&6
3683 else
3684   if test "x$host_alias" = x; then
3685   ac_cv_host=$ac_cv_build
3686 else
3687   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3688     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3689 fi
3690
3691 fi
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3693 $as_echo "$ac_cv_host" >&6; }
3694 case $ac_cv_host in
3695 *-*-*) ;;
3696 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3697 esac
3698 host=$ac_cv_host
3699 ac_save_IFS=$IFS; IFS='-'
3700 set x $ac_cv_host
3701 shift
3702 host_cpu=$1
3703 host_vendor=$2
3704 shift; shift
3705 # Remember, the first character of IFS is used to create $*,
3706 # except with old shells:
3707 host_os=$*
3708 IFS=$ac_save_IFS
3709 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3710
3711
3712
3713 ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3719 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3720 # On Suns, sometimes $CPP names a directory.
3721 if test -n "$CPP" && test -d "$CPP"; then
3722   CPP=
3723 fi
3724 if test -z "$CPP"; then
3725   if test "${ac_cv_prog_CPP+set}" = set; then :
3726   $as_echo_n "(cached) " >&6
3727 else
3728       # Double quotes because CPP needs to be expanded
3729     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3730     do
3731       ac_preproc_ok=false
3732 for ac_c_preproc_warn_flag in '' yes
3733 do
3734   # Use a header file that comes with gcc, so configuring glibc
3735   # with a fresh cross-compiler works.
3736   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3737   # <limits.h> exists even on freestanding compilers.
3738   # On the NeXT, cc -E runs the code through the compiler's parser,
3739   # not just through cpp. "Syntax error" is here to catch this case.
3740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h.  */
3742 #ifdef __STDC__
3743 # include <limits.h>
3744 #else
3745 # include <assert.h>
3746 #endif
3747                      Syntax error
3748 _ACEOF
3749 if ac_fn_c_try_cpp "$LINENO"; then :
3750
3751 else
3752   # Broken: fails on valid input.
3753 continue
3754 fi
3755 rm -f conftest.err conftest.$ac_ext
3756
3757   # OK, works on sane cases.  Now check whether nonexistent headers
3758   # can be detected and how.
3759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h.  */
3761 #include <ac_nonexistent.h>
3762 _ACEOF
3763 if ac_fn_c_try_cpp "$LINENO"; then :
3764   # Broken: success on invalid input.
3765 continue
3766 else
3767   # Passes both tests.
3768 ac_preproc_ok=:
3769 break
3770 fi
3771 rm -f conftest.err conftest.$ac_ext
3772
3773 done
3774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3775 rm -f conftest.err conftest.$ac_ext
3776 if $ac_preproc_ok; then :
3777   break
3778 fi
3779
3780     done
3781     ac_cv_prog_CPP=$CPP
3782
3783 fi
3784   CPP=$ac_cv_prog_CPP
3785 else
3786   ac_cv_prog_CPP=$CPP
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3789 $as_echo "$CPP" >&6; }
3790 ac_preproc_ok=false
3791 for ac_c_preproc_warn_flag in '' yes
3792 do
3793   # Use a header file that comes with gcc, so configuring glibc
3794   # with a fresh cross-compiler works.
3795   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796   # <limits.h> exists even on freestanding compilers.
3797   # On the NeXT, cc -E runs the code through the compiler's parser,
3798   # not just through cpp. "Syntax error" is here to catch this case.
3799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h.  */
3801 #ifdef __STDC__
3802 # include <limits.h>
3803 #else
3804 # include <assert.h>
3805 #endif
3806                      Syntax error
3807 _ACEOF
3808 if ac_fn_c_try_cpp "$LINENO"; then :
3809
3810 else
3811   # Broken: fails on valid input.
3812 continue
3813 fi
3814 rm -f conftest.err conftest.$ac_ext
3815
3816   # OK, works on sane cases.  Now check whether nonexistent headers
3817   # can be detected and how.
3818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h.  */
3820 #include <ac_nonexistent.h>
3821 _ACEOF
3822 if ac_fn_c_try_cpp "$LINENO"; then :
3823   # Broken: success on invalid input.
3824 continue
3825 else
3826   # Passes both tests.
3827 ac_preproc_ok=:
3828 break
3829 fi
3830 rm -f conftest.err conftest.$ac_ext
3831
3832 done
3833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3834 rm -f conftest.err conftest.$ac_ext
3835 if $ac_preproc_ok; then :
3836
3837 else
3838   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3841 See \`config.log' for more details." "$LINENO" 5; }
3842 fi
3843
3844 ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849
3850
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3852 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3853 if test "${ac_cv_path_GREP+set}" = set; then :
3854   $as_echo_n "(cached) " >&6
3855 else
3856   if test -z "$GREP"; then
3857   ac_path_GREP_found=false
3858   # Loop through the user's path and test for each of PROGNAME-LIST
3859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3861 do
3862   IFS=$as_save_IFS
3863   test -z "$as_dir" && as_dir=.
3864     for ac_prog in grep ggrep; do
3865     for ac_exec_ext in '' $ac_executable_extensions; do
3866       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3867       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3868 # Check for GNU ac_path_GREP and select it if it is found.
3869   # Check for GNU $ac_path_GREP
3870 case `"$ac_path_GREP" --version 2>&1` in
3871 *GNU*)
3872   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3873 *)
3874   ac_count=0
3875   $as_echo_n 0123456789 >"conftest.in"
3876   while :
3877   do
3878     cat "conftest.in" "conftest.in" >"conftest.tmp"
3879     mv "conftest.tmp" "conftest.in"
3880     cp "conftest.in" "conftest.nl"
3881     $as_echo 'GREP' >> "conftest.nl"
3882     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3883     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3884     as_fn_arith $ac_count + 1 && ac_count=$as_val
3885     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3886       # Best one so far, save it but keep looking for a better one
3887       ac_cv_path_GREP="$ac_path_GREP"
3888       ac_path_GREP_max=$ac_count
3889     fi
3890     # 10*(2^10) chars as input seems more than enough
3891     test $ac_count -gt 10 && break
3892   done
3893   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3894 esac
3895
3896       $ac_path_GREP_found && break 3
3897     done
3898   done
3899   done
3900 IFS=$as_save_IFS
3901   if test -z "$ac_cv_path_GREP"; then
3902     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3903   fi
3904 else
3905   ac_cv_path_GREP=$GREP
3906 fi
3907
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3910 $as_echo "$ac_cv_path_GREP" >&6; }
3911  GREP="$ac_cv_path_GREP"
3912
3913
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3915 $as_echo_n "checking for egrep... " >&6; }
3916 if test "${ac_cv_path_EGREP+set}" = set; then :
3917   $as_echo_n "(cached) " >&6
3918 else
3919   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3920    then ac_cv_path_EGREP="$GREP -E"
3921    else
3922      if test -z "$EGREP"; then
3923   ac_path_EGREP_found=false
3924   # Loop through the user's path and test for each of PROGNAME-LIST
3925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3927 do
3928   IFS=$as_save_IFS
3929   test -z "$as_dir" && as_dir=.
3930     for ac_prog in egrep; do
3931     for ac_exec_ext in '' $ac_executable_extensions; do
3932       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3933       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3934 # Check for GNU ac_path_EGREP and select it if it is found.
3935   # Check for GNU $ac_path_EGREP
3936 case `"$ac_path_EGREP" --version 2>&1` in
3937 *GNU*)
3938   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3939 *)
3940   ac_count=0
3941   $as_echo_n 0123456789 >"conftest.in"
3942   while :
3943   do
3944     cat "conftest.in" "conftest.in" >"conftest.tmp"
3945     mv "conftest.tmp" "conftest.in"
3946     cp "conftest.in" "conftest.nl"
3947     $as_echo 'EGREP' >> "conftest.nl"
3948     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3949     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3950     as_fn_arith $ac_count + 1 && ac_count=$as_val
3951     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3952       # Best one so far, save it but keep looking for a better one
3953       ac_cv_path_EGREP="$ac_path_EGREP"
3954       ac_path_EGREP_max=$ac_count
3955     fi
3956     # 10*(2^10) chars as input seems more than enough
3957     test $ac_count -gt 10 && break
3958   done
3959   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3960 esac
3961
3962       $ac_path_EGREP_found && break 3
3963     done
3964   done
3965   done
3966 IFS=$as_save_IFS
3967   if test -z "$ac_cv_path_EGREP"; then
3968     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3969   fi
3970 else
3971   ac_cv_path_EGREP=$EGREP
3972 fi
3973
3974    fi
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3977 $as_echo "$ac_cv_path_EGREP" >&6; }
3978  EGREP="$ac_cv_path_EGREP"
3979
3980
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3982 $as_echo_n "checking for ANSI C header files... " >&6; }
3983 if test "${ac_cv_header_stdc+set}" = set; then :
3984   $as_echo_n "(cached) " >&6
3985 else
3986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h.  */
3988 #include <stdlib.h>
3989 #include <stdarg.h>
3990 #include <string.h>
3991 #include <float.h>
3992
3993 int
3994 main ()
3995 {
3996
3997   ;
3998   return 0;
3999 }
4000 _ACEOF
4001 if ac_fn_c_try_compile "$LINENO"; then :
4002   ac_cv_header_stdc=yes
4003 else
4004   ac_cv_header_stdc=no
4005 fi
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007
4008 if test $ac_cv_header_stdc = yes; then
4009   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012 #include <string.h>
4013
4014 _ACEOF
4015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4016   $EGREP "memchr" >/dev/null 2>&1; then :
4017
4018 else
4019   ac_cv_header_stdc=no
4020 fi
4021 rm -f conftest*
4022
4023 fi
4024
4025 if test $ac_cv_header_stdc = yes; then
4026   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h.  */
4029 #include <stdlib.h>
4030
4031 _ACEOF
4032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4033   $EGREP "free" >/dev/null 2>&1; then :
4034
4035 else
4036   ac_cv_header_stdc=no
4037 fi
4038 rm -f conftest*
4039
4040 fi
4041
4042 if test $ac_cv_header_stdc = yes; then
4043   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4044   if test "$cross_compiling" = yes; then :
4045   :
4046 else
4047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h.  */
4049 #include <ctype.h>
4050 #include <stdlib.h>
4051 #if ((' ' & 0x0FF) == 0x020)
4052 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4053 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4054 #else
4055 # define ISLOWER(c) \
4056                    (('a' <= (c) && (c) <= 'i') \
4057                      || ('j' <= (c) && (c) <= 'r') \
4058                      || ('s' <= (c) && (c) <= 'z'))
4059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4060 #endif
4061
4062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4063 int
4064 main ()
4065 {
4066   int i;
4067   for (i = 0; i < 256; i++)
4068     if (XOR (islower (i), ISLOWER (i))
4069         || toupper (i) != TOUPPER (i))
4070       return 2;
4071   return 0;
4072 }
4073 _ACEOF
4074 if ac_fn_c_try_run "$LINENO"; then :
4075
4076 else
4077   ac_cv_header_stdc=no
4078 fi
4079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4080   conftest.$ac_objext conftest.beam conftest.$ac_ext
4081 fi
4082
4083 fi
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4086 $as_echo "$ac_cv_header_stdc" >&6; }
4087 if test $ac_cv_header_stdc = yes; then
4088
4089 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4090
4091 fi
4092
4093 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4094 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4095                   inttypes.h stdint.h unistd.h
4096 do :
4097   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4098 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4099 "
4100 eval as_val=\$$as_ac_Header
4101    if test "x$as_val" = x""yes; then :
4102   cat >>confdefs.h <<_ACEOF
4103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4104 _ACEOF
4105
4106 fi
4107
4108 done
4109
4110
4111
4112
4113
4114   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4115 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4116   MINIX=yes
4117 else
4118   MINIX=
4119 fi
4120
4121
4122   if test "$MINIX" = yes; then
4123
4124 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4125
4126
4127 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4128
4129
4130 $as_echo "#define _MINIX 1" >>confdefs.h
4131
4132   fi
4133
4134         case "$host_os" in
4135     hpux*)
4136
4137 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4138
4139       ;;
4140   esac
4141
4142
4143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4144 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4145 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4146   $as_echo_n "(cached) " >&6
4147 else
4148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h.  */
4150
4151 #         define __EXTENSIONS__ 1
4152           $ac_includes_default
4153 int
4154 main ()
4155 {
4156
4157   ;
4158   return 0;
4159 }
4160 _ACEOF
4161 if ac_fn_c_try_compile "$LINENO"; then :
4162   ac_cv_safe_to_define___extensions__=yes
4163 else
4164   ac_cv_safe_to_define___extensions__=no
4165 fi
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 fi
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4169 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4170   test $ac_cv_safe_to_define___extensions__ = yes &&
4171     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4172
4173   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4174
4175   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4176
4177   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4178
4179   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4180
4181
4182 if test -n "$ac_tool_prefix"; then
4183   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4184 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   if test -n "$RANLIB"; then
4191   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196   IFS=$as_save_IFS
4197   test -z "$as_dir" && as_dir=.
4198     for ac_exec_ext in '' $ac_executable_extensions; do
4199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4200     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202     break 2
4203   fi
4204 done
4205   done
4206 IFS=$as_save_IFS
4207
4208 fi
4209 fi
4210 RANLIB=$ac_cv_prog_RANLIB
4211 if test -n "$RANLIB"; then
4212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4213 $as_echo "$RANLIB" >&6; }
4214 else
4215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4217 fi
4218
4219
4220 fi
4221 if test -z "$ac_cv_prog_RANLIB"; then
4222   ac_ct_RANLIB=$RANLIB
4223   # Extract the first word of "ranlib", so it can be a program name with args.
4224 set dummy ranlib; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4228   $as_echo_n "(cached) " >&6
4229 else
4230   if test -n "$ac_ct_RANLIB"; then
4231   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238     for ac_exec_ext in '' $ac_executable_extensions; do
4239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240     ac_cv_prog_ac_ct_RANLIB="ranlib"
4241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242     break 2
4243   fi
4244 done
4245   done
4246 IFS=$as_save_IFS
4247
4248 fi
4249 fi
4250 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4251 if test -n "$ac_ct_RANLIB"; then
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4253 $as_echo "$ac_ct_RANLIB" >&6; }
4254 else
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 fi
4258
4259   if test "x$ac_ct_RANLIB" = x; then
4260     RANLIB=":"
4261   else
4262     case $cross_compiling:$ac_tool_warned in
4263 yes:)
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4266 ac_tool_warned=yes ;;
4267 esac
4268     RANLIB=$ac_ct_RANLIB
4269   fi
4270 else
4271   RANLIB="$ac_cv_prog_RANLIB"
4272 fi
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282   # Code from module arg-nonnull:
4283   # Code from module c++defs:
4284   # Code from module extensions:
4285
4286   # Code from module include_next:
4287   # Code from module memchr:
4288   # Code from module memmem:
4289   # Code from module memmem-simple:
4290   # Code from module multiarch:
4291   # Code from module stddef:
4292   # Code from module stdint:
4293   # Code from module string:
4294   # Code from module warn-on-use:
4295   # Code from module wchar:
4296
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4298 $as_echo_n "checking target system type... " >&6; }
4299 if test "${ac_cv_target+set}" = set; then :
4300   $as_echo_n "(cached) " >&6
4301 else
4302   if test "x$target_alias" = x; then
4303   ac_cv_target=$ac_cv_host
4304 else
4305   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4306     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4307 fi
4308
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4311 $as_echo "$ac_cv_target" >&6; }
4312 case $ac_cv_target in
4313 *-*-*) ;;
4314 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4315 esac
4316 target=$ac_cv_target
4317 ac_save_IFS=$IFS; IFS='-'
4318 set x $ac_cv_target
4319 shift
4320 target_cpu=$1
4321 target_vendor=$2
4322 shift; shift
4323 # Remember, the first character of IFS is used to create $*,
4324 # except with old shells:
4325 target_os=$*
4326 IFS=$ac_save_IFS
4327 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4328
4329
4330 # The aliases save the names the user supplied, while $host etc.
4331 # will get canonicalized.
4332 test -n "$target_alias" &&
4333   test "$program_prefix$program_suffix$program_transform_name" = \
4334     NONENONEs,x,x, &&
4335   program_prefix=${target_alias}-
4336
4337 # The tests for host and target for $enable_largefile require
4338 # canonical names.
4339
4340
4341
4342 # As the $enable_largefile decision depends on --enable-plugins we must set it
4343 # even in directories otherwise not depending on the $plugins option.
4344
4345
4346 # Check whether --enable-plugins was given.
4347 if test "${enable_plugins+set}" = set; then :
4348   enableval=$enable_plugins; case "${enableval}" in
4349   yes | "") plugins=yes ;;
4350   no) plugins=no ;;
4351   *) plugins=yes ;;
4352  esac
4353 else
4354   plugins=no
4355 fi
4356
4357
4358
4359 case "${host}" in
4360   sparc-*-solaris*|i[3-7]86-*-solaris*)
4361     # On native 32bit sparc and ia32 solaris, large-file and procfs support
4362     # are mutually exclusive; and without procfs support, the bfd/ elf module
4363     # cannot provide certain routines such as elfcore_write_prpsinfo
4364     # or elfcore_write_prstatus.  So unless the user explicitly requested
4365     # large-file support through the --enable-largefile switch, disable
4366     # large-file support in favor of procfs support.
4367     test "${target}" = "${host}" -a "x$plugins" = xno \
4368       && : ${enable_largefile="no"}
4369     ;;
4370 esac
4371
4372 # Check whether --enable-largefile was given.
4373 if test "${enable_largefile+set}" = set; then :
4374   enableval=$enable_largefile;
4375 fi
4376
4377 if test "$enable_largefile" != no; then
4378
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4380 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4381 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384   ac_cv_sys_largefile_CC=no
4385      if test "$GCC" != yes; then
4386        ac_save_CC=$CC
4387        while :; do
4388          # IRIX 6.2 and later do not support large files by default,
4389          # so use the C compiler's -n32 option if that helps.
4390          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h.  */
4392 #include <sys/types.h>
4393  /* Check that off_t can represent 2**63 - 1 correctly.
4394     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4395     since some C++ compilers masquerading as C compilers
4396     incorrectly reject 9223372036854775807.  */
4397 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4398   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4399                        && LARGE_OFF_T % 2147483647 == 1)
4400                       ? 1 : -1];
4401 int
4402 main ()
4403 {
4404
4405   ;
4406   return 0;
4407 }
4408 _ACEOF
4409          if ac_fn_c_try_compile "$LINENO"; then :
4410   break
4411 fi
4412 rm -f core conftest.err conftest.$ac_objext
4413          CC="$CC -n32"
4414          if ac_fn_c_try_compile "$LINENO"; then :
4415   ac_cv_sys_largefile_CC=' -n32'; break
4416 fi
4417 rm -f core conftest.err conftest.$ac_objext
4418          break
4419        done
4420        CC=$ac_save_CC
4421        rm -f conftest.$ac_ext
4422     fi
4423 fi
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4425 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4426   if test "$ac_cv_sys_largefile_CC" != no; then
4427     CC=$CC$ac_cv_sys_largefile_CC
4428   fi
4429
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4431 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4432 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4433   $as_echo_n "(cached) " >&6
4434 else
4435   while :; do
4436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h.  */
4438 #include <sys/types.h>
4439  /* Check that off_t can represent 2**63 - 1 correctly.
4440     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4441     since some C++ compilers masquerading as C compilers
4442     incorrectly reject 9223372036854775807.  */
4443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4444   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4445                        && LARGE_OFF_T % 2147483647 == 1)
4446                       ? 1 : -1];
4447 int
4448 main ()
4449 {
4450
4451   ;
4452   return 0;
4453 }
4454 _ACEOF
4455 if ac_fn_c_try_compile "$LINENO"; then :
4456   ac_cv_sys_file_offset_bits=no; break
4457 fi
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h.  */
4461 #define _FILE_OFFSET_BITS 64
4462 #include <sys/types.h>
4463  /* Check that off_t can represent 2**63 - 1 correctly.
4464     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4465     since some C++ compilers masquerading as C compilers
4466     incorrectly reject 9223372036854775807.  */
4467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4468   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4469                        && LARGE_OFF_T % 2147483647 == 1)
4470                       ? 1 : -1];
4471 int
4472 main ()
4473 {
4474
4475   ;
4476   return 0;
4477 }
4478 _ACEOF
4479 if ac_fn_c_try_compile "$LINENO"; then :
4480   ac_cv_sys_file_offset_bits=64; break
4481 fi
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483   ac_cv_sys_file_offset_bits=unknown
4484   break
4485 done
4486 fi
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4488 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4489 case $ac_cv_sys_file_offset_bits in #(
4490   no | unknown) ;;
4491   *)
4492 cat >>confdefs.h <<_ACEOF
4493 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4494 _ACEOF
4495 ;;
4496 esac
4497 rm -rf conftest*
4498   if test $ac_cv_sys_file_offset_bits = unknown; then
4499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4500 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4501 if test "${ac_cv_sys_large_files+set}" = set; then :
4502   $as_echo_n "(cached) " >&6
4503 else
4504   while :; do
4505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h.  */
4507 #include <sys/types.h>
4508  /* Check that off_t can represent 2**63 - 1 correctly.
4509     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4510     since some C++ compilers masquerading as C compilers
4511     incorrectly reject 9223372036854775807.  */
4512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4513   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4514                        && LARGE_OFF_T % 2147483647 == 1)
4515                       ? 1 : -1];
4516 int
4517 main ()
4518 {
4519
4520   ;
4521   return 0;
4522 }
4523 _ACEOF
4524 if ac_fn_c_try_compile "$LINENO"; then :
4525   ac_cv_sys_large_files=no; break
4526 fi
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h.  */
4530 #define _LARGE_FILES 1
4531 #include <sys/types.h>
4532  /* Check that off_t can represent 2**63 - 1 correctly.
4533     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4534     since some C++ compilers masquerading as C compilers
4535     incorrectly reject 9223372036854775807.  */
4536 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4537   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4538                        && LARGE_OFF_T % 2147483647 == 1)
4539                       ? 1 : -1];
4540 int
4541 main ()
4542 {
4543
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 if ac_fn_c_try_compile "$LINENO"; then :
4549   ac_cv_sys_large_files=1; break
4550 fi
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552   ac_cv_sys_large_files=unknown
4553   break
4554 done
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4557 $as_echo "$ac_cv_sys_large_files" >&6; }
4558 case $ac_cv_sys_large_files in #(
4559   no | unknown) ;;
4560   *)
4561 cat >>confdefs.h <<_ACEOF
4562 #define _LARGE_FILES $ac_cv_sys_large_files
4563 _ACEOF
4564 ;;
4565 esac
4566 rm -rf conftest*
4567   fi
4568 fi
4569
4570
4571
4572
4573
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4575 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4576 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4577   $as_echo_n "(cached) " >&6
4578 else
4579   am_cv_prog_cc_stdc=no
4580 ac_save_CC="$CC"
4581 # Don't try gcc -ansi; that turns off useful extensions and
4582 # breaks some systems' header files.
4583 # AIX                   -qlanglvl=ansi
4584 # Ultrix and OSF/1      -std1
4585 # HP-UX 10.20 and later -Ae
4586 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4587 # SVR4                  -Xc -D__EXTENSIONS__
4588 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4589 do
4590   CC="$ac_save_CC $ac_arg"
4591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h.  */
4593 #include <stdarg.h>
4594 #include <stdio.h>
4595 #include <sys/types.h>
4596 #include <sys/stat.h>
4597 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4598 struct buf { int x; };
4599 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4600 static char *e (p, i)
4601      char **p;
4602      int i;
4603 {
4604   return p[i];
4605 }
4606 static char *f (char * (*g) (char **, int), char **p, ...)
4607 {
4608   char *s;
4609   va_list v;
4610   va_start (v,p);
4611   s = g (p, va_arg (v,int));
4612   va_end (v);
4613   return s;
4614 }
4615 int test (int i, double x);
4616 struct s1 {int (*f) (int a);};
4617 struct s2 {int (*f) (double a);};
4618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4619 int argc;
4620 char **argv;
4621
4622 int
4623 main ()
4624 {
4625
4626 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4627
4628   ;
4629   return 0;
4630 }
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633   am_cv_prog_cc_stdc="$ac_arg"; break
4634 fi
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 done
4637 CC="$ac_save_CC"
4638
4639 fi
4640
4641 if test -z "$am_cv_prog_cc_stdc"; then
4642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4643 $as_echo "none needed" >&6; }
4644 else
4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4646 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4647 fi
4648 case "x$am_cv_prog_cc_stdc" in
4649   x|xno) ;;
4650   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4651 esac
4652
4653
4654 ac_aux_dir=
4655 for ac_dir in .. "$srcdir"/..; do
4656   for ac_t in install-sh install.sh shtool; do
4657     if test -f "$ac_dir/$ac_t"; then
4658       ac_aux_dir=$ac_dir
4659       ac_install_sh="$ac_aux_dir/$ac_t -c"
4660       break 2
4661     fi
4662   done
4663 done
4664 if test -z "$ac_aux_dir"; then
4665   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4666 fi
4667
4668 # These three variables are undocumented and unsupported,
4669 # and are intended to be withdrawn in a future Autoconf release.
4670 # They can cause serious problems if a builder's source tree is in a directory
4671 # whose full name contains unusual characters.
4672 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4673 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4674 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4675
4676
4677
4678
4679 # Dependency checking.
4680 rm -rf .tst 2>/dev/null
4681 mkdir .tst 2>/dev/null
4682 if test -d .tst; then
4683   am__leading_dot=.
4684 else
4685   am__leading_dot=_
4686 fi
4687 rmdir .tst 2>/dev/null
4688
4689 DEPDIR="${am__leading_dot}deps"
4690
4691 ac_config_commands="$ac_config_commands depdir"
4692
4693
4694 depcc="$CC"   am_compiler_list=
4695
4696 am_depcomp=$ac_aux_dir/depcomp
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4698 $as_echo_n "checking dependency style of $depcc... " >&6; }
4699 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   if test -f "$am_depcomp"; then
4703   # We make a subdir and do the tests there.  Otherwise we can end up
4704   # making bogus files that we don't know about and never remove.  For
4705   # instance it was reported that on HP-UX the gcc test will end up
4706   # making a dummy file named `D' -- because `-MD' means `put the output
4707   # in D'.
4708   mkdir conftest.dir
4709   # Copy depcomp to subdir because otherwise we won't find it if we're
4710   # using a relative directory.
4711   cp "$am_depcomp" conftest.dir
4712   cd conftest.dir
4713   # We will build objects and dependencies in a subdirectory because
4714   # it helps to detect inapplicable dependency modes.  For instance
4715   # both Tru64's cc and ICC support -MD to output dependencies as a
4716   # side effect of compilation, but ICC will put the dependencies in
4717   # the current directory while Tru64 will put them in the object
4718   # directory.
4719   mkdir sub
4720
4721   am_cv_CC_dependencies_compiler_type=none
4722   if test "$am_compiler_list" = ""; then
4723      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4724   fi
4725   for depmode in $am_compiler_list; do
4726     if test $depmode = none; then break; fi
4727
4728     $as_echo "$as_me:$LINENO: trying $depmode" >&5
4729     # Setup a source with many dependencies, because some compilers
4730     # like to wrap large dependency lists on column 80 (with \), and
4731     # we should not choose a depcomp mode which is confused by this.
4732     #
4733     # We need to recreate these files for each test, as the compiler may
4734     # overwrite some of them when testing with obscure command lines.
4735     # This happens at least with the AIX C compiler.
4736     : > sub/conftest.c
4737     for i in 1 2 3 4 5 6; do
4738       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4739       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4740       # Solaris 8's {/usr,}/bin/sh.
4741       touch sub/conftst$i.h
4742     done
4743     echo "include sub/conftest.Po" > confmf
4744
4745     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4746     # mode.  It turns out that the SunPro C++ compiler does not properly
4747     # handle `-M -o', and we need to detect this.
4748     depcmd="depmode=$depmode \
4749        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4750        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4751        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4752     echo "| $depcmd" | sed -e 's/  */ /g' >&5
4753     if env $depcmd > conftest.err 2>&1 &&
4754        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4755        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4756        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4757       # icc doesn't choke on unknown options, it will just issue warnings
4758       # or remarks (even with -Werror).  So we grep stderr for any message
4759       # that says an option was ignored or not supported.
4760       # When given -MP, icc 7.0 and 7.1 complain thusly:
4761       #   icc: Command line warning: ignoring option '-M'; no argument required
4762       # The diagnosis changed in icc 8.0:
4763       #   icc: Command line remark: option '-MP' not supported
4764       if (grep 'ignoring option' conftest.err ||
4765           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4766         am_cv_CC_dependencies_compiler_type=$depmode
4767         $as_echo "$as_me:$LINENO: success" >&5
4768         break
4769       fi
4770     fi
4771     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4772     sed -e 's/^/| /' < conftest.err >&5
4773   done
4774
4775   cd ..
4776   rm -rf conftest.dir
4777 else
4778   am_cv_CC_dependencies_compiler_type=none
4779 fi
4780
4781 fi
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4783 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4784 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4785 then as_fn_error "no usable dependency style found" "$LINENO" 5
4786 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4787
4788 fi
4789
4790
4791 # Check for the 'make' the user wants to use.
4792 for ac_prog in make
4793 do
4794   # Extract the first word of "$ac_prog", so it can be a program name with args.
4795 set dummy $ac_prog; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if test "${ac_cv_prog_MAKE+set}" = set; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   if test -n "$MAKE"; then
4802   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807   IFS=$as_save_IFS
4808   test -z "$as_dir" && as_dir=.
4809     for ac_exec_ext in '' $ac_executable_extensions; do
4810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811     ac_cv_prog_MAKE="$ac_prog"
4812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813     break 2
4814   fi
4815 done
4816   done
4817 IFS=$as_save_IFS
4818
4819 fi
4820 fi
4821 MAKE=$ac_cv_prog_MAKE
4822 if test -n "$MAKE"; then
4823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4824 $as_echo "$MAKE" >&6; }
4825 else
4826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4828 fi
4829
4830
4831   test -n "$MAKE" && break
4832 done
4833
4834 MAKE_IS_GNU=
4835 case "`$MAKE --version 2>&1 | sed 1q`" in
4836   *GNU*)
4837     MAKE_IS_GNU=yes
4838     ;;
4839 esac
4840  if test "$MAKE_IS_GNU" = yes; then
4841   GMAKE_TRUE=
4842   GMAKE_FALSE='#'
4843 else
4844   GMAKE_TRUE='#'
4845   GMAKE_FALSE=
4846 fi
4847
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4849 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4850 set x ${MAKE-make}
4851 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4852 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4853   $as_echo_n "(cached) " >&6
4854 else
4855   cat >conftest.make <<\_ACEOF
4856 SHELL = /bin/sh
4857 all:
4858         @echo '@@@%%%=$(MAKE)=@@@%%%'
4859 _ACEOF
4860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4861 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4862   *@@@%%%=?*=@@@%%%*)
4863     eval ac_cv_prog_make_${ac_make}_set=yes;;
4864   *)
4865     eval ac_cv_prog_make_${ac_make}_set=no;;
4866 esac
4867 rm -f conftest.make
4868 fi
4869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871 $as_echo "yes" >&6; }
4872   SET_MAKE=
4873 else
4874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876   SET_MAKE="MAKE=${MAKE-make}"
4877 fi
4878
4879
4880
4881 CONFIG_OBS=
4882 CONFIG_DEPS=
4883 CONFIG_SRCS=
4884 ENABLE_CFLAGS=
4885
4886 CONFIG_ALL=
4887 CONFIG_CLEAN=
4888 CONFIG_INSTALL=
4889 CONFIG_UNINSTALL=
4890
4891 # If we haven't got the data from the intl directory,
4892 # assume NLS is disabled.
4893 USE_NLS=no
4894 LIBINTL=
4895 LIBINTL_DEP=
4896 INCINTL=
4897 XGETTEXT=
4898 GMSGFMT=
4899 POSUB=
4900
4901 if test -f  ../intl/config.intl; then
4902   .  ../intl/config.intl
4903 fi
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4905 $as_echo_n "checking whether NLS is requested... " >&6; }
4906 if test x"$USE_NLS" != xyes; then
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909 else
4910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4911 $as_echo "yes" >&6; }
4912
4913 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4914
4915
4916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4917 $as_echo_n "checking for catalogs to be installed... " >&6; }
4918   # Look for .po and .gmo files in the source directory.
4919   CATALOGS=
4920   XLINGUAS=
4921   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4922     # If there aren't any .gmo files the shell will give us the
4923     # literal string "../path/to/srcdir/po/*.gmo" which has to be
4924     # weeded out.
4925     case "$cat" in *\**)
4926       continue;;
4927     esac
4928     # The quadruple backslash is collapsed to a double backslash
4929     # by the backticks, then collapsed again by the double quotes,
4930     # leaving us with one backslash in the sed expression (right
4931     # before the dot that mustn't act as a wildcard).
4932     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4933     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4934     # The user is allowed to set LINGUAS to a list of languages to
4935     # install catalogs for.  If it's empty that means "all of them."
4936     if test "x$LINGUAS" = x; then
4937       CATALOGS="$CATALOGS $cat"
4938       XLINGUAS="$XLINGUAS $lang"
4939     else
4940       case "$LINGUAS" in *$lang*)
4941         CATALOGS="$CATALOGS $cat"
4942         XLINGUAS="$XLINGUAS $lang"
4943         ;;
4944       esac
4945     fi
4946   done
4947   LINGUAS="$XLINGUAS"
4948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4949 $as_echo "$LINGUAS" >&6; }
4950
4951
4952     DATADIRNAME=share
4953
4954   INSTOBJEXT=.mo
4955
4956   GENCAT=gencat
4957
4958   CATOBJEXT=.gmo
4959
4960 fi
4961
4962 localedir='${datadir}/locale'
4963
4964
4965 if test x"$USE_NLS" = xyes; then
4966    CONFIG_ALL="$CONFIG_ALL all-po"
4967    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4968    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4969    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4970 fi
4971
4972
4973
4974
4975
4976           LIBC_FATAL_STDERR_=1
4977   export LIBC_FATAL_STDERR_
4978
4979
4980
4981
4982
4983   for ac_header in $gl_header_list
4984 do :
4985   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4986 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4987 eval as_val=\$$as_ac_Header
4988    if test "x$as_val" = x""yes; then :
4989   cat >>confdefs.h <<_ACEOF
4990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4991 _ACEOF
4992
4993 fi
4994
4995 done
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005   for ac_func in $gl_func_list
5006 do :
5007   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5009 eval as_val=\$$as_ac_var
5010    if test "x$as_val" = x""yes; then :
5011   cat >>confdefs.h <<_ACEOF
5012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5013 _ACEOF
5014
5015 fi
5016 done
5017
5018
5019
5020
5021
5022
5023   GNULIB_MEMCHR=0;
5024   GNULIB_MEMMEM=0;
5025   GNULIB_MEMPCPY=0;
5026   GNULIB_MEMRCHR=0;
5027   GNULIB_RAWMEMCHR=0;
5028   GNULIB_STPCPY=0;
5029   GNULIB_STPNCPY=0;
5030   GNULIB_STRCHRNUL=0;
5031   GNULIB_STRDUP=0;
5032   GNULIB_STRNCAT=0;
5033   GNULIB_STRNDUP=0;
5034   GNULIB_STRNLEN=0;
5035   GNULIB_STRPBRK=0;
5036   GNULIB_STRSEP=0;
5037   GNULIB_STRSTR=0;
5038   GNULIB_STRCASESTR=0;
5039   GNULIB_STRTOK_R=0;
5040   GNULIB_MBSLEN=0;
5041   GNULIB_MBSNLEN=0;
5042   GNULIB_MBSCHR=0;
5043   GNULIB_MBSRCHR=0;
5044   GNULIB_MBSSTR=0;
5045   GNULIB_MBSCASECMP=0;
5046   GNULIB_MBSNCASECMP=0;
5047   GNULIB_MBSPCASECMP=0;
5048   GNULIB_MBSCASESTR=0;
5049   GNULIB_MBSCSPN=0;
5050   GNULIB_MBSPBRK=0;
5051   GNULIB_MBSSPN=0;
5052   GNULIB_MBSSEP=0;
5053   GNULIB_MBSTOK_R=0;
5054   GNULIB_STRERROR=0;
5055   GNULIB_STRSIGNAL=0;
5056   GNULIB_STRVERSCMP=0;
5057   HAVE_MBSLEN=0;
5058     HAVE_MEMCHR=1;
5059   HAVE_DECL_MEMMEM=1;
5060   HAVE_MEMPCPY=1;
5061   HAVE_DECL_MEMRCHR=1;
5062   HAVE_RAWMEMCHR=1;
5063   HAVE_STPCPY=1;
5064   HAVE_STPNCPY=1;
5065   HAVE_STRCHRNUL=1;
5066   HAVE_DECL_STRDUP=1;
5067   HAVE_DECL_STRNDUP=1;
5068   HAVE_DECL_STRNLEN=1;
5069   HAVE_STRPBRK=1;
5070   HAVE_STRSEP=1;
5071   HAVE_STRCASESTR=1;
5072   HAVE_DECL_STRTOK_R=1;
5073   HAVE_DECL_STRSIGNAL=1;
5074   HAVE_STRVERSCMP=1;
5075   REPLACE_MEMCHR=0;
5076   REPLACE_MEMMEM=0;
5077   REPLACE_STPNCPY=0;
5078   REPLACE_STRDUP=0;
5079   REPLACE_STRSTR=0;
5080   REPLACE_STRCASESTR=0;
5081   REPLACE_STRERROR=0;
5082   REPLACE_STRNCAT=0;
5083   REPLACE_STRNDUP=0;
5084   REPLACE_STRNLEN=0;
5085   REPLACE_STRSIGNAL=0;
5086   REPLACE_STRTOK_R=0;
5087   UNDEFINE_STRTOK_R=0;
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5102   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5103   # irrelevant for anonymous mappings.
5104   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5105 if test "x$ac_cv_func_mmap" = x""yes; then :
5106   gl_have_mmap=yes
5107 else
5108   gl_have_mmap=no
5109 fi
5110
5111
5112   # Try to allow MAP_ANONYMOUS.
5113   gl_have_mmap_anonymous=no
5114   if test $gl_have_mmap = yes; then
5115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5116 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5117     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h.  */
5119
5120 #include <sys/mman.h>
5121 #ifdef MAP_ANONYMOUS
5122     I cant identify this map.
5123 #endif
5124
5125 _ACEOF
5126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5127   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5128   gl_have_mmap_anonymous=yes
5129 fi
5130 rm -f conftest*
5131
5132     if test $gl_have_mmap_anonymous != yes; then
5133       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h.  */
5135
5136 #include <sys/mman.h>
5137 #ifdef MAP_ANON
5138     I cant identify this map.
5139 #endif
5140
5141 _ACEOF
5142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5143   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5144
5145 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5146
5147          gl_have_mmap_anonymous=yes
5148 fi
5149 rm -f conftest*
5150
5151     fi
5152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5153 $as_echo "$gl_have_mmap_anonymous" >&6; }
5154     if test $gl_have_mmap_anonymous = yes; then
5155
5156 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5157
5158     fi
5159   fi
5160
5161
5162   :
5163
5164
5165
5166
5167
5168
5169   :
5170
5171
5172
5173
5174
5175
5176
5177
5178   :
5179
5180
5181
5182
5183
5184   if test $ac_cv_func_memchr = yes; then
5185     # Detect platform-specific bugs in some versions of glibc:
5186     # memchr should not dereference anything with length 0
5187     #   http://bugzilla.redhat.com/499689
5188     # memchr should not dereference overestimated length after a match
5189     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5190     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5191     # Assume that memchr works on platforms that lack mprotect.
5192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5193 $as_echo_n "checking whether memchr works... " >&6; }
5194 if test "${gl_cv_func_memchr_works+set}" = set; then :
5195   $as_echo_n "(cached) " >&6
5196 else
5197   if test "$cross_compiling" = yes; then :
5198          gl_cv_func_memchr_works="guessing no"
5199 else
5200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h.  */
5202
5203 #include <string.h>
5204 #if HAVE_SYS_MMAN_H
5205 # include <fcntl.h>
5206 # include <unistd.h>
5207 # include <sys/types.h>
5208 # include <sys/mman.h>
5209 # ifndef MAP_FILE
5210 #  define MAP_FILE 0
5211 # endif
5212 #endif
5213
5214 int
5215 main ()
5216 {
5217
5218   char *fence = NULL;
5219 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5220 # if HAVE_MAP_ANONYMOUS
5221   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5222   const int fd = -1;
5223 # else /* !HAVE_MAP_ANONYMOUS */
5224   const int flags = MAP_FILE | MAP_PRIVATE;
5225   int fd = open ("/dev/zero", O_RDONLY, 0666);
5226   if (fd >= 0)
5227 # endif
5228     {
5229       int pagesize = getpagesize ();
5230       char *two_pages =
5231         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5232                        flags, fd, 0);
5233       if (two_pages != (char *)(-1)
5234           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5235         fence = two_pages + pagesize;
5236     }
5237 #endif
5238   if (fence)
5239     {
5240       if (memchr (fence, 0, 0))
5241         return 1;
5242       strcpy (fence - 9, "12345678");
5243       if (memchr (fence - 9, 0, 79) != fence - 1)
5244         return 2;
5245     }
5246   return 0;
5247
5248   ;
5249   return 0;
5250 }
5251 _ACEOF
5252 if ac_fn_c_try_run "$LINENO"; then :
5253   gl_cv_func_memchr_works=yes
5254 else
5255   gl_cv_func_memchr_works=no
5256 fi
5257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5258   conftest.$ac_objext conftest.beam conftest.$ac_ext
5259 fi
5260
5261 fi
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5263 $as_echo "$gl_cv_func_memchr_works" >&6; }
5264     if test "$gl_cv_func_memchr_works" != yes; then
5265       REPLACE_MEMCHR=1
5266     fi
5267   else
5268     HAVE_MEMCHR=0
5269   fi
5270   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5271
5272
5273
5274
5275
5276
5277
5278
5279   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5280
5281
5282   for ac_header in bp-sym.h
5283 do :
5284   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5285 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5286   cat >>confdefs.h <<_ACEOF
5287 #define HAVE_BP_SYM_H 1
5288 _ACEOF
5289
5290 fi
5291
5292 done
5293
5294
5295   fi
5296
5297
5298       ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5299 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5300   ac_have_decl=1
5301 else
5302   ac_have_decl=0
5303 fi
5304
5305 cat >>confdefs.h <<_ACEOF
5306 #define HAVE_DECL_MEMMEM $ac_have_decl
5307 _ACEOF
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322   for ac_func in memmem
5323 do :
5324   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5325 if test "x$ac_cv_func_memmem" = x""yes; then :
5326   cat >>confdefs.h <<_ACEOF
5327 #define HAVE_MEMMEM 1
5328 _ACEOF
5329
5330 else
5331
5332     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5333
5334 fi
5335 done
5336
5337
5338
5339   :
5340
5341
5342
5343
5344
5345   if test $ac_cv_have_decl_memmem = no; then
5346     HAVE_DECL_MEMMEM=0
5347   fi
5348   :
5349
5350
5351     gl_cv_c_multiarch=no
5352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h.  */
5354 #ifndef __APPLE_CC__
5355          not a universal capable compiler
5356         #endif
5357         typedef int dummy;
5358
5359 _ACEOF
5360 if ac_fn_c_try_compile "$LINENO"; then :
5361
5362                arch=
5363      prev=
5364      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5365        if test -n "$prev"; then
5366          case $word in
5367            i?86 | x86_64 | ppc | ppc64)
5368              if test -z "$arch" || test "$arch" = "$word"; then
5369                arch="$word"
5370              else
5371                gl_cv_c_multiarch=yes
5372              fi
5373              ;;
5374          esac
5375          prev=
5376        else
5377          if test "x$word" = "x-arch"; then
5378            prev=arch
5379          fi
5380        fi
5381      done
5382
5383 fi
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385   if test $gl_cv_c_multiarch = yes; then
5386
5387 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5388
5389     APPLE_UNIVERSAL_BUILD=1
5390   else
5391     APPLE_UNIVERSAL_BUILD=0
5392   fi
5393
5394
5395
5396     REPLACE_NULL=0;
5397   HAVE_WCHAR_T=1;
5398   STDDEF_H='';
5399
5400
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5402 $as_echo_n "checking for wchar_t... " >&6; }
5403 if test "${gt_cv_c_wchar_t+set}" = set; then :
5404   $as_echo_n "(cached) " >&6
5405 else
5406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h.  */
5408 #include <stddef.h>
5409        wchar_t foo = (wchar_t)'\0';
5410 int
5411 main ()
5412 {
5413
5414   ;
5415   return 0;
5416 }
5417 _ACEOF
5418 if ac_fn_c_try_compile "$LINENO"; then :
5419   gt_cv_c_wchar_t=yes
5420 else
5421   gt_cv_c_wchar_t=no
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 fi
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5426 $as_echo "$gt_cv_c_wchar_t" >&6; }
5427   if test $gt_cv_c_wchar_t = yes; then
5428
5429 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5430
5431   fi
5432
5433
5434
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5436 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5437 if test "${gl_cv_have_include_next+set}" = set; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   rm -rf conftestd1a conftestd1b conftestd2
5441      mkdir conftestd1a conftestd1b conftestd2
5442                                                   cat <<EOF > conftestd1a/conftest.h
5443 #define DEFINED_IN_CONFTESTD1
5444 #include_next <conftest.h>
5445 #ifdef DEFINED_IN_CONFTESTD2
5446 int foo;
5447 #else
5448 #error "include_next doesn't work"
5449 #endif
5450 EOF
5451      cat <<EOF > conftestd1b/conftest.h
5452 #define DEFINED_IN_CONFTESTD1
5453 #include <stdio.h>
5454 #include_next <conftest.h>
5455 #ifdef DEFINED_IN_CONFTESTD2
5456 int foo;
5457 #else
5458 #error "include_next doesn't work"
5459 #endif
5460 EOF
5461      cat <<EOF > conftestd2/conftest.h
5462 #ifndef DEFINED_IN_CONFTESTD1
5463 #error "include_next test doesn't work"
5464 #endif
5465 #define DEFINED_IN_CONFTESTD2
5466 EOF
5467      gl_save_CPPFLAGS="$CPPFLAGS"
5468      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5469      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h.  */
5471 #include <conftest.h>
5472 _ACEOF
5473 if ac_fn_c_try_compile "$LINENO"; then :
5474   gl_cv_have_include_next=yes
5475 else
5476   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5477         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h.  */
5479 #include <conftest.h>
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482   gl_cv_have_include_next=buggy
5483 else
5484   gl_cv_have_include_next=no
5485 fi
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487
5488 fi
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490      CPPFLAGS="$gl_save_CPPFLAGS"
5491      rm -rf conftestd1a conftestd1b conftestd2
5492
5493 fi
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5495 $as_echo "$gl_cv_have_include_next" >&6; }
5496   PRAGMA_SYSTEM_HEADER=
5497   if test $gl_cv_have_include_next = yes; then
5498     INCLUDE_NEXT=include_next
5499     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5500     if test -n "$GCC"; then
5501       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5502     fi
5503   else
5504     if test $gl_cv_have_include_next = buggy; then
5505       INCLUDE_NEXT=include
5506       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5507     else
5508       INCLUDE_NEXT=include
5509       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5510     fi
5511   fi
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5523 $as_echo_n "checking for long long int... " >&6; }
5524 if test "${ac_cv_type_long_long_int+set}" = set; then :
5525   $as_echo_n "(cached) " >&6
5526 else
5527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h.  */
5529
5530   /* For now, do not test the preprocessor; as of 2007 there are too many
5531          implementations with broken preprocessors.  Perhaps this can
5532          be revisited in 2012.  In the meantime, code should not expect
5533          #if to work with literals wider than 32 bits.  */
5534       /* Test literals.  */
5535       long long int ll = 9223372036854775807ll;
5536       long long int nll = -9223372036854775807LL;
5537       unsigned long long int ull = 18446744073709551615ULL;
5538       /* Test constant expressions.   */
5539       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5540                      ? 1 : -1)];
5541       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5542                      ? 1 : -1)];
5543       int i = 63;
5544 int
5545 main ()
5546 {
5547 /* Test availability of runtime routines for shift and division.  */
5548       long long int llmax = 9223372036854775807ll;
5549       unsigned long long int ullmax = 18446744073709551615ull;
5550       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5551               | (llmax / ll) | (llmax % ll)
5552               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5553               | (ullmax / ull) | (ullmax % ull));
5554   ;
5555   return 0;
5556 }
5557
5558 _ACEOF
5559 if ac_fn_c_try_link "$LINENO"; then :
5560                           if test "$cross_compiling" = yes; then :
5561   ac_cv_type_long_long_int=yes
5562 else
5563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h.  */
5565 #include <limits.h>
5566                #ifndef LLONG_MAX
5567                # define HALF \
5568                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5569                # define LLONG_MAX (HALF - 1 + HALF)
5570                #endif
5571 int
5572 main ()
5573 {
5574 long long int n = 1;
5575                int i;
5576                for (i = 0; ; i++)
5577                  {
5578                    long long int m = n << i;
5579                    if (m >> i != n)
5580                      return 1;
5581                    if (LLONG_MAX / 2 < m)
5582                      break;
5583                  }
5584                return 0;
5585   ;
5586   return 0;
5587 }
5588 _ACEOF
5589 if ac_fn_c_try_run "$LINENO"; then :
5590   ac_cv_type_long_long_int=yes
5591 else
5592   ac_cv_type_long_long_int=no
5593 fi
5594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5595   conftest.$ac_objext conftest.beam conftest.$ac_ext
5596 fi
5597
5598 else
5599   ac_cv_type_long_long_int=no
5600 fi
5601 rm -f core conftest.err conftest.$ac_objext \
5602     conftest$ac_exeext conftest.$ac_ext
5603 fi
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5605 $as_echo "$ac_cv_type_long_long_int" >&6; }
5606   if test $ac_cv_type_long_long_int = yes; then
5607
5608 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5609
5610   fi
5611
5612
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5614 $as_echo_n "checking for unsigned long long int... " >&6; }
5615 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5616   $as_echo_n "(cached) " >&6
5617 else
5618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h.  */
5620
5621   /* For now, do not test the preprocessor; as of 2007 there are too many
5622          implementations with broken preprocessors.  Perhaps this can
5623          be revisited in 2012.  In the meantime, code should not expect
5624          #if to work with literals wider than 32 bits.  */
5625       /* Test literals.  */
5626       long long int ll = 9223372036854775807ll;
5627       long long int nll = -9223372036854775807LL;
5628       unsigned long long int ull = 18446744073709551615ULL;
5629       /* Test constant expressions.   */
5630       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5631                      ? 1 : -1)];
5632       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5633                      ? 1 : -1)];
5634       int i = 63;
5635 int
5636 main ()
5637 {
5638 /* Test availability of runtime routines for shift and division.  */
5639       long long int llmax = 9223372036854775807ll;
5640       unsigned long long int ullmax = 18446744073709551615ull;
5641       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5642               | (llmax / ll) | (llmax % ll)
5643               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5644               | (ullmax / ull) | (ullmax % ull));
5645   ;
5646   return 0;
5647 }
5648
5649 _ACEOF
5650 if ac_fn_c_try_link "$LINENO"; then :
5651   ac_cv_type_unsigned_long_long_int=yes
5652 else
5653   ac_cv_type_unsigned_long_long_int=no
5654 fi
5655 rm -f core conftest.err conftest.$ac_objext \
5656     conftest$ac_exeext conftest.$ac_ext
5657 fi
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5659 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5660   if test $ac_cv_type_unsigned_long_long_int = yes; then
5661
5662 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5663
5664   fi
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5677 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5678 if test "${ac_cv_c_restrict+set}" = set; then :
5679   $as_echo_n "(cached) " >&6
5680 else
5681   ac_cv_c_restrict=no
5682    # The order here caters to the fact that C++ does not require restrict.
5683    for ac_kw in __restrict __restrict__ _Restrict restrict; do
5684      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h.  */
5686 typedef int * int_ptr;
5687         int foo (int_ptr $ac_kw ip) {
5688         return ip[0];
5689        }
5690 int
5691 main ()
5692 {
5693 int s[1];
5694         int * $ac_kw t = s;
5695         t[0] = 0;
5696         return foo(t)
5697   ;
5698   return 0;
5699 }
5700 _ACEOF
5701 if ac_fn_c_try_compile "$LINENO"; then :
5702   ac_cv_c_restrict=$ac_kw
5703 fi
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705      test "$ac_cv_c_restrict" != no && break
5706    done
5707
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5710 $as_echo "$ac_cv_c_restrict" >&6; }
5711
5712  case $ac_cv_c_restrict in
5713    restrict) ;;
5714    no) $as_echo "#define restrict /**/" >>confdefs.h
5715  ;;
5716    *)  cat >>confdefs.h <<_ACEOF
5717 #define restrict $ac_cv_c_restrict
5718 _ACEOF
5719  ;;
5720  esac
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734   :
5735
5736
5737
5738
5739
5740
5741
5742      if test $gl_cv_have_include_next = yes; then
5743        gl_cv_next_string_h='<'string.h'>'
5744      else
5745        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5746 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5747 if test "${gl_cv_next_string_h+set}" = set; then :
5748   $as_echo_n "(cached) " >&6
5749 else
5750
5751           if test $ac_cv_header_string_h = yes; then
5752             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h.  */
5754 #include <string.h>
5755
5756 _ACEOF
5757                                                                                                 case "$host_os" in
5758               aix*) gl_absname_cpp="$ac_cpp -C" ;;
5759               *)    gl_absname_cpp="$ac_cpp" ;;
5760             esac
5761                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5762                sed -n '\#/string.h#{
5763                  s#.*"\(.*/string.h\)".*#\1#
5764                  s#^/[^/]#//&#
5765                  p
5766                  q
5767                }'`'"'
5768           else
5769             gl_cv_next_string_h='<'string.h'>'
5770           fi
5771
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5774 $as_echo "$gl_cv_next_string_h" >&6; }
5775      fi
5776      NEXT_STRING_H=$gl_cv_next_string_h
5777
5778      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5779        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5780        gl_next_as_first_directive='<'string.h'>'
5781      else
5782        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5783        gl_next_as_first_directive=$gl_cv_next_string_h
5784      fi
5785      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5786
5787
5788
5789
5790
5791     for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
5792     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5794 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5795 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h.  */
5800 #include <string.h>
5801
5802 int
5803 main ()
5804 {
5805 #undef $gl_func
5806   (void) $gl_func;
5807   ;
5808   return 0;
5809 }
5810 _ACEOF
5811 if ac_fn_c_try_compile "$LINENO"; then :
5812   eval "$as_gl_Symbol=yes"
5813 else
5814   eval "$as_gl_Symbol=no"
5815 fi
5816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817 fi
5818 eval ac_res=\$$as_gl_Symbol
5819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5820 $as_echo "$ac_res" >&6; }
5821      eval as_val=\$$as_gl_Symbol
5822    if test "x$as_val" = x""yes; then :
5823   cat >>confdefs.h <<_ACEOF
5824 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5825 _ACEOF
5826
5827                      eval ac_cv_have_decl_$gl_func=yes
5828 fi
5829       done
5830
5831
5832
5833   GNULIB_BTOWC=0;
5834   GNULIB_WCTOB=0;
5835   GNULIB_MBSINIT=0;
5836   GNULIB_MBRTOWC=0;
5837   GNULIB_MBRLEN=0;
5838   GNULIB_MBSRTOWCS=0;
5839   GNULIB_MBSNRTOWCS=0;
5840   GNULIB_WCRTOMB=0;
5841   GNULIB_WCSRTOMBS=0;
5842   GNULIB_WCSNRTOMBS=0;
5843   GNULIB_WCWIDTH=0;
5844     HAVE_BTOWC=1;
5845   HAVE_MBSINIT=1;
5846   HAVE_MBRTOWC=1;
5847   HAVE_MBRLEN=1;
5848   HAVE_MBSRTOWCS=1;
5849   HAVE_MBSNRTOWCS=1;
5850   HAVE_WCRTOMB=1;
5851   HAVE_WCSRTOMBS=1;
5852   HAVE_WCSNRTOMBS=1;
5853   HAVE_DECL_WCTOB=1;
5854   HAVE_DECL_WCWIDTH=1;
5855   REPLACE_MBSTATE_T=0;
5856   REPLACE_BTOWC=0;
5857   REPLACE_WCTOB=0;
5858   REPLACE_MBSINIT=0;
5859   REPLACE_MBRTOWC=0;
5860   REPLACE_MBRLEN=0;
5861   REPLACE_MBSRTOWCS=0;
5862   REPLACE_MBSNRTOWCS=0;
5863   REPLACE_WCRTOMB=0;
5864   REPLACE_WCSRTOMBS=0;
5865   REPLACE_WCSNRTOMBS=0;
5866   REPLACE_WCWIDTH=0;
5867
5868
5869             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5870 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5871 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874   gl_cv_header_wchar_h_correct_inline=yes
5875      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h.  */
5877
5878        #define wcstod renamed_wcstod
5879 #include <wchar.h>
5880 extern int zero (void);
5881 int main () { return zero(); }
5882
5883 _ACEOF
5884      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5885   (eval $ac_compile) 2>&5
5886   ac_status=$?
5887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5888   test $ac_status = 0; }; then
5889        mv conftest.$ac_objext conftest1.$ac_objext
5890        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h.  */
5892
5893          #define wcstod renamed_wcstod
5894 #include <wchar.h>
5895 int zero (void) { return 0; }
5896
5897 _ACEOF
5898        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5899   (eval $ac_compile) 2>&5
5900   ac_status=$?
5901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5902   test $ac_status = 0; }; then
5903          mv conftest.$ac_objext conftest2.$ac_objext
5904          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5905            :
5906          else
5907            gl_cv_header_wchar_h_correct_inline=no
5908          fi
5909        fi
5910      fi
5911      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5912
5913 fi
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5915 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5916   if test $gl_cv_header_wchar_h_correct_inline = no; then
5917     as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5918 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5919 C99 mode. You have four options:
5920   - Add the flag -fgnu89-inline to CC and reconfigure, or
5921   - Fix your include files, using parts of
5922     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5923   - Use a gcc version older than 4.3, or
5924   - Don't use the flags -std=c99 or -std=gnu99.
5925 Configuration aborted." "$LINENO" 5
5926   fi
5927
5928
5929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5930 $as_echo_n "checking for wint_t... " >&6; }
5931 if test "${gt_cv_c_wint_t+set}" = set; then :
5932   $as_echo_n "(cached) " >&6
5933 else
5934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h.  */
5936
5937 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5938    <wchar.h>.
5939    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5940    before <wchar.h>.  */
5941 #include <stddef.h>
5942 #include <stdio.h>
5943 #include <time.h>
5944 #include <wchar.h>
5945        wint_t foo = (wchar_t)'\0';
5946 int
5947 main ()
5948 {
5949
5950   ;
5951   return 0;
5952 }
5953 _ACEOF
5954 if ac_fn_c_try_compile "$LINENO"; then :
5955   gt_cv_c_wint_t=yes
5956 else
5957   gt_cv_c_wint_t=no
5958 fi
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5962 $as_echo "$gt_cv_c_wint_t" >&6; }
5963   if test $gt_cv_c_wint_t = yes; then
5964
5965 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5966
5967   fi
5968
5969
5970    if false; then
5971   GL_COND_LIBTOOL_TRUE=
5972   GL_COND_LIBTOOL_FALSE='#'
5973 else
5974   GL_COND_LIBTOOL_TRUE='#'
5975   GL_COND_LIBTOOL_FALSE=
5976 fi
5977
5978   gl_cond_libtool=false
5979   gl_libdeps=
5980   gl_ltlibdeps=
5981   gl_m4_base='gnulib/m4'
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991   gl_source_base='gnulib'
5992   # Code from module arg-nonnull:
5993   # Code from module c++defs:
5994   # Code from module extensions:
5995   # Code from module include_next:
5996   # Code from module memchr:
5997
5998
5999
6000
6001   GNULIB_MEMCHR=1
6002
6003
6004
6005 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
6006
6007
6008
6009   # Code from module memmem:
6010
6011
6012   if test $ac_cv_have_decl_memmem = yes; then
6013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6014 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6015 if test "${gl_cv_func_memmem_works+set}" = set; then :
6016   $as_echo_n "(cached) " >&6
6017 else
6018   if test "$cross_compiling" = yes; then :
6019                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h.  */
6021
6022 #include <features.h>
6023 #ifdef __GNU_LIBRARY__
6024  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6025   Lucky user
6026  #endif
6027 #endif
6028 #ifdef __CYGWIN__
6029  #include <cygwin/version.h>
6030  #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6031   Lucky user
6032  #endif
6033 #endif
6034
6035 _ACEOF
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037   $EGREP "Lucky user" >/dev/null 2>&1; then :
6038   gl_cv_func_memmem_works=yes
6039 else
6040   gl_cv_func_memmem_works="guessing no"
6041 fi
6042 rm -f conftest*
6043
6044
6045 else
6046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h.  */
6048
6049 #include <signal.h> /* for signal */
6050 #include <string.h> /* for memmem */
6051 #include <stdlib.h> /* for malloc */
6052 #include <unistd.h> /* for alarm */
6053
6054 int
6055 main ()
6056 {
6057 size_t m = 1000000;
6058     char *haystack = (char *) malloc (2 * m + 1);
6059     char *needle = (char *) malloc (m + 1);
6060     void *result = 0;
6061     /* Failure to compile this test due to missing alarm is okay,
6062        since all such platforms (mingw) also lack memmem.  */
6063     signal (SIGALRM, SIG_DFL);
6064     alarm (5);
6065     /* Check for quadratic performance.  */
6066     if (haystack && needle)
6067       {
6068         memset (haystack, 'A', 2 * m);
6069         haystack[2 * m] = 'B';
6070         memset (needle, 'A', m);
6071         needle[m] = 'B';
6072         result = memmem (haystack, 2 * m + 1, needle, m + 1);
6073       }
6074     /* Check for empty needle behavior.  */
6075     return !result || !memmem ("a", 1, 0, 0);
6076   ;
6077   return 0;
6078 }
6079 _ACEOF
6080 if ac_fn_c_try_run "$LINENO"; then :
6081   gl_cv_func_memmem_works=yes
6082 else
6083   gl_cv_func_memmem_works=no
6084 fi
6085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6086   conftest.$ac_objext conftest.beam conftest.$ac_ext
6087 fi
6088
6089
6090 fi
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6092 $as_echo "$gl_cv_func_memmem_works" >&6; }
6093     if test "$gl_cv_func_memmem_works" != yes; then
6094       REPLACE_MEMMEM=1
6095
6096
6097
6098
6099
6100
6101
6102
6103   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6104
6105     fi
6106   fi
6107
6108   # Code from module memmem-simple:
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121   for ac_func in memmem
6122 do :
6123   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6124 if test "x$ac_cv_func_memmem" = x""yes; then :
6125   cat >>confdefs.h <<_ACEOF
6126 #define HAVE_MEMMEM 1
6127 _ACEOF
6128
6129 else
6130
6131     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6132
6133 fi
6134 done
6135
6136
6137
6138   :
6139
6140
6141
6142
6143
6144   if test $ac_cv_have_decl_memmem = no; then
6145     HAVE_DECL_MEMMEM=0
6146   fi
6147   :
6148
6149
6150
6151
6152   GNULIB_MEMMEM=1
6153
6154
6155
6156 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6157
6158
6159
6160   # Code from module multiarch:
6161
6162   # Code from module stddef:
6163
6164
6165
6166   if test $gt_cv_c_wchar_t = no; then
6167     HAVE_WCHAR_T=0
6168     STDDEF_H=stddef.h
6169   fi
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6171 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6172 if test "${gl_cv_decl_null_works+set}" = set; then :
6173   $as_echo_n "(cached) " >&6
6174 else
6175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h.  */
6177 #include <stddef.h>
6178       int test[2 * (sizeof NULL == sizeof (void *)) -1];
6179
6180 int
6181 main ()
6182 {
6183
6184   ;
6185   return 0;
6186 }
6187 _ACEOF
6188 if ac_fn_c_try_compile "$LINENO"; then :
6189   gl_cv_decl_null_works=yes
6190 else
6191   gl_cv_decl_null_works=no
6192 fi
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 fi
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6196 $as_echo "$gl_cv_decl_null_works" >&6; }
6197   if test $gl_cv_decl_null_works = no; then
6198     REPLACE_NULL=1
6199     STDDEF_H=stddef.h
6200   fi
6201   if test -n "$STDDEF_H"; then
6202
6203
6204
6205
6206   :
6207
6208
6209
6210
6211
6212
6213
6214      if test $gl_cv_have_include_next = yes; then
6215        gl_cv_next_stddef_h='<'stddef.h'>'
6216      else
6217        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6218 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6219 if test "${gl_cv_next_stddef_h+set}" = set; then :
6220   $as_echo_n "(cached) " >&6
6221 else
6222
6223           if test $ac_cv_header_stddef_h = yes; then
6224             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h.  */
6226 #include <stddef.h>
6227
6228 _ACEOF
6229                                                                                                 case "$host_os" in
6230               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6231               *)    gl_absname_cpp="$ac_cpp" ;;
6232             esac
6233                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6234                sed -n '\#/stddef.h#{
6235                  s#.*"\(.*/stddef.h\)".*#\1#
6236                  s#^/[^/]#//&#
6237                  p
6238                  q
6239                }'`'"'
6240           else
6241             gl_cv_next_stddef_h='<'stddef.h'>'
6242           fi
6243
6244 fi
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6246 $as_echo "$gl_cv_next_stddef_h" >&6; }
6247      fi
6248      NEXT_STDDEF_H=$gl_cv_next_stddef_h
6249
6250      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6251        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6252        gl_next_as_first_directive='<'stddef.h'>'
6253      else
6254        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6255        gl_next_as_first_directive=$gl_cv_next_stddef_h
6256      fi
6257      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6258
6259
6260
6261   fi
6262
6263   # Code from module stdint:
6264
6265
6266
6267   if test $ac_cv_type_long_long_int = yes; then
6268     HAVE_LONG_LONG_INT=1
6269   else
6270     HAVE_LONG_LONG_INT=0
6271   fi
6272
6273
6274   if test $ac_cv_type_unsigned_long_long_int = yes; then
6275     HAVE_UNSIGNED_LONG_LONG_INT=1
6276   else
6277     HAVE_UNSIGNED_LONG_LONG_INT=0
6278   fi
6279
6280
6281       if test $ac_cv_header_inttypes_h = yes; then
6282     HAVE_INTTYPES_H=1
6283   else
6284     HAVE_INTTYPES_H=0
6285   fi
6286
6287
6288       if test $ac_cv_header_sys_types_h = yes; then
6289     HAVE_SYS_TYPES_H=1
6290   else
6291     HAVE_SYS_TYPES_H=0
6292   fi
6293
6294
6295
6296
6297
6298
6299   :
6300
6301
6302
6303
6304
6305
6306
6307      if test $gl_cv_have_include_next = yes; then
6308        gl_cv_next_stdint_h='<'stdint.h'>'
6309      else
6310        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6311 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6312 if test "${gl_cv_next_stdint_h+set}" = set; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315
6316           if test $ac_cv_header_stdint_h = yes; then
6317             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h.  */
6319 #include <stdint.h>
6320
6321 _ACEOF
6322                                                                                                 case "$host_os" in
6323               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6324               *)    gl_absname_cpp="$ac_cpp" ;;
6325             esac
6326                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6327                sed -n '\#/stdint.h#{
6328                  s#.*"\(.*/stdint.h\)".*#\1#
6329                  s#^/[^/]#//&#
6330                  p
6331                  q
6332                }'`'"'
6333           else
6334             gl_cv_next_stdint_h='<'stdint.h'>'
6335           fi
6336
6337 fi
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6339 $as_echo "$gl_cv_next_stdint_h" >&6; }
6340      fi
6341      NEXT_STDINT_H=$gl_cv_next_stdint_h
6342
6343      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6344        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6345        gl_next_as_first_directive='<'stdint.h'>'
6346      else
6347        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6348        gl_next_as_first_directive=$gl_cv_next_stdint_h
6349      fi
6350      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6351
6352
6353
6354   if test $ac_cv_header_stdint_h = yes; then
6355     HAVE_STDINT_H=1
6356   else
6357     HAVE_STDINT_H=0
6358   fi
6359
6360
6361     if test $ac_cv_header_stdint_h = yes; then
6362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6363 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6364 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6365   $as_echo_n "(cached) " >&6
6366 else
6367   gl_cv_header_working_stdint_h=no
6368        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h.  */
6370
6371
6372 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6373 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6374 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6375 #include <stdint.h>
6376 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
6377 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6378 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6379 #endif
6380
6381
6382   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6383      included before <wchar.h>.  */
6384   #include <stddef.h>
6385   #include <signal.h>
6386   #if HAVE_WCHAR_H
6387   # include <stdio.h>
6388   # include <time.h>
6389   # include <wchar.h>
6390   #endif
6391
6392
6393 #ifdef INT8_MAX
6394 int8_t a1 = INT8_MAX;
6395 int8_t a1min = INT8_MIN;
6396 #endif
6397 #ifdef INT16_MAX
6398 int16_t a2 = INT16_MAX;
6399 int16_t a2min = INT16_MIN;
6400 #endif
6401 #ifdef INT32_MAX
6402 int32_t a3 = INT32_MAX;
6403 int32_t a3min = INT32_MIN;
6404 #endif
6405 #ifdef INT64_MAX
6406 int64_t a4 = INT64_MAX;
6407 int64_t a4min = INT64_MIN;
6408 #endif
6409 #ifdef UINT8_MAX
6410 uint8_t b1 = UINT8_MAX;
6411 #else
6412 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6413 #endif
6414 #ifdef UINT16_MAX
6415 uint16_t b2 = UINT16_MAX;
6416 #endif
6417 #ifdef UINT32_MAX
6418 uint32_t b3 = UINT32_MAX;
6419 #endif
6420 #ifdef UINT64_MAX
6421 uint64_t b4 = UINT64_MAX;
6422 #endif
6423 int_least8_t c1 = INT8_C (0x7f);
6424 int_least8_t c1max = INT_LEAST8_MAX;
6425 int_least8_t c1min = INT_LEAST8_MIN;
6426 int_least16_t c2 = INT16_C (0x7fff);
6427 int_least16_t c2max = INT_LEAST16_MAX;
6428 int_least16_t c2min = INT_LEAST16_MIN;
6429 int_least32_t c3 = INT32_C (0x7fffffff);
6430 int_least32_t c3max = INT_LEAST32_MAX;
6431 int_least32_t c3min = INT_LEAST32_MIN;
6432 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6433 int_least64_t c4max = INT_LEAST64_MAX;
6434 int_least64_t c4min = INT_LEAST64_MIN;
6435 uint_least8_t d1 = UINT8_C (0xff);
6436 uint_least8_t d1max = UINT_LEAST8_MAX;
6437 uint_least16_t d2 = UINT16_C (0xffff);
6438 uint_least16_t d2max = UINT_LEAST16_MAX;
6439 uint_least32_t d3 = UINT32_C (0xffffffff);
6440 uint_least32_t d3max = UINT_LEAST32_MAX;
6441 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6442 uint_least64_t d4max = UINT_LEAST64_MAX;
6443 int_fast8_t e1 = INT_FAST8_MAX;
6444 int_fast8_t e1min = INT_FAST8_MIN;
6445 int_fast16_t e2 = INT_FAST16_MAX;
6446 int_fast16_t e2min = INT_FAST16_MIN;
6447 int_fast32_t e3 = INT_FAST32_MAX;
6448 int_fast32_t e3min = INT_FAST32_MIN;
6449 int_fast64_t e4 = INT_FAST64_MAX;
6450 int_fast64_t e4min = INT_FAST64_MIN;
6451 uint_fast8_t f1 = UINT_FAST8_MAX;
6452 uint_fast16_t f2 = UINT_FAST16_MAX;
6453 uint_fast32_t f3 = UINT_FAST32_MAX;
6454 uint_fast64_t f4 = UINT_FAST64_MAX;
6455 #ifdef INTPTR_MAX
6456 intptr_t g = INTPTR_MAX;
6457 intptr_t gmin = INTPTR_MIN;
6458 #endif
6459 #ifdef UINTPTR_MAX
6460 uintptr_t h = UINTPTR_MAX;
6461 #endif
6462 intmax_t i = INTMAX_MAX;
6463 uintmax_t j = UINTMAX_MAX;
6464
6465 #include <limits.h> /* for CHAR_BIT */
6466 #define TYPE_MINIMUM(t) \
6467   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6468 #define TYPE_MAXIMUM(t) \
6469   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6470 struct s {
6471   int check_PTRDIFF:
6472       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6473       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6474       ? 1 : -1;
6475   /* Detect bug in FreeBSD 6.0 / ia64.  */
6476   int check_SIG_ATOMIC:
6477       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6478       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6479       ? 1 : -1;
6480   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6481   int check_WCHAR:
6482       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6483       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6484       ? 1 : -1;
6485   /* Detect bug in mingw.  */
6486   int check_WINT:
6487       WINT_MIN == TYPE_MINIMUM (wint_t)
6488       && WINT_MAX == TYPE_MAXIMUM (wint_t)
6489       ? 1 : -1;
6490
6491   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
6492   int check_UINT8_C:
6493         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6494   int check_UINT16_C:
6495         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6496
6497   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
6498 #ifdef UINT8_MAX
6499   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6500 #endif
6501 #ifdef UINT16_MAX
6502   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6503 #endif
6504 #ifdef UINT32_MAX
6505   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6506 #endif
6507 #ifdef UINT64_MAX
6508   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6509 #endif
6510   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6511   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6512   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6513   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6514   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6515   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6516   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6517   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6518   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6519   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6520   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6521 };
6522
6523 int
6524 main ()
6525 {
6526
6527   ;
6528   return 0;
6529 }
6530 _ACEOF
6531 if ac_fn_c_try_compile "$LINENO"; then :
6532                                                     if test "$cross_compiling" = yes; then :
6533                  gl_cv_header_working_stdint_h=yes
6534
6535 else
6536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h.  */
6538
6539
6540 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6541 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6542 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6543 #include <stdint.h>
6544
6545
6546   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6547      included before <wchar.h>.  */
6548   #include <stddef.h>
6549   #include <signal.h>
6550   #if HAVE_WCHAR_H
6551   # include <stdio.h>
6552   # include <time.h>
6553   # include <wchar.h>
6554   #endif
6555
6556
6557 #include <stdio.h>
6558 #include <string.h>
6559 #define MVAL(macro) MVAL1(macro)
6560 #define MVAL1(expression) #expression
6561 static const char *macro_values[] =
6562   {
6563 #ifdef INT8_MAX
6564     MVAL (INT8_MAX),
6565 #endif
6566 #ifdef INT16_MAX
6567     MVAL (INT16_MAX),
6568 #endif
6569 #ifdef INT32_MAX
6570     MVAL (INT32_MAX),
6571 #endif
6572 #ifdef INT64_MAX
6573     MVAL (INT64_MAX),
6574 #endif
6575 #ifdef UINT8_MAX
6576     MVAL (UINT8_MAX),
6577 #endif
6578 #ifdef UINT16_MAX
6579     MVAL (UINT16_MAX),
6580 #endif
6581 #ifdef UINT32_MAX
6582     MVAL (UINT32_MAX),
6583 #endif
6584 #ifdef UINT64_MAX
6585     MVAL (UINT64_MAX),
6586 #endif
6587     NULL
6588   };
6589
6590 int
6591 main ()
6592 {
6593
6594   const char **mv;
6595   for (mv = macro_values; *mv != NULL; mv++)
6596     {
6597       const char *value = *mv;
6598       /* Test whether it looks like a cast expression.  */
6599       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6600           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6601           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6602           || strncmp (value, "((int)"/*)*/, 6) == 0
6603           || strncmp (value, "((signed short)"/*)*/, 15) == 0
6604           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6605         return 1;
6606     }
6607   return 0;
6608
6609   ;
6610   return 0;
6611 }
6612 _ACEOF
6613 if ac_fn_c_try_run "$LINENO"; then :
6614   gl_cv_header_working_stdint_h=yes
6615 fi
6616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6617   conftest.$ac_objext conftest.beam conftest.$ac_ext
6618 fi
6619
6620
6621 fi
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623
6624 fi
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6626 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6627   fi
6628   if test "$gl_cv_header_working_stdint_h" = yes; then
6629     STDINT_H=
6630   else
6631             for ac_header in sys/inttypes.h sys/bitypes.h
6632 do :
6633   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6634 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6635 eval as_val=\$$as_ac_Header
6636    if test "x$as_val" = x""yes; then :
6637   cat >>confdefs.h <<_ACEOF
6638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6639 _ACEOF
6640
6641 fi
6642
6643 done
6644
6645     if test $ac_cv_header_sys_inttypes_h = yes; then
6646       HAVE_SYS_INTTYPES_H=1
6647     else
6648       HAVE_SYS_INTTYPES_H=0
6649     fi
6650
6651     if test $ac_cv_header_sys_bitypes_h = yes; then
6652       HAVE_SYS_BITYPES_H=1
6653     else
6654       HAVE_SYS_BITYPES_H=0
6655     fi
6656
6657
6658
6659   :
6660
6661
6662
6663
6664
6665
6666
6667
6668   if test $APPLE_UNIVERSAL_BUILD = 0; then
6669
6670
6671   for gltype in ptrdiff_t size_t ; do
6672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6673 $as_echo_n "checking for bit size of $gltype... " >&6; }
6674 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6675   $as_echo_n "(cached) " >&6
6676 else
6677   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
6678   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6679      included before <wchar.h>.  */
6680   #include <stddef.h>
6681   #include <signal.h>
6682   #if HAVE_WCHAR_H
6683   # include <stdio.h>
6684   # include <time.h>
6685   # include <wchar.h>
6686   #endif
6687
6688 #include <limits.h>"; then :
6689
6690 else
6691   result=unknown
6692 fi
6693
6694        eval gl_cv_bitsizeof_${gltype}=\$result
6695
6696 fi
6697 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6698                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6699 $as_echo "$ac_res" >&6; }
6700     eval result=\$gl_cv_bitsizeof_${gltype}
6701     if test $result = unknown; then
6702                                                 result=0
6703     fi
6704     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6705     cat >>confdefs.h <<_ACEOF
6706 #define BITSIZEOF_${GLTYPE} $result
6707 _ACEOF
6708
6709     eval BITSIZEOF_${GLTYPE}=\$result
6710   done
6711
6712
6713   fi
6714
6715
6716   for gltype in sig_atomic_t wchar_t wint_t ; do
6717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6718 $as_echo_n "checking for bit size of $gltype... " >&6; }
6719 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6720   $as_echo_n "(cached) " >&6
6721 else
6722   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
6723   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6724      included before <wchar.h>.  */
6725   #include <stddef.h>
6726   #include <signal.h>
6727   #if HAVE_WCHAR_H
6728   # include <stdio.h>
6729   # include <time.h>
6730   # include <wchar.h>
6731   #endif
6732
6733 #include <limits.h>"; then :
6734
6735 else
6736   result=unknown
6737 fi
6738
6739        eval gl_cv_bitsizeof_${gltype}=\$result
6740
6741 fi
6742 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6743                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6744 $as_echo "$ac_res" >&6; }
6745     eval result=\$gl_cv_bitsizeof_${gltype}
6746     if test $result = unknown; then
6747                                                 result=0
6748     fi
6749     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6750     cat >>confdefs.h <<_ACEOF
6751 #define BITSIZEOF_${GLTYPE} $result
6752 _ACEOF
6753
6754     eval BITSIZEOF_${GLTYPE}=\$result
6755   done
6756
6757
6758
6759
6760   for gltype in sig_atomic_t wchar_t wint_t ; do
6761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6762 $as_echo_n "checking whether $gltype is signed... " >&6; }
6763 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6764   $as_echo_n "(cached) " >&6
6765 else
6766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h.  */
6768
6769   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6770      included before <wchar.h>.  */
6771   #include <stddef.h>
6772   #include <signal.h>
6773   #if HAVE_WCHAR_H
6774   # include <stdio.h>
6775   # include <time.h>
6776   # include <wchar.h>
6777   #endif
6778
6779             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6780 int
6781 main ()
6782 {
6783
6784   ;
6785   return 0;
6786 }
6787 _ACEOF
6788 if ac_fn_c_try_compile "$LINENO"; then :
6789   result=yes
6790 else
6791   result=no
6792 fi
6793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794        eval gl_cv_type_${gltype}_signed=\$result
6795
6796 fi
6797 eval ac_res=\$gl_cv_type_${gltype}_signed
6798                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6799 $as_echo "$ac_res" >&6; }
6800     eval result=\$gl_cv_type_${gltype}_signed
6801     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6802     if test "$result" = yes; then
6803       cat >>confdefs.h <<_ACEOF
6804 #define HAVE_SIGNED_${GLTYPE} 1
6805 _ACEOF
6806
6807       eval HAVE_SIGNED_${GLTYPE}=1
6808     else
6809       eval HAVE_SIGNED_${GLTYPE}=0
6810     fi
6811   done
6812
6813
6814   gl_cv_type_ptrdiff_t_signed=yes
6815   gl_cv_type_size_t_signed=no
6816   if test $APPLE_UNIVERSAL_BUILD = 0; then
6817
6818
6819   for gltype in ptrdiff_t size_t ; do
6820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6821 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6822 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6823   $as_echo_n "(cached) " >&6
6824 else
6825   eval gl_cv_type_${gltype}_suffix=no
6826        eval result=\$gl_cv_type_${gltype}_signed
6827        if test "$result" = yes; then
6828          glsufu=
6829        else
6830          glsufu=u
6831        fi
6832        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6833          case $glsuf in
6834            '')  gltype1='int';;
6835            l)   gltype1='long int';;
6836            ll)  gltype1='long long int';;
6837            i64) gltype1='__int64';;
6838            u)   gltype1='unsigned int';;
6839            ul)  gltype1='unsigned long int';;
6840            ull) gltype1='unsigned long long int';;
6841            ui64)gltype1='unsigned __int64';;
6842          esac
6843          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h.  */
6845
6846   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6847      included before <wchar.h>.  */
6848   #include <stddef.h>
6849   #include <signal.h>
6850   #if HAVE_WCHAR_H
6851   # include <stdio.h>
6852   # include <time.h>
6853   # include <wchar.h>
6854   #endif
6855
6856               extern $gltype foo;
6857               extern $gltype1 foo;
6858 int
6859 main ()
6860 {
6861
6862   ;
6863   return 0;
6864 }
6865 _ACEOF
6866 if ac_fn_c_try_compile "$LINENO"; then :
6867   eval gl_cv_type_${gltype}_suffix=\$glsuf
6868 fi
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870          eval result=\$gl_cv_type_${gltype}_suffix
6871          test "$result" != no && break
6872        done
6873 fi
6874 eval ac_res=\$gl_cv_type_${gltype}_suffix
6875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6876 $as_echo "$ac_res" >&6; }
6877     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6878     eval result=\$gl_cv_type_${gltype}_suffix
6879     test "$result" = no && result=
6880     eval ${GLTYPE}_SUFFIX=\$result
6881     cat >>confdefs.h <<_ACEOF
6882 #define ${GLTYPE}_SUFFIX $result
6883 _ACEOF
6884
6885   done
6886
6887
6888   fi
6889
6890
6891   for gltype in sig_atomic_t wchar_t wint_t ; do
6892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6893 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6894 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897   eval gl_cv_type_${gltype}_suffix=no
6898        eval result=\$gl_cv_type_${gltype}_signed
6899        if test "$result" = yes; then
6900          glsufu=
6901        else
6902          glsufu=u
6903        fi
6904        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6905          case $glsuf in
6906            '')  gltype1='int';;
6907            l)   gltype1='long int';;
6908            ll)  gltype1='long long int';;
6909            i64) gltype1='__int64';;
6910            u)   gltype1='unsigned int';;
6911            ul)  gltype1='unsigned long int';;
6912            ull) gltype1='unsigned long long int';;
6913            ui64)gltype1='unsigned __int64';;
6914          esac
6915          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h.  */
6917
6918   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6919      included before <wchar.h>.  */
6920   #include <stddef.h>
6921   #include <signal.h>
6922   #if HAVE_WCHAR_H
6923   # include <stdio.h>
6924   # include <time.h>
6925   # include <wchar.h>
6926   #endif
6927
6928               extern $gltype foo;
6929               extern $gltype1 foo;
6930 int
6931 main ()
6932 {
6933
6934   ;
6935   return 0;
6936 }
6937 _ACEOF
6938 if ac_fn_c_try_compile "$LINENO"; then :
6939   eval gl_cv_type_${gltype}_suffix=\$glsuf
6940 fi
6941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942          eval result=\$gl_cv_type_${gltype}_suffix
6943          test "$result" != no && break
6944        done
6945 fi
6946 eval ac_res=\$gl_cv_type_${gltype}_suffix
6947                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6948 $as_echo "$ac_res" >&6; }
6949     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6950     eval result=\$gl_cv_type_${gltype}_suffix
6951     test "$result" = no && result=
6952     eval ${GLTYPE}_SUFFIX=\$result
6953     cat >>confdefs.h <<_ACEOF
6954 #define ${GLTYPE}_SUFFIX $result
6955 _ACEOF
6956
6957   done
6958
6959
6960
6961     STDINT_H=stdint.h
6962   fi
6963
6964
6965   # Code from module string:
6966
6967
6968
6969   # Code from module warn-on-use:
6970   # Code from module wchar:
6971
6972
6973
6974
6975   :
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985   :
6986
6987
6988
6989
6990
6991
6992
6993      if test $gl_cv_have_include_next = yes; then
6994        gl_cv_next_wchar_h='<'wchar.h'>'
6995      else
6996        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6997 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6998 if test "${gl_cv_next_wchar_h+set}" = set; then :
6999   $as_echo_n "(cached) " >&6
7000 else
7001
7002           if test $ac_cv_header_wchar_h = yes; then
7003             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h.  */
7005 #include <wchar.h>
7006
7007 _ACEOF
7008                                                                                                 case "$host_os" in
7009               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7010               *)    gl_absname_cpp="$ac_cpp" ;;
7011             esac
7012                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7013                sed -n '\#/wchar.h#{
7014                  s#.*"\(.*/wchar.h\)".*#\1#
7015                  s#^/[^/]#//&#
7016                  p
7017                  q
7018                }'`'"'
7019           else
7020             gl_cv_next_wchar_h='<'wchar.h'>'
7021           fi
7022
7023 fi
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7025 $as_echo "$gl_cv_next_wchar_h" >&6; }
7026      fi
7027      NEXT_WCHAR_H=$gl_cv_next_wchar_h
7028
7029      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7030        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7031        gl_next_as_first_directive='<'wchar.h'>'
7032      else
7033        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7034        gl_next_as_first_directive=$gl_cv_next_wchar_h
7035      fi
7036      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7037
7038
7039
7040   if test $ac_cv_header_wchar_h = yes; then
7041     HAVE_WCHAR_H=1
7042   else
7043     HAVE_WCHAR_H=0
7044   fi
7045
7046
7047
7048   if test $gt_cv_c_wint_t = yes; then
7049     HAVE_WINT_T=1
7050   else
7051     HAVE_WINT_T=0
7052   fi
7053
7054
7055
7056     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
7057     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7059 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7060 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h.  */
7065
7066 /* Some systems require additional headers.  */
7067 #ifndef __GLIBC__
7068 # include <stddef.h>
7069 # include <stdio.h>
7070 # include <time.h>
7071 #endif
7072 #include <wchar.h>
7073
7074 int
7075 main ()
7076 {
7077 #undef $gl_func
7078   (void) $gl_func;
7079   ;
7080   return 0;
7081 }
7082 _ACEOF
7083 if ac_fn_c_try_compile "$LINENO"; then :
7084   eval "$as_gl_Symbol=yes"
7085 else
7086   eval "$as_gl_Symbol=no"
7087 fi
7088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089 fi
7090 eval ac_res=\$$as_gl_Symbol
7091                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7092 $as_echo "$ac_res" >&6; }
7093      eval as_val=\$$as_gl_Symbol
7094    if test "x$as_val" = x""yes; then :
7095   cat >>confdefs.h <<_ACEOF
7096 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7097 _ACEOF
7098
7099                      eval ac_cv_have_decl_$gl_func=yes
7100 fi
7101       done
7102
7103
7104   # Code from module dummy:
7105   # End of code from modules
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115   gltests_libdeps=
7116   gltests_ltlibdeps=
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126   gl_source_base='tests'
7127   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
7128
7129   gl_module_indicator_condition=$gltests_WITNESS
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139   LIBGNU_LIBDEPS="$gl_libdeps"
7140
7141   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7142
7143
7144
7145 # For Makefile dependencies.
7146 GNULIB_STDINT_H=
7147 if test x"$STDINT_H" != x; then
7148   GNULIB_STDINT_H=gnulib/$STDINT_H
7149 fi
7150
7151
7152 PACKAGE=gdb
7153
7154 cat >>confdefs.h <<_ACEOF
7155 #define PACKAGE "$PACKAGE"
7156 _ACEOF
7157
7158
7159
7160 # Do we have a single-tree copy of texinfo?  Even if we do, we can't
7161 # rely on it - libiberty is built before texinfo.
7162 # Extract the first word of "makeinfo", so it can be a program name with args.
7163 set dummy makeinfo; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   if test -n "$MAKEINFO"; then
7170   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177     for ac_exec_ext in '' $ac_executable_extensions; do
7178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179     ac_cv_prog_MAKEINFO="makeinfo"
7180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184   done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 MAKEINFO=$ac_cv_prog_MAKEINFO
7190 if test -n "$MAKEINFO"; then
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7192 $as_echo "$MAKEINFO" >&6; }
7193 else
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198
7199 if test "x$MAKEINFO" = "x"; then
7200   as_fn_error "makeinfo is required for compilation" "$LINENO" 5
7201 else
7202   case "$MAKEINFO" in
7203     */missing\ makeinfo*)
7204       as_fn_error "makeinfo is required for compilation" "$LINENO" 5
7205       ;;
7206   esac
7207 fi
7208
7209
7210 # --split-size=5000000 may be already in $MAKEINFO from parent configure.
7211 # Re-running configure in gdb/ would lose it so ensure it stays present.
7212 MAKEINFOFLAGS=${MAKEINFOFLAGS---split-size=5000000}
7213
7214
7215 MAKEINFO_EXTRA_FLAGS=""
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
7217 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
7218 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
7219   $as_echo_n "(cached) " >&6
7220 else
7221   echo '@clicksequence{a @click{} b}' >conftest.texinfo
7222   if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
7223     gdb_cv_have_makeinfo_click=yes
7224   else
7225     gdb_cv_have_makeinfo_click=no
7226   fi
7227 fi
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
7229 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
7230 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
7231   MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
7232 fi
7233
7234
7235 # GDB does not use automake, but gnulib does.  This line lets us
7236 # generate its Makefile.in.
7237 am__api_version='1.11'
7238
7239 # Find a good install program.  We prefer a C program (faster),
7240 # so one script is as good as another.  But avoid the broken or
7241 # incompatible versions:
7242 # SysV /etc/install, /usr/sbin/install
7243 # SunOS /usr/etc/install
7244 # IRIX /sbin/install
7245 # AIX /bin/install
7246 # AmigaOS /C/install, which installs bootblocks on floppy discs
7247 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7248 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7249 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7250 # OS/2's system install, which has a completely different semantic
7251 # ./install, which can be erroneously created by make from ./install.sh.
7252 # Reject install programs that cannot install multiple files.
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7254 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7255 if test -z "$INSTALL"; then
7256 if test "${ac_cv_path_install+set}" = set; then :
7257   $as_echo_n "(cached) " >&6
7258 else
7259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264     # Account for people who put trailing slashes in PATH elements.
7265 case $as_dir/ in #((
7266   ./ | .// | /[cC]/* | \
7267   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7268   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7269   /usr/ucb/* ) ;;
7270   *)
7271     # OSF1 and SCO ODT 3.0 have their own names for install.
7272     # Don't use installbsd from OSF since it installs stuff as root
7273     # by default.
7274     for ac_prog in ginstall scoinst install; do
7275       for ac_exec_ext in '' $ac_executable_extensions; do
7276         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7277           if test $ac_prog = install &&
7278             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7279             # AIX install.  It has an incompatible calling convention.
7280             :
7281           elif test $ac_prog = install &&
7282             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7283             # program-specific install script used by HP pwplus--don't use.
7284             :
7285           else
7286             rm -rf conftest.one conftest.two conftest.dir
7287             echo one > conftest.one
7288             echo two > conftest.two
7289             mkdir conftest.dir
7290             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7291               test -s conftest.one && test -s conftest.two &&
7292               test -s conftest.dir/conftest.one &&
7293               test -s conftest.dir/conftest.two
7294             then
7295               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7296               break 3
7297             fi
7298           fi
7299         fi
7300       done
7301     done
7302     ;;
7303 esac
7304
7305   done
7306 IFS=$as_save_IFS
7307
7308 rm -rf conftest.one conftest.two conftest.dir
7309
7310 fi
7311   if test "${ac_cv_path_install+set}" = set; then
7312     INSTALL=$ac_cv_path_install
7313   else
7314     # As a last resort, use the slow shell script.  Don't cache a
7315     # value for INSTALL within a source directory, because that will
7316     # break other packages using the cache if that directory is
7317     # removed, or if the value is a relative name.
7318     INSTALL=$ac_install_sh
7319   fi
7320 fi
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7322 $as_echo "$INSTALL" >&6; }
7323
7324 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7325 # It thinks the first close brace ends the variable substitution.
7326 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7327
7328 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7329
7330 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7331
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7333 $as_echo_n "checking whether build environment is sane... " >&6; }
7334 # Just in case
7335 sleep 1
7336 echo timestamp > conftest.file
7337 # Reject unsafe characters in $srcdir or the absolute working directory
7338 # name.  Accept space and tab only in the latter.
7339 am_lf='
7340 '
7341 case `pwd` in
7342   *[\\\"\#\$\&\'\`$am_lf]*)
7343     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7344 esac
7345 case $srcdir in
7346   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
7347     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7348 esac
7349
7350 # Do `set' in a subshell so we don't clobber the current shell's
7351 # arguments.  Must try -L first in case configure is actually a
7352 # symlink; some systems play weird games with the mod time of symlinks
7353 # (eg FreeBSD returns the mod time of the symlink's containing
7354 # directory).
7355 if (
7356    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7357    if test "$*" = "X"; then
7358       # -L didn't work.
7359       set X `ls -t "$srcdir/configure" conftest.file`
7360    fi
7361    rm -f conftest.file
7362    if test "$*" != "X $srcdir/configure conftest.file" \
7363       && test "$*" != "X conftest.file $srcdir/configure"; then
7364
7365       # If neither matched, then we have a broken ls.  This can happen
7366       # if, for instance, CONFIG_SHELL is bash and it inherits a
7367       # broken ls alias from the environment.  This has actually
7368       # happened.  Such a system could not be considered "sane".
7369       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
7370 alias in your environment" "$LINENO" 5
7371    fi
7372
7373    test "$2" = conftest.file
7374    )
7375 then
7376    # Ok.
7377    :
7378 else
7379    as_fn_error "newly created file is older than distributed files!
7380 Check your system clock" "$LINENO" 5
7381 fi
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7383 $as_echo "yes" >&6; }
7384 test "$program_prefix" != NONE &&
7385   program_transform_name="s&^&$program_prefix&;$program_transform_name"
7386 # Use a double $ so make ignores it.
7387 test "$program_suffix" != NONE &&
7388   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7389 # Double any \ or $.
7390 # By default was `s,x,x', remove it if useless.
7391 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7392 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7393
7394 # expand $ac_aux_dir to an absolute path
7395 am_aux_dir=`cd $ac_aux_dir && pwd`
7396
7397 if test x"${MISSING+set}" != xset; then
7398   case $am_aux_dir in
7399   *\ * | *\     *)
7400     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7401   *)
7402     MISSING="\${SHELL} $am_aux_dir/missing" ;;
7403   esac
7404 fi
7405 # Use eval to expand $SHELL
7406 if eval "$MISSING --run true"; then
7407   am_missing_run="$MISSING --run "
7408 else
7409   am_missing_run=
7410   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7411 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7412 fi
7413
7414 if test x"${install_sh}" != xset; then
7415   case $am_aux_dir in
7416   *\ * | *\     *)
7417     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7418   *)
7419     install_sh="\${SHELL} $am_aux_dir/install-sh"
7420   esac
7421 fi
7422
7423 # Installed binaries are usually stripped using `strip' when the user
7424 # run `make install-strip'.  However `strip' might not be the right
7425 # tool to use in cross-compilation environments, therefore Automake
7426 # will honor the `STRIP' environment variable to overrule this program.
7427 if test "$cross_compiling" != no; then
7428   if test -n "$ac_tool_prefix"; then
7429   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7430 set dummy ${ac_tool_prefix}strip; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if test "${ac_cv_prog_STRIP+set}" = set; then :
7434   $as_echo_n "(cached) " >&6
7435 else
7436   if test -n "$STRIP"; then
7437   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442   IFS=$as_save_IFS
7443   test -z "$as_dir" && as_dir=.
7444     for ac_exec_ext in '' $ac_executable_extensions; do
7445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448     break 2
7449   fi
7450 done
7451   done
7452 IFS=$as_save_IFS
7453
7454 fi
7455 fi
7456 STRIP=$ac_cv_prog_STRIP
7457 if test -n "$STRIP"; then
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7459 $as_echo "$STRIP" >&6; }
7460 else
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465
7466 fi
7467 if test -z "$ac_cv_prog_STRIP"; then
7468   ac_ct_STRIP=$STRIP
7469   # Extract the first word of "strip", so it can be a program name with args.
7470 set dummy strip; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7474   $as_echo_n "(cached) " >&6
7475 else
7476   if test -n "$ac_ct_STRIP"; then
7477   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482   IFS=$as_save_IFS
7483   test -z "$as_dir" && as_dir=.
7484     for ac_exec_ext in '' $ac_executable_extensions; do
7485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486     ac_cv_prog_ac_ct_STRIP="strip"
7487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488     break 2
7489   fi
7490 done
7491   done
7492 IFS=$as_save_IFS
7493
7494 fi
7495 fi
7496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7497 if test -n "$ac_ct_STRIP"; then
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7499 $as_echo "$ac_ct_STRIP" >&6; }
7500 else
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504
7505   if test "x$ac_ct_STRIP" = x; then
7506     STRIP=":"
7507   else
7508     case $cross_compiling:$ac_tool_warned in
7509 yes:)
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512 ac_tool_warned=yes ;;
7513 esac
7514     STRIP=$ac_ct_STRIP
7515   fi
7516 else
7517   STRIP="$ac_cv_prog_STRIP"
7518 fi
7519
7520 fi
7521 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7522
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7524 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7525 if test -z "$MKDIR_P"; then
7526   if test "${ac_cv_path_mkdir+set}" = set; then :
7527   $as_echo_n "(cached) " >&6
7528 else
7529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7531 do
7532   IFS=$as_save_IFS
7533   test -z "$as_dir" && as_dir=.
7534     for ac_prog in mkdir gmkdir; do
7535          for ac_exec_ext in '' $ac_executable_extensions; do
7536            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7537            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7538              'mkdir (GNU coreutils) '* | \
7539              'mkdir (coreutils) '* | \
7540              'mkdir (fileutils) '4.1*)
7541                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7542                break 3;;
7543            esac
7544          done
7545        done
7546   done
7547 IFS=$as_save_IFS
7548
7549 fi
7550
7551   if test "${ac_cv_path_mkdir+set}" = set; then
7552     MKDIR_P="$ac_cv_path_mkdir -p"
7553   else
7554     # As a last resort, use the slow shell script.  Don't cache a
7555     # value for MKDIR_P within a source directory, because that will
7556     # break other packages using the cache if that directory is
7557     # removed, or if the value is a relative name.
7558     test -d ./--version && rmdir ./--version
7559     MKDIR_P="$ac_install_sh -d"
7560   fi
7561 fi
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7563 $as_echo "$MKDIR_P" >&6; }
7564
7565
7566 mkdir_p="$MKDIR_P"
7567 case $mkdir_p in
7568   [\\/$]* | ?:[\\/]*) ;;
7569   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7570 esac
7571
7572 for ac_prog in gawk mawk nawk awk
7573 do
7574   # Extract the first word of "$ac_prog", so it can be a program name with args.
7575 set dummy $ac_prog; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if test "${ac_cv_prog_AWK+set}" = set; then :
7579   $as_echo_n "(cached) " >&6
7580 else
7581   if test -n "$AWK"; then
7582   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589     for ac_exec_ext in '' $ac_executable_extensions; do
7590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591     ac_cv_prog_AWK="$ac_prog"
7592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596   done
7597 IFS=$as_save_IFS
7598
7599 fi
7600 fi
7601 AWK=$ac_cv_prog_AWK
7602 if test -n "$AWK"; then
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7604 $as_echo "$AWK" >&6; }
7605 else
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7608 fi
7609
7610
7611   test -n "$AWK" && break
7612 done
7613
7614 ac_config_commands="$ac_config_commands depfiles"
7615
7616
7617 am_make=${MAKE-make}
7618 cat > confinc << 'END'
7619 am__doit:
7620         @echo this is the am__doit target
7621 .PHONY: am__doit
7622 END
7623 # If we don't find an include directive, just comment out the code.
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7625 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7626 am__include="#"
7627 am__quote=
7628 _am_result=none
7629 # First try GNU make style include.
7630 echo "include confinc" > confmf
7631 # Ignore all kinds of additional output from `make'.
7632 case `$am_make -s -f confmf 2> /dev/null` in #(
7633 *the\ am__doit\ target*)
7634   am__include=include
7635   am__quote=
7636   _am_result=GNU
7637   ;;
7638 esac
7639 # Now try BSD make style include.
7640 if test "$am__include" = "#"; then
7641    echo '.include "confinc"' > confmf
7642    case `$am_make -s -f confmf 2> /dev/null` in #(
7643    *the\ am__doit\ target*)
7644      am__include=.include
7645      am__quote="\""
7646      _am_result=BSD
7647      ;;
7648    esac
7649 fi
7650
7651
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7653 $as_echo "$_am_result" >&6; }
7654 rm -f confinc confmf
7655
7656 # Check whether --enable-dependency-tracking was given.
7657 if test "${enable_dependency_tracking+set}" = set; then :
7658   enableval=$enable_dependency_tracking;
7659 fi
7660
7661 if test "x$enable_dependency_tracking" != xno; then
7662   am_depcomp="$ac_aux_dir/depcomp"
7663   AMDEPBACKSLASH='\'
7664 fi
7665  if test "x$enable_dependency_tracking" != xno; then
7666   AMDEP_TRUE=
7667   AMDEP_FALSE='#'
7668 else
7669   AMDEP_TRUE='#'
7670   AMDEP_FALSE=
7671 fi
7672
7673
7674 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7675   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7676   # is not polluted with repeated "-I."
7677   am__isrc=' -I$(srcdir)'
7678   # test to see if srcdir already configured
7679   if test -f $srcdir/config.status; then
7680     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7681   fi
7682 fi
7683
7684 # test whether we have cygpath
7685 if test -z "$CYGPATH_W"; then
7686   if (cygpath --version) >/dev/null 2>/dev/null; then
7687     CYGPATH_W='cygpath -w'
7688   else
7689     CYGPATH_W=echo
7690   fi
7691 fi
7692
7693
7694 # Define the identity of the package.
7695  PACKAGE=gdb
7696  VERSION=UNUSED-VERSION
7697
7698
7699 # Some tools Automake needs.
7700
7701 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7702
7703
7704 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7705
7706
7707 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7708
7709
7710 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7711
7712
7713 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7714
7715 # We need awk for the "check" target.  The system "awk" is bad on
7716 # some platforms.
7717 # Always define AMTAR for backward compatibility.
7718
7719 AMTAR=${AMTAR-"${am_missing_run}tar"}
7720
7721 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7722
7723
7724
7725
7726 depcc="$CC"   am_compiler_list=
7727
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7729 $as_echo_n "checking dependency style of $depcc... " >&6; }
7730 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7734   # We make a subdir and do the tests there.  Otherwise we can end up
7735   # making bogus files that we don't know about and never remove.  For
7736   # instance it was reported that on HP-UX the gcc test will end up
7737   # making a dummy file named `D' -- because `-MD' means `put the output
7738   # in D'.
7739   mkdir conftest.dir
7740   # Copy depcomp to subdir because otherwise we won't find it if we're
7741   # using a relative directory.
7742   cp "$am_depcomp" conftest.dir
7743   cd conftest.dir
7744   # We will build objects and dependencies in a subdirectory because
7745   # it helps to detect inapplicable dependency modes.  For instance
7746   # both Tru64's cc and ICC support -MD to output dependencies as a
7747   # side effect of compilation, but ICC will put the dependencies in
7748   # the current directory while Tru64 will put them in the object
7749   # directory.
7750   mkdir sub
7751
7752   am_cv_CC_dependencies_compiler_type=none
7753   if test "$am_compiler_list" = ""; then
7754      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7755   fi
7756   am__universal=false
7757   case " $depcc " in #(
7758      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7759      esac
7760
7761   for depmode in $am_compiler_list; do
7762     # Setup a source with many dependencies, because some compilers
7763     # like to wrap large dependency lists on column 80 (with \), and
7764     # we should not choose a depcomp mode which is confused by this.
7765     #
7766     # We need to recreate these files for each test, as the compiler may
7767     # overwrite some of them when testing with obscure command lines.
7768     # This happens at least with the AIX C compiler.
7769     : > sub/conftest.c
7770     for i in 1 2 3 4 5 6; do
7771       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7772       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7773       # Solaris 8's {/usr,}/bin/sh.
7774       touch sub/conftst$i.h
7775     done
7776     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7777
7778     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7779     # mode.  It turns out that the SunPro C++ compiler does not properly
7780     # handle `-M -o', and we need to detect this.  Also, some Intel
7781     # versions had trouble with output in subdirs
7782     am__obj=sub/conftest.${OBJEXT-o}
7783     am__minus_obj="-o $am__obj"
7784     case $depmode in
7785     gcc)
7786       # This depmode causes a compiler race in universal mode.
7787       test "$am__universal" = false || continue
7788       ;;
7789     nosideeffect)
7790       # after this tag, mechanisms are not by side-effect, so they'll
7791       # only be used when explicitly requested
7792       if test "x$enable_dependency_tracking" = xyes; then
7793         continue
7794       else
7795         break
7796       fi
7797       ;;
7798     msvisualcpp | msvcmsys)
7799       # This compiler won't grok `-c -o', but also, the minuso test has
7800       # not run yet.  These depmodes are late enough in the game, and
7801       # so weak that their functioning should not be impacted.
7802       am__obj=conftest.${OBJEXT-o}
7803       am__minus_obj=
7804       ;;
7805     none) break ;;
7806     esac
7807     if depmode=$depmode \
7808        source=sub/conftest.c object=$am__obj \
7809        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7810        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7811          >/dev/null 2>conftest.err &&
7812        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7813        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7814        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7815        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7816       # icc doesn't choke on unknown options, it will just issue warnings
7817       # or remarks (even with -Werror).  So we grep stderr for any message
7818       # that says an option was ignored or not supported.
7819       # When given -MP, icc 7.0 and 7.1 complain thusly:
7820       #   icc: Command line warning: ignoring option '-M'; no argument required
7821       # The diagnosis changed in icc 8.0:
7822       #   icc: Command line remark: option '-MP' not supported
7823       if (grep 'ignoring option' conftest.err ||
7824           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7825         am_cv_CC_dependencies_compiler_type=$depmode
7826         break
7827       fi
7828     fi
7829   done
7830
7831   cd ..
7832   rm -rf conftest.dir
7833 else
7834   am_cv_CC_dependencies_compiler_type=none
7835 fi
7836
7837 fi
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7839 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7840 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7841
7842  if
7843   test "x$enable_dependency_tracking" != xno \
7844   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7845   am__fastdepCC_TRUE=
7846   am__fastdepCC_FALSE='#'
7847 else
7848   am__fastdepCC_TRUE='#'
7849   am__fastdepCC_FALSE=
7850 fi
7851
7852
7853
7854
7855
7856
7857 # Check whether --with-separate-debug-dir was given.
7858 if test "${with_separate_debug_dir+set}" = set; then :
7859   withval=$with_separate_debug_dir;
7860     DEBUGDIR=$withval
7861 else
7862   DEBUGDIR=${libdir}/debug
7863 fi
7864
7865
7866   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7867   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7868   ac_define_dir=`eval echo $DEBUGDIR`
7869   ac_define_dir=`eval echo $ac_define_dir`
7870
7871 cat >>confdefs.h <<_ACEOF
7872 #define DEBUGDIR "$ac_define_dir"
7873 _ACEOF
7874
7875
7876
7877
7878   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7879      if test "x$prefix" = xNONE; then
7880         test_prefix=/usr/local
7881      else
7882         test_prefix=$prefix
7883      fi
7884   else
7885      test_prefix=$exec_prefix
7886   fi
7887   value=0
7888   case ${ac_define_dir} in
7889      "${test_prefix}"|"${test_prefix}/"*|\
7890         '${exec_prefix}'|'${exec_prefix}/'*)
7891      value=1
7892      ;;
7893   esac
7894
7895 cat >>confdefs.h <<_ACEOF
7896 #define DEBUGDIR_RELOCATABLE $value
7897 _ACEOF
7898
7899
7900
7901
7902 # We can't pass paths as command line arguments.
7903 # Mingw32 tries to be clever and will convert the paths for us.
7904 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
7905 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
7906 # This breaks GDB's relocatable path conversions since paths passed in
7907 # config.h would not get so translated, the path prefixes no longer match.
7908
7909   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7910   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7911   ac_define_dir=`eval echo $bindir`
7912   ac_define_dir=`eval echo $ac_define_dir`
7913
7914 cat >>confdefs.h <<_ACEOF
7915 #define BINDIR "$ac_define_dir"
7916 _ACEOF
7917
7918
7919
7920 # GDB's datadir relocation
7921
7922
7923
7924 # Check whether --with-gdb-datadir was given.
7925 if test "${with_gdb_datadir+set}" = set; then :
7926   withval=$with_gdb_datadir;
7927     GDB_DATADIR=$withval
7928 else
7929   GDB_DATADIR=${datadir}/gdb
7930 fi
7931
7932
7933   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7934   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7935   ac_define_dir=`eval echo $GDB_DATADIR`
7936   ac_define_dir=`eval echo $ac_define_dir`
7937
7938 cat >>confdefs.h <<_ACEOF
7939 #define GDB_DATADIR "$ac_define_dir"
7940 _ACEOF
7941
7942
7943
7944
7945   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7946      if test "x$prefix" = xNONE; then
7947         test_prefix=/usr/local
7948      else
7949         test_prefix=$prefix
7950      fi
7951   else
7952      test_prefix=$exec_prefix
7953   fi
7954   value=0
7955   case ${ac_define_dir} in
7956      "${test_prefix}"|"${test_prefix}/"*|\
7957         '${exec_prefix}'|'${exec_prefix}/'*)
7958      value=1
7959      ;;
7960   esac
7961
7962 cat >>confdefs.h <<_ACEOF
7963 #define GDB_DATADIR_RELOCATABLE $value
7964 _ACEOF
7965
7966
7967
7968
7969
7970 # Check whether --with-relocated-sources was given.
7971 if test "${with_relocated_sources+set}" = set; then :
7972   withval=$with_relocated_sources; reloc_srcdir="${withval}"
7973
7974   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7975   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7976   ac_define_dir=`eval echo $reloc_srcdir`
7977   ac_define_dir=`eval echo $ac_define_dir`
7978
7979 cat >>confdefs.h <<_ACEOF
7980 #define RELOC_SRCDIR "$ac_define_dir"
7981 _ACEOF
7982
7983
7984
7985 fi
7986
7987
7988
7989
7990 subdirs="$subdirs testsuite"
7991
7992
7993 # Check whether to support alternative target configurations
7994 # Check whether --enable-targets was given.
7995 if test "${enable_targets+set}" = set; then :
7996   enableval=$enable_targets; case "${enableval}" in
7997   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7998             ;;
7999   no)       enable_targets= ;;
8000   *)        enable_targets=$enableval ;;
8001 esac
8002 fi
8003
8004
8005 # Check whether to enable 64-bit support on 32-bit hosts
8006 # Check whether --enable-64-bit-bfd was given.
8007 if test "${enable_64_bit_bfd+set}" = set; then :
8008   enableval=$enable_64_bit_bfd; case "${enableval}" in
8009   yes)  want64=true  ;;
8010   no)   want64=false ;;
8011   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
8012 esac
8013 else
8014   want64=false
8015 fi
8016
8017 # Provide defaults for some variables set by the per-host and per-target
8018 # configuration.
8019 gdb_host_obs=posix-hdep.o
8020
8021 if test "${target}" = "${host}"; then
8022   gdb_native=yes
8023 else
8024   gdb_native=no
8025 fi
8026
8027 . $srcdir/configure.host
8028
8029 # Accumulate some settings from configure.tgt over all enabled targets
8030
8031 TARGET_OBS=
8032 all_targets=
8033
8034 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
8035 do
8036   if test "$targ_alias" = "all"; then
8037     all_targets=true
8038   else
8039     # Canonicalize the secondary target names.
8040     result=`$ac_config_sub $targ_alias 2>/dev/null`
8041     if test -n "$result"; then
8042         targ=$result
8043     else
8044         targ=$targ_alias
8045     fi
8046
8047     . ${srcdir}/configure.tgt
8048
8049     if test -z "${gdb_target_obs}"; then :
8050   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
8051 fi
8052
8053     # Target-specific object files
8054     for i in ${gdb_target_obs}; do
8055         case " $TARGET_OBS " in
8056         *" ${i} "*) ;;
8057         *)
8058           TARGET_OBS="$TARGET_OBS ${i}"
8059           ;;
8060         esac
8061     done
8062
8063     # Check whether this target needs 64-bit CORE_ADDR
8064     if test x${want64} = xfalse; then
8065       . ${srcdir}/../bfd/config.bfd
8066     fi
8067   fi
8068 done
8069
8070 if test x${all_targets} = xtrue; then
8071
8072   # We want all 64-bit targets if we either:
8073   #  - run on a 64-bit host  or
8074   #  - already require 64-bit support for some other target  or
8075   #  - the --enable-64-bit-bfd option was supplied
8076   # Otherwise we only support all 32-bit targets.
8077   #
8078   # NOTE: This test must be in sync with the corresponding
8079   #       tests in BFD!
8080
8081   if test x${want64} = xfalse; then
8082     # The cast to long int works around a bug in the HP C Compiler
8083 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8084 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8085 # This bug is HP SR number 8606223364.
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8087 $as_echo_n "checking size of long... " >&6; }
8088 if test "${ac_cv_sizeof_long+set}" = set; then :
8089   $as_echo_n "(cached) " >&6
8090 else
8091   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
8092
8093 else
8094   if test "$ac_cv_type_long" = yes; then
8095      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8097 { as_fn_set_status 77
8098 as_fn_error "cannot compute sizeof (long)
8099 See \`config.log' for more details." "$LINENO" 5; }; }
8100    else
8101      ac_cv_sizeof_long=0
8102    fi
8103 fi
8104
8105 fi
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8107 $as_echo "$ac_cv_sizeof_long" >&6; }
8108
8109
8110
8111 cat >>confdefs.h <<_ACEOF
8112 #define SIZEOF_LONG $ac_cv_sizeof_long
8113 _ACEOF
8114
8115
8116     if test "x${ac_cv_sizeof_long}" = "x8"; then
8117       want64=true
8118     fi
8119   fi
8120   if test x${want64} = xtrue; then
8121     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8122   else
8123     TARGET_OBS='$(ALL_TARGET_OBS)'
8124   fi
8125 fi
8126
8127
8128
8129 # For other settings, only the main target counts.
8130 gdb_sim=
8131 gdb_osabi=
8132 build_gdbserver=
8133 targ=$target; . ${srcdir}/configure.tgt
8134
8135 # Fetch the default architecture and default target vector from BFD.
8136 targ=$target; . $srcdir/../bfd/config.bfd
8137
8138 # We only want the first architecture, so strip off the others if
8139 # there is more than one.
8140 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8141
8142 if test "x$targ_archs" != x; then
8143
8144 cat >>confdefs.h <<_ACEOF
8145 #define DEFAULT_BFD_ARCH $targ_archs
8146 _ACEOF
8147
8148 fi
8149 if test "x$targ_defvec" != x; then
8150
8151 cat >>confdefs.h <<_ACEOF
8152 #define DEFAULT_BFD_VEC $targ_defvec
8153 _ACEOF
8154
8155 fi
8156
8157 # The CLI cannot be disabled yet, but may be in the future.
8158
8159 # Enable CLI.
8160 # Check whether --enable-gdbcli was given.
8161 if test "${enable_gdbcli+set}" = set; then :
8162   enableval=$enable_gdbcli; case $enableval in
8163     yes)
8164       ;;
8165     no)
8166       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8167     *)
8168       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8169   esac
8170 else
8171   enable_gdbcli=yes
8172 fi
8173
8174 if test x"$enable_gdbcli" = xyes; then
8175   if test -d $srcdir/cli; then
8176     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8177     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8178     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8179     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8180   fi
8181 fi
8182
8183 # Enable MI.
8184 # Check whether --enable-gdbmi was given.
8185 if test "${enable_gdbmi+set}" = set; then :
8186   enableval=$enable_gdbmi; case $enableval in
8187     yes | no)
8188       ;;
8189     *)
8190       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8191   esac
8192 else
8193   enable_gdbmi=yes
8194 fi
8195
8196 if test x"$enable_gdbmi" = xyes; then
8197   if test -d $srcdir/mi; then
8198     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8199     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8200     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8201     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8202   fi
8203 fi
8204
8205 # Enable TUI.
8206 # Check whether --enable-tui was given.
8207 if test "${enable_tui+set}" = set; then :
8208   enableval=$enable_tui; case $enableval in
8209     yes | no | auto)
8210       ;;
8211     *)
8212       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8213   esac
8214 else
8215   enable_tui=auto
8216 fi
8217
8218
8219 # Enable gdbtk.
8220 # Check whether --enable-gdbtk was given.
8221 if test "${enable_gdbtk+set}" = set; then :
8222   enableval=$enable_gdbtk; case $enableval in
8223     yes | no)
8224       ;;
8225     *)
8226       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8227   esac
8228 else
8229   if test -d $srcdir/gdbtk; then
8230     enable_gdbtk=yes
8231   else
8232     enable_gdbtk=no
8233   fi
8234 fi
8235
8236 # We unconditionally disable gdbtk tests on selected platforms.
8237 case $host_os in
8238   go32* | windows*)
8239     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8240 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8241     enable_gdbtk=no ;;
8242 esac
8243
8244 # Libunwind support.
8245
8246 # Check whether --with-libunwind was given.
8247 if test "${with_libunwind+set}" = set; then :
8248   withval=$with_libunwind; case "${withval}" in
8249   yes)  enable_libunwind=yes ;;
8250   no)   enable_libunwind=no ;;
8251   *)    as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8252 esac
8253 else
8254
8255   for ac_header in libunwind.h libunwind-ia64.h
8256 do :
8257   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8258 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8259 eval as_val=\$$as_ac_Header
8260    if test "x$as_val" = x""yes; then :
8261   cat >>confdefs.h <<_ACEOF
8262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8263 _ACEOF
8264
8265 fi
8266
8267 done
8268
8269   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8270     enable_libunwind=yes;
8271   fi
8272
8273 fi
8274
8275
8276 if test x"$enable_libunwind" = xyes; then
8277   for ac_header in libunwind.h libunwind-ia64.h
8278 do :
8279   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8280 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8281 eval as_val=\$$as_ac_Header
8282    if test "x$as_val" = x""yes; then :
8283   cat >>confdefs.h <<_ACEOF
8284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8285 _ACEOF
8286
8287 fi
8288
8289 done
8290
8291
8292 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8293
8294   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8295   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8296   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8297 fi
8298
8299 opt_curses=no
8300
8301 # Check whether --with-curses was given.
8302 if test "${with_curses+set}" = set; then :
8303   withval=$with_curses; opt_curses=$withval
8304 fi
8305
8306
8307 prefer_curses=no
8308 if test "$opt_curses" = "yes"; then
8309   prefer_curses=yes
8310 fi
8311
8312 # Profiling support.
8313 # Check whether --enable-profiling was given.
8314 if test "${enable_profiling+set}" = set; then :
8315   enableval=$enable_profiling; case $enableval in
8316     yes | no)
8317       ;;
8318     *)
8319       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8320   esac
8321 else
8322   enable_profiling=no
8323 fi
8324
8325
8326 for ac_func in monstartup _mcleanup
8327 do :
8328   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8329 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8330 eval as_val=\$$as_ac_var
8331    if test "x$as_val" = x""yes; then :
8332   cat >>confdefs.h <<_ACEOF
8333 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8334 _ACEOF
8335
8336 fi
8337 done
8338
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8340 $as_echo_n "checking for _etext... " >&6; }
8341 if test "${ac_cv_var__etext+set}" = set; then :
8342   $as_echo_n "(cached) " >&6
8343 else
8344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h.  */
8346 #include <stdlib.h>
8347 extern char _etext;
8348
8349 int
8350 main ()
8351 {
8352 free (&_etext);
8353   ;
8354   return 0;
8355 }
8356 _ACEOF
8357 if ac_fn_c_try_link "$LINENO"; then :
8358   ac_cv_var__etext=yes
8359 else
8360   ac_cv_var__etext=no
8361 fi
8362 rm -f core conftest.err conftest.$ac_objext \
8363     conftest$ac_exeext conftest.$ac_ext
8364 fi
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8366 $as_echo "$ac_cv_var__etext" >&6; }
8367 if test $ac_cv_var__etext = yes; then
8368
8369 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8370
8371 fi
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8373 $as_echo_n "checking for etext... " >&6; }
8374 if test "${ac_cv_var_etext+set}" = set; then :
8375   $as_echo_n "(cached) " >&6
8376 else
8377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h.  */
8379 #include <stdlib.h>
8380 extern char etext;
8381
8382 int
8383 main ()
8384 {
8385 free (&etext);
8386   ;
8387   return 0;
8388 }
8389 _ACEOF
8390 if ac_fn_c_try_link "$LINENO"; then :
8391   ac_cv_var_etext=yes
8392 else
8393   ac_cv_var_etext=no
8394 fi
8395 rm -f core conftest.err conftest.$ac_objext \
8396     conftest$ac_exeext conftest.$ac_ext
8397 fi
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8399 $as_echo "$ac_cv_var_etext" >&6; }
8400 if test $ac_cv_var_etext = yes; then
8401
8402 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8403
8404 fi
8405 if test "$enable_profiling" = yes ; then
8406   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8407     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8408   fi
8409   PROFILE_CFLAGS=-pg
8410   OLD_CFLAGS="$CFLAGS"
8411   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8412
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8414 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8415 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8416   $as_echo_n "(cached) " >&6
8417 else
8418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h.  */
8420
8421 int
8422 main ()
8423 {
8424 int x;
8425   ;
8426   return 0;
8427 }
8428 _ACEOF
8429 if ac_fn_c_try_compile "$LINENO"; then :
8430   ac_cv_cc_supports_pg=yes
8431 else
8432   ac_cv_cc_supports_pg=no
8433 fi
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 fi
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8437 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8438
8439   if test $ac_cv_cc_supports_pg = no; then
8440     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8441   fi
8442
8443   CFLAGS="$OLD_CFLAGS"
8444 fi
8445
8446
8447
8448 # Check whether --with-pkgversion was given.
8449 if test "${with_pkgversion+set}" = set; then :
8450   withval=$with_pkgversion; case "$withval" in
8451       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8452       no)  PKGVERSION= ;;
8453       *)   PKGVERSION="($withval) " ;;
8454      esac
8455 else
8456   PKGVERSION="(GDB) "
8457
8458 fi
8459
8460
8461
8462
8463
8464 # Check whether --with-bugurl was given.
8465 if test "${with_bugurl+set}" = set; then :
8466   withval=$with_bugurl; case "$withval" in
8467       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8468       no)  BUGURL=
8469            ;;
8470       *)   BUGURL="$withval"
8471            ;;
8472      esac
8473 else
8474   BUGURL="http://www.gnu.org/software/gdb/bugs/"
8475
8476 fi
8477
8478   case ${BUGURL} in
8479   "")
8480     REPORT_BUGS_TO=
8481     REPORT_BUGS_TEXI=
8482     ;;
8483   *)
8484     REPORT_BUGS_TO="<$BUGURL>"
8485     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8486     ;;
8487   esac;
8488
8489
8490
8491
8492 cat >>confdefs.h <<_ACEOF
8493 #define PKGVERSION "$PKGVERSION"
8494 _ACEOF
8495
8496
8497 cat >>confdefs.h <<_ACEOF
8498 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8499 _ACEOF
8500
8501
8502 # --------------------- #
8503 # Checks for programs.  #
8504 # --------------------- #
8505
8506 for ac_prog in gawk mawk nawk awk
8507 do
8508   # Extract the first word of "$ac_prog", so it can be a program name with args.
8509 set dummy $ac_prog; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if test "${ac_cv_prog_AWK+set}" = set; then :
8513   $as_echo_n "(cached) " >&6
8514 else
8515   if test -n "$AWK"; then
8516   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8517 else
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 for as_dir in $PATH
8520 do
8521   IFS=$as_save_IFS
8522   test -z "$as_dir" && as_dir=.
8523     for ac_exec_ext in '' $ac_executable_extensions; do
8524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8525     ac_cv_prog_AWK="$ac_prog"
8526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527     break 2
8528   fi
8529 done
8530   done
8531 IFS=$as_save_IFS
8532
8533 fi
8534 fi
8535 AWK=$ac_cv_prog_AWK
8536 if test -n "$AWK"; then
8537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8538 $as_echo "$AWK" >&6; }
8539 else
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8542 fi
8543
8544
8545   test -n "$AWK" && break
8546 done
8547
8548
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8550 $as_echo_n "checking whether ln -s works... " >&6; }
8551 LN_S=$as_ln_s
8552 if test "$LN_S" = "ln -s"; then
8553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8554 $as_echo "yes" >&6; }
8555 else
8556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8557 $as_echo "no, using $LN_S" >&6; }
8558 fi
8559
8560 if test -n "$ac_tool_prefix"; then
8561   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8562 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8566   $as_echo_n "(cached) " >&6
8567 else
8568   if test -n "$RANLIB"; then
8569   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8570 else
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 for as_dir in $PATH
8573 do
8574   IFS=$as_save_IFS
8575   test -z "$as_dir" && as_dir=.
8576     for ac_exec_ext in '' $ac_executable_extensions; do
8577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8578     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580     break 2
8581   fi
8582 done
8583   done
8584 IFS=$as_save_IFS
8585
8586 fi
8587 fi
8588 RANLIB=$ac_cv_prog_RANLIB
8589 if test -n "$RANLIB"; then
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8591 $as_echo "$RANLIB" >&6; }
8592 else
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8595 fi
8596
8597
8598 fi
8599 if test -z "$ac_cv_prog_RANLIB"; then
8600   ac_ct_RANLIB=$RANLIB
8601   # Extract the first word of "ranlib", so it can be a program name with args.
8602 set dummy ranlib; ac_word=$2
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 $as_echo_n "checking for $ac_word... " >&6; }
8605 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8606   $as_echo_n "(cached) " >&6
8607 else
8608   if test -n "$ac_ct_RANLIB"; then
8609   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8610 else
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8613 do
8614   IFS=$as_save_IFS
8615   test -z "$as_dir" && as_dir=.
8616     for ac_exec_ext in '' $ac_executable_extensions; do
8617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618     ac_cv_prog_ac_ct_RANLIB="ranlib"
8619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620     break 2
8621   fi
8622 done
8623   done
8624 IFS=$as_save_IFS
8625
8626 fi
8627 fi
8628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8629 if test -n "$ac_ct_RANLIB"; then
8630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8631 $as_echo "$ac_ct_RANLIB" >&6; }
8632 else
8633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8635 fi
8636
8637   if test "x$ac_ct_RANLIB" = x; then
8638     RANLIB=":"
8639   else
8640     case $cross_compiling:$ac_tool_warned in
8641 yes:)
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8644 ac_tool_warned=yes ;;
8645 esac
8646     RANLIB=$ac_ct_RANLIB
8647   fi
8648 else
8649   RANLIB="$ac_cv_prog_RANLIB"
8650 fi
8651
8652 for ac_prog in 'bison -y' byacc
8653 do
8654   # Extract the first word of "$ac_prog", so it can be a program name with args.
8655 set dummy $ac_prog; ac_word=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; }
8658 if test "${ac_cv_prog_YACC+set}" = set; then :
8659   $as_echo_n "(cached) " >&6
8660 else
8661   if test -n "$YACC"; then
8662   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8663 else
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8666 do
8667   IFS=$as_save_IFS
8668   test -z "$as_dir" && as_dir=.
8669     for ac_exec_ext in '' $ac_executable_extensions; do
8670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8671     ac_cv_prog_YACC="$ac_prog"
8672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673     break 2
8674   fi
8675 done
8676   done
8677 IFS=$as_save_IFS
8678
8679 fi
8680 fi
8681 YACC=$ac_cv_prog_YACC
8682 if test -n "$YACC"; then
8683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8684 $as_echo "$YACC" >&6; }
8685 else
8686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8688 fi
8689
8690
8691   test -n "$YACC" && break
8692 done
8693 test -n "$YACC" || YACC="yacc"
8694
8695
8696 if test -n "$ac_tool_prefix"; then
8697   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8698 set dummy ${ac_tool_prefix}ar; ac_word=$2
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8700 $as_echo_n "checking for $ac_word... " >&6; }
8701 if test "${ac_cv_prog_AR+set}" = set; then :
8702   $as_echo_n "(cached) " >&6
8703 else
8704   if test -n "$AR"; then
8705   ac_cv_prog_AR="$AR" # Let the user override the test.
8706 else
8707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 for as_dir in $PATH
8709 do
8710   IFS=$as_save_IFS
8711   test -z "$as_dir" && as_dir=.
8712     for ac_exec_ext in '' $ac_executable_extensions; do
8713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8714     ac_cv_prog_AR="${ac_tool_prefix}ar"
8715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716     break 2
8717   fi
8718 done
8719   done
8720 IFS=$as_save_IFS
8721
8722 fi
8723 fi
8724 AR=$ac_cv_prog_AR
8725 if test -n "$AR"; then
8726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8727 $as_echo "$AR" >&6; }
8728 else
8729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730 $as_echo "no" >&6; }
8731 fi
8732
8733
8734 fi
8735 if test -z "$ac_cv_prog_AR"; then
8736   ac_ct_AR=$AR
8737   # Extract the first word of "ar", so it can be a program name with args.
8738 set dummy ar; ac_word=$2
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740 $as_echo_n "checking for $ac_word... " >&6; }
8741 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8742   $as_echo_n "(cached) " >&6
8743 else
8744   if test -n "$ac_ct_AR"; then
8745   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8746 else
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $PATH
8749 do
8750   IFS=$as_save_IFS
8751   test -z "$as_dir" && as_dir=.
8752     for ac_exec_ext in '' $ac_executable_extensions; do
8753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8754     ac_cv_prog_ac_ct_AR="ar"
8755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756     break 2
8757   fi
8758 done
8759   done
8760 IFS=$as_save_IFS
8761
8762 fi
8763 fi
8764 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8765 if test -n "$ac_ct_AR"; then
8766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8767 $as_echo "$ac_ct_AR" >&6; }
8768 else
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8771 fi
8772
8773   if test "x$ac_ct_AR" = x; then
8774     AR=""
8775   else
8776     case $cross_compiling:$ac_tool_warned in
8777 yes:)
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8780 ac_tool_warned=yes ;;
8781 esac
8782     AR=$ac_ct_AR
8783   fi
8784 else
8785   AR="$ac_cv_prog_AR"
8786 fi
8787
8788 if test -n "$ac_tool_prefix"; then
8789   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8790 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792 $as_echo_n "checking for $ac_word... " >&6; }
8793 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8794   $as_echo_n "(cached) " >&6
8795 else
8796   if test -n "$DLLTOOL"; then
8797   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8798 else
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8801 do
8802   IFS=$as_save_IFS
8803   test -z "$as_dir" && as_dir=.
8804     for ac_exec_ext in '' $ac_executable_extensions; do
8805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8806     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808     break 2
8809   fi
8810 done
8811   done
8812 IFS=$as_save_IFS
8813
8814 fi
8815 fi
8816 DLLTOOL=$ac_cv_prog_DLLTOOL
8817 if test -n "$DLLTOOL"; then
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8819 $as_echo "$DLLTOOL" >&6; }
8820 else
8821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 $as_echo "no" >&6; }
8823 fi
8824
8825
8826 fi
8827 if test -z "$ac_cv_prog_DLLTOOL"; then
8828   ac_ct_DLLTOOL=$DLLTOOL
8829   # Extract the first word of "dlltool", so it can be a program name with args.
8830 set dummy dlltool; ac_word=$2
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832 $as_echo_n "checking for $ac_word... " >&6; }
8833 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8834   $as_echo_n "(cached) " >&6
8835 else
8836   if test -n "$ac_ct_DLLTOOL"; then
8837   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8838 else
8839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840 for as_dir in $PATH
8841 do
8842   IFS=$as_save_IFS
8843   test -z "$as_dir" && as_dir=.
8844     for ac_exec_ext in '' $ac_executable_extensions; do
8845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8846     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8848     break 2
8849   fi
8850 done
8851   done
8852 IFS=$as_save_IFS
8853
8854 fi
8855 fi
8856 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8857 if test -n "$ac_ct_DLLTOOL"; then
8858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8859 $as_echo "$ac_ct_DLLTOOL" >&6; }
8860 else
8861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8863 fi
8864
8865   if test "x$ac_ct_DLLTOOL" = x; then
8866     DLLTOOL=""
8867   else
8868     case $cross_compiling:$ac_tool_warned in
8869 yes:)
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8872 ac_tool_warned=yes ;;
8873 esac
8874     DLLTOOL=$ac_ct_DLLTOOL
8875   fi
8876 else
8877   DLLTOOL="$ac_cv_prog_DLLTOOL"
8878 fi
8879
8880 if test -n "$ac_tool_prefix"; then
8881   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8882 set dummy ${ac_tool_prefix}windres; ac_word=$2
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8884 $as_echo_n "checking for $ac_word... " >&6; }
8885 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8886   $as_echo_n "(cached) " >&6
8887 else
8888   if test -n "$WINDRES"; then
8889   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8890 else
8891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 for as_dir in $PATH
8893 do
8894   IFS=$as_save_IFS
8895   test -z "$as_dir" && as_dir=.
8896     for ac_exec_ext in '' $ac_executable_extensions; do
8897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8898     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900     break 2
8901   fi
8902 done
8903   done
8904 IFS=$as_save_IFS
8905
8906 fi
8907 fi
8908 WINDRES=$ac_cv_prog_WINDRES
8909 if test -n "$WINDRES"; then
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8911 $as_echo "$WINDRES" >&6; }
8912 else
8913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 $as_echo "no" >&6; }
8915 fi
8916
8917
8918 fi
8919 if test -z "$ac_cv_prog_WINDRES"; then
8920   ac_ct_WINDRES=$WINDRES
8921   # Extract the first word of "windres", so it can be a program name with args.
8922 set dummy windres; ac_word=$2
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924 $as_echo_n "checking for $ac_word... " >&6; }
8925 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8926   $as_echo_n "(cached) " >&6
8927 else
8928   if test -n "$ac_ct_WINDRES"; then
8929   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8930 else
8931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932 for as_dir in $PATH
8933 do
8934   IFS=$as_save_IFS
8935   test -z "$as_dir" && as_dir=.
8936     for ac_exec_ext in '' $ac_executable_extensions; do
8937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8938     ac_cv_prog_ac_ct_WINDRES="windres"
8939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8940     break 2
8941   fi
8942 done
8943   done
8944 IFS=$as_save_IFS
8945
8946 fi
8947 fi
8948 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8949 if test -n "$ac_ct_WINDRES"; then
8950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8951 $as_echo "$ac_ct_WINDRES" >&6; }
8952 else
8953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 $as_echo "no" >&6; }
8955 fi
8956
8957   if test "x$ac_ct_WINDRES" = x; then
8958     WINDRES=""
8959   else
8960     case $cross_compiling:$ac_tool_warned in
8961 yes:)
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8964 ac_tool_warned=yes ;;
8965 esac
8966     WINDRES=$ac_ct_WINDRES
8967   fi
8968 else
8969   WINDRES="$ac_cv_prog_WINDRES"
8970 fi
8971
8972
8973 # Needed for GNU/Hurd.
8974 if test -n "$ac_tool_prefix"; then
8975   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8976 set dummy ${ac_tool_prefix}mig; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if test "${ac_cv_prog_MIG+set}" = set; then :
8980   $as_echo_n "(cached) " >&6
8981 else
8982   if test -n "$MIG"; then
8983   ac_cv_prog_MIG="$MIG" # Let the user override the test.
8984 else
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8987 do
8988   IFS=$as_save_IFS
8989   test -z "$as_dir" && as_dir=.
8990     for ac_exec_ext in '' $ac_executable_extensions; do
8991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992     ac_cv_prog_MIG="${ac_tool_prefix}mig"
8993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994     break 2
8995   fi
8996 done
8997   done
8998 IFS=$as_save_IFS
8999
9000 fi
9001 fi
9002 MIG=$ac_cv_prog_MIG
9003 if test -n "$MIG"; then
9004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
9005 $as_echo "$MIG" >&6; }
9006 else
9007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008 $as_echo "no" >&6; }
9009 fi
9010
9011
9012 fi
9013 if test -z "$ac_cv_prog_MIG"; then
9014   ac_ct_MIG=$MIG
9015   # Extract the first word of "mig", so it can be a program name with args.
9016 set dummy mig; ac_word=$2
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018 $as_echo_n "checking for $ac_word... " >&6; }
9019 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
9020   $as_echo_n "(cached) " >&6
9021 else
9022   if test -n "$ac_ct_MIG"; then
9023   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9024 else
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9027 do
9028   IFS=$as_save_IFS
9029   test -z "$as_dir" && as_dir=.
9030     for ac_exec_ext in '' $ac_executable_extensions; do
9031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9032     ac_cv_prog_ac_ct_MIG="mig"
9033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034     break 2
9035   fi
9036 done
9037   done
9038 IFS=$as_save_IFS
9039
9040 fi
9041 fi
9042 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9043 if test -n "$ac_ct_MIG"; then
9044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
9045 $as_echo "$ac_ct_MIG" >&6; }
9046 else
9047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9049 fi
9050
9051   if test "x$ac_ct_MIG" = x; then
9052     MIG=""
9053   else
9054     case $cross_compiling:$ac_tool_warned in
9055 yes:)
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9058 ac_tool_warned=yes ;;
9059 esac
9060     MIG=$ac_ct_MIG
9061   fi
9062 else
9063   MIG="$ac_cv_prog_MIG"
9064 fi
9065
9066
9067 # ---------------------- #
9068 # Checks for libraries.  #
9069 # ---------------------- #
9070
9071 # We might need to link with -lm; most simulators need it.
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
9073 $as_echo_n "checking for main in -lm... " >&6; }
9074 if test "${ac_cv_lib_m_main+set}" = set; then :
9075   $as_echo_n "(cached) " >&6
9076 else
9077   ac_check_lib_save_LIBS=$LIBS
9078 LIBS="-lm  $LIBS"
9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h.  */
9081
9082
9083 int
9084 main ()
9085 {
9086 return main ();
9087   ;
9088   return 0;
9089 }
9090 _ACEOF
9091 if ac_fn_c_try_link "$LINENO"; then :
9092   ac_cv_lib_m_main=yes
9093 else
9094   ac_cv_lib_m_main=no
9095 fi
9096 rm -f core conftest.err conftest.$ac_objext \
9097     conftest$ac_exeext conftest.$ac_ext
9098 LIBS=$ac_check_lib_save_LIBS
9099 fi
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9101 $as_echo "$ac_cv_lib_m_main" >&6; }
9102 if test "x$ac_cv_lib_m_main" = x""yes; then :
9103   cat >>confdefs.h <<_ACEOF
9104 #define HAVE_LIBM 1
9105 _ACEOF
9106
9107   LIBS="-lm $LIBS"
9108
9109 fi
9110
9111
9112 # We need to link with -lw to get `wctype' on Solaris before Solaris
9113 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
9114 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9115 # is known to have this problem).  Therefore we avoid libw if we can.
9116 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9117 if test "x$ac_cv_func_wctype" = x""yes; then :
9118
9119 else
9120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9121 $as_echo_n "checking for wctype in -lw... " >&6; }
9122 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9123   $as_echo_n "(cached) " >&6
9124 else
9125   ac_check_lib_save_LIBS=$LIBS
9126 LIBS="-lw  $LIBS"
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h.  */
9129
9130 /* Override any GCC internal prototype to avoid an error.
9131    Use char because int might match the return type of a GCC
9132    builtin and then its argument prototype would still apply.  */
9133 #ifdef __cplusplus
9134 extern "C"
9135 #endif
9136 char wctype ();
9137 int
9138 main ()
9139 {
9140 return wctype ();
9141   ;
9142   return 0;
9143 }
9144 _ACEOF
9145 if ac_fn_c_try_link "$LINENO"; then :
9146   ac_cv_lib_w_wctype=yes
9147 else
9148   ac_cv_lib_w_wctype=no
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext \
9151     conftest$ac_exeext conftest.$ac_ext
9152 LIBS=$ac_check_lib_save_LIBS
9153 fi
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9155 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9156 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9157   cat >>confdefs.h <<_ACEOF
9158 #define HAVE_LIBW 1
9159 _ACEOF
9160
9161   LIBS="-lw $LIBS"
9162
9163 fi
9164
9165 fi
9166
9167
9168 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9170 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9171 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9172   $as_echo_n "(cached) " >&6
9173 else
9174   ac_func_search_save_LIBS=$LIBS
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h.  */
9177
9178 /* Override any GCC internal prototype to avoid an error.
9179    Use char because int might match the return type of a GCC
9180    builtin and then its argument prototype would still apply.  */
9181 #ifdef __cplusplus
9182 extern "C"
9183 #endif
9184 char gethostbyname ();
9185 int
9186 main ()
9187 {
9188 return gethostbyname ();
9189   ;
9190   return 0;
9191 }
9192 _ACEOF
9193 for ac_lib in '' nsl; do
9194   if test -z "$ac_lib"; then
9195     ac_res="none required"
9196   else
9197     ac_res=-l$ac_lib
9198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9199   fi
9200   if ac_fn_c_try_link "$LINENO"; then :
9201   ac_cv_search_gethostbyname=$ac_res
9202 fi
9203 rm -f core conftest.err conftest.$ac_objext \
9204     conftest$ac_exeext
9205   if test "${ac_cv_search_gethostbyname+set}" = set; then :
9206   break
9207 fi
9208 done
9209 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9210
9211 else
9212   ac_cv_search_gethostbyname=no
9213 fi
9214 rm conftest.$ac_ext
9215 LIBS=$ac_func_search_save_LIBS
9216 fi
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9218 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9219 ac_res=$ac_cv_search_gethostbyname
9220 if test "$ac_res" != no; then :
9221   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9222
9223 fi
9224
9225
9226 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9228 $as_echo_n "checking for library containing socketpair... " >&6; }
9229 if test "${ac_cv_search_socketpair+set}" = set; then :
9230   $as_echo_n "(cached) " >&6
9231 else
9232   ac_func_search_save_LIBS=$LIBS
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h.  */
9235
9236 /* Override any GCC internal prototype to avoid an error.
9237    Use char because int might match the return type of a GCC
9238    builtin and then its argument prototype would still apply.  */
9239 #ifdef __cplusplus
9240 extern "C"
9241 #endif
9242 char socketpair ();
9243 int
9244 main ()
9245 {
9246 return socketpair ();
9247   ;
9248   return 0;
9249 }
9250 _ACEOF
9251 for ac_lib in '' socket; do
9252   if test -z "$ac_lib"; then
9253     ac_res="none required"
9254   else
9255     ac_res=-l$ac_lib
9256     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9257   fi
9258   if ac_fn_c_try_link "$LINENO"; then :
9259   ac_cv_search_socketpair=$ac_res
9260 fi
9261 rm -f core conftest.err conftest.$ac_objext \
9262     conftest$ac_exeext
9263   if test "${ac_cv_search_socketpair+set}" = set; then :
9264   break
9265 fi
9266 done
9267 if test "${ac_cv_search_socketpair+set}" = set; then :
9268
9269 else
9270   ac_cv_search_socketpair=no
9271 fi
9272 rm conftest.$ac_ext
9273 LIBS=$ac_func_search_save_LIBS
9274 fi
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9276 $as_echo "$ac_cv_search_socketpair" >&6; }
9277 ac_res=$ac_cv_search_socketpair
9278 if test "$ac_res" != no; then :
9279   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9280
9281 fi
9282
9283
9284 # Link in zlib if we can.  This allows us to read compressed debug sections.
9285
9286   # See if the user specified whether he wants zlib support or not.
9287
9288 # Check whether --with-zlib was given.
9289 if test "${with_zlib+set}" = set; then :
9290   withval=$with_zlib;
9291 else
9292   with_zlib=auto
9293 fi
9294
9295
9296   if test "$with_zlib" != "no"; then
9297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9298 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9299 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9300   $as_echo_n "(cached) " >&6
9301 else
9302   ac_func_search_save_LIBS=$LIBS
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h.  */
9305
9306 /* Override any GCC internal prototype to avoid an error.
9307    Use char because int might match the return type of a GCC
9308    builtin and then its argument prototype would still apply.  */
9309 #ifdef __cplusplus
9310 extern "C"
9311 #endif
9312 char zlibVersion ();
9313 int
9314 main ()
9315 {
9316 return zlibVersion ();
9317   ;
9318   return 0;
9319 }
9320 _ACEOF
9321 for ac_lib in '' z; do
9322   if test -z "$ac_lib"; then
9323     ac_res="none required"
9324   else
9325     ac_res=-l$ac_lib
9326     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9327   fi
9328   if ac_fn_c_try_link "$LINENO"; then :
9329   ac_cv_search_zlibVersion=$ac_res
9330 fi
9331 rm -f core conftest.err conftest.$ac_objext \
9332     conftest$ac_exeext
9333   if test "${ac_cv_search_zlibVersion+set}" = set; then :
9334   break
9335 fi
9336 done
9337 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9338
9339 else
9340   ac_cv_search_zlibVersion=no
9341 fi
9342 rm conftest.$ac_ext
9343 LIBS=$ac_func_search_save_LIBS
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9346 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9347 ac_res=$ac_cv_search_zlibVersion
9348 if test "$ac_res" != no; then :
9349   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9350   for ac_header in zlib.h
9351 do :
9352   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9353 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9354   cat >>confdefs.h <<_ACEOF
9355 #define HAVE_ZLIB_H 1
9356 _ACEOF
9357
9358 fi
9359
9360 done
9361
9362 fi
9363
9364     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9365       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9366     fi
9367   fi
9368
9369
9370 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9372 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9373 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9374   $as_echo_n "(cached) " >&6
9375 else
9376   ac_func_search_save_LIBS=$LIBS
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h.  */
9379
9380 /* Override any GCC internal prototype to avoid an error.
9381    Use char because int might match the return type of a GCC
9382    builtin and then its argument prototype would still apply.  */
9383 #ifdef __cplusplus
9384 extern "C"
9385 #endif
9386 char dlgetmodinfo ();
9387 int
9388 main ()
9389 {
9390 return dlgetmodinfo ();
9391   ;
9392   return 0;
9393 }
9394 _ACEOF
9395 for ac_lib in '' dl xpdl; do
9396   if test -z "$ac_lib"; then
9397     ac_res="none required"
9398   else
9399     ac_res=-l$ac_lib
9400     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9401   fi
9402   if ac_fn_c_try_link "$LINENO"; then :
9403   ac_cv_search_dlgetmodinfo=$ac_res
9404 fi
9405 rm -f core conftest.err conftest.$ac_objext \
9406     conftest$ac_exeext
9407   if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9408   break
9409 fi
9410 done
9411 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9412
9413 else
9414   ac_cv_search_dlgetmodinfo=no
9415 fi
9416 rm conftest.$ac_ext
9417 LIBS=$ac_func_search_save_LIBS
9418 fi
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9420 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9421 ac_res=$ac_cv_search_dlgetmodinfo
9422 if test "$ac_res" != no; then :
9423   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9424
9425 fi
9426
9427
9428
9429
9430
9431 # Check whether --with-libiconv-prefix was given.
9432 if test "${with_libiconv_prefix+set}" = set; then :
9433   withval=$with_libiconv_prefix;
9434     for dir in `echo "$withval" | tr : ' '`; do
9435       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9436       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9437     done
9438
9439 fi
9440
9441
9442   BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9443   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9444
9445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9446 $as_echo_n "checking for iconv... " >&6; }
9447 if test "${am_cv_func_iconv+set}" = set; then :
9448   $as_echo_n "(cached) " >&6
9449 else
9450
9451     am_cv_func_iconv="no, consider installing GNU libiconv"
9452     am_cv_lib_iconv=no
9453     am_cv_use_build_libiconv=no
9454     am_cv_build_libiconv_path=
9455
9456     # If libiconv is part of the build tree, then try using it over
9457     # any system iconv.
9458     if test -d ../libiconv; then
9459       for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9460         am_save_LIBS="$LIBS"
9461         am_save_CPPFLAGS="$CPPFLAGS"
9462         LIBS="$LIBS $lib_dir/libiconv.a"
9463         CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9464         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h.  */
9466 #include <stdlib.h>
9467 #include <iconv.h>
9468 int
9469 main ()
9470 {
9471 iconv_t cd = iconv_open("","");
9472            iconv(cd,NULL,NULL,NULL,NULL);
9473            iconv_close(cd);
9474   ;
9475   return 0;
9476 }
9477 _ACEOF
9478 if ac_fn_c_try_link "$LINENO"; then :
9479   am_cv_use_build_libiconv=yes
9480           am_cv_build_libiconv_path=$lib_dir/libiconv.a
9481           am_cv_lib_iconv=yes
9482           am_cv_func_iconv=yes
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext \
9485     conftest$ac_exeext conftest.$ac_ext
9486         LIBS="$am_save_LIBS"
9487         CPPFLAGS="$am_save_CPPFLAGS"
9488         if test "$am_cv_use_build_libiconv" = "yes"; then
9489           break
9490         fi
9491       done
9492     fi
9493
9494     # Next, try to find iconv in libc.
9495     if test "$am_cv_func_iconv" != yes; then
9496       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h.  */
9498 #include <stdlib.h>
9499 #include <iconv.h>
9500 int
9501 main ()
9502 {
9503 iconv_t cd = iconv_open("","");
9504          iconv(cd,NULL,NULL,NULL,NULL);
9505          iconv_close(cd);
9506   ;
9507   return 0;
9508 }
9509 _ACEOF
9510 if ac_fn_c_try_link "$LINENO"; then :
9511   am_cv_func_iconv=yes
9512 fi
9513 rm -f core conftest.err conftest.$ac_objext \
9514     conftest$ac_exeext conftest.$ac_ext
9515     fi
9516
9517     # If iconv was not in libc, try -liconv.  In this case, arrange to
9518     # look in the libiconv prefix, if it was specified by the user.
9519     if test "$am_cv_func_iconv" != yes; then
9520       am_save_CPPFLAGS="$CPPFLAGS"
9521       am_save_LIBS="$LIBS"
9522       if test -n "$LIBICONV_INCLUDE"; then
9523         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9524         LIBS="$LIBS $LIBICONV_LIBDIR"
9525       fi
9526       LIBS="$LIBS -liconv"
9527       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h.  */
9529 #include <stdlib.h>
9530 #include <iconv.h>
9531 int
9532 main ()
9533 {
9534 iconv_t cd = iconv_open("","");
9535          iconv(cd,NULL,NULL,NULL,NULL);
9536          iconv_close(cd);
9537   ;
9538   return 0;
9539 }
9540 _ACEOF
9541 if ac_fn_c_try_link "$LINENO"; then :
9542   am_cv_lib_iconv=yes
9543         am_cv_func_iconv=yes
9544 fi
9545 rm -f core conftest.err conftest.$ac_objext \
9546     conftest$ac_exeext conftest.$ac_ext
9547       LIBS="$am_save_LIBS"
9548       CPPFLAGS="$am_save_CPPFLAGS"
9549     fi
9550
9551 fi
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9553 $as_echo "$am_cv_func_iconv" >&6; }
9554
9555   # Set the various flags based on the cache variables.  We can't rely
9556   # on the flags to remain set from the above code, due to caching.
9557   LIBICONV=
9558   if test "$am_cv_lib_iconv" = yes; then
9559     LIBICONV="-liconv"
9560   else
9561     LIBICONV_LIBDIR=
9562     LIBICONV_INCLUDE=
9563   fi
9564   if test "$am_cv_use_build_libiconv" = yes; then
9565     LIBICONV="$am_cv_build_libiconv_path"
9566     LIBICONV_LIBDIR=""
9567     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9568   fi
9569   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9570   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9571
9572   if test "$am_cv_func_iconv" = yes; then
9573
9574 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9575
9576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9577 $as_echo_n "checking for iconv declaration... " >&6; }
9578     if test "${am_cv_proto_iconv+set}" = set; then :
9579   $as_echo_n "(cached) " >&6
9580 else
9581
9582       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h.  */
9584
9585 #include <stdlib.h>
9586 #include <iconv.h>
9587 extern
9588 #ifdef __cplusplus
9589 "C"
9590 #endif
9591 #if defined(__STDC__) || defined(__cplusplus)
9592 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9593 #else
9594 size_t iconv();
9595 #endif
9596
9597 int
9598 main ()
9599 {
9600
9601   ;
9602   return 0;
9603 }
9604 _ACEOF
9605 if ac_fn_c_try_compile "$LINENO"; then :
9606   am_cv_proto_iconv_arg1=""
9607 else
9608   am_cv_proto_iconv_arg1="const"
9609 fi
9610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9611       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);"
9612 fi
9613
9614     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9616          }$am_cv_proto_iconv" >&5
9617 $as_echo "${ac_t:-
9618          }$am_cv_proto_iconv" >&6; }
9619
9620 cat >>confdefs.h <<_ACEOF
9621 #define ICONV_CONST $am_cv_proto_iconv_arg1
9622 _ACEOF
9623
9624   fi
9625
9626
9627 # GDB may fork/exec the iconv program to get the list of supported character
9628 # sets.  Allow the user to specify where to find it.
9629 # There are several factors affecting the choice of option name:
9630 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9631 #   the build-time location of libiconv files.
9632 # - The program we need to find is iconv, which comes with glibc.  The user
9633 #   doesn't necessarily have libiconv installed.  Therefore naming this
9634 #   --with-libiconv-foo feels wrong.
9635 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9636 #   defined to work on directories not files (though it really doesn't know
9637 #   the difference).
9638 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9639 #   with --with-libiconv-prefix.
9640 # Putting these together is why the option name is --with-iconv-bin.
9641
9642
9643 # Check whether --with-iconv-bin was given.
9644 if test "${with_iconv_bin+set}" = set; then :
9645   withval=$with_iconv_bin; iconv_bin="${withval}"
9646
9647 cat >>confdefs.h <<_ACEOF
9648 #define ICONV_BIN "${iconv_bin}"
9649 _ACEOF
9650
9651
9652   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9653      if test "x$prefix" = xNONE; then
9654         test_prefix=/usr/local
9655      else
9656         test_prefix=$prefix
9657      fi
9658   else
9659      test_prefix=$exec_prefix
9660   fi
9661   value=0
9662   case ${iconv_bin} in
9663      "${test_prefix}"|"${test_prefix}/"*|\
9664         '${exec_prefix}'|'${exec_prefix}/'*)
9665      value=1
9666      ;;
9667   esac
9668
9669 cat >>confdefs.h <<_ACEOF
9670 #define ICONV_BIN_RELOCATABLE $value
9671 _ACEOF
9672
9673
9674
9675 fi
9676
9677
9678 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9679 # There is a very specific comment in /usr/include/curses.h explaining that
9680 # termcap routines built into libcurses must not be used.
9681 #
9682 # The symptoms we observed so far is GDB unexpectedly changing
9683 # the terminal settings when tgetent is called - this is particularly
9684 # visible as the output is missing carriage returns, and so rapidly
9685 # becomes very hard to read.
9686 #
9687 # The readline configure script has already decided that libtermcap
9688 # was enough for its purposes, and so decided to build readline using
9689 # libtermcap.  Since the TUI mode requires curses, building GDB with
9690 # TUI enabled results in both libraries to be used at the same time,
9691 # which is not allowed.  This basically means that GDB with TUI is
9692 # broken on alpha-osf.
9693
9694 case $host_os in
9695   osf* )
9696     if test x"$enable_tui" = xyes; then
9697       as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9698     fi
9699     if test x"$enable_tui" = xauto; then
9700       enable_tui=no
9701     fi
9702     ;;
9703 esac
9704
9705 # For the TUI, we need enhanced curses functionality.
9706 if test x"$enable_tui" != xno; then
9707   prefer_curses=yes
9708 fi
9709
9710 curses_found=no
9711 if test x"$prefer_curses" = xyes; then
9712   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9713   # curses library because the latter might not provide all the
9714   # functionality we need.  However, this leads to problems on systems
9715   # where the linker searches /usr/local/lib, but the compiler doesn't
9716   # search /usr/local/include, if ncurses is installed in /usr/local.  A
9717   # default installation of ncurses on alpha*-dec-osf* will lead to such
9718   # a situation.
9719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9720 $as_echo_n "checking for library containing waddstr... " >&6; }
9721 if test "${ac_cv_search_waddstr+set}" = set; then :
9722   $as_echo_n "(cached) " >&6
9723 else
9724   ac_func_search_save_LIBS=$LIBS
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h.  */
9727
9728 /* Override any GCC internal prototype to avoid an error.
9729    Use char because int might match the return type of a GCC
9730    builtin and then its argument prototype would still apply.  */
9731 #ifdef __cplusplus
9732 extern "C"
9733 #endif
9734 char waddstr ();
9735 int
9736 main ()
9737 {
9738 return waddstr ();
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 for ac_lib in '' ncurses cursesX curses; do
9744   if test -z "$ac_lib"; then
9745     ac_res="none required"
9746   else
9747     ac_res=-l$ac_lib
9748     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9749   fi
9750   if ac_fn_c_try_link "$LINENO"; then :
9751   ac_cv_search_waddstr=$ac_res
9752 fi
9753 rm -f core conftest.err conftest.$ac_objext \
9754     conftest$ac_exeext
9755   if test "${ac_cv_search_waddstr+set}" = set; then :
9756   break
9757 fi
9758 done
9759 if test "${ac_cv_search_waddstr+set}" = set; then :
9760
9761 else
9762   ac_cv_search_waddstr=no
9763 fi
9764 rm conftest.$ac_ext
9765 LIBS=$ac_func_search_save_LIBS
9766 fi
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9768 $as_echo "$ac_cv_search_waddstr" >&6; }
9769 ac_res=$ac_cv_search_waddstr
9770 if test "$ac_res" != no; then :
9771   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9772
9773 fi
9774
9775
9776   if test "$ac_cv_search_waddstr" != no; then
9777     curses_found=yes
9778   fi
9779 fi
9780
9781 # Check whether we should enable the TUI, but only do so if we really
9782 # can.
9783 if test x"$enable_tui" != xno; then
9784   if test -d $srcdir/tui; then
9785     if test "$curses_found" != no; then
9786       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9787       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9788       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9789       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9790     else
9791       if test x"$enable_tui" = xyes; then
9792         as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9793       else
9794         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9795 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9796       fi
9797     fi
9798   fi
9799 fi
9800
9801 # Since GDB uses Readline, we need termcap functionality.  In many
9802 # cases this will be provided by the curses library, but some systems
9803 # have a seperate termcap library, or no curses library at all.
9804
9805 case $host_os in
9806   cygwin*)
9807     if test -d $srcdir/libtermcap; then
9808       LIBS="../libtermcap/libtermcap.a $LIBS"
9809       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9810     fi ;;
9811   go32* | *djgpp*)
9812     ac_cv_search_tgetent="none required"
9813     ;;
9814   *mingw32*)
9815     ac_cv_search_tgetent="none required"
9816     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9817     ;;
9818 esac
9819
9820 # These are the libraries checked by Readline.
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9822 $as_echo_n "checking for library containing tgetent... " >&6; }
9823 if test "${ac_cv_search_tgetent+set}" = set; then :
9824   $as_echo_n "(cached) " >&6
9825 else
9826   ac_func_search_save_LIBS=$LIBS
9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h.  */
9829
9830 /* Override any GCC internal prototype to avoid an error.
9831    Use char because int might match the return type of a GCC
9832    builtin and then its argument prototype would still apply.  */
9833 #ifdef __cplusplus
9834 extern "C"
9835 #endif
9836 char tgetent ();
9837 int
9838 main ()
9839 {
9840 return tgetent ();
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 for ac_lib in '' termcap tinfo curses ncurses; do
9846   if test -z "$ac_lib"; then
9847     ac_res="none required"
9848   else
9849     ac_res=-l$ac_lib
9850     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9851   fi
9852   if ac_fn_c_try_link "$LINENO"; then :
9853   ac_cv_search_tgetent=$ac_res
9854 fi
9855 rm -f core conftest.err conftest.$ac_objext \
9856     conftest$ac_exeext
9857   if test "${ac_cv_search_tgetent+set}" = set; then :
9858   break
9859 fi
9860 done
9861 if test "${ac_cv_search_tgetent+set}" = set; then :
9862
9863 else
9864   ac_cv_search_tgetent=no
9865 fi
9866 rm conftest.$ac_ext
9867 LIBS=$ac_func_search_save_LIBS
9868 fi
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9870 $as_echo "$ac_cv_search_tgetent" >&6; }
9871 ac_res=$ac_cv_search_tgetent
9872 if test "$ac_res" != no; then :
9873   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9874
9875 fi
9876
9877
9878 if test "$ac_cv_search_tgetent" = no; then
9879   as_fn_error "no termcap library found" "$LINENO" 5
9880 fi
9881
9882
9883 # Check whether --with-system-readline was given.
9884 if test "${with_system_readline+set}" = set; then :
9885   withval=$with_system_readline;
9886 fi
9887
9888
9889 if test "$with_system_readline" = yes; then
9890   READLINE=-lreadline
9891   READLINE_DEPS=
9892   READLINE_CFLAGS=
9893   READLINE_TEXI_INCFLAG=
9894 else
9895   READLINE='$(READLINE_DIR)/libreadline.a'
9896   READLINE_DEPS='$(READLINE)'
9897   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9898   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
9899 fi
9900
9901
9902
9903
9904
9905 # Generate jit-reader.h
9906
9907 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9908 TARGET_PTR=
9909
9910 # The cast to long int works around a bug in the HP C Compiler
9911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9913 # This bug is HP SR number 8606223364.
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9915 $as_echo_n "checking size of unsigned long long... " >&6; }
9916 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
9917   $as_echo_n "(cached) " >&6
9918 else
9919   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
9920
9921 else
9922   if test "$ac_cv_type_unsigned_long_long" = yes; then
9923      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9925 { as_fn_set_status 77
9926 as_fn_error "cannot compute sizeof (unsigned long long)
9927 See \`config.log' for more details." "$LINENO" 5; }; }
9928    else
9929      ac_cv_sizeof_unsigned_long_long=0
9930    fi
9931 fi
9932
9933 fi
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9935 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9936
9937
9938
9939 cat >>confdefs.h <<_ACEOF
9940 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9941 _ACEOF
9942
9943
9944 # The cast to long int works around a bug in the HP C Compiler
9945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9947 # This bug is HP SR number 8606223364.
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9949 $as_echo_n "checking size of unsigned long... " >&6; }
9950 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
9951   $as_echo_n "(cached) " >&6
9952 else
9953   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
9954
9955 else
9956   if test "$ac_cv_type_unsigned_long" = yes; then
9957      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9959 { as_fn_set_status 77
9960 as_fn_error "cannot compute sizeof (unsigned long)
9961 See \`config.log' for more details." "$LINENO" 5; }; }
9962    else
9963      ac_cv_sizeof_unsigned_long=0
9964    fi
9965 fi
9966
9967 fi
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9969 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9970
9971
9972
9973 cat >>confdefs.h <<_ACEOF
9974 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9975 _ACEOF
9976
9977
9978 # The cast to long int works around a bug in the HP C Compiler
9979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9981 # This bug is HP SR number 8606223364.
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9983 $as_echo_n "checking size of unsigned __int128... " >&6; }
9984 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
9985   $as_echo_n "(cached) " >&6
9986 else
9987   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :
9988
9989 else
9990   if test "$ac_cv_type_unsigned___int128" = yes; then
9991      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9993 { as_fn_set_status 77
9994 as_fn_error "cannot compute sizeof (unsigned __int128)
9995 See \`config.log' for more details." "$LINENO" 5; }; }
9996    else
9997      ac_cv_sizeof_unsigned___int128=0
9998    fi
9999 fi
10000
10001 fi
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
10003 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
10004
10005
10006
10007 cat >>confdefs.h <<_ACEOF
10008 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
10009 _ACEOF
10010
10011
10012
10013 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
10014   TARGET_PTR="unsigned long"
10015 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
10016   TARGET_PTR="unsigned long long"
10017 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
10018   TARGET_PTR="unsigned __int128"
10019 else
10020   TARGET_PTR="unsigned long"
10021 fi
10022
10023
10024 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
10025
10026
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10028 $as_echo_n "checking for library containing dlopen... " >&6; }
10029 if test "${ac_cv_search_dlopen+set}" = set; then :
10030   $as_echo_n "(cached) " >&6
10031 else
10032   ac_func_search_save_LIBS=$LIBS
10033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034 /* end confdefs.h.  */
10035
10036 /* Override any GCC internal prototype to avoid an error.
10037    Use char because int might match the return type of a GCC
10038    builtin and then its argument prototype would still apply.  */
10039 #ifdef __cplusplus
10040 extern "C"
10041 #endif
10042 char dlopen ();
10043 int
10044 main ()
10045 {
10046 return dlopen ();
10047   ;
10048   return 0;
10049 }
10050 _ACEOF
10051 for ac_lib in '' dl; do
10052   if test -z "$ac_lib"; then
10053     ac_res="none required"
10054   else
10055     ac_res=-l$ac_lib
10056     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10057   fi
10058   if ac_fn_c_try_link "$LINENO"; then :
10059   ac_cv_search_dlopen=$ac_res
10060 fi
10061 rm -f core conftest.err conftest.$ac_objext \
10062     conftest$ac_exeext
10063   if test "${ac_cv_search_dlopen+set}" = set; then :
10064   break
10065 fi
10066 done
10067 if test "${ac_cv_search_dlopen+set}" = set; then :
10068
10069 else
10070   ac_cv_search_dlopen=no
10071 fi
10072 rm conftest.$ac_ext
10073 LIBS=$ac_func_search_save_LIBS
10074 fi
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10076 $as_echo "$ac_cv_search_dlopen" >&6; }
10077 ac_res=$ac_cv_search_dlopen
10078 if test "$ac_res" != no; then :
10079   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10080
10081 fi
10082
10083
10084
10085
10086 # Check whether --with-jit-reader-dir was given.
10087 if test "${with_jit_reader_dir+set}" = set; then :
10088   withval=$with_jit_reader_dir;
10089     JIT_READER_DIR=$withval
10090 else
10091   JIT_READER_DIR=${libdir}/gdb
10092 fi
10093
10094
10095   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10096   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10097   ac_define_dir=`eval echo $JIT_READER_DIR`
10098   ac_define_dir=`eval echo $ac_define_dir`
10099
10100 cat >>confdefs.h <<_ACEOF
10101 #define JIT_READER_DIR "$ac_define_dir"
10102 _ACEOF
10103
10104
10105
10106
10107   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10108      if test "x$prefix" = xNONE; then
10109         test_prefix=/usr/local
10110      else
10111         test_prefix=$prefix
10112      fi
10113   else
10114      test_prefix=$exec_prefix
10115   fi
10116   value=0
10117   case ${ac_define_dir} in
10118      "${test_prefix}"|"${test_prefix}/"*|\
10119         '${exec_prefix}'|'${exec_prefix}/'*)
10120      value=1
10121      ;;
10122   esac
10123
10124 cat >>confdefs.h <<_ACEOF
10125 #define JIT_READER_DIR_RELOCATABLE $value
10126 _ACEOF
10127
10128
10129
10130
10131
10132 # Check whether --with-expat was given.
10133 if test "${with_expat+set}" = set; then :
10134   withval=$with_expat;
10135 else
10136   with_expat=auto
10137 fi
10138
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
10140 $as_echo_n "checking whether to use expat... " >&6; }
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
10142 $as_echo "$with_expat" >&6; }
10143
10144 if test "${with_expat}" = no; then
10145   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
10146 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10147   HAVE_LIBEXPAT=no
10148 else
10149
10150       if test "X$prefix" = "XNONE"; then
10151     acl_final_prefix="$ac_default_prefix"
10152   else
10153     acl_final_prefix="$prefix"
10154   fi
10155   if test "X$exec_prefix" = "XNONE"; then
10156     acl_final_exec_prefix='${prefix}'
10157   else
10158     acl_final_exec_prefix="$exec_prefix"
10159   fi
10160   acl_save_prefix="$prefix"
10161   prefix="$acl_final_prefix"
10162   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10163   prefix="$acl_save_prefix"
10164
10165
10166 # Check whether --with-gnu-ld was given.
10167 if test "${with_gnu_ld+set}" = set; then :
10168   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10169 else
10170   with_gnu_ld=no
10171 fi
10172
10173 # Prepare PATH_SEPARATOR.
10174 # The user is always right.
10175 if test "${PATH_SEPARATOR+set}" != set; then
10176   echo "#! /bin/sh" >conf$$.sh
10177   echo  "exit 0"   >>conf$$.sh
10178   chmod +x conf$$.sh
10179   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10180     PATH_SEPARATOR=';'
10181   else
10182     PATH_SEPARATOR=:
10183   fi
10184   rm -f conf$$.sh
10185 fi
10186 ac_prog=ld
10187 if test "$GCC" = yes; then
10188   # Check if gcc -print-prog-name=ld gives a path.
10189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10190 $as_echo_n "checking for ld used by GCC... " >&6; }
10191   case $host in
10192   *-*-mingw*)
10193     # gcc leaves a trailing carriage return which upsets mingw
10194     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10195   *)
10196     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10197   esac
10198   case $ac_prog in
10199     # Accept absolute paths.
10200     [\\/]* | [A-Za-z]:[\\/]*)
10201       re_direlt='/[^/][^/]*/\.\./'
10202       # Canonicalize the path of ld
10203       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10204       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10205         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10206       done
10207       test -z "$LD" && LD="$ac_prog"
10208       ;;
10209   "")
10210     # If it fails, then pretend we aren't using GCC.
10211     ac_prog=ld
10212     ;;
10213   *)
10214     # If it is relative, then search for the first ld in PATH.
10215     with_gnu_ld=unknown
10216     ;;
10217   esac
10218 elif test "$with_gnu_ld" = yes; then
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10220 $as_echo_n "checking for GNU ld... " >&6; }
10221 else
10222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10223 $as_echo_n "checking for non-GNU ld... " >&6; }
10224 fi
10225 if test "${acl_cv_path_LD+set}" = set; then :
10226   $as_echo_n "(cached) " >&6
10227 else
10228   if test -z "$LD"; then
10229   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10230   for ac_dir in $PATH; do
10231     test -z "$ac_dir" && ac_dir=.
10232     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10233       acl_cv_path_LD="$ac_dir/$ac_prog"
10234       # Check to see if the program is GNU ld.  I'd rather use --version,
10235       # but apparently some GNU ld's only accept -v.
10236       # Break only if it was the GNU/non-GNU ld that we prefer.
10237       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10238         test "$with_gnu_ld" != no && break
10239       else
10240         test "$with_gnu_ld" != yes && break
10241       fi
10242     fi
10243   done
10244   IFS="$ac_save_ifs"
10245 else
10246   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10247 fi
10248 fi
10249
10250 LD="$acl_cv_path_LD"
10251 if test -n "$LD"; then
10252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10253 $as_echo "$LD" >&6; }
10254 else
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10257 fi
10258 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10260 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10261 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10262   $as_echo_n "(cached) " >&6
10263 else
10264   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10265 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10266   acl_cv_prog_gnu_ld=yes
10267 else
10268   acl_cv_prog_gnu_ld=no
10269 fi
10270 fi
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10272 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10273 with_gnu_ld=$acl_cv_prog_gnu_ld
10274
10275
10276
10277                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10278 $as_echo_n "checking for shared library run path origin... " >&6; }
10279 if test "${acl_cv_rpath+set}" = set; then :
10280   $as_echo_n "(cached) " >&6
10281 else
10282
10283     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10284     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10285     . ./conftest.sh
10286     rm -f ./conftest.sh
10287     acl_cv_rpath=done
10288
10289 fi
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10291 $as_echo "$acl_cv_rpath" >&6; }
10292   wl="$acl_cv_wl"
10293   libext="$acl_cv_libext"
10294   shlibext="$acl_cv_shlibext"
10295   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10296   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10297   hardcode_direct="$acl_cv_hardcode_direct"
10298   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10299     # Check whether --enable-rpath was given.
10300 if test "${enable_rpath+set}" = set; then :
10301   enableval=$enable_rpath; :
10302 else
10303   enable_rpath=yes
10304 fi
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315     use_additional=yes
10316
10317   acl_save_prefix="$prefix"
10318   prefix="$acl_final_prefix"
10319   acl_save_exec_prefix="$exec_prefix"
10320   exec_prefix="$acl_final_exec_prefix"
10321
10322     eval additional_includedir=\"$includedir\"
10323     eval additional_libdir=\"$libdir\"
10324
10325   exec_prefix="$acl_save_exec_prefix"
10326   prefix="$acl_save_prefix"
10327
10328
10329 # Check whether --with-libexpat-prefix was given.
10330 if test "${with_libexpat_prefix+set}" = set; then :
10331   withval=$with_libexpat_prefix;
10332     if test "X$withval" = "Xno"; then
10333       use_additional=no
10334     else
10335       if test "X$withval" = "X"; then
10336
10337   acl_save_prefix="$prefix"
10338   prefix="$acl_final_prefix"
10339   acl_save_exec_prefix="$exec_prefix"
10340   exec_prefix="$acl_final_exec_prefix"
10341
10342           eval additional_includedir=\"$includedir\"
10343           eval additional_libdir=\"$libdir\"
10344
10345   exec_prefix="$acl_save_exec_prefix"
10346   prefix="$acl_save_prefix"
10347
10348       else
10349         additional_includedir="$withval/include"
10350         additional_libdir="$withval/lib"
10351       fi
10352     fi
10353
10354 fi
10355
10356       LIBEXPAT=
10357   LTLIBEXPAT=
10358   INCEXPAT=
10359   rpathdirs=
10360   ltrpathdirs=
10361   names_already_handled=
10362   names_next_round='expat '
10363   while test -n "$names_next_round"; do
10364     names_this_round="$names_next_round"
10365     names_next_round=
10366     for name in $names_this_round; do
10367       already_handled=
10368       for n in $names_already_handled; do
10369         if test "$n" = "$name"; then
10370           already_handled=yes
10371           break
10372         fi
10373       done
10374       if test -z "$already_handled"; then
10375         names_already_handled="$names_already_handled $name"
10376                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10377         eval value=\"\$HAVE_LIB$uppername\"
10378         if test -n "$value"; then
10379           if test "$value" = yes; then
10380             eval value=\"\$LIB$uppername\"
10381             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10382             eval value=\"\$LTLIB$uppername\"
10383             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10384           else
10385                                     :
10386           fi
10387         else
10388                               found_dir=
10389           found_la=
10390           found_so=
10391           found_a=
10392           if test $use_additional = yes; then
10393             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10394               found_dir="$additional_libdir"
10395               found_so="$additional_libdir/lib$name.$shlibext"
10396               if test -f "$additional_libdir/lib$name.la"; then
10397                 found_la="$additional_libdir/lib$name.la"
10398               fi
10399             else
10400               if test -f "$additional_libdir/lib$name.$libext"; then
10401                 found_dir="$additional_libdir"
10402                 found_a="$additional_libdir/lib$name.$libext"
10403                 if test -f "$additional_libdir/lib$name.la"; then
10404                   found_la="$additional_libdir/lib$name.la"
10405                 fi
10406               fi
10407             fi
10408           fi
10409           if test "X$found_dir" = "X"; then
10410             for x in $LDFLAGS $LTLIBEXPAT; do
10411
10412   acl_save_prefix="$prefix"
10413   prefix="$acl_final_prefix"
10414   acl_save_exec_prefix="$exec_prefix"
10415   exec_prefix="$acl_final_exec_prefix"
10416   eval x=\"$x\"
10417   exec_prefix="$acl_save_exec_prefix"
10418   prefix="$acl_save_prefix"
10419
10420               case "$x" in
10421                 -L*)
10422                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10423                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10424                     found_dir="$dir"
10425                     found_so="$dir/lib$name.$shlibext"
10426                     if test -f "$dir/lib$name.la"; then
10427                       found_la="$dir/lib$name.la"
10428                     fi
10429                   else
10430                     if test -f "$dir/lib$name.$libext"; then
10431                       found_dir="$dir"
10432                       found_a="$dir/lib$name.$libext"
10433                       if test -f "$dir/lib$name.la"; then
10434                         found_la="$dir/lib$name.la"
10435                       fi
10436                     fi
10437                   fi
10438                   ;;
10439               esac
10440               if test "X$found_dir" != "X"; then
10441                 break
10442               fi
10443             done
10444           fi
10445           if test "X$found_dir" != "X"; then
10446                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10447             if test "X$found_so" != "X"; then
10448                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10449                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10450               else
10451                                                                                 haveit=
10452                 for x in $ltrpathdirs; do
10453                   if test "X$x" = "X$found_dir"; then
10454                     haveit=yes
10455                     break
10456                   fi
10457                 done
10458                 if test -z "$haveit"; then
10459                   ltrpathdirs="$ltrpathdirs $found_dir"
10460                 fi
10461                                 if test "$hardcode_direct" = yes; then
10462                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10463                 else
10464                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10465                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10466                                                             haveit=
10467                     for x in $rpathdirs; do
10468                       if test "X$x" = "X$found_dir"; then
10469                         haveit=yes
10470                         break
10471                       fi
10472                     done
10473                     if test -z "$haveit"; then
10474                       rpathdirs="$rpathdirs $found_dir"
10475                     fi
10476                   else
10477                                                                                 haveit=
10478                     for x in $LDFLAGS $LIBEXPAT; do
10479
10480   acl_save_prefix="$prefix"
10481   prefix="$acl_final_prefix"
10482   acl_save_exec_prefix="$exec_prefix"
10483   exec_prefix="$acl_final_exec_prefix"
10484   eval x=\"$x\"
10485   exec_prefix="$acl_save_exec_prefix"
10486   prefix="$acl_save_prefix"
10487
10488                       if test "X$x" = "X-L$found_dir"; then
10489                         haveit=yes
10490                         break
10491                       fi
10492                     done
10493                     if test -z "$haveit"; then
10494                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10495                     fi
10496                     if test "$hardcode_minus_L" != no; then
10497                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10498                     else
10499                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10500                     fi
10501                   fi
10502                 fi
10503               fi
10504             else
10505               if test "X$found_a" != "X"; then
10506                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10507               else
10508                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10509               fi
10510             fi
10511                         additional_includedir=
10512             case "$found_dir" in
10513               */lib | */lib/)
10514                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10515                 additional_includedir="$basedir/include"
10516                 ;;
10517             esac
10518             if test "X$additional_includedir" != "X"; then
10519                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10520                 haveit=
10521                 if test "X$additional_includedir" = "X/usr/local/include"; then
10522                   if test -n "$GCC"; then
10523                     case $host_os in
10524                       linux*) haveit=yes;;
10525                     esac
10526                   fi
10527                 fi
10528                 if test -z "$haveit"; then
10529                   for x in $CPPFLAGS $INCEXPAT; do
10530
10531   acl_save_prefix="$prefix"
10532   prefix="$acl_final_prefix"
10533   acl_save_exec_prefix="$exec_prefix"
10534   exec_prefix="$acl_final_exec_prefix"
10535   eval x=\"$x\"
10536   exec_prefix="$acl_save_exec_prefix"
10537   prefix="$acl_save_prefix"
10538
10539                     if test "X$x" = "X-I$additional_includedir"; then
10540                       haveit=yes
10541                       break
10542                     fi
10543                   done
10544                   if test -z "$haveit"; then
10545                     if test -d "$additional_includedir"; then
10546                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10547                     fi
10548                   fi
10549                 fi
10550               fi
10551             fi
10552                         if test -n "$found_la"; then
10553                                                         save_libdir="$libdir"
10554               case "$found_la" in
10555                 */* | *\\*) . "$found_la" ;;
10556                 *) . "./$found_la" ;;
10557               esac
10558               libdir="$save_libdir"
10559                             for dep in $dependency_libs; do
10560                 case "$dep" in
10561                   -L*)
10562                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10563                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10564                       haveit=
10565                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10566                         if test -n "$GCC"; then
10567                           case $host_os in
10568                             linux*) haveit=yes;;
10569                           esac
10570                         fi
10571                       fi
10572                       if test -z "$haveit"; then
10573                         haveit=
10574                         for x in $LDFLAGS $LIBEXPAT; do
10575
10576   acl_save_prefix="$prefix"
10577   prefix="$acl_final_prefix"
10578   acl_save_exec_prefix="$exec_prefix"
10579   exec_prefix="$acl_final_exec_prefix"
10580   eval x=\"$x\"
10581   exec_prefix="$acl_save_exec_prefix"
10582   prefix="$acl_save_prefix"
10583
10584                           if test "X$x" = "X-L$additional_libdir"; then
10585                             haveit=yes
10586                             break
10587                           fi
10588                         done
10589                         if test -z "$haveit"; then
10590                           if test -d "$additional_libdir"; then
10591                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10592                           fi
10593                         fi
10594                         haveit=
10595                         for x in $LDFLAGS $LTLIBEXPAT; do
10596
10597   acl_save_prefix="$prefix"
10598   prefix="$acl_final_prefix"
10599   acl_save_exec_prefix="$exec_prefix"
10600   exec_prefix="$acl_final_exec_prefix"
10601   eval x=\"$x\"
10602   exec_prefix="$acl_save_exec_prefix"
10603   prefix="$acl_save_prefix"
10604
10605                           if test "X$x" = "X-L$additional_libdir"; then
10606                             haveit=yes
10607                             break
10608                           fi
10609                         done
10610                         if test -z "$haveit"; then
10611                           if test -d "$additional_libdir"; then
10612                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10613                           fi
10614                         fi
10615                       fi
10616                     fi
10617                     ;;
10618                   -R*)
10619                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10620                     if test "$enable_rpath" != no; then
10621                                                                   haveit=
10622                       for x in $rpathdirs; do
10623                         if test "X$x" = "X$dir"; then
10624                           haveit=yes
10625                           break
10626                         fi
10627                       done
10628                       if test -z "$haveit"; then
10629                         rpathdirs="$rpathdirs $dir"
10630                       fi
10631                                                                   haveit=
10632                       for x in $ltrpathdirs; do
10633                         if test "X$x" = "X$dir"; then
10634                           haveit=yes
10635                           break
10636                         fi
10637                       done
10638                       if test -z "$haveit"; then
10639                         ltrpathdirs="$ltrpathdirs $dir"
10640                       fi
10641                     fi
10642                     ;;
10643                   -l*)
10644                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10645                     ;;
10646                   *.la)
10647                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10648                     ;;
10649                   *)
10650                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10651                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10652                     ;;
10653                 esac
10654               done
10655             fi
10656           else
10657                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10658             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10659           fi
10660         fi
10661       fi
10662     done
10663   done
10664   if test "X$rpathdirs" != "X"; then
10665     if test -n "$hardcode_libdir_separator"; then
10666                         alldirs=
10667       for found_dir in $rpathdirs; do
10668         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10669       done
10670             acl_save_libdir="$libdir"
10671       libdir="$alldirs"
10672       eval flag=\"$hardcode_libdir_flag_spec\"
10673       libdir="$acl_save_libdir"
10674       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10675     else
10676             for found_dir in $rpathdirs; do
10677         acl_save_libdir="$libdir"
10678         libdir="$found_dir"
10679         eval flag=\"$hardcode_libdir_flag_spec\"
10680         libdir="$acl_save_libdir"
10681         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10682       done
10683     fi
10684   fi
10685   if test "X$ltrpathdirs" != "X"; then
10686             for found_dir in $ltrpathdirs; do
10687       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10688     done
10689   fi
10690
10691
10692         ac_save_CPPFLAGS="$CPPFLAGS"
10693
10694   for element in $INCEXPAT; do
10695     haveit=
10696     for x in $CPPFLAGS; do
10697
10698   acl_save_prefix="$prefix"
10699   prefix="$acl_final_prefix"
10700   acl_save_exec_prefix="$exec_prefix"
10701   exec_prefix="$acl_final_exec_prefix"
10702   eval x=\"$x\"
10703   exec_prefix="$acl_save_exec_prefix"
10704   prefix="$acl_save_prefix"
10705
10706       if test "X$x" = "X$element"; then
10707         haveit=yes
10708         break
10709       fi
10710     done
10711     if test -z "$haveit"; then
10712       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10713     fi
10714   done
10715
10716
10717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10718 $as_echo_n "checking for libexpat... " >&6; }
10719 if test "${ac_cv_libexpat+set}" = set; then :
10720   $as_echo_n "(cached) " >&6
10721 else
10722
10723     ac_save_LIBS="$LIBS"
10724     LIBS="$LIBS $LIBEXPAT"
10725     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h.  */
10727 #include "expat.h"
10728 int
10729 main ()
10730 {
10731 XML_Parser p = XML_ParserCreate (0);
10732   ;
10733   return 0;
10734 }
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737   ac_cv_libexpat=yes
10738 else
10739   ac_cv_libexpat=no
10740 fi
10741 rm -f core conftest.err conftest.$ac_objext \
10742     conftest$ac_exeext conftest.$ac_ext
10743     LIBS="$ac_save_LIBS"
10744
10745 fi
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10747 $as_echo "$ac_cv_libexpat" >&6; }
10748   if test "$ac_cv_libexpat" = yes; then
10749     HAVE_LIBEXPAT=yes
10750
10751 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10752
10753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10754 $as_echo_n "checking how to link with libexpat... " >&6; }
10755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10756 $as_echo "$LIBEXPAT" >&6; }
10757   else
10758     HAVE_LIBEXPAT=no
10759             CPPFLAGS="$ac_save_CPPFLAGS"
10760     LIBEXPAT=
10761     LTLIBEXPAT=
10762   fi
10763
10764
10765
10766
10767
10768
10769   if test "$HAVE_LIBEXPAT" != yes; then
10770     if test "$with_expat" = yes; then
10771       as_fn_error "expat is missing or unusable" "$LINENO" 5
10772     else
10773       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10774 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10775     fi
10776   else
10777     save_LIBS=$LIBS
10778     LIBS="$LIBS $LIBEXPAT"
10779     for ac_func in XML_StopParser
10780 do :
10781   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10782 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10783   cat >>confdefs.h <<_ACEOF
10784 #define HAVE_XML_STOPPARSER 1
10785 _ACEOF
10786
10787 fi
10788 done
10789
10790     LIBS=$save_LIBS
10791   fi
10792 fi
10793
10794
10795
10796
10797
10798
10799 # Check whether --with-python was given.
10800 if test "${with_python+set}" = set; then :
10801   withval=$with_python;
10802 else
10803   with_python=auto
10804 fi
10805
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10807 $as_echo_n "checking whether to use python... " >&6; }
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10809 $as_echo "$with_python" >&6; }
10810
10811 if test "${with_python}" = no; then
10812   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10813 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10814   have_libpython=no
10815 else
10816   case "${with_python}" in
10817   /*)
10818     if test -d ${with_python}; then
10819       # Assume the python binary is ${with_python}/bin/python.
10820       python_prog="${with_python}/bin/python"
10821       python_prefix=
10822       # If python does not exit ${with_python}/bin, then try in
10823       # ${with_python}.  On Windows/MinGW, this is where the Python
10824       # executable is.
10825       if test ! -x "${python_prog}"; then
10826         python_prog="${with_python}/python"
10827         python_prefix=
10828       fi
10829       if test ! -x "${python_prog}"; then
10830         # Fall back to gdb 7.0/7.1 behaviour.
10831         python_prog=missing
10832         python_prefix=${with_python}
10833       fi
10834     elif test -x "${with_python}"; then
10835       # While we can't run python compiled for $host (unless host == build),
10836       # the user could write a script that provides the needed information,
10837       # so we support that.
10838       python_prog=${with_python}
10839       python_prefix=
10840     else
10841       as_fn_error "invalid value for --with-python" "$LINENO" 5
10842     fi
10843     ;;
10844   */*)
10845     # Disallow --with-python=foo/bar.
10846     as_fn_error "invalid value for --with-python" "$LINENO" 5
10847     ;;
10848   *)
10849     # The user has either specified auto, yes, or the name of the python
10850     # program assumed to be in $PATH.
10851     python_prefix=
10852     case "${with_python}" in
10853     yes | auto)
10854       if test ${build} = ${host}; then
10855         # Extract the first word of "python", so it can be a program name with args.
10856 set dummy python; ac_word=$2
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858 $as_echo_n "checking for $ac_word... " >&6; }
10859 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10860   $as_echo_n "(cached) " >&6
10861 else
10862   case $python_prog_path in
10863   [\\/]* | ?:[\\/]*)
10864   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10865   ;;
10866   *)
10867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868 for as_dir in $PATH
10869 do
10870   IFS=$as_save_IFS
10871   test -z "$as_dir" && as_dir=.
10872     for ac_exec_ext in '' $ac_executable_extensions; do
10873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10874     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10876     break 2
10877   fi
10878 done
10879   done
10880 IFS=$as_save_IFS
10881
10882   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10883   ;;
10884 esac
10885 fi
10886 python_prog_path=$ac_cv_path_python_prog_path
10887 if test -n "$python_prog_path"; then
10888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10889 $as_echo "$python_prog_path" >&6; }
10890 else
10891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892 $as_echo "no" >&6; }
10893 fi
10894
10895
10896         if test "${python_prog_path}" = missing; then
10897           python_prog=missing
10898         else
10899           python_prog=${python_prog_path}
10900         fi
10901       else
10902         # Not much we can do except assume the cross-compiler will find the
10903         # right files.
10904         python_prog=missing
10905       fi
10906       ;;
10907     *)
10908       # While we can't run python compiled for $host (unless host == build),
10909       # the user could write a script that provides the needed information,
10910       # so we support that.
10911       python_prog="${with_python}"
10912       # Extract the first word of "${python_prog}", so it can be a program name with args.
10913 set dummy ${python_prog}; ac_word=$2
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915 $as_echo_n "checking for $ac_word... " >&6; }
10916 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10917   $as_echo_n "(cached) " >&6
10918 else
10919   case $python_prog_path in
10920   [\\/]* | ?:[\\/]*)
10921   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10922   ;;
10923   *)
10924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925 for as_dir in $PATH
10926 do
10927   IFS=$as_save_IFS
10928   test -z "$as_dir" && as_dir=.
10929     for ac_exec_ext in '' $ac_executable_extensions; do
10930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10931     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10933     break 2
10934   fi
10935 done
10936   done
10937 IFS=$as_save_IFS
10938
10939   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10940   ;;
10941 esac
10942 fi
10943 python_prog_path=$ac_cv_path_python_prog_path
10944 if test -n "$python_prog_path"; then
10945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10946 $as_echo "$python_prog_path" >&6; }
10947 else
10948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10950 fi
10951
10952
10953       if test "${python_prog_path}" = missing; then
10954         as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10955       fi
10956       ;;
10957     esac
10958   esac
10959
10960   if test "${python_prog}" != missing; then
10961     # We have a python program to use, but it may be too old.
10962     # Don't flag an error for --with-python=auto (the default).
10963     have_python_config=yes
10964     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10965     if test $? != 0; then
10966       have_python_config=failed
10967       if test "${with_python}" != auto; then
10968         as_fn_error "failure running python-config --includes" "$LINENO" 5
10969       fi
10970     fi
10971     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10972     if test $? != 0; then
10973       have_python_config=failed
10974       if test "${with_python}" != auto; then
10975         as_fn_error "failure running python-config --ldflags" "$LINENO" 5
10976       fi
10977     fi
10978     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10979     if test $? != 0; then
10980       have_python_config=failed
10981       if test "${with_python}" != auto; then
10982         as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10983       fi
10984     fi
10985   else
10986     # We do not have a python executable we can use to determine where
10987     # to find the Python headers and libs.  We cannot guess the include
10988     # path from the python_prefix either, because that include path
10989     # depends on the Python version.  So, there is nothing much we can
10990     # do except assume that the compiler will be able to find those files.
10991     python_includes=
10992     python_libs=
10993     have_python_config=no
10994   fi
10995
10996   # If we have python-config, only try the configuration it provides.
10997   # Otherwise fallback on the old way of trying different versions of
10998   # python in turn.
10999
11000   have_libpython=no
11001   if test "${have_python_config}" = yes; then
11002     # Determine the Python version by extracting "-lpython<version>"
11003     # part of the python_libs. <version> is usually X.Y with X and Y
11004     # being decimal numbers, but can also be XY (seen on Windows).
11005     #
11006     # The extraction is performed using sed with a regular expression.
11007     # Initially, the regexp used was using the '?' quantifier to make
11008     # the dot in the version number optional.  Unfortunately, this
11009     # does not work with non-GNU versions of sed because, because of
11010     # what looks like a limitation (the '?' quantifier does not work
11011     # with back-references).  We work around this limitation by using
11012     # the '*' quantifier instead.  It means that, in theory, we might
11013     # match unexpected version strings such as "-lpython2..7", but
11014     # this seems unlikely in practice.  And even if that happens,
11015     # an error will be triggered later on, when checking that version
11016     # number.
11017     python_version=`echo " ${python_libs} " \
11018                          | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
11019     case "${python_version}" in
11020     python*)
11021
11022   version=${python_version}
11023
11024   new_CPPFLAGS=${python_includes}
11025   new_LIBS=${python_libs}
11026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11027 $as_echo_n "checking for ${version}... " >&6; }
11028   save_CPPFLAGS=$CPPFLAGS
11029   save_LIBS=$LIBS
11030   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11031   LIBS="$LIBS $new_LIBS"
11032   found_usable_python=no
11033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h.  */
11035 #include "Python.h"
11036 int
11037 main ()
11038 {
11039 Py_Initialize ();
11040   ;
11041   return 0;
11042 }
11043 _ACEOF
11044 if ac_fn_c_try_link "$LINENO"; then :
11045   have_libpython=${version}
11046                   found_usable_python=yes
11047                   PYTHON_CPPFLAGS=$new_CPPFLAGS
11048                   PYTHON_LIBS=$new_LIBS
11049 fi
11050 rm -f core conftest.err conftest.$ac_objext \
11051     conftest$ac_exeext conftest.$ac_ext
11052   CPPFLAGS=$save_CPPFLAGS
11053   LIBS=$save_LIBS
11054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11055 $as_echo "${found_usable_python}" >&6; }
11056
11057       ;;
11058     *)
11059       as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
11060       ;;
11061     esac
11062   elif test "${have_python_config}" != failed; then
11063     if test "${have_libpython}" = no; then
11064
11065   version=python2.7
11066
11067   new_CPPFLAGS=${python_includes}
11068   new_LIBS="${python_libs} -lpython2.7"
11069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11070 $as_echo_n "checking for ${version}... " >&6; }
11071   save_CPPFLAGS=$CPPFLAGS
11072   save_LIBS=$LIBS
11073   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11074   LIBS="$LIBS $new_LIBS"
11075   found_usable_python=no
11076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h.  */
11078 #include "Python.h"
11079 int
11080 main ()
11081 {
11082 Py_Initialize ();
11083   ;
11084   return 0;
11085 }
11086 _ACEOF
11087 if ac_fn_c_try_link "$LINENO"; then :
11088   have_libpython=${version}
11089                   found_usable_python=yes
11090                   PYTHON_CPPFLAGS=$new_CPPFLAGS
11091                   PYTHON_LIBS=$new_LIBS
11092 fi
11093 rm -f core conftest.err conftest.$ac_objext \
11094     conftest$ac_exeext conftest.$ac_ext
11095   CPPFLAGS=$save_CPPFLAGS
11096   LIBS=$save_LIBS
11097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11098 $as_echo "${found_usable_python}" >&6; }
11099
11100     fi
11101     if test "${have_libpython}" = no; then
11102
11103   version=python2.6
11104
11105   new_CPPFLAGS=${python_includes}
11106   new_LIBS="${python_libs} -lpython2.6"
11107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11108 $as_echo_n "checking for ${version}... " >&6; }
11109   save_CPPFLAGS=$CPPFLAGS
11110   save_LIBS=$LIBS
11111   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11112   LIBS="$LIBS $new_LIBS"
11113   found_usable_python=no
11114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h.  */
11116 #include "Python.h"
11117 int
11118 main ()
11119 {
11120 Py_Initialize ();
11121   ;
11122   return 0;
11123 }
11124 _ACEOF
11125 if ac_fn_c_try_link "$LINENO"; then :
11126   have_libpython=${version}
11127                   found_usable_python=yes
11128                   PYTHON_CPPFLAGS=$new_CPPFLAGS
11129                   PYTHON_LIBS=$new_LIBS
11130 fi
11131 rm -f core conftest.err conftest.$ac_objext \
11132     conftest$ac_exeext conftest.$ac_ext
11133   CPPFLAGS=$save_CPPFLAGS
11134   LIBS=$save_LIBS
11135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11136 $as_echo "${found_usable_python}" >&6; }
11137
11138     fi
11139     if test ${have_libpython} = no; then
11140
11141   version=python2.5
11142
11143   new_CPPFLAGS=${python_includes}
11144   new_LIBS="${python_libs} -lpython2.5"
11145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11146 $as_echo_n "checking for ${version}... " >&6; }
11147   save_CPPFLAGS=$CPPFLAGS
11148   save_LIBS=$LIBS
11149   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11150   LIBS="$LIBS $new_LIBS"
11151   found_usable_python=no
11152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h.  */
11154 #include "Python.h"
11155 int
11156 main ()
11157 {
11158 Py_Initialize ();
11159   ;
11160   return 0;
11161 }
11162 _ACEOF
11163 if ac_fn_c_try_link "$LINENO"; then :
11164   have_libpython=${version}
11165                   found_usable_python=yes
11166                   PYTHON_CPPFLAGS=$new_CPPFLAGS
11167                   PYTHON_LIBS=$new_LIBS
11168 fi
11169 rm -f core conftest.err conftest.$ac_objext \
11170     conftest$ac_exeext conftest.$ac_ext
11171   CPPFLAGS=$save_CPPFLAGS
11172   LIBS=$save_LIBS
11173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11174 $as_echo "${found_usable_python}" >&6; }
11175
11176     fi
11177     if test ${have_libpython} = no; then
11178
11179   version=python2.4
11180
11181   new_CPPFLAGS=${python_includes}
11182   new_LIBS="${python_libs} -lpython2.4"
11183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11184 $as_echo_n "checking for ${version}... " >&6; }
11185   save_CPPFLAGS=$CPPFLAGS
11186   save_LIBS=$LIBS
11187   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11188   LIBS="$LIBS $new_LIBS"
11189   found_usable_python=no
11190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191 /* end confdefs.h.  */
11192 #include "Python.h"
11193 int
11194 main ()
11195 {
11196 Py_Initialize ();
11197   ;
11198   return 0;
11199 }
11200 _ACEOF
11201 if ac_fn_c_try_link "$LINENO"; then :
11202   have_libpython=${version}
11203                   found_usable_python=yes
11204                   PYTHON_CPPFLAGS=$new_CPPFLAGS
11205                   PYTHON_LIBS=$new_LIBS
11206 fi
11207 rm -f core conftest.err conftest.$ac_objext \
11208     conftest$ac_exeext conftest.$ac_ext
11209   CPPFLAGS=$save_CPPFLAGS
11210   LIBS=$save_LIBS
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11212 $as_echo "${found_usable_python}" >&6; }
11213
11214     fi
11215   fi
11216   if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
11217
11218 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
11219
11220   elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
11221
11222 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
11223
11224   elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
11225
11226 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
11227
11228   elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
11229
11230 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
11231
11232   fi
11233
11234   if test "${have_libpython}" = no; then
11235     case "${with_python}" in
11236     yes)
11237       as_fn_error "python is missing or unusable" "$LINENO" 5
11238       ;;
11239     auto)
11240       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11241 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11242       ;;
11243     *)
11244       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
11245       ;;
11246     esac
11247   else
11248     if test -n "${python_prefix}"; then
11249
11250 cat >>confdefs.h <<_ACEOF
11251 #define WITH_PYTHON_PATH "${python_prefix}"
11252 _ACEOF
11253
11254
11255   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
11256      if test "x$prefix" = xNONE; then
11257         test_prefix=/usr/local
11258      else
11259         test_prefix=$prefix
11260      fi
11261   else
11262      test_prefix=$exec_prefix
11263   fi
11264   value=0
11265   case ${python_prefix} in
11266      "${test_prefix}"|"${test_prefix}/"*|\
11267         '${exec_prefix}'|'${exec_prefix}/'*)
11268      value=1
11269      ;;
11270   esac
11271
11272 cat >>confdefs.h <<_ACEOF
11273 #define PYTHON_PATH_RELOCATABLE $value
11274 _ACEOF
11275
11276
11277     fi
11278   fi
11279 fi
11280
11281 if test "${have_libpython}" != no; then
11282
11283 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11284
11285   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11286   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11287   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11288   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
11289   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11290
11291   # Flags needed to compile Python code (taken from python-config --cflags).
11292   # We cannot call python-config directly because it will output whatever was
11293   # used when compiling the Python interpreter itself, including flags which
11294   # would make the python-related objects be compiled differently from the
11295   # rest of GDB (e.g., -O2 and -fPIC).
11296   if test "${GCC}" = yes; then
11297     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11298   fi
11299
11300   if test "x${tentative_python_cflags}" != x; then
11301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11302 $as_echo_n "checking compiler flags for python code... " >&6; }
11303     for flag in ${tentative_python_cflags}; do
11304       # Check that the compiler accepts it
11305       saved_CFLAGS="$CFLAGS"
11306       CFLAGS="$CFLAGS $flag"
11307       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h.  */
11309
11310 int
11311 main ()
11312 {
11313
11314   ;
11315   return 0;
11316 }
11317 _ACEOF
11318 if ac_fn_c_try_compile "$LINENO"; then :
11319   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11320 fi
11321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11322       CFLAGS="$saved_CFLAGS"
11323     done
11324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11325 $as_echo "${PYTHON_CFLAGS}" >&6; }
11326   fi
11327
11328   # On IRIX, type siginfo is not defined.  Instead, sys/siginfo.h provides:
11329   #    #if _SGIAPI
11330   #    #define siginfo __siginfo
11331   #    #endif
11332   # The problem is that including Python causes some XOPEN macros to be
11333   # unilaterally defined, and that in turn causes _SGIAPI to evaluate
11334   # to false.  So, we work around this issue by defining siginfo ourself
11335   # though the command-line.
11336   case "$gdb_host" in
11337     irix*) if test "${GCC}" = yes; then
11338              CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
11339            fi
11340            ;;
11341   esac
11342 else
11343   # Even if Python support is not compiled in, we need to have these files
11344   # included.
11345   CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
11346   CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
11347         python/py-prettyprint.c python/py-auto-load.c"
11348 fi
11349
11350
11351
11352
11353 # ------------------------- #
11354 # Checks for header files.  #
11355 # ------------------------- #
11356
11357 ac_header_dirent=no
11358 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11359   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11361 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11363   $as_echo_n "(cached) " >&6
11364 else
11365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h.  */
11367 #include <sys/types.h>
11368 #include <$ac_hdr>
11369
11370 int
11371 main ()
11372 {
11373 if ((DIR *) 0)
11374 return 0;
11375   ;
11376   return 0;
11377 }
11378 _ACEOF
11379 if ac_fn_c_try_compile "$LINENO"; then :
11380   eval "$as_ac_Header=yes"
11381 else
11382   eval "$as_ac_Header=no"
11383 fi
11384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11385 fi
11386 eval ac_res=\$$as_ac_Header
11387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11388 $as_echo "$ac_res" >&6; }
11389 eval as_val=\$$as_ac_Header
11390    if test "x$as_val" = x""yes; then :
11391   cat >>confdefs.h <<_ACEOF
11392 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11393 _ACEOF
11394
11395 ac_header_dirent=$ac_hdr; break
11396 fi
11397
11398 done
11399 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11400 if test $ac_header_dirent = dirent.h; then
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11402 $as_echo_n "checking for library containing opendir... " >&6; }
11403 if test "${ac_cv_search_opendir+set}" = set; then :
11404   $as_echo_n "(cached) " >&6
11405 else
11406   ac_func_search_save_LIBS=$LIBS
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h.  */
11409
11410 /* Override any GCC internal prototype to avoid an error.
11411    Use char because int might match the return type of a GCC
11412    builtin and then its argument prototype would still apply.  */
11413 #ifdef __cplusplus
11414 extern "C"
11415 #endif
11416 char opendir ();
11417 int
11418 main ()
11419 {
11420 return opendir ();
11421   ;
11422   return 0;
11423 }
11424 _ACEOF
11425 for ac_lib in '' dir; do
11426   if test -z "$ac_lib"; then
11427     ac_res="none required"
11428   else
11429     ac_res=-l$ac_lib
11430     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11431   fi
11432   if ac_fn_c_try_link "$LINENO"; then :
11433   ac_cv_search_opendir=$ac_res
11434 fi
11435 rm -f core conftest.err conftest.$ac_objext \
11436     conftest$ac_exeext
11437   if test "${ac_cv_search_opendir+set}" = set; then :
11438   break
11439 fi
11440 done
11441 if test "${ac_cv_search_opendir+set}" = set; then :
11442
11443 else
11444   ac_cv_search_opendir=no
11445 fi
11446 rm conftest.$ac_ext
11447 LIBS=$ac_func_search_save_LIBS
11448 fi
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11450 $as_echo "$ac_cv_search_opendir" >&6; }
11451 ac_res=$ac_cv_search_opendir
11452 if test "$ac_res" != no; then :
11453   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11454
11455 fi
11456
11457 else
11458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11459 $as_echo_n "checking for library containing opendir... " >&6; }
11460 if test "${ac_cv_search_opendir+set}" = set; then :
11461   $as_echo_n "(cached) " >&6
11462 else
11463   ac_func_search_save_LIBS=$LIBS
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h.  */
11466
11467 /* Override any GCC internal prototype to avoid an error.
11468    Use char because int might match the return type of a GCC
11469    builtin and then its argument prototype would still apply.  */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 char opendir ();
11474 int
11475 main ()
11476 {
11477 return opendir ();
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 for ac_lib in '' x; do
11483   if test -z "$ac_lib"; then
11484     ac_res="none required"
11485   else
11486     ac_res=-l$ac_lib
11487     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11488   fi
11489   if ac_fn_c_try_link "$LINENO"; then :
11490   ac_cv_search_opendir=$ac_res
11491 fi
11492 rm -f core conftest.err conftest.$ac_objext \
11493     conftest$ac_exeext
11494   if test "${ac_cv_search_opendir+set}" = set; then :
11495   break
11496 fi
11497 done
11498 if test "${ac_cv_search_opendir+set}" = set; then :
11499
11500 else
11501   ac_cv_search_opendir=no
11502 fi
11503 rm conftest.$ac_ext
11504 LIBS=$ac_func_search_save_LIBS
11505 fi
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11507 $as_echo "$ac_cv_search_opendir" >&6; }
11508 ac_res=$ac_cv_search_opendir
11509 if test "$ac_res" != no; then :
11510   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11511
11512 fi
11513
11514 fi
11515
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11517 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11518 if test "${ac_cv_header_stat_broken+set}" = set; then :
11519   $as_echo_n "(cached) " >&6
11520 else
11521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h.  */
11523 #include <sys/types.h>
11524 #include <sys/stat.h>
11525
11526 #if defined S_ISBLK && defined S_IFDIR
11527 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11528 #endif
11529
11530 #if defined S_ISBLK && defined S_IFCHR
11531 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11532 #endif
11533
11534 #if defined S_ISLNK && defined S_IFREG
11535 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11536 #endif
11537
11538 #if defined S_ISSOCK && defined S_IFREG
11539 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11540 #endif
11541
11542 _ACEOF
11543 if ac_fn_c_try_compile "$LINENO"; then :
11544   ac_cv_header_stat_broken=no
11545 else
11546   ac_cv_header_stat_broken=yes
11547 fi
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 fi
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11551 $as_echo "$ac_cv_header_stat_broken" >&6; }
11552 if test $ac_cv_header_stat_broken = yes; then
11553
11554 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11555
11556 fi
11557
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11559 $as_echo_n "checking for ANSI C header files... " >&6; }
11560 if test "${ac_cv_header_stdc+set}" = set; then :
11561   $as_echo_n "(cached) " >&6
11562 else
11563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h.  */
11565 #include <stdlib.h>
11566 #include <stdarg.h>
11567 #include <string.h>
11568 #include <float.h>
11569
11570 int
11571 main ()
11572 {
11573
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 if ac_fn_c_try_compile "$LINENO"; then :
11579   ac_cv_header_stdc=yes
11580 else
11581   ac_cv_header_stdc=no
11582 fi
11583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11584
11585 if test $ac_cv_header_stdc = yes; then
11586   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h.  */
11589 #include <string.h>
11590
11591 _ACEOF
11592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11593   $EGREP "memchr" >/dev/null 2>&1; then :
11594
11595 else
11596   ac_cv_header_stdc=no
11597 fi
11598 rm -f conftest*
11599
11600 fi
11601
11602 if test $ac_cv_header_stdc = yes; then
11603   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h.  */
11606 #include <stdlib.h>
11607
11608 _ACEOF
11609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11610   $EGREP "free" >/dev/null 2>&1; then :
11611
11612 else
11613   ac_cv_header_stdc=no
11614 fi
11615 rm -f conftest*
11616
11617 fi
11618
11619 if test $ac_cv_header_stdc = yes; then
11620   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11621   if test "$cross_compiling" = yes; then :
11622   :
11623 else
11624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625 /* end confdefs.h.  */
11626 #include <ctype.h>
11627 #include <stdlib.h>
11628 #if ((' ' & 0x0FF) == 0x020)
11629 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11630 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11631 #else
11632 # define ISLOWER(c) \
11633                    (('a' <= (c) && (c) <= 'i') \
11634                      || ('j' <= (c) && (c) <= 'r') \
11635                      || ('s' <= (c) && (c) <= 'z'))
11636 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11637 #endif
11638
11639 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11640 int
11641 main ()
11642 {
11643   int i;
11644   for (i = 0; i < 256; i++)
11645     if (XOR (islower (i), ISLOWER (i))
11646         || toupper (i) != TOUPPER (i))
11647       return 2;
11648   return 0;
11649 }
11650 _ACEOF
11651 if ac_fn_c_try_run "$LINENO"; then :
11652
11653 else
11654   ac_cv_header_stdc=no
11655 fi
11656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11657   conftest.$ac_objext conftest.beam conftest.$ac_ext
11658 fi
11659
11660 fi
11661 fi
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11663 $as_echo "$ac_cv_header_stdc" >&6; }
11664 if test $ac_cv_header_stdc = yes; then
11665
11666 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11667
11668 fi
11669
11670 # elf_hp.h is for HP/UX 64-bit shared library support.
11671 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11672 # unconditionally, so what's the point in checking these?
11673 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11674                   thread_db.h gnu/libc-version.h signal.h stddef.h \
11675                   stdlib.h string.h memory.h strings.h sys/fault.h \
11676                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11677                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11678                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11679                   sys/types.h sys/wait.h wait.h termios.h termio.h \
11680                   sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h \
11681                   dlfcn.h
11682 do :
11683   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11684 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11685 eval as_val=\$$as_ac_Header
11686    if test "x$as_val" = x""yes; then :
11687   cat >>confdefs.h <<_ACEOF
11688 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11689 _ACEOF
11690
11691 fi
11692
11693 done
11694
11695 for ac_header in link.h
11696 do :
11697   ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11698 # include <sys/types.h>
11699 #endif
11700 #if HAVE_NLIST_H
11701 # include <nlist.h>
11702 #endif
11703
11704 "
11705 if test "x$ac_cv_header_link_h" = x""yes; then :
11706   cat >>confdefs.h <<_ACEOF
11707 #define HAVE_LINK_H 1
11708 _ACEOF
11709
11710 fi
11711
11712 done
11713
11714 for ac_header in sys/proc.h
11715 do :
11716   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11717 # include <sys/param.h>
11718 #endif
11719
11720 "
11721 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11722   cat >>confdefs.h <<_ACEOF
11723 #define HAVE_SYS_PROC_H 1
11724 _ACEOF
11725
11726 fi
11727
11728 done
11729
11730 for ac_header in sys/user.h
11731 do :
11732   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11733 # include <sys/param.h>
11734 #endif
11735
11736 "
11737 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11738   cat >>confdefs.h <<_ACEOF
11739 #define HAVE_SYS_USER_H 1
11740 _ACEOF
11741
11742 fi
11743
11744 done
11745
11746
11747 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11748 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11749 # think that we don't have <curses.h> if we're using GCC.
11750 case $host_os in
11751   solaris2.[789])
11752     if test "$GCC" = yes; then
11753
11754 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11755
11756     fi ;;
11757 esac
11758 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11759 do :
11760   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11761 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11762 eval as_val=\$$as_ac_Header
11763    if test "x$as_val" = x""yes; then :
11764   cat >>confdefs.h <<_ACEOF
11765 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11766 _ACEOF
11767
11768 fi
11769
11770 done
11771
11772 for ac_header in term.h
11773 do :
11774   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11775 # include <curses.h>
11776 #endif
11777
11778 "
11779 if test "x$ac_cv_header_term_h" = x""yes; then :
11780   cat >>confdefs.h <<_ACEOF
11781 #define HAVE_TERM_H 1
11782 _ACEOF
11783
11784 fi
11785
11786 done
11787
11788
11789 # ------------------------- #
11790 # Checks for declarations.  #
11791 # ------------------------- #
11792
11793 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11794 if test "x$ac_cv_have_decl_free" = x""yes; then :
11795   ac_have_decl=1
11796 else
11797   ac_have_decl=0
11798 fi
11799
11800 cat >>confdefs.h <<_ACEOF
11801 #define HAVE_DECL_FREE $ac_have_decl
11802 _ACEOF
11803 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11804 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11805   ac_have_decl=1
11806 else
11807   ac_have_decl=0
11808 fi
11809
11810 cat >>confdefs.h <<_ACEOF
11811 #define HAVE_DECL_MALLOC $ac_have_decl
11812 _ACEOF
11813 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11814 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11815   ac_have_decl=1
11816 else
11817   ac_have_decl=0
11818 fi
11819
11820 cat >>confdefs.h <<_ACEOF
11821 #define HAVE_DECL_REALLOC $ac_have_decl
11822 _ACEOF
11823 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11824 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11825   ac_have_decl=1
11826 else
11827   ac_have_decl=0
11828 fi
11829
11830 cat >>confdefs.h <<_ACEOF
11831 #define HAVE_DECL_STRERROR $ac_have_decl
11832 _ACEOF
11833 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11834 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11835   ac_have_decl=1
11836 else
11837   ac_have_decl=0
11838 fi
11839
11840 cat >>confdefs.h <<_ACEOF
11841 #define HAVE_DECL_STRSTR $ac_have_decl
11842 _ACEOF
11843 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11844 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11845   ac_have_decl=1
11846 else
11847   ac_have_decl=0
11848 fi
11849
11850 cat >>confdefs.h <<_ACEOF
11851 #define HAVE_DECL_GETOPT $ac_have_decl
11852 _ACEOF
11853 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11854 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11855   ac_have_decl=1
11856 else
11857   ac_have_decl=0
11858 fi
11859
11860 cat >>confdefs.h <<_ACEOF
11861 #define HAVE_DECL_SNPRINTF $ac_have_decl
11862 _ACEOF
11863 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11864 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11865   ac_have_decl=1
11866 else
11867   ac_have_decl=0
11868 fi
11869
11870 cat >>confdefs.h <<_ACEOF
11871 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11872 _ACEOF
11873
11874
11875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11876 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11877 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11878   $as_echo_n "(cached) " >&6
11879 else
11880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h.  */
11882 #include <locale.h>
11883 int
11884 main ()
11885 {
11886 return LC_MESSAGES
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 if ac_fn_c_try_link "$LINENO"; then :
11892   am_cv_val_LC_MESSAGES=yes
11893 else
11894   am_cv_val_LC_MESSAGES=no
11895 fi
11896 rm -f core conftest.err conftest.$ac_objext \
11897     conftest$ac_exeext conftest.$ac_ext
11898 fi
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11900 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11901   if test $am_cv_val_LC_MESSAGES = yes; then
11902
11903 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11904
11905   fi
11906
11907
11908 # ----------------------- #
11909 # Checks for structures.  #
11910 # ----------------------- #
11911
11912 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11913 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11914
11915 cat >>confdefs.h <<_ACEOF
11916 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11917 _ACEOF
11918
11919
11920 fi
11921 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11922 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11923
11924 cat >>confdefs.h <<_ACEOF
11925 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11926 _ACEOF
11927
11928
11929 fi
11930
11931
11932 # ------------------ #
11933 # Checks for types.  #
11934 # ------------------ #
11935
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11937 $as_echo_n "checking return type of signal handlers... " >&6; }
11938 if test "${ac_cv_type_signal+set}" = set; then :
11939   $as_echo_n "(cached) " >&6
11940 else
11941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h.  */
11943 #include <sys/types.h>
11944 #include <signal.h>
11945
11946 int
11947 main ()
11948 {
11949 return *(signal (0, 0)) (0) == 1;
11950   ;
11951   return 0;
11952 }
11953 _ACEOF
11954 if ac_fn_c_try_compile "$LINENO"; then :
11955   ac_cv_type_signal=int
11956 else
11957   ac_cv_type_signal=void
11958 fi
11959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960 fi
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11962 $as_echo "$ac_cv_type_signal" >&6; }
11963
11964 cat >>confdefs.h <<_ACEOF
11965 #define RETSIGTYPE $ac_cv_type_signal
11966 _ACEOF
11967
11968
11969 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11970 #include <sys/socket.h>
11971
11972 "
11973 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11974
11975 cat >>confdefs.h <<_ACEOF
11976 #define HAVE_SOCKLEN_T 1
11977 _ACEOF
11978
11979
11980 fi
11981
11982
11983 # ------------------------------------- #
11984 # Checks for compiler characteristics.  #
11985 # ------------------------------------- #
11986
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11988 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11989 if test "${ac_cv_c_const+set}" = set; then :
11990   $as_echo_n "(cached) " >&6
11991 else
11992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h.  */
11994
11995 int
11996 main ()
11997 {
11998 /* FIXME: Include the comments suggested by Paul. */
11999 #ifndef __cplusplus
12000   /* Ultrix mips cc rejects this.  */
12001   typedef int charset[2];
12002   const charset cs;
12003   /* SunOS 4.1.1 cc rejects this.  */
12004   char const *const *pcpcc;
12005   char **ppc;
12006   /* NEC SVR4.0.2 mips cc rejects this.  */
12007   struct point {int x, y;};
12008   static struct point const zero = {0,0};
12009   /* AIX XL C 1.02.0.0 rejects this.
12010      It does not let you subtract one const X* pointer from another in
12011      an arm of an if-expression whose if-part is not a constant
12012      expression */
12013   const char *g = "string";
12014   pcpcc = &g + (g ? g-g : 0);
12015   /* HPUX 7.0 cc rejects these. */
12016   ++pcpcc;
12017   ppc = (char**) pcpcc;
12018   pcpcc = (char const *const *) ppc;
12019   { /* SCO 3.2v4 cc rejects this.  */
12020     char *t;
12021     char const *s = 0 ? (char *) 0 : (char const *) 0;
12022
12023     *t++ = 0;
12024     if (s) return 0;
12025   }
12026   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12027     int x[] = {25, 17};
12028     const int *foo = &x[0];
12029     ++foo;
12030   }
12031   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12032     typedef const int *iptr;
12033     iptr p = 0;
12034     ++p;
12035   }
12036   { /* AIX XL C 1.02.0.0 rejects this saying
12037        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12038     struct s { int j; const int *ap[3]; };
12039     struct s *b; b->j = 5;
12040   }
12041   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12042     const int foo = 10;
12043     if (!foo) return 0;
12044   }
12045   return !cs[0] && !zero.x;
12046 #endif
12047
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 if ac_fn_c_try_compile "$LINENO"; then :
12053   ac_cv_c_const=yes
12054 else
12055   ac_cv_c_const=no
12056 fi
12057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12060 $as_echo "$ac_cv_c_const" >&6; }
12061 if test $ac_cv_c_const = no; then
12062
12063 $as_echo "#define const /**/" >>confdefs.h
12064
12065 fi
12066
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12068 $as_echo_n "checking for inline... " >&6; }
12069 if test "${ac_cv_c_inline+set}" = set; then :
12070   $as_echo_n "(cached) " >&6
12071 else
12072   ac_cv_c_inline=no
12073 for ac_kw in inline __inline__ __inline; do
12074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h.  */
12076 #ifndef __cplusplus
12077 typedef int foo_t;
12078 static $ac_kw foo_t static_foo () {return 0; }
12079 $ac_kw foo_t foo () {return 0; }
12080 #endif
12081
12082 _ACEOF
12083 if ac_fn_c_try_compile "$LINENO"; then :
12084   ac_cv_c_inline=$ac_kw
12085 fi
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087   test "$ac_cv_c_inline" != no && break
12088 done
12089
12090 fi
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12092 $as_echo "$ac_cv_c_inline" >&6; }
12093
12094 case $ac_cv_c_inline in
12095   inline | yes) ;;
12096   *)
12097     case $ac_cv_c_inline in
12098       no) ac_val=;;
12099       *) ac_val=$ac_cv_c_inline;;
12100     esac
12101     cat >>confdefs.h <<_ACEOF
12102 #ifndef __cplusplus
12103 #define inline $ac_val
12104 #endif
12105 _ACEOF
12106     ;;
12107 esac
12108
12109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12110 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12111 if test "${ac_cv_c_bigendian+set}" = set; then :
12112   $as_echo_n "(cached) " >&6
12113 else
12114   ac_cv_c_bigendian=unknown
12115     # See if we're dealing with a universal compiler.
12116     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h.  */
12118 #ifndef __APPLE_CC__
12119                not a universal capable compiler
12120              #endif
12121              typedef int dummy;
12122
12123 _ACEOF
12124 if ac_fn_c_try_compile "$LINENO"; then :
12125
12126         # Check for potential -arch flags.  It is not universal unless
12127         # there are at least two -arch flags with different values.
12128         ac_arch=
12129         ac_prev=
12130         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12131          if test -n "$ac_prev"; then
12132            case $ac_word in
12133              i?86 | x86_64 | ppc | ppc64)
12134                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12135                  ac_arch=$ac_word
12136                else
12137                  ac_cv_c_bigendian=universal
12138                  break
12139                fi
12140                ;;
12141            esac
12142            ac_prev=
12143          elif test "x$ac_word" = "x-arch"; then
12144            ac_prev=arch
12145          fi
12146        done
12147 fi
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149     if test $ac_cv_c_bigendian = unknown; then
12150       # See if sys/param.h defines the BYTE_ORDER macro.
12151       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h.  */
12153 #include <sys/types.h>
12154              #include <sys/param.h>
12155
12156 int
12157 main ()
12158 {
12159 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12160                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12161                      && LITTLE_ENDIAN)
12162               bogus endian macros
12163              #endif
12164
12165   ;
12166   return 0;
12167 }
12168 _ACEOF
12169 if ac_fn_c_try_compile "$LINENO"; then :
12170   # It does; now see whether it defined to BIG_ENDIAN or not.
12171          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h.  */
12173 #include <sys/types.h>
12174                 #include <sys/param.h>
12175
12176 int
12177 main ()
12178 {
12179 #if BYTE_ORDER != BIG_ENDIAN
12180                  not big endian
12181                 #endif
12182
12183   ;
12184   return 0;
12185 }
12186 _ACEOF
12187 if ac_fn_c_try_compile "$LINENO"; then :
12188   ac_cv_c_bigendian=yes
12189 else
12190   ac_cv_c_bigendian=no
12191 fi
12192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 fi
12194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195     fi
12196     if test $ac_cv_c_bigendian = unknown; then
12197       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12198       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h.  */
12200 #include <limits.h>
12201
12202 int
12203 main ()
12204 {
12205 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12206               bogus endian macros
12207              #endif
12208
12209   ;
12210   return 0;
12211 }
12212 _ACEOF
12213 if ac_fn_c_try_compile "$LINENO"; then :
12214   # It does; now see whether it defined to _BIG_ENDIAN or not.
12215          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h.  */
12217 #include <limits.h>
12218
12219 int
12220 main ()
12221 {
12222 #ifndef _BIG_ENDIAN
12223                  not big endian
12224                 #endif
12225
12226   ;
12227   return 0;
12228 }
12229 _ACEOF
12230 if ac_fn_c_try_compile "$LINENO"; then :
12231   ac_cv_c_bigendian=yes
12232 else
12233   ac_cv_c_bigendian=no
12234 fi
12235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236 fi
12237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238     fi
12239     if test $ac_cv_c_bigendian = unknown; then
12240       # Compile a test program.
12241       if test "$cross_compiling" = yes; then :
12242   # Try to guess by grepping values from an object file.
12243          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h.  */
12245 short int ascii_mm[] =
12246                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12247                 short int ascii_ii[] =
12248                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12249                 int use_ascii (int i) {
12250                   return ascii_mm[i] + ascii_ii[i];
12251                 }
12252                 short int ebcdic_ii[] =
12253                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12254                 short int ebcdic_mm[] =
12255                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12256                 int use_ebcdic (int i) {
12257                   return ebcdic_mm[i] + ebcdic_ii[i];
12258                 }
12259                 extern int foo;
12260
12261 int
12262 main ()
12263 {
12264 return use_ascii (foo) == use_ebcdic (foo);
12265   ;
12266   return 0;
12267 }
12268 _ACEOF
12269 if ac_fn_c_try_compile "$LINENO"; then :
12270   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12271               ac_cv_c_bigendian=yes
12272             fi
12273             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12274               if test "$ac_cv_c_bigendian" = unknown; then
12275                 ac_cv_c_bigendian=no
12276               else
12277                 # finding both strings is unlikely to happen, but who knows?
12278                 ac_cv_c_bigendian=unknown
12279               fi
12280             fi
12281 fi
12282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12283 else
12284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h.  */
12286 $ac_includes_default
12287 int
12288 main ()
12289 {
12290
12291              /* Are we little or big endian?  From Harbison&Steele.  */
12292              union
12293              {
12294                long int l;
12295                char c[sizeof (long int)];
12296              } u;
12297              u.l = 1;
12298              return u.c[sizeof (long int) - 1] == 1;
12299
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 if ac_fn_c_try_run "$LINENO"; then :
12305   ac_cv_c_bigendian=no
12306 else
12307   ac_cv_c_bigendian=yes
12308 fi
12309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12310   conftest.$ac_objext conftest.beam conftest.$ac_ext
12311 fi
12312
12313     fi
12314 fi
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12316 $as_echo "$ac_cv_c_bigendian" >&6; }
12317  case $ac_cv_c_bigendian in #(
12318    yes)
12319      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12320 ;; #(
12321    no)
12322       ;; #(
12323    universal)
12324
12325 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12326
12327      ;; #(
12328    *)
12329      as_fn_error "unknown endianness
12330  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12331  esac
12332
12333
12334 # ------------------------------ #
12335 # Checks for library functions.  #
12336 # ------------------------------ #
12337
12338 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12339 # for constant arguments.  Useless!
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12341 $as_echo_n "checking for working alloca.h... " >&6; }
12342 if test "${ac_cv_working_alloca_h+set}" = set; then :
12343   $as_echo_n "(cached) " >&6
12344 else
12345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h.  */
12347 #include <alloca.h>
12348 int
12349 main ()
12350 {
12351 char *p = (char *) alloca (2 * sizeof (int));
12352                           if (p) return 0;
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 if ac_fn_c_try_link "$LINENO"; then :
12358   ac_cv_working_alloca_h=yes
12359 else
12360   ac_cv_working_alloca_h=no
12361 fi
12362 rm -f core conftest.err conftest.$ac_objext \
12363     conftest$ac_exeext conftest.$ac_ext
12364 fi
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12366 $as_echo "$ac_cv_working_alloca_h" >&6; }
12367 if test $ac_cv_working_alloca_h = yes; then
12368
12369 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12370
12371 fi
12372
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12374 $as_echo_n "checking for alloca... " >&6; }
12375 if test "${ac_cv_func_alloca_works+set}" = set; then :
12376   $as_echo_n "(cached) " >&6
12377 else
12378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h.  */
12380 #ifdef __GNUC__
12381 # define alloca __builtin_alloca
12382 #else
12383 # ifdef _MSC_VER
12384 #  include <malloc.h>
12385 #  define alloca _alloca
12386 # else
12387 #  ifdef HAVE_ALLOCA_H
12388 #   include <alloca.h>
12389 #  else
12390 #   ifdef _AIX
12391  #pragma alloca
12392 #   else
12393 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12394 char *alloca ();
12395 #    endif
12396 #   endif
12397 #  endif
12398 # endif
12399 #endif
12400
12401 int
12402 main ()
12403 {
12404 char *p = (char *) alloca (1);
12405                                     if (p) return 0;
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 if ac_fn_c_try_link "$LINENO"; then :
12411   ac_cv_func_alloca_works=yes
12412 else
12413   ac_cv_func_alloca_works=no
12414 fi
12415 rm -f core conftest.err conftest.$ac_objext \
12416     conftest$ac_exeext conftest.$ac_ext
12417 fi
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12419 $as_echo "$ac_cv_func_alloca_works" >&6; }
12420
12421 if test $ac_cv_func_alloca_works = yes; then
12422
12423 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12424
12425 else
12426   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12427 # that cause trouble.  Some versions do not even contain alloca or
12428 # contain a buggy version.  If you still want to use their alloca,
12429 # use ar to extract alloca.o from them instead of compiling alloca.c.
12430
12431 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12432
12433 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12434
12435
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12437 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12438 if test "${ac_cv_os_cray+set}" = set; then :
12439   $as_echo_n "(cached) " >&6
12440 else
12441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h.  */
12443 #if defined CRAY && ! defined CRAY2
12444 webecray
12445 #else
12446 wenotbecray
12447 #endif
12448
12449 _ACEOF
12450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12451   $EGREP "webecray" >/dev/null 2>&1; then :
12452   ac_cv_os_cray=yes
12453 else
12454   ac_cv_os_cray=no
12455 fi
12456 rm -f conftest*
12457
12458 fi
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12460 $as_echo "$ac_cv_os_cray" >&6; }
12461 if test $ac_cv_os_cray = yes; then
12462   for ac_func in _getb67 GETB67 getb67; do
12463     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12464 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12465 eval as_val=\$$as_ac_var
12466    if test "x$as_val" = x""yes; then :
12467
12468 cat >>confdefs.h <<_ACEOF
12469 #define CRAY_STACKSEG_END $ac_func
12470 _ACEOF
12471
12472     break
12473 fi
12474
12475   done
12476 fi
12477
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12479 $as_echo_n "checking stack direction for C alloca... " >&6; }
12480 if test "${ac_cv_c_stack_direction+set}" = set; then :
12481   $as_echo_n "(cached) " >&6
12482 else
12483   if test "$cross_compiling" = yes; then :
12484   ac_cv_c_stack_direction=0
12485 else
12486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h.  */
12488 $ac_includes_default
12489 int
12490 find_stack_direction ()
12491 {
12492   static char *addr = 0;
12493   auto char dummy;
12494   if (addr == 0)
12495     {
12496       addr = &dummy;
12497       return find_stack_direction ();
12498     }
12499   else
12500     return (&dummy > addr) ? 1 : -1;
12501 }
12502
12503 int
12504 main ()
12505 {
12506   return find_stack_direction () < 0;
12507 }
12508 _ACEOF
12509 if ac_fn_c_try_run "$LINENO"; then :
12510   ac_cv_c_stack_direction=1
12511 else
12512   ac_cv_c_stack_direction=-1
12513 fi
12514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12515   conftest.$ac_objext conftest.beam conftest.$ac_ext
12516 fi
12517
12518 fi
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12520 $as_echo "$ac_cv_c_stack_direction" >&6; }
12521 cat >>confdefs.h <<_ACEOF
12522 #define STACK_DIRECTION $ac_cv_c_stack_direction
12523 _ACEOF
12524
12525
12526 fi
12527
12528 for ac_header in stdlib.h unistd.h
12529 do :
12530   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12531 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12532 eval as_val=\$$as_ac_Header
12533    if test "x$as_val" = x""yes; then :
12534   cat >>confdefs.h <<_ACEOF
12535 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12536 _ACEOF
12537
12538 fi
12539
12540 done
12541
12542 for ac_func in getpagesize
12543 do :
12544   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12545 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12546   cat >>confdefs.h <<_ACEOF
12547 #define HAVE_GETPAGESIZE 1
12548 _ACEOF
12549
12550 fi
12551 done
12552
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12554 $as_echo_n "checking for working mmap... " >&6; }
12555 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12556   $as_echo_n "(cached) " >&6
12557 else
12558   if test "$cross_compiling" = yes; then :
12559   ac_cv_func_mmap_fixed_mapped=no
12560 else
12561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h.  */
12563 $ac_includes_default
12564 /* malloc might have been renamed as rpl_malloc. */
12565 #undef malloc
12566
12567 /* Thanks to Mike Haertel and Jim Avera for this test.
12568    Here is a matrix of mmap possibilities:
12569         mmap private not fixed
12570         mmap private fixed at somewhere currently unmapped
12571         mmap private fixed at somewhere already mapped
12572         mmap shared not fixed
12573         mmap shared fixed at somewhere currently unmapped
12574         mmap shared fixed at somewhere already mapped
12575    For private mappings, we should verify that changes cannot be read()
12576    back from the file, nor mmap's back from the file at a different
12577    address.  (There have been systems where private was not correctly
12578    implemented like the infamous i386 svr4.0, and systems where the
12579    VM page cache was not coherent with the file system buffer cache
12580    like early versions of FreeBSD and possibly contemporary NetBSD.)
12581    For shared mappings, we should conversely verify that changes get
12582    propagated back to all the places they're supposed to be.
12583
12584    Grep wants private fixed already mapped.
12585    The main things grep needs to know about mmap are:
12586    * does it exist and is it safe to write into the mmap'd area
12587    * how to use it (BSD variants)  */
12588
12589 #include <fcntl.h>
12590 #include <sys/mman.h>
12591
12592 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12593 char *malloc ();
12594 #endif
12595
12596 /* This mess was copied from the GNU getpagesize.h.  */
12597 #ifndef HAVE_GETPAGESIZE
12598 /* Assume that all systems that can run configure have sys/param.h.  */
12599 # ifndef HAVE_SYS_PARAM_H
12600 #  define HAVE_SYS_PARAM_H 1
12601 # endif
12602
12603 # ifdef _SC_PAGESIZE
12604 #  define getpagesize() sysconf(_SC_PAGESIZE)
12605 # else /* no _SC_PAGESIZE */
12606 #  ifdef HAVE_SYS_PARAM_H
12607 #   include <sys/param.h>
12608 #   ifdef EXEC_PAGESIZE
12609 #    define getpagesize() EXEC_PAGESIZE
12610 #   else /* no EXEC_PAGESIZE */
12611 #    ifdef NBPG
12612 #     define getpagesize() NBPG * CLSIZE
12613 #     ifndef CLSIZE
12614 #      define CLSIZE 1
12615 #     endif /* no CLSIZE */
12616 #    else /* no NBPG */
12617 #     ifdef NBPC
12618 #      define getpagesize() NBPC
12619 #     else /* no NBPC */
12620 #      ifdef PAGESIZE
12621 #       define getpagesize() PAGESIZE
12622 #      endif /* PAGESIZE */
12623 #     endif /* no NBPC */
12624 #    endif /* no NBPG */
12625 #   endif /* no EXEC_PAGESIZE */
12626 #  else /* no HAVE_SYS_PARAM_H */
12627 #   define getpagesize() 8192   /* punt totally */
12628 #  endif /* no HAVE_SYS_PARAM_H */
12629 # endif /* no _SC_PAGESIZE */
12630
12631 #endif /* no HAVE_GETPAGESIZE */
12632
12633 int
12634 main ()
12635 {
12636   char *data, *data2, *data3;
12637   int i, pagesize;
12638   int fd;
12639
12640   pagesize = getpagesize ();
12641
12642   /* First, make a file with some known garbage in it. */
12643   data = (char *) malloc (pagesize);
12644   if (!data)
12645     return 1;
12646   for (i = 0; i < pagesize; ++i)
12647     *(data + i) = rand ();
12648   umask (0);
12649   fd = creat ("conftest.mmap", 0600);
12650   if (fd < 0)
12651     return 1;
12652   if (write (fd, data, pagesize) != pagesize)
12653     return 1;
12654   close (fd);
12655
12656   /* Next, try to mmap the file at a fixed address which already has
12657      something else allocated at it.  If we can, also make sure that
12658      we see the same garbage.  */
12659   fd = open ("conftest.mmap", O_RDWR);
12660   if (fd < 0)
12661     return 1;
12662   data2 = (char *) malloc (2 * pagesize);
12663   if (!data2)
12664     return 1;
12665   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12666   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12667                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12668     return 1;
12669   for (i = 0; i < pagesize; ++i)
12670     if (*(data + i) != *(data2 + i))
12671       return 1;
12672
12673   /* Finally, make sure that changes to the mapped area do not
12674      percolate back to the file as seen by read().  (This is a bug on
12675      some variants of i386 svr4.0.)  */
12676   for (i = 0; i < pagesize; ++i)
12677     *(data2 + i) = *(data2 + i) + 1;
12678   data3 = (char *) malloc (pagesize);
12679   if (!data3)
12680     return 1;
12681   if (read (fd, data3, pagesize) != pagesize)
12682     return 1;
12683   for (i = 0; i < pagesize; ++i)
12684     if (*(data + i) != *(data3 + i))
12685       return 1;
12686   close (fd);
12687   return 0;
12688 }
12689 _ACEOF
12690 if ac_fn_c_try_run "$LINENO"; then :
12691   ac_cv_func_mmap_fixed_mapped=yes
12692 else
12693   ac_cv_func_mmap_fixed_mapped=no
12694 fi
12695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12696   conftest.$ac_objext conftest.beam conftest.$ac_ext
12697 fi
12698
12699 fi
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12701 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12702 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12703
12704 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12705
12706 fi
12707 rm -f conftest.mmap
12708
12709 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12710 if test "x$ac_cv_type_pid_t" = x""yes; then :
12711
12712 else
12713
12714 cat >>confdefs.h <<_ACEOF
12715 #define pid_t int
12716 _ACEOF
12717
12718 fi
12719
12720 for ac_header in vfork.h
12721 do :
12722   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12723 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12724   cat >>confdefs.h <<_ACEOF
12725 #define HAVE_VFORK_H 1
12726 _ACEOF
12727
12728 fi
12729
12730 done
12731
12732 for ac_func in fork vfork
12733 do :
12734   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12735 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12736 eval as_val=\$$as_ac_var
12737    if test "x$as_val" = x""yes; then :
12738   cat >>confdefs.h <<_ACEOF
12739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12740 _ACEOF
12741
12742 fi
12743 done
12744
12745 if test "x$ac_cv_func_fork" = xyes; then
12746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12747 $as_echo_n "checking for working fork... " >&6; }
12748 if test "${ac_cv_func_fork_works+set}" = set; then :
12749   $as_echo_n "(cached) " >&6
12750 else
12751   if test "$cross_compiling" = yes; then :
12752   ac_cv_func_fork_works=cross
12753 else
12754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h.  */
12756 $ac_includes_default
12757 int
12758 main ()
12759 {
12760
12761           /* By Ruediger Kuhlmann. */
12762           return fork () < 0;
12763
12764   ;
12765   return 0;
12766 }
12767 _ACEOF
12768 if ac_fn_c_try_run "$LINENO"; then :
12769   ac_cv_func_fork_works=yes
12770 else
12771   ac_cv_func_fork_works=no
12772 fi
12773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12774   conftest.$ac_objext conftest.beam conftest.$ac_ext
12775 fi
12776
12777 fi
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12779 $as_echo "$ac_cv_func_fork_works" >&6; }
12780
12781 else
12782   ac_cv_func_fork_works=$ac_cv_func_fork
12783 fi
12784 if test "x$ac_cv_func_fork_works" = xcross; then
12785   case $host in
12786     *-*-amigaos* | *-*-msdosdjgpp*)
12787       # Override, as these systems have only a dummy fork() stub
12788       ac_cv_func_fork_works=no
12789       ;;
12790     *)
12791       ac_cv_func_fork_works=yes
12792       ;;
12793   esac
12794   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12795 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12796 fi
12797 ac_cv_func_vfork_works=$ac_cv_func_vfork
12798 if test "x$ac_cv_func_vfork" = xyes; then
12799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12800 $as_echo_n "checking for working vfork... " >&6; }
12801 if test "${ac_cv_func_vfork_works+set}" = set; then :
12802   $as_echo_n "(cached) " >&6
12803 else
12804   if test "$cross_compiling" = yes; then :
12805   ac_cv_func_vfork_works=cross
12806 else
12807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h.  */
12809 /* Thanks to Paul Eggert for this test.  */
12810 $ac_includes_default
12811 #include <sys/wait.h>
12812 #ifdef HAVE_VFORK_H
12813 # include <vfork.h>
12814 #endif
12815 /* On some sparc systems, changes by the child to local and incoming
12816    argument registers are propagated back to the parent.  The compiler
12817    is told about this with #include <vfork.h>, but some compilers
12818    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12819    static variable whose address is put into a register that is
12820    clobbered by the vfork.  */
12821 static void
12822 #ifdef __cplusplus
12823 sparc_address_test (int arg)
12824 # else
12825 sparc_address_test (arg) int arg;
12826 #endif
12827 {
12828   static pid_t child;
12829   if (!child) {
12830     child = vfork ();
12831     if (child < 0) {
12832       perror ("vfork");
12833       _exit(2);
12834     }
12835     if (!child) {
12836       arg = getpid();
12837       write(-1, "", 0);
12838       _exit (arg);
12839     }
12840   }
12841 }
12842
12843 int
12844 main ()
12845 {
12846   pid_t parent = getpid ();
12847   pid_t child;
12848
12849   sparc_address_test (0);
12850
12851   child = vfork ();
12852
12853   if (child == 0) {
12854     /* Here is another test for sparc vfork register problems.  This
12855        test uses lots of local variables, at least as many local
12856        variables as main has allocated so far including compiler
12857        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12858        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12859        reuse the register of parent for one of the local variables,
12860        since it will think that parent can't possibly be used any more
12861        in this routine.  Assigning to the local variable will thus
12862        munge parent in the parent process.  */
12863     pid_t
12864       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12865       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12866     /* Convince the compiler that p..p7 are live; otherwise, it might
12867        use the same hardware register for all 8 local variables.  */
12868     if (p != p1 || p != p2 || p != p3 || p != p4
12869         || p != p5 || p != p6 || p != p7)
12870       _exit(1);
12871
12872     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12873        from child file descriptors.  If the child closes a descriptor
12874        before it execs or exits, this munges the parent's descriptor
12875        as well.  Test for this by closing stdout in the child.  */
12876     _exit(close(fileno(stdout)) != 0);
12877   } else {
12878     int status;
12879     struct stat st;
12880
12881     while (wait(&status) != child)
12882       ;
12883     return (
12884          /* Was there some problem with vforking?  */
12885          child < 0
12886
12887          /* Did the child fail?  (This shouldn't happen.)  */
12888          || status
12889
12890          /* Did the vfork/compiler bug occur?  */
12891          || parent != getpid()
12892
12893          /* Did the file descriptor bug occur?  */
12894          || fstat(fileno(stdout), &st) != 0
12895          );
12896   }
12897 }
12898 _ACEOF
12899 if ac_fn_c_try_run "$LINENO"; then :
12900   ac_cv_func_vfork_works=yes
12901 else
12902   ac_cv_func_vfork_works=no
12903 fi
12904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12905   conftest.$ac_objext conftest.beam conftest.$ac_ext
12906 fi
12907
12908 fi
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12910 $as_echo "$ac_cv_func_vfork_works" >&6; }
12911
12912 fi;
12913 if test "x$ac_cv_func_fork_works" = xcross; then
12914   ac_cv_func_vfork_works=$ac_cv_func_vfork
12915   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12916 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12917 fi
12918
12919 if test "x$ac_cv_func_vfork_works" = xyes; then
12920
12921 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12922
12923 else
12924
12925 $as_echo "#define vfork fork" >>confdefs.h
12926
12927 fi
12928 if test "x$ac_cv_func_fork_works" = xyes; then
12929
12930 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12931
12932 fi
12933
12934 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
12935                 pipe poll pread pread64 pwrite resize_term \
12936                 sbrk setpgid setpgrp setsid \
12937                 sigaction sigprocmask sigsetmask socketpair syscall \
12938                 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12939                 setrlimit getrlimit posix_madvise waitpid lstat
12940 do :
12941   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12943 eval as_val=\$$as_ac_var
12944    if test "x$as_val" = x""yes; then :
12945   cat >>confdefs.h <<_ACEOF
12946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12947 _ACEOF
12948
12949 fi
12950 done
12951
12952
12953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12954 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12955 if test "${am_cv_langinfo_codeset+set}" = set; then :
12956   $as_echo_n "(cached) " >&6
12957 else
12958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h.  */
12960 #include <langinfo.h>
12961 int
12962 main ()
12963 {
12964 char* cs = nl_langinfo(CODESET);
12965   ;
12966   return 0;
12967 }
12968 _ACEOF
12969 if ac_fn_c_try_link "$LINENO"; then :
12970   am_cv_langinfo_codeset=yes
12971 else
12972   am_cv_langinfo_codeset=no
12973 fi
12974 rm -f core conftest.err conftest.$ac_objext \
12975     conftest$ac_exeext conftest.$ac_ext
12976
12977 fi
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12979 $as_echo "$am_cv_langinfo_codeset" >&6; }
12980   if test $am_cv_langinfo_codeset = yes; then
12981
12982 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12983
12984   fi
12985
12986
12987 # Check the return and argument types of ptrace.  No canned test for
12988 # this, so roll our own.
12989 gdb_ptrace_headers='
12990 #if HAVE_SYS_TYPES_H
12991 # include <sys/types.h>
12992 #endif
12993 #if HAVE_SYS_PTRACE_H
12994 # include <sys/ptrace.h>
12995 #endif
12996 #if HAVE_UNISTD_H
12997 # include <unistd.h>
12998 #endif
12999 '
13000 # There is no point in checking if we don't have a prototype.
13001 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13002 "
13003 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
13004   ac_have_decl=1
13005 else
13006   ac_have_decl=0
13007 fi
13008
13009 cat >>confdefs.h <<_ACEOF
13010 #define HAVE_DECL_PTRACE $ac_have_decl
13011 _ACEOF
13012 if test $ac_have_decl = 1; then :
13013
13014 else
13015
13016   : ${gdb_cv_func_ptrace_ret='int'}
13017   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13018
13019 fi
13020
13021 # Check return type.  Varargs (used on GNU/Linux) conflict with the
13022 # empty argument list, so check for that explicitly.
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13024 $as_echo_n "checking return type of ptrace... " >&6; }
13025 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
13026   $as_echo_n "(cached) " >&6
13027 else
13028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h.  */
13030 $gdb_ptrace_headers
13031 int
13032 main ()
13033 {
13034 extern long ptrace (enum __ptrace_request, ...);
13035   ;
13036   return 0;
13037 }
13038 _ACEOF
13039 if ac_fn_c_try_compile "$LINENO"; then :
13040   gdb_cv_func_ptrace_ret='long'
13041 else
13042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h.  */
13044 $gdb_ptrace_headers
13045 int
13046 main ()
13047 {
13048 extern int ptrace ();
13049   ;
13050   return 0;
13051 }
13052 _ACEOF
13053 if ac_fn_c_try_compile "$LINENO"; then :
13054   gdb_cv_func_ptrace_ret='int'
13055 else
13056   gdb_cv_func_ptrace_ret='long'
13057 fi
13058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059 fi
13060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13061 fi
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13063 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13064
13065 cat >>confdefs.h <<_ACEOF
13066 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13067 _ACEOF
13068
13069 # Check argument types.
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13071 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13072 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
13073   $as_echo_n "(cached) " >&6
13074 else
13075
13076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h.  */
13078 $gdb_ptrace_headers
13079 int
13080 main ()
13081 {
13082 extern long ptrace (enum __ptrace_request, ...);
13083   ;
13084   return 0;
13085 }
13086 _ACEOF
13087 if ac_fn_c_try_compile "$LINENO"; then :
13088   gdb_cv_func_ptrace_args='int,int,long,long'
13089 else
13090
13091 for gdb_arg1 in 'int' 'long'; do
13092  for gdb_arg2 in 'pid_t' 'int' 'long'; do
13093   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13094    for gdb_arg4 in 'int' 'long'; do
13095      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h.  */
13097 $gdb_ptrace_headers
13098 int
13099 main ()
13100 {
13101
13102 extern $gdb_cv_func_ptrace_ret
13103   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13104
13105   ;
13106   return 0;
13107 }
13108 _ACEOF
13109 if ac_fn_c_try_compile "$LINENO"; then :
13110   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13111     break 4;
13112 fi
13113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13114     for gdb_arg5 in 'int *' 'int' 'long'; do
13115      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h.  */
13117 $gdb_ptrace_headers
13118 int
13119 main ()
13120 {
13121
13122 extern $gdb_cv_func_ptrace_ret
13123   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13124
13125   ;
13126   return 0;
13127 }
13128 _ACEOF
13129 if ac_fn_c_try_compile "$LINENO"; then :
13130
13131 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13132     break 5;
13133 fi
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135     done
13136    done
13137   done
13138  done
13139 done
13140 # Provide a safe default value.
13141 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13142
13143 fi
13144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13145 fi
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13147 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13148 ac_save_IFS=$IFS; IFS=','
13149 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13150 IFS=$ac_save_IFS
13151 shift
13152
13153 cat >>confdefs.h <<_ACEOF
13154 #define PTRACE_TYPE_ARG3 $3
13155 _ACEOF
13156
13157 if test -n "$5"; then
13158
13159 cat >>confdefs.h <<_ACEOF
13160 #define PTRACE_TYPE_ARG5 $5
13161 _ACEOF
13162
13163 fi
13164
13165 if test "$cross_compiling" = no; then
13166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13167 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13168 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13169   $as_echo_n "(cached) " >&6
13170 else
13171   if test "$cross_compiling" = yes; then :
13172   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
13173 else
13174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h.  */
13176 $ac_includes_default
13177 int
13178 main ()
13179 {
13180 /* If this system has a BSD-style setpgrp which takes arguments,
13181   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13182   exit successfully. */
13183   return setpgrp (1,1) != -1;
13184   ;
13185   return 0;
13186 }
13187 _ACEOF
13188 if ac_fn_c_try_run "$LINENO"; then :
13189   ac_cv_func_setpgrp_void=no
13190 else
13191   ac_cv_func_setpgrp_void=yes
13192 fi
13193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13194   conftest.$ac_objext conftest.beam conftest.$ac_ext
13195 fi
13196
13197 fi
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13199 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13200 if test $ac_cv_func_setpgrp_void = yes; then
13201
13202 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13203
13204 fi
13205
13206 else
13207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13208 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13209 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13210   $as_echo_n "(cached) " >&6
13211 else
13212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h.  */
13214
13215 #include <unistd.h>
13216
13217 int
13218 main ()
13219 {
13220
13221   if (setpgrp(1,1) == -1)
13222     exit (0);
13223   else
13224     exit (1);
13225
13226   ;
13227   return 0;
13228 }
13229 _ACEOF
13230 if ac_fn_c_try_compile "$LINENO"; then :
13231   ac_cv_func_setpgrp_void=no
13232 else
13233   ac_cv_func_setpgrp_void=yes
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 fi
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13238 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13239 if test $ac_cv_func_setpgrp_void = yes; then
13240   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13241
13242 fi
13243 fi
13244
13245 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
13246 # since sigsetjmp might only be defined as a macro.
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13248 $as_echo_n "checking for sigsetjmp... " >&6; }
13249 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
13250   $as_echo_n "(cached) " >&6
13251 else
13252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h.  */
13254
13255 #include <setjmp.h>
13256
13257 int
13258 main ()
13259 {
13260 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13261   ;
13262   return 0;
13263 }
13264 _ACEOF
13265 if ac_fn_c_try_compile "$LINENO"; then :
13266   gdb_cv_func_sigsetjmp=yes
13267 else
13268   gdb_cv_func_sigsetjmp=no
13269 fi
13270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13271 fi
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13273 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13274 if test $gdb_cv_func_sigsetjmp = yes; then
13275
13276 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13277
13278 fi
13279
13280 # Assume we'll default to using the included libiberty regex.
13281 gdb_use_included_regex=yes
13282
13283 # However, if the system regex is GNU regex, then default to *not*
13284 # using the included regex.
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13286 $as_echo_n "checking for GNU regex... " >&6; }
13287 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
13288   $as_echo_n "(cached) " >&6
13289 else
13290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h.  */
13292 #include <gnu-versions.h>
13293 int
13294 main ()
13295 {
13296 #define REGEX_INTERFACE_VERSION 1
13297 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13298 # error "Version mismatch"
13299 #endif
13300   ;
13301   return 0;
13302 }
13303 _ACEOF
13304 if ac_fn_c_try_compile "$LINENO"; then :
13305   gdb_cv_have_gnu_regex=yes
13306 else
13307   gdb_cv_have_gnu_regex=no
13308 fi
13309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13310 fi
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13312 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13313 if test $gdb_cv_have_gnu_regex = yes; then
13314   gdb_use_included_regex=no
13315 fi
13316
13317
13318 # Check whether --with-included-regex was given.
13319 if test "${with_included_regex+set}" = set; then :
13320   withval=$with_included_regex; gdb_with_regex=$withval
13321 else
13322   gdb_with_regex=$gdb_use_included_regex
13323 fi
13324
13325 if test "$gdb_with_regex" = yes; then
13326
13327 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13328
13329 fi
13330
13331 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13332 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13333 #include <sys/proc.h>
13334
13335 "
13336 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
13337
13338 cat >>confdefs.h <<_ACEOF
13339 #define HAVE_STRUCT_THREAD_TD_PCB 1
13340 _ACEOF
13341
13342
13343 fi
13344
13345
13346 # See if <sys/lwp.h> defines `struct lwp`.
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13348 $as_echo_n "checking for struct lwp... " >&6; }
13349 if test "${gdb_cv_struct_lwp+set}" = set; then :
13350   $as_echo_n "(cached) " >&6
13351 else
13352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h.  */
13354 #include <sys/param.h>
13355 #include <sys/lwp.h>
13356 int
13357 main ()
13358 {
13359 struct lwp l;
13360   ;
13361   return 0;
13362 }
13363 _ACEOF
13364 if ac_fn_c_try_compile "$LINENO"; then :
13365   gdb_cv_struct_lwp=yes
13366 else
13367   gdb_cv_struct_lwp=no
13368 fi
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 fi
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13372 $as_echo "$gdb_cv_struct_lwp" >&6; }
13373 if test $gdb_cv_struct_lwp = yes; then
13374
13375 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13376
13377 fi
13378
13379 # See if <machine/reg.h> degines `struct reg'.
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13381 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13382 if test "${gdb_cv_struct_reg+set}" = set; then :
13383   $as_echo_n "(cached) " >&6
13384 else
13385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h.  */
13387 #include <sys/types.h>
13388 #include <machine/reg.h>
13389 int
13390 main ()
13391 {
13392 struct reg r;
13393   ;
13394   return 0;
13395 }
13396 _ACEOF
13397 if ac_fn_c_try_compile "$LINENO"; then :
13398   gdb_cv_struct_reg=yes
13399 else
13400   gdb_cv_struct_reg=no
13401 fi
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 fi
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13405 $as_echo "$gdb_cv_struct_reg" >&6; }
13406 if test $gdb_cv_struct_reg = yes; then
13407
13408 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13409
13410 fi
13411
13412 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13413 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13414 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13415 "
13416 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
13417
13418 cat >>confdefs.h <<_ACEOF
13419 #define HAVE_STRUCT_REG_R_FS 1
13420 _ACEOF
13421
13422
13423 fi
13424 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13425 "
13426 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
13427
13428 cat >>confdefs.h <<_ACEOF
13429 #define HAVE_STRUCT_REG_R_GS 1
13430 _ACEOF
13431
13432
13433 fi
13434
13435
13436 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13438 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13439 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13440   $as_echo_n "(cached) " >&6
13441 else
13442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h.  */
13444 #include <sys/ptrace.h>
13445 int
13446 main ()
13447 {
13448 PTRACE_GETREGS;
13449   ;
13450   return 0;
13451 }
13452 _ACEOF
13453 if ac_fn_c_try_compile "$LINENO"; then :
13454   gdb_cv_have_ptrace_getregs=yes
13455 else
13456   gdb_cv_have_ptrace_getregs=no
13457 fi
13458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459 fi
13460
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13462 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13463 if test $gdb_cv_have_ptrace_getregs = yes; then
13464
13465 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13466
13467 fi
13468
13469 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13471 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13472 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13473   $as_echo_n "(cached) " >&6
13474 else
13475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h.  */
13477 #include <sys/ptrace.h>
13478 int
13479 main ()
13480 {
13481 PTRACE_GETFPXREGS;
13482   ;
13483   return 0;
13484 }
13485 _ACEOF
13486 if ac_fn_c_try_compile "$LINENO"; then :
13487   gdb_cv_have_ptrace_getfpxregs=yes
13488 else
13489   gdb_cv_have_ptrace_getfpxregs=no
13490 fi
13491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492 fi
13493
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13495 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13496 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13497
13498 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13499
13500 fi
13501
13502 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13504 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13505 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13506   $as_echo_n "(cached) " >&6
13507 else
13508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h.  */
13510 #include <sys/types.h>
13511 #include <sys/ptrace.h>
13512 int
13513 main ()
13514 {
13515 PT_GETDBREGS;
13516   ;
13517   return 0;
13518 }
13519 _ACEOF
13520 if ac_fn_c_try_compile "$LINENO"; then :
13521   gdb_cv_have_pt_getdbregs=yes
13522 else
13523   gdb_cv_have_pt_getdbregs=no
13524 fi
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526 fi
13527
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13529 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13530 if test $gdb_cv_have_pt_getdbregs = yes; then
13531
13532 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13533
13534 fi
13535
13536 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13538 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13539 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13540   $as_echo_n "(cached) " >&6
13541 else
13542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h.  */
13544 #include <sys/types.h>
13545 #include <sys/ptrace.h>
13546 int
13547 main ()
13548 {
13549 PT_GETXMMREGS;
13550   ;
13551   return 0;
13552 }
13553 _ACEOF
13554 if ac_fn_c_try_compile "$LINENO"; then :
13555   gdb_cv_have_pt_getxmmregs=yes
13556 else
13557   gdb_cv_have_pt_getxmmregs=no
13558 fi
13559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13560 fi
13561
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13563 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13564 if test $gdb_cv_have_pt_getxmmregs = yes; then
13565
13566 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13567
13568 fi
13569
13570 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13571
13572 if test "${target}" = "${host}"; then
13573   case "${host}" in
13574   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
13575
13576 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13577
13578       ;;
13579   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13580
13581 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13582
13583       ;;
13584   mips-sgi-irix5*)
13585       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13586
13587 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13588
13589       ;;
13590   esac
13591 fi
13592
13593 if test "$ac_cv_header_sys_procfs_h" = yes; then
13594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13595 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13596  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13597   $as_echo_n "(cached) " >&6
13598 else
13599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h.  */
13601
13602 #define _SYSCALL32
13603 /* Needed for new procfs interface on sparc-solaris.  */
13604 #define _STRUCTURED_PROC 1
13605 #include <sys/procfs.h>
13606 int
13607 main ()
13608 {
13609 pstatus_t avar
13610   ;
13611   return 0;
13612 }
13613 _ACEOF
13614 if ac_fn_c_try_compile "$LINENO"; then :
13615   bfd_cv_have_sys_procfs_type_pstatus_t=yes
13616 else
13617   bfd_cv_have_sys_procfs_type_pstatus_t=no
13618
13619 fi
13620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13621 fi
13622
13623  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13624
13625 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13626
13627  fi
13628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13629 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13630
13631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13632 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13633  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13634   $as_echo_n "(cached) " >&6
13635 else
13636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637 /* end confdefs.h.  */
13638
13639 #define _SYSCALL32
13640 /* Needed for new procfs interface on sparc-solaris.  */
13641 #define _STRUCTURED_PROC 1
13642 #include <sys/procfs.h>
13643 int
13644 main ()
13645 {
13646 prrun_t avar
13647   ;
13648   return 0;
13649 }
13650 _ACEOF
13651 if ac_fn_c_try_compile "$LINENO"; then :
13652   bfd_cv_have_sys_procfs_type_prrun_t=yes
13653 else
13654   bfd_cv_have_sys_procfs_type_prrun_t=no
13655
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 fi
13659
13660  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13661
13662 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13663
13664  fi
13665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13666 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13667
13668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13669 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13670  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13671   $as_echo_n "(cached) " >&6
13672 else
13673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h.  */
13675
13676 #define _SYSCALL32
13677 /* Needed for new procfs interface on sparc-solaris.  */
13678 #define _STRUCTURED_PROC 1
13679 #include <sys/procfs.h>
13680 int
13681 main ()
13682 {
13683 gregset_t avar
13684   ;
13685   return 0;
13686 }
13687 _ACEOF
13688 if ac_fn_c_try_compile "$LINENO"; then :
13689   bfd_cv_have_sys_procfs_type_gregset_t=yes
13690 else
13691   bfd_cv_have_sys_procfs_type_gregset_t=no
13692
13693 fi
13694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13695 fi
13696
13697  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13698
13699 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13700
13701  fi
13702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13703 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13704
13705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13706 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13707  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13708   $as_echo_n "(cached) " >&6
13709 else
13710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h.  */
13712
13713 #define _SYSCALL32
13714 /* Needed for new procfs interface on sparc-solaris.  */
13715 #define _STRUCTURED_PROC 1
13716 #include <sys/procfs.h>
13717 int
13718 main ()
13719 {
13720 fpregset_t avar
13721   ;
13722   return 0;
13723 }
13724 _ACEOF
13725 if ac_fn_c_try_compile "$LINENO"; then :
13726   bfd_cv_have_sys_procfs_type_fpregset_t=yes
13727 else
13728   bfd_cv_have_sys_procfs_type_fpregset_t=no
13729
13730 fi
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 fi
13733
13734  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13735
13736 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13737
13738  fi
13739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13740 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13741
13742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13743 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13744  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13745   $as_echo_n "(cached) " >&6
13746 else
13747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h.  */
13749
13750 #define _SYSCALL32
13751 /* Needed for new procfs interface on sparc-solaris.  */
13752 #define _STRUCTURED_PROC 1
13753 #include <sys/procfs.h>
13754 int
13755 main ()
13756 {
13757 prgregset_t avar
13758   ;
13759   return 0;
13760 }
13761 _ACEOF
13762 if ac_fn_c_try_compile "$LINENO"; then :
13763   bfd_cv_have_sys_procfs_type_prgregset_t=yes
13764 else
13765   bfd_cv_have_sys_procfs_type_prgregset_t=no
13766
13767 fi
13768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13769 fi
13770
13771  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13772
13773 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13774
13775  fi
13776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13777 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13778
13779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13780 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13781  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13782   $as_echo_n "(cached) " >&6
13783 else
13784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h.  */
13786
13787 #define _SYSCALL32
13788 /* Needed for new procfs interface on sparc-solaris.  */
13789 #define _STRUCTURED_PROC 1
13790 #include <sys/procfs.h>
13791 int
13792 main ()
13793 {
13794 prfpregset_t avar
13795   ;
13796   return 0;
13797 }
13798 _ACEOF
13799 if ac_fn_c_try_compile "$LINENO"; then :
13800   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13801 else
13802   bfd_cv_have_sys_procfs_type_prfpregset_t=no
13803
13804 fi
13805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806 fi
13807
13808  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13809
13810 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13811
13812  fi
13813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13814 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13815
13816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13817 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13818  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13819   $as_echo_n "(cached) " >&6
13820 else
13821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h.  */
13823
13824 #define _SYSCALL32
13825 /* Needed for new procfs interface on sparc-solaris.  */
13826 #define _STRUCTURED_PROC 1
13827 #include <sys/procfs.h>
13828 int
13829 main ()
13830 {
13831 prgregset32_t avar
13832   ;
13833   return 0;
13834 }
13835 _ACEOF
13836 if ac_fn_c_try_compile "$LINENO"; then :
13837   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13838 else
13839   bfd_cv_have_sys_procfs_type_prgregset32_t=no
13840
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 fi
13844
13845  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13846
13847 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13848
13849  fi
13850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13851 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13852
13853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13854 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13855  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13856   $as_echo_n "(cached) " >&6
13857 else
13858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h.  */
13860
13861 #define _SYSCALL32
13862 /* Needed for new procfs interface on sparc-solaris.  */
13863 #define _STRUCTURED_PROC 1
13864 #include <sys/procfs.h>
13865 int
13866 main ()
13867 {
13868 prfpregset32_t avar
13869   ;
13870   return 0;
13871 }
13872 _ACEOF
13873 if ac_fn_c_try_compile "$LINENO"; then :
13874   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
13875 else
13876   bfd_cv_have_sys_procfs_type_prfpregset32_t=no
13877
13878 fi
13879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880 fi
13881
13882  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13883
13884 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13885
13886  fi
13887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13888 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13889
13890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13891 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13892  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13893   $as_echo_n "(cached) " >&6
13894 else
13895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h.  */
13897
13898 #define _SYSCALL32
13899 /* Needed for new procfs interface on sparc-solaris.  */
13900 #define _STRUCTURED_PROC 1
13901 #include <sys/procfs.h>
13902 int
13903 main ()
13904 {
13905 lwpid_t avar
13906   ;
13907   return 0;
13908 }
13909 _ACEOF
13910 if ac_fn_c_try_compile "$LINENO"; then :
13911   bfd_cv_have_sys_procfs_type_lwpid_t=yes
13912 else
13913   bfd_cv_have_sys_procfs_type_lwpid_t=no
13914
13915 fi
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 fi
13918
13919  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13920
13921 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13922
13923  fi
13924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13925 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13926
13927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13928 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13929  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13930   $as_echo_n "(cached) " >&6
13931 else
13932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h.  */
13934
13935 #define _SYSCALL32
13936 /* Needed for new procfs interface on sparc-solaris.  */
13937 #define _STRUCTURED_PROC 1
13938 #include <sys/procfs.h>
13939 int
13940 main ()
13941 {
13942 psaddr_t avar
13943   ;
13944   return 0;
13945 }
13946 _ACEOF
13947 if ac_fn_c_try_compile "$LINENO"; then :
13948   bfd_cv_have_sys_procfs_type_psaddr_t=yes
13949 else
13950   bfd_cv_have_sys_procfs_type_psaddr_t=no
13951
13952 fi
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954 fi
13955
13956  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13957
13958 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13959
13960  fi
13961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13962 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13963
13964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13965 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13966  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13967   $as_echo_n "(cached) " >&6
13968 else
13969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h.  */
13971
13972 #define _SYSCALL32
13973 /* Needed for new procfs interface on sparc-solaris.  */
13974 #define _STRUCTURED_PROC 1
13975 #include <sys/procfs.h>
13976 int
13977 main ()
13978 {
13979 prsysent_t avar
13980   ;
13981   return 0;
13982 }
13983 _ACEOF
13984 if ac_fn_c_try_compile "$LINENO"; then :
13985   bfd_cv_have_sys_procfs_type_prsysent_t=yes
13986 else
13987   bfd_cv_have_sys_procfs_type_prsysent_t=no
13988
13989 fi
13990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13991 fi
13992
13993  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13994
13995 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13996
13997  fi
13998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13999 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
14000
14001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
14002 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
14003  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
14004   $as_echo_n "(cached) " >&6
14005 else
14006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h.  */
14008
14009 #define _SYSCALL32
14010 /* Needed for new procfs interface on sparc-solaris.  */
14011 #define _STRUCTURED_PROC 1
14012 #include <sys/procfs.h>
14013 int
14014 main ()
14015 {
14016 pr_sigset_t avar
14017   ;
14018   return 0;
14019 }
14020 _ACEOF
14021 if ac_fn_c_try_compile "$LINENO"; then :
14022   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
14023 else
14024   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
14025
14026 fi
14027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028 fi
14029
14030  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
14031
14032 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
14033
14034  fi
14035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
14036 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
14037
14038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
14039 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
14040  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
14041   $as_echo_n "(cached) " >&6
14042 else
14043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h.  */
14045
14046 #define _SYSCALL32
14047 /* Needed for new procfs interface on sparc-solaris.  */
14048 #define _STRUCTURED_PROC 1
14049 #include <sys/procfs.h>
14050 int
14051 main ()
14052 {
14053 pr_sigaction64_t avar
14054   ;
14055   return 0;
14056 }
14057 _ACEOF
14058 if ac_fn_c_try_compile "$LINENO"; then :
14059   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
14060 else
14061   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
14062
14063 fi
14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14065 fi
14066
14067  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
14068
14069 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
14070
14071  fi
14072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
14073 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
14074
14075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
14076 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
14077  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
14078   $as_echo_n "(cached) " >&6
14079 else
14080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h.  */
14082
14083 #define _SYSCALL32
14084 /* Needed for new procfs interface on sparc-solaris.  */
14085 #define _STRUCTURED_PROC 1
14086 #include <sys/procfs.h>
14087 int
14088 main ()
14089 {
14090 pr_siginfo64_t avar
14091   ;
14092   return 0;
14093 }
14094 _ACEOF
14095 if ac_fn_c_try_compile "$LINENO"; then :
14096   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
14097 else
14098   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
14099
14100 fi
14101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14102 fi
14103
14104  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
14105
14106 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
14107
14108  fi
14109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
14110 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
14111
14112
14113
14114
14115
14116   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
14118 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
14119     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
14120   $as_echo_n "(cached) " >&6
14121 else
14122   if test "$cross_compiling" = yes; then :
14123   gdb_cv_prfpregset_t_broken=yes
14124 else
14125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h.  */
14127 #include <sys/procfs.h>
14128        int main ()
14129        {
14130          if (sizeof (prfpregset_t) == sizeof (void *))
14131            return 1;
14132          return 0;
14133        }
14134 _ACEOF
14135 if ac_fn_c_try_run "$LINENO"; then :
14136   gdb_cv_prfpregset_t_broken=no
14137 else
14138   gdb_cv_prfpregset_t_broken=yes
14139 fi
14140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14141   conftest.$ac_objext conftest.beam conftest.$ac_ext
14142 fi
14143
14144 fi
14145
14146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14147 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14148     if test $gdb_cv_prfpregset_t_broken = yes; then
14149
14150 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14151
14152     fi
14153   fi
14154
14155
14156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
14157 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
14158   if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
14159   $as_echo_n "(cached) " >&6
14160 else
14161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h.  */
14163 #include <unistd.h>
14164 #include <sys/types.h>
14165 #include <sys/procfs.h>
14166
14167 int
14168 main ()
14169 {
14170
14171     int dummy;;
14172     dummy = ioctl(0, PIOCSET, &dummy);
14173
14174   ;
14175   return 0;
14176 }
14177 _ACEOF
14178 if ac_fn_c_try_compile "$LINENO"; then :
14179   gdb_cv_have_procfs_piocset=yes
14180 else
14181   gdb_cv_have_procfs_piocset=no
14182 fi
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 fi
14185
14186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
14187 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
14188   if test $gdb_cv_have_procfs_piocset = yes; then
14189
14190 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
14191
14192   fi
14193 fi
14194
14195 if test ${host} = ${target} ; then
14196
14197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
14198 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
14199   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
14200   $as_echo_n "(cached) " >&6
14201 else
14202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h.  */
14204 #include <link.h>
14205 int
14206 main ()
14207 {
14208 struct link_map lm; (void) lm.l_addr;
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 if ac_fn_c_try_compile "$LINENO"; then :
14214   gdb_cv_have_struct_link_map_with_l_members=yes
14215 else
14216   gdb_cv_have_struct_link_map_with_l_members=no
14217 fi
14218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14219 fi
14220
14221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
14222 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
14223   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
14224
14225 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
14226
14227   fi
14228
14229
14230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
14231 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
14232   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
14233   $as_echo_n "(cached) " >&6
14234 else
14235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h.  */
14237 #include <sys/types.h>
14238 #include <link.h>
14239 int
14240 main ()
14241 {
14242 struct link_map lm; (void) lm.lm_addr;
14243   ;
14244   return 0;
14245 }
14246 _ACEOF
14247 if ac_fn_c_try_compile "$LINENO"; then :
14248   gdb_cv_have_struct_link_map_with_lm_members=yes
14249 else
14250   gdb_cv_have_struct_link_map_with_lm_members=no
14251 fi
14252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14253 fi
14254
14255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
14256 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
14257   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
14258
14259 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
14260
14261   fi
14262
14263
14264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
14265 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
14266   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
14267   $as_echo_n "(cached) " >&6
14268 else
14269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h.  */
14271 #include <sys/types.h>
14272 #ifdef HAVE_NLIST_H
14273 #include <nlist.h>
14274 #endif
14275 #include <link.h>
14276 int
14277 main ()
14278 {
14279 struct so_map lm; (void) lm.som_addr;
14280   ;
14281   return 0;
14282 }
14283 _ACEOF
14284 if ac_fn_c_try_compile "$LINENO"; then :
14285   gdb_cv_have_struct_so_map_with_som_members=yes
14286 else
14287   gdb_cv_have_struct_so_map_with_som_members=no
14288 fi
14289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290 fi
14291
14292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
14293 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
14294   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
14295
14296 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
14297
14298   fi
14299
14300
14301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
14302 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
14303   if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
14304   $as_echo_n "(cached) " >&6
14305 else
14306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h.  */
14308 #define _SYSCALL32
14309 #include <sys/link.h>
14310 int
14311 main ()
14312 {
14313 struct link_map32 l;
14314   ;
14315   return 0;
14316 }
14317 _ACEOF
14318 if ac_fn_c_try_compile "$LINENO"; then :
14319   gdb_cv_have_struct_link_map32=yes
14320 else
14321   gdb_cv_have_struct_link_map32=no
14322 fi
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 fi
14325
14326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
14327 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
14328   if test $gdb_cv_have_struct_link_map32 = yes; then
14329
14330 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
14331
14332
14333 $as_echo "#define _SYSCALL32 1" >>confdefs.h
14334
14335   fi
14336 fi
14337
14338 # Check if the compiler supports the `long long' type.
14339
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14341 $as_echo_n "checking for long long support in compiler... " >&6; }
14342 if test "${gdb_cv_c_long_long+set}" = set; then :
14343   $as_echo_n "(cached) " >&6
14344 else
14345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h.  */
14347 extern long long foo;
14348 int
14349 main ()
14350 {
14351 switch (foo & 2) { case 0: return 1; }
14352   ;
14353   return 0;
14354 }
14355 _ACEOF
14356 if ac_fn_c_try_compile "$LINENO"; then :
14357   gdb_cv_c_long_long=yes
14358 else
14359   gdb_cv_c_long_long=no
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362 fi
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14364 $as_echo "$gdb_cv_c_long_long" >&6; }
14365 if test $gdb_cv_c_long_long = yes; then
14366
14367 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
14368
14369 fi
14370
14371 # Check if the compiler and runtime support printing long longs.
14372
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14374 $as_echo_n "checking for long long support in printf... " >&6; }
14375 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14376   $as_echo_n "(cached) " >&6
14377 else
14378   if test "$cross_compiling" = yes; then :
14379   gdb_cv_printf_has_long_long=no
14380 else
14381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h.  */
14383 $ac_includes_default
14384 int
14385 main ()
14386 {
14387 char buf[32];
14388   long long l = 0;
14389   l = (l << 16) + 0x0123;
14390   l = (l << 16) + 0x4567;
14391   l = (l << 16) + 0x89ab;
14392   l = (l << 16) + 0xcdef;
14393   sprintf (buf, "0x%016llx", l);
14394   return (strcmp ("0x0123456789abcdef", buf));
14395   ;
14396   return 0;
14397 }
14398 _ACEOF
14399 if ac_fn_c_try_run "$LINENO"; then :
14400   gdb_cv_printf_has_long_long=yes
14401 else
14402   gdb_cv_printf_has_long_long=no
14403 fi
14404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14405   conftest.$ac_objext conftest.beam conftest.$ac_ext
14406 fi
14407
14408 fi
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14410 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14411 if test $gdb_cv_printf_has_long_long = yes; then
14412
14413 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14414
14415 fi
14416
14417 # Check if the compiler and runtime support printing decfloats.
14418
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14420 $as_echo_n "checking for decfloat support in printf... " >&6; }
14421 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14422   $as_echo_n "(cached) " >&6
14423 else
14424   if test "$cross_compiling" = yes; then :
14425   gdb_cv_printf_has_decfloat=no
14426 else
14427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h.  */
14429 $ac_includes_default
14430 int
14431 main ()
14432 {
14433 char buf[64];
14434   _Decimal32 d32 = 1.2345df;
14435   _Decimal64 d64 = 1.2345dd;
14436   _Decimal128 d128 = 1.2345dl;
14437   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14438   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14439   ;
14440   return 0;
14441 }
14442 _ACEOF
14443 if ac_fn_c_try_run "$LINENO"; then :
14444   gdb_cv_printf_has_decfloat=yes
14445 else
14446   gdb_cv_printf_has_decfloat=no
14447 fi
14448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14449   conftest.$ac_objext conftest.beam conftest.$ac_ext
14450 fi
14451
14452 fi
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14454 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14455 if test $gdb_cv_printf_has_decfloat = yes; then
14456
14457 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14458
14459 fi
14460
14461 # Check if the compiler supports the `long double' type.  We can't use
14462 # AC_C_LONG_DOUBLE because that one does additional checks on the
14463 # constants defined in <float.h> that fail on some systems,
14464 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14465
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14467 $as_echo_n "checking for long double support in compiler... " >&6; }
14468 if test "${gdb_cv_c_long_double+set}" = set; then :
14469   $as_echo_n "(cached) " >&6
14470 else
14471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h.  */
14473 long double foo;
14474 _ACEOF
14475 if ac_fn_c_try_compile "$LINENO"; then :
14476   gdb_cv_c_long_double=yes
14477 else
14478   gdb_cv_c_long_double=no
14479 fi
14480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14481 fi
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14483 $as_echo "$gdb_cv_c_long_double" >&6; }
14484 if test $gdb_cv_c_long_double = yes; then
14485
14486 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14487
14488 fi
14489
14490 # Check if the compiler and runtime support printing long doubles.
14491
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14493 $as_echo_n "checking for long double support in printf... " >&6; }
14494 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14495   $as_echo_n "(cached) " >&6
14496 else
14497   if test "$cross_compiling" = yes; then :
14498   gdb_cv_printf_has_long_double=no
14499 else
14500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h.  */
14502 $ac_includes_default
14503 int
14504 main ()
14505 {
14506 char buf[16];
14507   long double f = 3.141592653;
14508   sprintf (buf, "%Lg", f);
14509   return (strncmp ("3.14159", buf, 7));
14510   ;
14511   return 0;
14512 }
14513 _ACEOF
14514 if ac_fn_c_try_run "$LINENO"; then :
14515   gdb_cv_printf_has_long_double=yes
14516 else
14517   gdb_cv_printf_has_long_double=no
14518 fi
14519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14520   conftest.$ac_objext conftest.beam conftest.$ac_ext
14521 fi
14522
14523 fi
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14525 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14526 if test $gdb_cv_printf_has_long_double = yes; then
14527
14528 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14529
14530 fi
14531
14532 # Check if the compiler and runtime support scanning long doubles.
14533
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14535 $as_echo_n "checking for long double support in scanf... " >&6; }
14536 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14537   $as_echo_n "(cached) " >&6
14538 else
14539   if test "$cross_compiling" = yes; then :
14540   gdb_cv_scanf_has_long_double=no
14541 else
14542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h.  */
14544 #include <stdio.h>
14545 int
14546 main ()
14547 {
14548 char *buf = "3.141592653";
14549   long double f = 0;
14550   sscanf (buf, "%Lg", &f);
14551   return !(f > 3.14159 && f < 3.14160);
14552   ;
14553   return 0;
14554 }
14555 _ACEOF
14556 if ac_fn_c_try_run "$LINENO"; then :
14557   gdb_cv_scanf_has_long_double=yes
14558 else
14559   gdb_cv_scanf_has_long_double=no
14560 fi
14561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14562   conftest.$ac_objext conftest.beam conftest.$ac_ext
14563 fi
14564
14565 fi
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14567 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14568 if test $gdb_cv_scanf_has_long_double = yes; then
14569
14570 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14571
14572 fi
14573
14574 case ${host_os} in
14575 aix*)
14576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14577 $as_echo_n "checking for -bbigtoc option... " >&6; }
14578 if test "${gdb_cv_bigtoc+set}" = set; then :
14579   $as_echo_n "(cached) " >&6
14580 else
14581
14582     SAVE_LDFLAGS=$LDFLAGS
14583
14584     case $GCC in
14585     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14586     *) gdb_cv_bigtoc=-bbigtoc ;;
14587     esac
14588
14589     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14590     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591 /* end confdefs.h.  */
14592
14593 int
14594 main ()
14595 {
14596 int i;
14597   ;
14598   return 0;
14599 }
14600 _ACEOF
14601 if ac_fn_c_try_link "$LINENO"; then :
14602
14603 else
14604   gdb_cv_bigtoc=
14605 fi
14606 rm -f core conftest.err conftest.$ac_objext \
14607     conftest$ac_exeext conftest.$ac_ext
14608     LDFLAGS="${SAVE_LDFLAGS}"
14609
14610 fi
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14612 $as_echo "$gdb_cv_bigtoc" >&6; }
14613   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14614   ;;
14615 esac
14616
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14618 $as_echo_n "checking for the dynamic export flag... " >&6; }
14619 dynamic_list=false
14620 if test "${gdb_native}" = yes; then
14621    # The dynamically loaded libthread_db needs access to symbols in the gdb
14622    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
14623    # may not be supported there.
14624    old_LDFLAGS="$LDFLAGS"
14625    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14626    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14627    LDFLAGS="$LDFLAGS $RDYNAMIC"
14628    if test "${have_libpython}" = no; then
14629      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630 /* end confdefs.h.  */
14631
14632 int
14633 main ()
14634 {
14635
14636   ;
14637   return 0;
14638 }
14639 _ACEOF
14640 if ac_fn_c_try_link "$LINENO"; then :
14641   dynamic_list=true
14642 fi
14643 rm -f core conftest.err conftest.$ac_objext \
14644     conftest$ac_exeext conftest.$ac_ext
14645    else
14646      # Workaround http://bugs.python.org/issue4434 where static
14647      # libpythonX.Y.a would get its symbols required for
14648      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14649      # Problem does not happen for the recommended libpythonX.Y.so linkage.
14650      old_CFLAGS="$CFLAGS"
14651      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14652      if test "$cross_compiling" = yes; then :
14653   true
14654 else
14655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h.  */
14657 #include "${have_libpython}/Python.h"
14658 int
14659 main ()
14660 {
14661 int err;
14662           Py_Initialize ();
14663           err = PyRun_SimpleString ("import itertools\n");
14664           Py_Finalize ();
14665           return err == 0 ? 0 : 1;
14666   ;
14667   return 0;
14668 }
14669 _ACEOF
14670 if ac_fn_c_try_run "$LINENO"; then :
14671   dynamic_list=true
14672 fi
14673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14674   conftest.$ac_objext conftest.beam conftest.$ac_ext
14675 fi
14676
14677      CFLAGS="$old_CFLAGS"
14678    fi
14679    LDFLAGS="$old_LDFLAGS"
14680 fi
14681 if $dynamic_list; then
14682   found="-Wl,--dynamic-list"
14683   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14684 else
14685   found="-rdynamic"
14686   RDYNAMIC="-rdynamic"
14687 fi
14688
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14690 $as_echo "$found" >&6; }
14691
14692
14693 if test ${build} = ${host} -a ${host} = ${target} ; then
14694    case ${host_os} in
14695    solaris*)
14696       # See if thread_db library is around for Solaris thread debugging.
14697       # Note that we must explicitly test for version 1 of the library
14698       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14699       # the same API.
14700       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14701 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14702       if test -f /usr/lib/libthread_db.so.1 ; then
14703          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14704 $as_echo "yes" >&6; }
14705
14706 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14707
14708          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
14709          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
14710          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14711 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14712 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14713   $as_echo_n "(cached) " >&6
14714 else
14715   ac_check_lib_save_LIBS=$LIBS
14716 LIBS="-ldl  $LIBS"
14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h.  */
14719
14720 /* Override any GCC internal prototype to avoid an error.
14721    Use char because int might match the return type of a GCC
14722    builtin and then its argument prototype would still apply.  */
14723 #ifdef __cplusplus
14724 extern "C"
14725 #endif
14726 char dlopen ();
14727 int
14728 main ()
14729 {
14730 return dlopen ();
14731   ;
14732   return 0;
14733 }
14734 _ACEOF
14735 if ac_fn_c_try_link "$LINENO"; then :
14736   ac_cv_lib_dl_dlopen=yes
14737 else
14738   ac_cv_lib_dl_dlopen=no
14739 fi
14740 rm -f core conftest.err conftest.$ac_objext \
14741     conftest$ac_exeext conftest.$ac_ext
14742 LIBS=$ac_check_lib_save_LIBS
14743 fi
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14745 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14746 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14747   cat >>confdefs.h <<_ACEOF
14748 #define HAVE_LIBDL 1
14749 _ACEOF
14750
14751   LIBS="-ldl $LIBS"
14752
14753 fi
14754
14755          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
14756          # Sun randomly tweaked the prototypes in <proc_service.h>
14757          # at one point.
14758          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14759 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14760          if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14761   $as_echo_n "(cached) " >&6
14762 else
14763
14764             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765 /* end confdefs.h.  */
14766
14767                 #include <proc_service.h>
14768                 ps_err_e ps_pdwrite
14769                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
14770
14771 int
14772 main ()
14773 {
14774
14775   ;
14776   return 0;
14777 }
14778 _ACEOF
14779 if ac_fn_c_try_compile "$LINENO"; then :
14780   gdb_cv_proc_service_is_old=no
14781 else
14782   gdb_cv_proc_service_is_old=yes
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785
14786 fi
14787
14788          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14789 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14790          if test $gdb_cv_proc_service_is_old = yes; then
14791
14792 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14793
14794          fi
14795       else
14796          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14797 $as_echo "no" >&6; }
14798       fi
14799       ;;
14800    aix*)
14801       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14802 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14803       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14804   $as_echo_n "(cached) " >&6
14805 else
14806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h.  */
14808 #include <sys/pthdebug.h>
14809 int
14810 main ()
14811 {
14812 #ifndef PTHDB_VERSION_3
14813                                     #error
14814                                     #endif
14815   ;
14816   return 0;
14817 }
14818 _ACEOF
14819 if ac_fn_c_try_compile "$LINENO"; then :
14820   gdb_cv_have_aix_thread_debug=yes
14821 else
14822   gdb_cv_have_aix_thread_debug=no
14823 fi
14824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14825 fi
14826
14827       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14828 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14829       if test $gdb_cv_have_aix_thread_debug = yes; then
14830          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14831          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14832          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14833
14834          # Older versions of AIX do not provide the declaration for
14835          # the getthrds function (it appears that it was introduced
14836          # with AIX 6.x).
14837          ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14838 "
14839 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
14840   ac_have_decl=1
14841 else
14842   ac_have_decl=0
14843 fi
14844
14845 cat >>confdefs.h <<_ACEOF
14846 #define HAVE_DECL_GETTHRDS $ac_have_decl
14847 _ACEOF
14848
14849       fi
14850       ;;
14851    esac
14852
14853 fi
14854
14855 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14857 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14858 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14859   $as_echo_n "(cached) " >&6
14860 else
14861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h.  */
14863 #include <thread_db.h>
14864 int
14865 main ()
14866 {
14867 int i = TD_NOTALLOC;
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 if ac_fn_c_try_compile "$LINENO"; then :
14873   gdb_cv_thread_db_h_has_td_notalloc=yes
14874 else
14875   gdb_cv_thread_db_h_has_td_notalloc=no
14876
14877 fi
14878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14879
14880 fi
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14882 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14884 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14885 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14886   $as_echo_n "(cached) " >&6
14887 else
14888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h.  */
14890 #include <thread_db.h>
14891 int
14892 main ()
14893 {
14894 int i = TD_VERSION;
14895   ;
14896   return 0;
14897 }
14898 _ACEOF
14899 if ac_fn_c_try_compile "$LINENO"; then :
14900   gdb_cv_thread_db_h_has_td_version=yes
14901 else
14902   gdb_cv_thread_db_h_has_td_version=no
14903
14904 fi
14905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906
14907 fi
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14909 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14910    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14911 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14912 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14913   $as_echo_n "(cached) " >&6
14914 else
14915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h.  */
14917 #include <thread_db.h>
14918 int
14919 main ()
14920 {
14921 int i = TD_NOTLS;
14922   ;
14923   return 0;
14924 }
14925 _ACEOF
14926 if ac_fn_c_try_compile "$LINENO"; then :
14927   gdb_cv_thread_db_h_has_td_notls=yes
14928 else
14929   gdb_cv_thread_db_h_has_td_notls=no
14930
14931 fi
14932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14933
14934 fi
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14936 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14937 fi
14938 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14939
14940 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14941
14942 fi
14943 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14944
14945 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14946
14947 fi
14948 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14949
14950 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14951
14952 fi
14953
14954 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14956 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14957 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14958   $as_echo_n "(cached) " >&6
14959 else
14960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h.  */
14962 #include <sys/syscall.h>
14963 int
14964 main ()
14965 {
14966 int i = __NR_tkill;
14967   ;
14968   return 0;
14969 }
14970 _ACEOF
14971 if ac_fn_c_try_compile "$LINENO"; then :
14972   gdb_cv_sys_syscall_h_has_tkill=yes
14973 else
14974   gdb_cv_sys_syscall_h_has_tkill=no
14975
14976 fi
14977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14978
14979 fi
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14981 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14982 fi
14983 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14984
14985 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14986
14987 fi
14988
14989 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14990 "
14991 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14992   ac_have_decl=1
14993 else
14994   ac_have_decl=0
14995 fi
14996
14997 cat >>confdefs.h <<_ACEOF
14998 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14999 _ACEOF
15000
15001
15002 if test "$cross_compiling" = yes; then :
15003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h.  */
15005 #include <sys/personality.h>
15006 int
15007 main ()
15008 {
15009
15010 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
15011 #       define ADDR_NO_RANDOMIZE 0x0040000
15012 #      endif
15013        /* Test the flag could be set and stays set.  */
15014        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15015        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15016            return 1
15017   ;
15018   return 0;
15019 }
15020 _ACEOF
15021 if ac_fn_c_try_link "$LINENO"; then :
15022   have_personality=true
15023 else
15024   have_personality=false
15025 fi
15026 rm -f core conftest.err conftest.$ac_objext \
15027     conftest$ac_exeext conftest.$ac_ext
15028 else
15029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h.  */
15031 #include <sys/personality.h>
15032 int
15033 main ()
15034 {
15035
15036 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
15037 #       define ADDR_NO_RANDOMIZE 0x0040000
15038 #      endif
15039        /* Test the flag could be set and stays set.  */
15040        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15041        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15042            return 1
15043   ;
15044   return 0;
15045 }
15046 _ACEOF
15047 if ac_fn_c_try_run "$LINENO"; then :
15048   have_personality=true
15049 else
15050   have_personality=false
15051 fi
15052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15053   conftest.$ac_objext conftest.beam conftest.$ac_ext
15054 fi
15055
15056 if $have_personality
15057 then
15058
15059 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15060
15061 fi
15062
15063
15064 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15065 # except that the argument to --with-sysroot is optional.
15066 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15067 if test "x$with_sysroot" = xyes; then
15068   with_sysroot="${exec_prefix}/${target_alias}/sys-root"
15069 fi
15070
15071 # Check whether --with-sysroot was given.
15072 if test "${with_sysroot+set}" = set; then :
15073   withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
15074 else
15075   TARGET_SYSTEM_ROOT=
15076 fi
15077
15078
15079   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15080   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15081   ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
15082   ac_define_dir=`eval echo $ac_define_dir`
15083
15084 cat >>confdefs.h <<_ACEOF
15085 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15086 _ACEOF
15087
15088
15089
15090
15091   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15092      if test "x$prefix" = xNONE; then
15093         test_prefix=/usr/local
15094      else
15095         test_prefix=$prefix
15096      fi
15097   else
15098      test_prefix=$exec_prefix
15099   fi
15100   value=0
15101   case ${ac_define_dir} in
15102      "${test_prefix}"|"${test_prefix}/"*|\
15103         '${exec_prefix}'|'${exec_prefix}/'*)
15104      value=1
15105      ;;
15106   esac
15107
15108 cat >>confdefs.h <<_ACEOF
15109 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15110 _ACEOF
15111
15112
15113
15114
15115
15116 # Check whether --with-system-gdbinit was given.
15117 if test "${with_system_gdbinit+set}" = set; then :
15118   withval=$with_system_gdbinit;
15119     SYSTEM_GDBINIT=$withval
15120 else
15121   SYSTEM_GDBINIT=
15122 fi
15123
15124
15125   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15126   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15127   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
15128   ac_define_dir=`eval echo $ac_define_dir`
15129
15130 cat >>confdefs.h <<_ACEOF
15131 #define SYSTEM_GDBINIT "$ac_define_dir"
15132 _ACEOF
15133
15134
15135
15136
15137   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15138      if test "x$prefix" = xNONE; then
15139         test_prefix=/usr/local
15140      else
15141         test_prefix=$prefix
15142      fi
15143   else
15144      test_prefix=$exec_prefix
15145   fi
15146   value=0
15147   case ${ac_define_dir} in
15148      "${test_prefix}"|"${test_prefix}/"*|\
15149         '${exec_prefix}'|'${exec_prefix}/'*)
15150      value=1
15151      ;;
15152   esac
15153
15154 cat >>confdefs.h <<_ACEOF
15155 #define SYSTEM_GDBINIT_RELOCATABLE $value
15156 _ACEOF
15157
15158
15159
15160
15161 # Check whether --enable-werror was given.
15162 if test "${enable_werror+set}" = set; then :
15163   enableval=$enable_werror; case "${enableval}" in
15164      yes | y) ERROR_ON_WARNING="yes" ;;
15165      no | n)  ERROR_ON_WARNING="no" ;;
15166      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15167    esac
15168 fi
15169
15170
15171 # Enable -Werror by default when using gcc
15172 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15173     ERROR_ON_WARNING=yes
15174 fi
15175
15176 WERROR_CFLAGS=""
15177 if test "${ERROR_ON_WARNING}" = yes ; then
15178     WERROR_CFLAGS="-Werror"
15179 fi
15180
15181 # The entries after -Wno-pointer-sign are disabled warnings which may
15182 # be enabled in the future, which can not currently be used to build
15183 # GDB.
15184 # NOTE: If you change this list, remember to update
15185 # gdb/doc/gdbint.texinfo.
15186 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
15187 -Wformat-nonliteral -Wno-pointer-sign \
15188 -Wno-unused -Wunused-value -Wunused-function \
15189 -Wno-switch -Wno-char-subscripts"
15190
15191 # Enable -Wno-format by default when using gcc on mingw since many
15192 # GCC versions complain about %I64.
15193 case "${host}" in
15194   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
15195 esac
15196
15197 # Check whether --enable-build-warnings was given.
15198 if test "${enable_build_warnings+set}" = set; then :
15199   enableval=$enable_build_warnings; case "${enableval}" in
15200   yes)  ;;
15201   no)   build_warnings="-w";;
15202   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
15203         build_warnings="${build_warnings} ${t}";;
15204   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
15205         build_warnings="${t} ${build_warnings}";;
15206   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15207 esac
15208 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15209   echo "Setting compiler warning flags = $build_warnings" 6>&1
15210 fi
15211 fi
15212 # Check whether --enable-gdb-build-warnings was given.
15213 if test "${enable_gdb_build_warnings+set}" = set; then :
15214   enableval=$enable_gdb_build_warnings; case "${enableval}" in
15215   yes)  ;;
15216   no)   build_warnings="-w";;
15217   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
15218         build_warnings="${build_warnings} ${t}";;
15219   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
15220         build_warnings="${t} ${build_warnings}";;
15221   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15222 esac
15223 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15224   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15225 fi
15226 fi
15227 WARN_CFLAGS=""
15228 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15229 then
15230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15231 $as_echo_n "checking compiler warning flags... " >&6; }
15232     # Separate out the -Werror flag as some files just cannot be
15233     # compiled with it enabled.
15234     for w in ${build_warnings}; do
15235         case $w in
15236         -Werr*) WERROR_CFLAGS=-Werror ;;
15237         *) # Check that GCC accepts it
15238             saved_CFLAGS="$CFLAGS"
15239             CFLAGS="$CFLAGS $w"
15240             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h.  */
15242
15243 int
15244 main ()
15245 {
15246
15247   ;
15248   return 0;
15249 }
15250 _ACEOF
15251 if ac_fn_c_try_compile "$LINENO"; then :
15252   WARN_CFLAGS="${WARN_CFLAGS} $w"
15253 fi
15254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15255             CFLAGS="$saved_CFLAGS"
15256         esac
15257     done
15258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15259 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15260 fi
15261
15262
15263
15264 # In the Cygwin environment, we need some additional flags.
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
15266 $as_echo_n "checking for cygwin... " >&6; }
15267 if test "${gdb_cv_os_cygwin+set}" = set; then :
15268   $as_echo_n "(cached) " >&6
15269 else
15270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271 /* end confdefs.h.  */
15272
15273 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15274 lose
15275 #endif
15276 _ACEOF
15277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15278   $EGREP "lose" >/dev/null 2>&1; then :
15279   gdb_cv_os_cygwin=yes
15280 else
15281   gdb_cv_os_cygwin=no
15282 fi
15283 rm -f conftest*
15284
15285 fi
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
15287 $as_echo "$gdb_cv_os_cygwin" >&6; }
15288
15289
15290 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
15291 case ${host} in
15292   *go32* ) SER_HARDWIRE=ser-go32.o ;;
15293   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15294   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
15295 esac
15296
15297
15298 # libreadline needs libuser32.a in a cygwin environment
15299 WIN32LIBS=
15300 if test x$gdb_cv_os_cygwin = xyes; then
15301     WIN32LIBS="-luser32"
15302     case "${target}" in
15303         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15304         ;;
15305     esac
15306 fi
15307
15308 # The ser-tcp.c module requires sockets.
15309 case ${host} in
15310   *mingw32*)
15311
15312 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15313
15314     WIN32LIBS="$WIN32LIBS -lws2_32"
15315     ;;
15316 esac
15317
15318
15319 # Add ELF support to GDB, but only if BFD includes ELF support.
15320 OLD_CFLAGS=$CFLAGS
15321 OLD_LDFLAGS=$LDFLAGS
15322 OLD_LIBS=$LIBS
15323 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
15324 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
15325 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15326 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15327 if test "$plugins" = "yes"; then
15328   LIBS="-ldl $LIBS"
15329 fi
15330 LIBS="-lbfd -liberty $intl $LIBS"
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15332 $as_echo_n "checking for ELF support in BFD... " >&6; }
15333 if test "${gdb_cv_var_elf+set}" = set; then :
15334   $as_echo_n "(cached) " >&6
15335 else
15336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h.  */
15338 #include <stdlib.h>
15339 #include "bfd.h"
15340 #include "elf-bfd.h"
15341
15342 int
15343 main ()
15344 {
15345 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
15346   ;
15347   return 0;
15348 }
15349 _ACEOF
15350 if ac_fn_c_try_link "$LINENO"; then :
15351   gdb_cv_var_elf=yes
15352 else
15353   gdb_cv_var_elf=no
15354 fi
15355 rm -f core conftest.err conftest.$ac_objext \
15356     conftest$ac_exeext conftest.$ac_ext
15357 fi
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15359 $as_echo "$gdb_cv_var_elf" >&6; }
15360 if test $gdb_cv_var_elf = yes; then
15361   CONFIG_OBS="$CONFIG_OBS elfread.o"
15362
15363 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15364
15365   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15366   if test "$plugins" = "yes"; then
15367     OLD_LIBS="-ldl $OLD_LIBS"
15368   fi
15369 fi
15370 CFLAGS=$OLD_CFLAGS
15371 LDFLAGS=$OLD_LDFLAGS
15372 LIBS=$OLD_LIBS
15373
15374 # Add any host-specific objects to GDB.
15375 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
15376
15377 LIBGUI="../libgui/src/libgui.a"
15378 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
15379
15380
15381
15382 WIN32LDAPP=
15383
15384
15385
15386 case "${host}" in
15387 *-*-cygwin* | *-*-mingw* )
15388     configdir="win"
15389     ;;
15390 *)
15391     configdir="unix"
15392     ;;
15393 esac
15394
15395 GDBTKLIBS=
15396 if test "${enable_gdbtk}" = "yes"; then
15397
15398     # Gdbtk must have an absolute path to srcdir in order to run
15399     # properly when not installed.
15400     here=`pwd`
15401     cd ${srcdir}
15402     GDBTK_SRC_DIR=`pwd`
15403     cd $here
15404
15405
15406     #
15407     # Ok, lets find the tcl configuration
15408     # First, look for one uninstalled.
15409     # the alternative search directory is invoked by --with-tcl
15410     #
15411
15412     if test x"${no_tcl}" = x ; then
15413         # we reset no_tcl in case something fails here
15414         no_tcl=true
15415
15416 # Check whether --with-tcl was given.
15417 if test "${with_tcl+set}" = set; then :
15418   withval=$with_tcl; with_tclconfig=${withval}
15419 fi
15420
15421         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15422 $as_echo_n "checking for Tcl configuration... " >&6; }
15423         if test "${ac_cv_c_tclconfig+set}" = set; then :
15424   $as_echo_n "(cached) " >&6
15425 else
15426
15427
15428             # First check to see if --with-tcl was specified.
15429             case "${host}" in
15430                 *-*-cygwin*) platDir="win" ;;
15431                 *) platDir="unix" ;;
15432             esac
15433             if test x"${with_tclconfig}" != x ; then
15434                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15435                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15436                 else
15437                     as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15438                 fi
15439             fi
15440
15441             # then check for a private Tcl installation
15442             if test x"${ac_cv_c_tclconfig}" = x ; then
15443                 for i in \
15444                         ../tcl \
15445                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15446                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15447                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15448                         ../../tcl \
15449                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15450                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15451                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15452                         ../../../tcl \
15453                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15454                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15455                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15456                     if test -f "$i/$platDir/tclConfig.sh" ; then
15457                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15458                         break
15459                     fi
15460                 done
15461             fi
15462
15463             # on Darwin, check in Framework installation locations
15464             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15465                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15466                         `ls -d /Library/Frameworks 2>/dev/null` \
15467                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
15468                         `ls -d /System/Library/Frameworks 2>/dev/null` \
15469                         ; do
15470                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15471                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15472                         break
15473                     fi
15474                 done
15475             fi
15476
15477             # check in a few common install locations
15478             if test x"${ac_cv_c_tclconfig}" = x ; then
15479                 for i in `ls -d ${libdir} 2>/dev/null` \
15480                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
15481                         `ls -d ${prefix}/lib 2>/dev/null` \
15482                         `ls -d /usr/local/lib 2>/dev/null` \
15483                         `ls -d /usr/contrib/lib 2>/dev/null` \
15484                         `ls -d /usr/lib 2>/dev/null` \
15485                         ; do
15486                     if test -f "$i/tclConfig.sh" ; then
15487                         ac_cv_c_tclconfig=`(cd $i; pwd)`
15488                         break
15489                     fi
15490                 done
15491             fi
15492
15493             # check in a few other private locations
15494             if test x"${ac_cv_c_tclconfig}" = x ; then
15495                 for i in \
15496                         ${srcdir}/../tcl \
15497                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15498                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15499                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15500                     if test -f "$i/$platDir/tclConfig.sh" ; then
15501                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15502                     break
15503                 fi
15504                 done
15505             fi
15506
15507 fi
15508
15509
15510         if test x"${ac_cv_c_tclconfig}" = x ; then
15511             TCL_BIN_DIR="# no Tcl configs found"
15512             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15513 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15514         else
15515             no_tcl=
15516             TCL_BIN_DIR=${ac_cv_c_tclconfig}
15517             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15518 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15519         fi
15520     fi
15521
15522
15523     # If $no_tk is nonempty, then we can't do Tk, and there is no
15524     # point to doing Tcl.
15525
15526     #
15527     # Ok, lets find the tk configuration
15528     # First, look for one uninstalled.
15529     # the alternative search directory is invoked by --with-tk
15530     #
15531
15532     if test x"${no_tk}" = x ; then
15533         # we reset no_tk in case something fails here
15534         no_tk=true
15535
15536 # Check whether --with-tk was given.
15537 if test "${with_tk+set}" = set; then :
15538   withval=$with_tk; with_tkconfig=${withval}
15539 fi
15540
15541         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15542 $as_echo_n "checking for Tk configuration... " >&6; }
15543         if test "${ac_cv_c_tkconfig+set}" = set; then :
15544   $as_echo_n "(cached) " >&6
15545 else
15546
15547
15548             # First check to see if --with-tkconfig was specified.
15549             if test x"${with_tkconfig}" != x ; then
15550                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15551                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15552                 else
15553                     as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15554                 fi
15555             fi
15556
15557             # then check for a private Tk library
15558             case "${host}" in
15559                 *-*-cygwin*) platDir="win" ;;
15560                 *) platDir="unix" ;;
15561             esac
15562             if test x"${ac_cv_c_tkconfig}" = x ; then
15563                 for i in \
15564                         ../tk \
15565                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15566                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15567                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15568                         ../../tk \
15569                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15570                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15571                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15572                         ../../../tk \
15573                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15574                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15575                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15576                     if test -f "$i/$platDir/tkConfig.sh" ; then
15577                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15578                         break
15579                     fi
15580                 done
15581             fi
15582
15583             # on Darwin, check in Framework installation locations
15584             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15585                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15586                         `ls -d /Library/Frameworks 2>/dev/null` \
15587                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
15588                         `ls -d /System/Library/Frameworks 2>/dev/null` \
15589                         ; do
15590                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
15591                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15592                         break
15593                     fi
15594                 done
15595             fi
15596
15597             # check in a few common install locations
15598             if test x"${ac_cv_c_tkconfig}" = x ; then
15599                 for i in `ls -d ${libdir} 2>/dev/null` \
15600                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
15601                         `ls -d ${prefix}/lib 2>/dev/null` \
15602                         `ls -d /usr/local/lib 2>/dev/null` \
15603                         `ls -d /usr/contrib/lib 2>/dev/null` \
15604                         `ls -d /usr/lib 2>/dev/null` \
15605                         ; do
15606                     if test -f "$i/tkConfig.sh" ; then
15607                         ac_cv_c_tkconfig=`(cd $i; pwd)`
15608                         break
15609                     fi
15610                 done
15611             fi
15612             # check in a few other private locations
15613             if test x"${ac_cv_c_tkconfig}" = x ; then
15614                 for i in \
15615                         ${srcdir}/../tk \
15616                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15617                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15618                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15619                     if test -f "$i/$platDir/tkConfig.sh" ; then
15620                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15621                         break
15622                     fi
15623                 done
15624             fi
15625
15626 fi
15627
15628
15629         if test x"${ac_cv_c_tkconfig}" = x ; then
15630             TK_BIN_DIR="# no Tk configs found"
15631             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15632 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15633         else
15634             no_tk=
15635             TK_BIN_DIR=${ac_cv_c_tkconfig}
15636             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15637 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15638         fi
15639     fi
15640
15641
15642     if test -z "${no_tcl}" -a -z "${no_tk}"; then
15643
15644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15645 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15646
15647     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15649 $as_echo "loading" >&6; }
15650         . ${TCL_BIN_DIR}/tclConfig.sh
15651     else
15652         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15653 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15654     fi
15655
15656     # eval is required to do the TCL_DBGX substitution
15657     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15658     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15659
15660     # If the TCL_BIN_DIR is the build directory (not the install directory),
15661     # then set the common variable name to the value of the build variables.
15662     # For example, the variable TCL_LIB_SPEC will be set to the value
15663     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15664     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15665     # installed and uninstalled version of Tcl.
15666     if test -f "${TCL_BIN_DIR}/Makefile" ; then
15667         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15668         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15669         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15670     elif test "`uname -s`" = "Darwin"; then
15671         # If Tcl was built as a framework, attempt to use the libraries
15672         # from the framework at the given location so that linking works
15673         # against Tcl.framework installed in an arbitary location.
15674         case ${TCL_DEFS} in
15675             *TCL_FRAMEWORK*)
15676                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15677                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15678                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15679                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15680                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15681                             break
15682                         fi
15683                     done
15684                 fi
15685                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15686                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15687                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15688                 fi
15689                 ;;
15690         esac
15691     fi
15692
15693     # eval is required to do the TCL_DBGX substitution
15694     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15695     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15696     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15697     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713         # Check for in-tree tcl
15714         here=`pwd`
15715         cd ${srcdir}/..
15716         topdir=`pwd`
15717         cd ${here}
15718
15719         intree="no"
15720         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15721           intree="yes"
15722         fi
15723
15724         # Find Tcl private headers
15725         if test x"${intree}" = xno; then
15726
15727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15728 $as_echo_n "checking for Tcl private headers... " >&6; }
15729   private_dir=""
15730   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15731   if test -f ${dir}/tclInt.h ; then
15732     private_dir=${dir}
15733   fi
15734
15735   if test x"${private_dir}" = x; then
15736     as_fn_error "could not find private Tcl headers" "$LINENO" 5
15737   else
15738     TCL_PRIVATE_INCLUDE="-I${private_dir}"
15739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15740 $as_echo "${private_dir}" >&6; }
15741   fi
15742
15743           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15744           TCL_LIBRARY="${TCL_LIB_SPEC}"
15745           TCL_DEPS=""
15746         else
15747           # If building tcl in the same src tree, private headers
15748           # are not needed, but we need to be sure to use the right
15749           # headers library
15750           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15751           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15752           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15753         fi
15754
15755
15756
15757
15758
15759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15760 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15761
15762     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15764 $as_echo "loading" >&6; }
15765         . ${TK_BIN_DIR}/tkConfig.sh
15766     else
15767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15768 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15769     fi
15770
15771     # eval is required to do the TK_DBGX substitution
15772     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15773     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15774
15775     # If the TK_BIN_DIR is the build directory (not the install directory),
15776     # then set the common variable name to the value of the build variables.
15777     # For example, the variable TK_LIB_SPEC will be set to the value
15778     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15779     # instead of TK_BUILD_LIB_SPEC since it will work with both an
15780     # installed and uninstalled version of Tcl.
15781     if test -f "${TK_BIN_DIR}/Makefile" ; then
15782         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15783         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15784         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15785     elif test "`uname -s`" = "Darwin"; then
15786         # If Tk was built as a framework, attempt to use the libraries
15787         # from the framework at the given location so that linking works
15788         # against Tk.framework installed in an arbitary location.
15789         case ${TK_DEFS} in
15790             *TK_FRAMEWORK*)
15791                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15792                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
15793                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15794                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15795                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15796                             break
15797                         fi
15798                     done
15799                 fi
15800                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15801                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15802                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15803                 fi
15804                 ;;
15805         esac
15806     fi
15807
15808     # eval is required to do the TK_DBGX substitution
15809     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15810     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15811     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15812     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827         # Check for in-tree Tk
15828         intree="no"
15829         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15830           intree="yes"
15831         fi
15832
15833         # Find Tk private headers
15834         if test x"${intree}" = xno; then
15835
15836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15837 $as_echo_n "checking for Tk private headers... " >&6; }
15838   private_dir=""
15839   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15840   if test -f ${dir}/tkInt.h; then
15841     private_dir=${dir}
15842   fi
15843
15844   if test x"${private_dir}" = x; then
15845     as_fn_error "could not find Tk private headers" "$LINENO" 5
15846   else
15847     TK_PRIVATE_INCLUDE="-I${private_dir}"
15848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15849 $as_echo "${private_dir}" >&6; }
15850   fi
15851
15852           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15853           TK_LIBRARY=${TK_LIB_SPEC}
15854           TK_DEPS=""
15855         else
15856           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15857           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15858           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15859         fi
15860
15861
15862
15863
15864
15865         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15866
15867         # Include some libraries that Tcl and Tk want.
15868         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15869         # Yes, the ordering seems wrong here.  But it isn't.
15870         # TK_LIBS is the list of libraries that need to be linked
15871         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
15872         # were in LIBS then any link tests after this point would
15873         # try to include things like `$(LIBGUI)', which wouldn't work.
15874         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15875
15876         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15877         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15878         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15879         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15880         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15881         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15882         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15883
15884         if test x$gdb_cv_os_cygwin = xyes; then
15885           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15886           WIN32LDAPP="-Wl,--subsystem,console"
15887           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15888         fi
15889
15890         subdirs="$subdirs gdbtk"
15891
15892     fi
15893 fi
15894
15895
15896
15897
15898
15899
15900
15901
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15903 $as_echo_n "checking for X... " >&6; }
15904
15905
15906 # Check whether --with-x was given.
15907 if test "${with_x+set}" = set; then :
15908   withval=$with_x;
15909 fi
15910
15911 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15912 if test "x$with_x" = xno; then
15913   # The user explicitly disabled X.
15914   have_x=disabled
15915 else
15916   case $x_includes,$x_libraries in #(
15917     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15918     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15919   $as_echo_n "(cached) " >&6
15920 else
15921   # One or both of the vars are not set, and there is no cached value.
15922 ac_x_includes=no ac_x_libraries=no
15923 rm -f -r conftest.dir
15924 if mkdir conftest.dir; then
15925   cd conftest.dir
15926   cat >Imakefile <<'_ACEOF'
15927 incroot:
15928         @echo incroot='${INCROOT}'
15929 usrlibdir:
15930         @echo usrlibdir='${USRLIBDIR}'
15931 libdir:
15932         @echo libdir='${LIBDIR}'
15933 _ACEOF
15934   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15935     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15936     for ac_var in incroot usrlibdir libdir; do
15937       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15938     done
15939     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15940     for ac_extension in a so sl dylib la dll; do
15941       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15942          test -f "$ac_im_libdir/libX11.$ac_extension"; then
15943         ac_im_usrlibdir=$ac_im_libdir; break
15944       fi
15945     done
15946     # Screen out bogus values from the imake configuration.  They are
15947     # bogus both because they are the default anyway, and because
15948     # using them would break gcc on systems where it needs fixed includes.
15949     case $ac_im_incroot in
15950         /usr/include) ac_x_includes= ;;
15951         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15952     esac
15953     case $ac_im_usrlibdir in
15954         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15955         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15956     esac
15957   fi
15958   cd ..
15959   rm -f -r conftest.dir
15960 fi
15961
15962 # Standard set of common directories for X headers.
15963 # Check X11 before X11Rn because it is often a symlink to the current release.
15964 ac_x_header_dirs='
15965 /usr/X11/include
15966 /usr/X11R7/include
15967 /usr/X11R6/include
15968 /usr/X11R5/include
15969 /usr/X11R4/include
15970
15971 /usr/include/X11
15972 /usr/include/X11R7
15973 /usr/include/X11R6
15974 /usr/include/X11R5
15975 /usr/include/X11R4
15976
15977 /usr/local/X11/include
15978 /usr/local/X11R7/include
15979 /usr/local/X11R6/include
15980 /usr/local/X11R5/include
15981 /usr/local/X11R4/include
15982
15983 /usr/local/include/X11
15984 /usr/local/include/X11R7
15985 /usr/local/include/X11R6
15986 /usr/local/include/X11R5
15987 /usr/local/include/X11R4
15988
15989 /usr/X386/include
15990 /usr/x386/include
15991 /usr/XFree86/include/X11
15992
15993 /usr/include
15994 /usr/local/include
15995 /usr/unsupported/include
15996 /usr/athena/include
15997 /usr/local/x11r5/include
15998 /usr/lpp/Xamples/include
15999
16000 /usr/openwin/include
16001 /usr/openwin/share/include'
16002
16003 if test "$ac_x_includes" = no; then
16004   # Guess where to find include files, by looking for Xlib.h.
16005   # First, try using that file with no special directory specified.
16006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h.  */
16008 #include <X11/Xlib.h>
16009 _ACEOF
16010 if ac_fn_c_try_cpp "$LINENO"; then :
16011   # We can compile using X headers with no special include directory.
16012 ac_x_includes=
16013 else
16014   for ac_dir in $ac_x_header_dirs; do
16015   if test -r "$ac_dir/X11/Xlib.h"; then
16016     ac_x_includes=$ac_dir
16017     break
16018   fi
16019 done
16020 fi
16021 rm -f conftest.err conftest.$ac_ext
16022 fi # $ac_x_includes = no
16023
16024 if test "$ac_x_libraries" = no; then
16025   # Check for the libraries.
16026   # See if we find them without any special options.
16027   # Don't add to $LIBS permanently.
16028   ac_save_LIBS=$LIBS
16029   LIBS="-lX11 $LIBS"
16030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h.  */
16032 #include <X11/Xlib.h>
16033 int
16034 main ()
16035 {
16036 XrmInitialize ()
16037   ;
16038   return 0;
16039 }
16040 _ACEOF
16041 if ac_fn_c_try_link "$LINENO"; then :
16042   LIBS=$ac_save_LIBS
16043 # We can link X programs with no special library path.
16044 ac_x_libraries=
16045 else
16046   LIBS=$ac_save_LIBS
16047 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16048 do
16049   # Don't even attempt the hair of trying to link an X program!
16050   for ac_extension in a so sl dylib la dll; do
16051     if test -r "$ac_dir/libX11.$ac_extension"; then
16052       ac_x_libraries=$ac_dir
16053       break 2
16054     fi
16055   done
16056 done
16057 fi
16058 rm -f core conftest.err conftest.$ac_objext \
16059     conftest$ac_exeext conftest.$ac_ext
16060 fi # $ac_x_libraries = no
16061
16062 case $ac_x_includes,$ac_x_libraries in #(
16063   no,* | *,no | *\'*)
16064     # Didn't find X, or a directory has "'" in its name.
16065     ac_cv_have_x="have_x=no";; #(
16066   *)
16067     # Record where we found X for the cache.
16068     ac_cv_have_x="have_x=yes\
16069         ac_x_includes='$ac_x_includes'\
16070         ac_x_libraries='$ac_x_libraries'"
16071 esac
16072 fi
16073 ;; #(
16074     *) have_x=yes;;
16075   esac
16076   eval "$ac_cv_have_x"
16077 fi # $with_x != no
16078
16079 if test "$have_x" != yes; then
16080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16081 $as_echo "$have_x" >&6; }
16082   no_x=yes
16083 else
16084   # If each of the values was on the command line, it overrides each guess.
16085   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
16086   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
16087   # Update the cache value to reflect the command line values.
16088   ac_cv_have_x="have_x=yes\
16089         ac_x_includes='$x_includes'\
16090         ac_x_libraries='$x_libraries'"
16091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16092 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16093 fi
16094
16095
16096 # Unlike the sim directory, whether a simulator is linked is controlled by
16097 # presence of a gdb_sim definition in the target configure.tgt entry.
16098 # This code just checks for a few cases where we'd like to ignore those
16099 # definitions, even when they're present in the '.mt' file.  These cases
16100 # are when --disable-sim is specified, or if the simulator directory is
16101 # not part of the source tree.
16102 #
16103 # Check whether --enable-sim was given.
16104 if test "${enable_sim+set}" = set; then :
16105   enableval=$enable_sim; echo "enable_sim = $enable_sim";
16106  echo "enableval = ${enableval}";
16107  case "${enableval}" in
16108   yes) ignore_sim=false ;;
16109   no)  ignore_sim=true ;;
16110   *)   ignore_sim=false ;;
16111  esac
16112 else
16113   ignore_sim=false
16114 fi
16115
16116
16117 if test ! -d "${srcdir}/../sim"; then
16118   ignore_sim=true
16119 fi
16120
16121 SIM=
16122 SIM_OBS=
16123 if test "${ignore_sim}" = "false"; then
16124   if test x"${gdb_sim}" != x ; then
16125     SIM="${gdb_sim}"
16126     SIM_OBS="remote-sim.o"
16127
16128 $as_echo "#define WITH_SIM 1" >>confdefs.h
16129
16130   fi
16131 fi
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146 # List of host floatformats.
16147
16148 cat >>confdefs.h <<_ACEOF
16149 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
16150 _ACEOF
16151
16152
16153 cat >>confdefs.h <<_ACEOF
16154 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
16155 _ACEOF
16156
16157
16158 cat >>confdefs.h <<_ACEOF
16159 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
16160 _ACEOF
16161
16162
16163 # target_subdir is used by the testsuite to find the target libraries.
16164 target_subdir=
16165 if test "${host}" != "${target}"; then
16166     target_subdir="${target_alias}/"
16167 fi
16168
16169
16170 frags=
16171 if test "${gdb_native}" = "yes"; then
16172   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
16173   if test ! -f ${host_makefile_frag}; then
16174     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
16175   fi
16176   frags="$frags $host_makefile_frag"
16177 else
16178   host_makefile_frag=/dev/null
16179 fi
16180
16181
16182
16183
16184 if test "${gdb_native}" = "yes"; then
16185 # We pick this up from the host configuration file (.mh) because we
16186 # do not have a native configuration Makefile fragment.
16187 nativefile=`sed -n '
16188 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
16189 ' ${host_makefile_frag}`
16190 fi
16191
16192
16193 if test x"${gdb_osabi}" != x ; then
16194
16195 cat >>confdefs.h <<_ACEOF
16196 #define GDB_OSABI_DEFAULT $gdb_osabi
16197 _ACEOF
16198
16199 fi
16200
16201 # Enable multi-ice-gdb-server.
16202 # Check whether --enable-multi-ice was given.
16203 if test "${enable_multi_ice+set}" = set; then :
16204   enableval=$enable_multi_ice; case $enableval in
16205     yes | no)
16206       ;;
16207     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
16208   esac
16209 fi
16210
16211 if test "x$enable_multi_ice" = xyes; then
16212    subdirs="$subdirs multi-ice"
16213
16214 fi
16215
16216 # Check whether --enable-gdbserver was given.
16217 if test "${enable_gdbserver+set}" = set; then :
16218   enableval=$enable_gdbserver; case "${enableval}" in
16219   yes| no|auto) ;;
16220   *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
16221 esac
16222 else
16223   enable_gdbserver=auto
16224 fi
16225
16226
16227 # We only build gdbserver automatically in a native configuration, and
16228 # only if the user did not explicitly disable its build.
16229 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
16230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
16231 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
16232   if test "x$build_gdbserver" = xyes; then
16233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16234 $as_echo "yes" >&6; }
16235     subdirs="$subdirs gdbserver"
16236
16237     gdbserver_build_enabled=yes
16238   else
16239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16240 $as_echo "no" >&6; }
16241   fi
16242 fi
16243
16244 # If the user explicitly request the gdbserver to be built, verify that
16245 # we were in fact able to enable it.
16246 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
16247   as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
16248 fi
16249
16250 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16251 # to an empty version.
16252
16253 files=
16254 links=
16255
16256 rm -f nm.h
16257 if test "${nativefile}" != ""; then
16258     case "${nativefile}" in
16259       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
16260       * ) GDB_NM_FILE="${nativefile}"
16261     esac
16262     files="${files} ${GDB_NM_FILE}"
16263     links="${links} nm.h"
16264
16265 cat >>confdefs.h <<_ACEOF
16266 #define GDB_NM_FILE "${GDB_NM_FILE}"
16267 _ACEOF
16268
16269 fi
16270
16271
16272 ac_sources="$files"
16273 ac_dests="$links"
16274 while test -n "$ac_sources"; do
16275   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16276   set $ac_sources; ac_source=$1; shift; ac_sources=$*
16277   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
16278 done
16279 ac_config_links="$ac_config_links $ac_config_links_1"
16280
16281
16282
16283
16284
16285 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16286
16287
16288 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile"
16289
16290 ac_config_commands="$ac_config_commands default"
16291
16292 cat >confcache <<\_ACEOF
16293 # This file is a shell script that caches the results of configure
16294 # tests run on this system so they can be shared between configure
16295 # scripts and configure runs, see configure's option --config-cache.
16296 # It is not useful on other systems.  If it contains results you don't
16297 # want to keep, you may remove or edit it.
16298 #
16299 # config.status only pays attention to the cache file if you give it
16300 # the --recheck option to rerun configure.
16301 #
16302 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16303 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16304 # following values.
16305
16306 _ACEOF
16307
16308 # The following way of writing the cache mishandles newlines in values,
16309 # but we know of no workaround that is simple, portable, and efficient.
16310 # So, we kill variables containing newlines.
16311 # Ultrix sh set writes to stderr and can't be redirected directly,
16312 # and sets the high bit in the cache file unless we assign to the vars.
16313 (
16314   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16315     eval ac_val=\$$ac_var
16316     case $ac_val in #(
16317     *${as_nl}*)
16318       case $ac_var in #(
16319       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16320 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16321       esac
16322       case $ac_var in #(
16323       _ | IFS | as_nl) ;; #(
16324       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16325       *) { eval $ac_var=; unset $ac_var;} ;;
16326       esac ;;
16327     esac
16328   done
16329
16330   (set) 2>&1 |
16331     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16332     *${as_nl}ac_space=\ *)
16333       # `set' does not quote correctly, so add quotes: double-quote
16334       # substitution turns \\\\ into \\, and sed turns \\ into \.
16335       sed -n \
16336         "s/'/'\\\\''/g;
16337           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16338       ;; #(
16339     *)
16340       # `set' quotes correctly as required by POSIX, so do not add quotes.
16341       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16342       ;;
16343     esac |
16344     sort
16345 ) |
16346   sed '
16347      /^ac_cv_env_/b end
16348      t clear
16349      :clear
16350      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16351      t end
16352      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16353      :end' >>confcache
16354 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16355   if test -w "$cache_file"; then
16356     test "x$cache_file" != "x/dev/null" &&
16357       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16358 $as_echo "$as_me: updating cache $cache_file" >&6;}
16359     cat confcache >$cache_file
16360   else
16361     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16362 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16363   fi
16364 fi
16365 rm -f confcache
16366
16367 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16368 # Let make expand exec_prefix.
16369 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16370
16371 DEFS=-DHAVE_CONFIG_H
16372
16373 ac_libobjs=
16374 ac_ltlibobjs=
16375 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16376   # 1. Remove the extension, and $U if already installed.
16377   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16378   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16379   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16380   #    will be set to the directory where LIBOBJS objects are built.
16381   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16382   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16383 done
16384 LIBOBJS=$ac_libobjs
16385
16386 LTLIBOBJS=$ac_ltlibobjs
16387
16388
16389 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16390   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16392 fi
16393 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16394   as_fn_error "conditional \"GMAKE\" was never defined.
16395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16396 fi
16397 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16398   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16400 fi
16401
16402     gl_libobjs=
16403     gl_ltlibobjs=
16404     if test -n "$gl_LIBOBJS"; then
16405       # Remove the extension.
16406       sed_drop_objext='s/\.o$//;s/\.obj$//'
16407       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16408         gl_libobjs="$gl_libobjs $i.$ac_objext"
16409         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16410       done
16411     fi
16412     gl_LIBOBJS=$gl_libobjs
16413
16414     gl_LTLIBOBJS=$gl_ltlibobjs
16415
16416
16417
16418     gltests_libobjs=
16419     gltests_ltlibobjs=
16420     if test -n "$gltests_LIBOBJS"; then
16421       # Remove the extension.
16422       sed_drop_objext='s/\.o$//;s/\.obj$//'
16423       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16424         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16425         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16426       done
16427     fi
16428     gltests_LIBOBJS=$gltests_libobjs
16429
16430     gltests_LTLIBOBJS=$gltests_ltlibobjs
16431
16432
16433 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16434   as_fn_error "conditional \"AMDEP\" was never defined.
16435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16436 fi
16437 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16438   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16440 fi
16441  if test -n "$EXEEXT"; then
16442   am__EXEEXT_TRUE=
16443   am__EXEEXT_FALSE='#'
16444 else
16445   am__EXEEXT_TRUE='#'
16446   am__EXEEXT_FALSE=
16447 fi
16448
16449
16450
16451 : ${CONFIG_STATUS=./config.status}
16452 ac_write_fail=0
16453 ac_clean_files_save=$ac_clean_files
16454 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16456 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16457 as_write_fail=0
16458 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16459 #! $SHELL
16460 # Generated by $as_me.
16461 # Run this file to recreate the current configuration.
16462 # Compiler output produced by configure, useful for debugging
16463 # configure, is in config.log if it exists.
16464
16465 debug=false
16466 ac_cs_recheck=false
16467 ac_cs_silent=false
16468
16469 SHELL=\${CONFIG_SHELL-$SHELL}
16470 export SHELL
16471 _ASEOF
16472 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16473 ## -------------------- ##
16474 ## M4sh Initialization. ##
16475 ## -------------------- ##
16476
16477 # Be more Bourne compatible
16478 DUALCASE=1; export DUALCASE # for MKS sh
16479 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16480   emulate sh
16481   NULLCMD=:
16482   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16483   # is contrary to our usage.  Disable this feature.
16484   alias -g '${1+"$@"}'='"$@"'
16485   setopt NO_GLOB_SUBST
16486 else
16487   case `(set -o) 2>/dev/null` in #(
16488   *posix*) :
16489     set -o posix ;; #(
16490   *) :
16491      ;;
16492 esac
16493 fi
16494
16495
16496 as_nl='
16497 '
16498 export as_nl
16499 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16500 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16501 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16502 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16503 # Prefer a ksh shell builtin over an external printf program on Solaris,
16504 # but without wasting forks for bash or zsh.
16505 if test -z "$BASH_VERSION$ZSH_VERSION" \
16506     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16507   as_echo='print -r --'
16508   as_echo_n='print -rn --'
16509 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16510   as_echo='printf %s\n'
16511   as_echo_n='printf %s'
16512 else
16513   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16514     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16515     as_echo_n='/usr/ucb/echo -n'
16516   else
16517     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16518     as_echo_n_body='eval
16519       arg=$1;
16520       case $arg in #(
16521       *"$as_nl"*)
16522         expr "X$arg" : "X\\(.*\\)$as_nl";
16523         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16524       esac;
16525       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16526     '
16527     export as_echo_n_body
16528     as_echo_n='sh -c $as_echo_n_body as_echo'
16529   fi
16530   export as_echo_body
16531   as_echo='sh -c $as_echo_body as_echo'
16532 fi
16533
16534 # The user is always right.
16535 if test "${PATH_SEPARATOR+set}" != set; then
16536   PATH_SEPARATOR=:
16537   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16538     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16539       PATH_SEPARATOR=';'
16540   }
16541 fi
16542
16543
16544 # IFS
16545 # We need space, tab and new line, in precisely that order.  Quoting is
16546 # there to prevent editors from complaining about space-tab.
16547 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16548 # splitting by setting IFS to empty value.)
16549 IFS=" ""        $as_nl"
16550
16551 # Find who we are.  Look in the path if we contain no directory separator.
16552 case $0 in #((
16553   *[\\/]* ) as_myself=$0 ;;
16554   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16555 for as_dir in $PATH
16556 do
16557   IFS=$as_save_IFS
16558   test -z "$as_dir" && as_dir=.
16559     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16560   done
16561 IFS=$as_save_IFS
16562
16563      ;;
16564 esac
16565 # We did not find ourselves, most probably we were run as `sh COMMAND'
16566 # in which case we are not to be found in the path.
16567 if test "x$as_myself" = x; then
16568   as_myself=$0
16569 fi
16570 if test ! -f "$as_myself"; then
16571   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16572   exit 1
16573 fi
16574
16575 # Unset variables that we do not need and which cause bugs (e.g. in
16576 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16577 # suppresses any "Segmentation fault" message there.  '((' could
16578 # trigger a bug in pdksh 5.2.14.
16579 for as_var in BASH_ENV ENV MAIL MAILPATH
16580 do eval test x\${$as_var+set} = xset \
16581   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16582 done
16583 PS1='$ '
16584 PS2='> '
16585 PS4='+ '
16586
16587 # NLS nuisances.
16588 LC_ALL=C
16589 export LC_ALL
16590 LANGUAGE=C
16591 export LANGUAGE
16592
16593 # CDPATH.
16594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16595
16596
16597 # as_fn_error ERROR [LINENO LOG_FD]
16598 # ---------------------------------
16599 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16600 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16601 # script with status $?, using 1 if that was 0.
16602 as_fn_error ()
16603 {
16604   as_status=$?; test $as_status -eq 0 && as_status=1
16605   if test "$3"; then
16606     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16607     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16608   fi
16609   $as_echo "$as_me: error: $1" >&2
16610   as_fn_exit $as_status
16611 } # as_fn_error
16612
16613
16614 # as_fn_set_status STATUS
16615 # -----------------------
16616 # Set $? to STATUS, without forking.
16617 as_fn_set_status ()
16618 {
16619   return $1
16620 } # as_fn_set_status
16621
16622 # as_fn_exit STATUS
16623 # -----------------
16624 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16625 as_fn_exit ()
16626 {
16627   set +e
16628   as_fn_set_status $1
16629   exit $1
16630 } # as_fn_exit
16631
16632 # as_fn_unset VAR
16633 # ---------------
16634 # Portably unset VAR.
16635 as_fn_unset ()
16636 {
16637   { eval $1=; unset $1;}
16638 }
16639 as_unset=as_fn_unset
16640 # as_fn_append VAR VALUE
16641 # ----------------------
16642 # Append the text in VALUE to the end of the definition contained in VAR. Take
16643 # advantage of any shell optimizations that allow amortized linear growth over
16644 # repeated appends, instead of the typical quadratic growth present in naive
16645 # implementations.
16646 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16647   eval 'as_fn_append ()
16648   {
16649     eval $1+=\$2
16650   }'
16651 else
16652   as_fn_append ()
16653   {
16654     eval $1=\$$1\$2
16655   }
16656 fi # as_fn_append
16657
16658 # as_fn_arith ARG...
16659 # ------------------
16660 # Perform arithmetic evaluation on the ARGs, and store the result in the
16661 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16662 # must be portable across $(()) and expr.
16663 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16664   eval 'as_fn_arith ()
16665   {
16666     as_val=$(( $* ))
16667   }'
16668 else
16669   as_fn_arith ()
16670   {
16671     as_val=`expr "$@" || test $? -eq 1`
16672   }
16673 fi # as_fn_arith
16674
16675
16676 if expr a : '\(a\)' >/dev/null 2>&1 &&
16677    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16678   as_expr=expr
16679 else
16680   as_expr=false
16681 fi
16682
16683 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16684   as_basename=basename
16685 else
16686   as_basename=false
16687 fi
16688
16689 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16690   as_dirname=dirname
16691 else
16692   as_dirname=false
16693 fi
16694
16695 as_me=`$as_basename -- "$0" ||
16696 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16697          X"$0" : 'X\(//\)$' \| \
16698          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16699 $as_echo X/"$0" |
16700     sed '/^.*\/\([^/][^/]*\)\/*$/{
16701             s//\1/
16702             q
16703           }
16704           /^X\/\(\/\/\)$/{
16705             s//\1/
16706             q
16707           }
16708           /^X\/\(\/\).*/{
16709             s//\1/
16710             q
16711           }
16712           s/.*/./; q'`
16713
16714 # Avoid depending upon Character Ranges.
16715 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16716 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16717 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16718 as_cr_digits='0123456789'
16719 as_cr_alnum=$as_cr_Letters$as_cr_digits
16720
16721 ECHO_C= ECHO_N= ECHO_T=
16722 case `echo -n x` in #(((((
16723 -n*)
16724   case `echo 'xy\c'` in
16725   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16726   xy)  ECHO_C='\c';;
16727   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16728        ECHO_T=' ';;
16729   esac;;
16730 *)
16731   ECHO_N='-n';;
16732 esac
16733
16734 rm -f conf$$ conf$$.exe conf$$.file
16735 if test -d conf$$.dir; then
16736   rm -f conf$$.dir/conf$$.file
16737 else
16738   rm -f conf$$.dir
16739   mkdir conf$$.dir 2>/dev/null
16740 fi
16741 if (echo >conf$$.file) 2>/dev/null; then
16742   if ln -s conf$$.file conf$$ 2>/dev/null; then
16743     as_ln_s='ln -s'
16744     # ... but there are two gotchas:
16745     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16746     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16747     # In both cases, we have to default to `cp -p'.
16748     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16749       as_ln_s='cp -p'
16750   elif ln conf$$.file conf$$ 2>/dev/null; then
16751     as_ln_s=ln
16752   else
16753     as_ln_s='cp -p'
16754   fi
16755 else
16756   as_ln_s='cp -p'
16757 fi
16758 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16759 rmdir conf$$.dir 2>/dev/null
16760
16761
16762 # as_fn_mkdir_p
16763 # -------------
16764 # Create "$as_dir" as a directory, including parents if necessary.
16765 as_fn_mkdir_p ()
16766 {
16767
16768   case $as_dir in #(
16769   -*) as_dir=./$as_dir;;
16770   esac
16771   test -d "$as_dir" || eval $as_mkdir_p || {
16772     as_dirs=
16773     while :; do
16774       case $as_dir in #(
16775       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16776       *) as_qdir=$as_dir;;
16777       esac
16778       as_dirs="'$as_qdir' $as_dirs"
16779       as_dir=`$as_dirname -- "$as_dir" ||
16780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16781          X"$as_dir" : 'X\(//\)[^/]' \| \
16782          X"$as_dir" : 'X\(//\)$' \| \
16783          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16784 $as_echo X"$as_dir" |
16785     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16786             s//\1/
16787             q
16788           }
16789           /^X\(\/\/\)[^/].*/{
16790             s//\1/
16791             q
16792           }
16793           /^X\(\/\/\)$/{
16794             s//\1/
16795             q
16796           }
16797           /^X\(\/\).*/{
16798             s//\1/
16799             q
16800           }
16801           s/.*/./; q'`
16802       test -d "$as_dir" && break
16803     done
16804     test -z "$as_dirs" || eval "mkdir $as_dirs"
16805   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16806
16807
16808 } # as_fn_mkdir_p
16809 if mkdir -p . 2>/dev/null; then
16810   as_mkdir_p='mkdir -p "$as_dir"'
16811 else
16812   test -d ./-p && rmdir ./-p
16813   as_mkdir_p=false
16814 fi
16815
16816 if test -x / >/dev/null 2>&1; then
16817   as_test_x='test -x'
16818 else
16819   if ls -dL / >/dev/null 2>&1; then
16820     as_ls_L_option=L
16821   else
16822     as_ls_L_option=
16823   fi
16824   as_test_x='
16825     eval sh -c '\''
16826       if test -d "$1"; then
16827         test -d "$1/.";
16828       else
16829         case $1 in #(
16830         -*)set "./$1";;
16831         esac;
16832         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16833         ???[sx]*):;;*)false;;esac;fi
16834     '\'' sh
16835   '
16836 fi
16837 as_executable_p=$as_test_x
16838
16839 # Sed expression to map a string onto a valid CPP name.
16840 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16841
16842 # Sed expression to map a string onto a valid variable name.
16843 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16844
16845
16846 exec 6>&1
16847 ## ----------------------------------- ##
16848 ## Main body of $CONFIG_STATUS script. ##
16849 ## ----------------------------------- ##
16850 _ASEOF
16851 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16852
16853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16854 # Save the log message, to keep $0 and so on meaningful, and to
16855 # report actual input values of CONFIG_FILES etc. instead of their
16856 # values after options handling.
16857 ac_log="
16858 This file was extended by $as_me, which was
16859 generated by GNU Autoconf 2.64.  Invocation command line was
16860
16861   CONFIG_FILES    = $CONFIG_FILES
16862   CONFIG_HEADERS  = $CONFIG_HEADERS
16863   CONFIG_LINKS    = $CONFIG_LINKS
16864   CONFIG_COMMANDS = $CONFIG_COMMANDS
16865   $ $0 $@
16866
16867 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16868 "
16869
16870 _ACEOF
16871
16872 case $ac_config_files in *"
16873 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16874 esac
16875
16876 case $ac_config_headers in *"
16877 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16878 esac
16879
16880
16881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16882 # Files that config.status was made for.
16883 config_files="$ac_config_files"
16884 config_headers="$ac_config_headers"
16885 config_links="$ac_config_links"
16886 config_commands="$ac_config_commands"
16887
16888 _ACEOF
16889
16890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16891 ac_cs_usage="\
16892 \`$as_me' instantiates files and other configuration actions
16893 from templates according to the current configuration.  Unless the files
16894 and actions are specified as TAGs, all are instantiated by default.
16895
16896 Usage: $0 [OPTION]... [TAG]...
16897
16898   -h, --help       print this help, then exit
16899   -V, --version    print version number and configuration settings, then exit
16900   -q, --quiet, --silent
16901                    do not print progress messages
16902   -d, --debug      don't remove temporary files
16903       --recheck    update $as_me by reconfiguring in the same conditions
16904       --file=FILE[:TEMPLATE]
16905                    instantiate the configuration file FILE
16906       --header=FILE[:TEMPLATE]
16907                    instantiate the configuration header FILE
16908
16909 Configuration files:
16910 $config_files
16911
16912 Configuration headers:
16913 $config_headers
16914
16915 Configuration links:
16916 $config_links
16917
16918 Configuration commands:
16919 $config_commands
16920
16921 Report bugs to the package provider."
16922
16923 _ACEOF
16924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16925 ac_cs_version="\\
16926 config.status
16927 configured by $0, generated by GNU Autoconf 2.64,
16928   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16929
16930 Copyright (C) 2009 Free Software Foundation, Inc.
16931 This config.status script is free software; the Free Software Foundation
16932 gives unlimited permission to copy, distribute and modify it."
16933
16934 ac_pwd='$ac_pwd'
16935 srcdir='$srcdir'
16936 INSTALL='$INSTALL'
16937 MKDIR_P='$MKDIR_P'
16938 AWK='$AWK'
16939 test -n "\$AWK" || AWK=awk
16940 _ACEOF
16941
16942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16943 # The default lists apply if the user does not specify any file.
16944 ac_need_defaults=:
16945 while test $# != 0
16946 do
16947   case $1 in
16948   --*=*)
16949     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16950     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16951     ac_shift=:
16952     ;;
16953   *)
16954     ac_option=$1
16955     ac_optarg=$2
16956     ac_shift=shift
16957     ;;
16958   esac
16959
16960   case $ac_option in
16961   # Handling of the options.
16962   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16963     ac_cs_recheck=: ;;
16964   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16965     $as_echo "$ac_cs_version"; exit ;;
16966   --debug | --debu | --deb | --de | --d | -d )
16967     debug=: ;;
16968   --file | --fil | --fi | --f )
16969     $ac_shift
16970     case $ac_optarg in
16971     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16972     esac
16973     as_fn_append CONFIG_FILES " '$ac_optarg'"
16974     ac_need_defaults=false;;
16975   --header | --heade | --head | --hea )
16976     $ac_shift
16977     case $ac_optarg in
16978     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16979     esac
16980     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16981     ac_need_defaults=false;;
16982   --he | --h)
16983     # Conflict between --help and --header
16984     as_fn_error "ambiguous option: \`$1'
16985 Try \`$0 --help' for more information.";;
16986   --help | --hel | -h )
16987     $as_echo "$ac_cs_usage"; exit ;;
16988   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16989   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16990     ac_cs_silent=: ;;
16991
16992   # This is an error.
16993   -*) as_fn_error "unrecognized option: \`$1'
16994 Try \`$0 --help' for more information." ;;
16995
16996   *) as_fn_append ac_config_targets " $1"
16997      ac_need_defaults=false ;;
16998
16999   esac
17000   shift
17001 done
17002
17003 ac_configure_extra_args=
17004
17005 if $ac_cs_silent; then
17006   exec 6>/dev/null
17007   ac_configure_extra_args="$ac_configure_extra_args --silent"
17008 fi
17009
17010 _ACEOF
17011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17012 if \$ac_cs_recheck; then
17013   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17014   shift
17015   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17016   CONFIG_SHELL='$SHELL'
17017   export CONFIG_SHELL
17018   exec "\$@"
17019 fi
17020
17021 _ACEOF
17022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17023 exec 5>>config.log
17024 {
17025   echo
17026   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17027 ## Running $as_me. ##
17028 _ASBOX
17029   $as_echo "$ac_log"
17030 } >&5
17031
17032 _ACEOF
17033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17034 #
17035 # INIT-COMMANDS
17036 #
17037 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17038 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17039
17040 _ACEOF
17041
17042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17043
17044 # Handling of arguments.
17045 for ac_config_target in $ac_config_targets
17046 do
17047   case $ac_config_target in
17048     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17049     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
17050     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17051     "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
17052     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
17053     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17054     ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17055     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17056     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
17057     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
17058     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17059
17060   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17061   esac
17062 done
17063
17064
17065 # If the user did not use the arguments to specify the items to instantiate,
17066 # then the envvar interface is used.  Set only those that are not.
17067 # We use the long form for the default assignment because of an extremely
17068 # bizarre bug on SunOS 4.1.3.
17069 if $ac_need_defaults; then
17070   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17071   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17072   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17073   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17074 fi
17075
17076 # Have a temporary directory for convenience.  Make it in the build tree
17077 # simply because there is no reason against having it here, and in addition,
17078 # creating and moving files from /tmp can sometimes cause problems.
17079 # Hook for its removal unless debugging.
17080 # Note that there is a small window in which the directory will not be cleaned:
17081 # after its creation but before its name has been assigned to `$tmp'.
17082 $debug ||
17083 {
17084   tmp=
17085   trap 'exit_status=$?
17086   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17087 ' 0
17088   trap 'as_fn_exit 1' 1 2 13 15
17089 }
17090 # Create a (secure) tmp directory for tmp files.
17091
17092 {
17093   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17094   test -n "$tmp" && test -d "$tmp"
17095 }  ||
17096 {
17097   tmp=./conf$$-$RANDOM
17098   (umask 077 && mkdir "$tmp")
17099 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17100
17101 # Set up the scripts for CONFIG_FILES section.
17102 # No need to generate them if there are no CONFIG_FILES.
17103 # This happens for instance with `./config.status config.h'.
17104 if test -n "$CONFIG_FILES"; then
17105
17106 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17107   ac_cs_awk_getline=:
17108   ac_cs_awk_pipe_init=
17109   ac_cs_awk_read_file='
17110       while ((getline aline < (F[key])) > 0)
17111         print(aline)
17112       close(F[key])'
17113   ac_cs_awk_pipe_fini=
17114 else
17115   ac_cs_awk_getline=false
17116   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17117   ac_cs_awk_read_file='
17118       print "|#_!!_#|"
17119       print "cat " F[key] " &&"
17120       '$ac_cs_awk_pipe_init
17121   # The final `:' finishes the AND list.
17122   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17123 fi
17124 ac_cr=`echo X | tr X '\015'`
17125 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17126 # But we know of no other shell where ac_cr would be empty at this
17127 # point, so we can use a bashism as a fallback.
17128 if test "x$ac_cr" = x; then
17129   eval ac_cr=\$\'\\r\'
17130 fi
17131 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17132 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17133   ac_cs_awk_cr='\r'
17134 else
17135   ac_cs_awk_cr=$ac_cr
17136 fi
17137
17138 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17139 _ACEOF
17140
17141 # Create commands to substitute file output variables.
17142 {
17143   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17144   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17145   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17146   echo "_ACAWK" &&
17147   echo "_ACEOF"
17148 } >conf$$files.sh &&
17149 . ./conf$$files.sh ||
17150   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17151 rm -f conf$$files.sh
17152
17153 {
17154   echo "cat >conf$$subs.awk <<_ACEOF" &&
17155   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17156   echo "_ACEOF"
17157 } >conf$$subs.sh ||
17158   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17159 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17160 ac_delim='%!_!# '
17161 for ac_last_try in false false false false false :; do
17162   . ./conf$$subs.sh ||
17163     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17164
17165   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17166   if test $ac_delim_n = $ac_delim_num; then
17167     break
17168   elif $ac_last_try; then
17169     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17170   else
17171     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17172   fi
17173 done
17174 rm -f conf$$subs.sh
17175
17176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17177 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17178 _ACEOF
17179 sed -n '
17180 h
17181 s/^/S["/; s/!.*/"]=/
17182 p
17183 g
17184 s/^[^!]*!//
17185 :repl
17186 t repl
17187 s/'"$ac_delim"'$//
17188 t delim
17189 :nl
17190 h
17191 s/\(.\{148\}\).*/\1/
17192 t more1
17193 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17194 p
17195 n
17196 b repl
17197 :more1
17198 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17199 p
17200 g
17201 s/.\{148\}//
17202 t nl
17203 :delim
17204 h
17205 s/\(.\{148\}\).*/\1/
17206 t more2
17207 s/["\\]/\\&/g; s/^/"/; s/$/"/
17208 p
17209 b
17210 :more2
17211 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17212 p
17213 g
17214 s/.\{148\}//
17215 t delim
17216 ' <conf$$subs.awk | sed '
17217 /^[^""]/{
17218   N
17219   s/\n//
17220 }
17221 ' >>$CONFIG_STATUS || ac_write_fail=1
17222 rm -f conf$$subs.awk
17223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17224 _ACAWK
17225 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17226   for (key in S) S_is_set[key] = 1
17227   FS = "\a"
17228   \$ac_cs_awk_pipe_init
17229 }
17230 {
17231   line = $ 0
17232   nfields = split(line, field, "@")
17233   substed = 0
17234   len = length(field[1])
17235   for (i = 2; i < nfields; i++) {
17236     key = field[i]
17237     keylen = length(key)
17238     if (S_is_set[key]) {
17239       value = S[key]
17240       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17241       len += length(value) + length(field[++i])
17242       substed = 1
17243     } else
17244       len += 1 + keylen
17245   }
17246   if (nfields == 3 && !substed) {
17247     key = field[2]
17248     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
17249       \$ac_cs_awk_read_file
17250       next
17251     }
17252   }
17253   print line
17254 }
17255 \$ac_cs_awk_pipe_fini
17256 _ACAWK
17257 _ACEOF
17258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17259 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17260   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17261 else
17262   cat
17263 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17264   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17265 _ACEOF
17266
17267 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17268 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17269 # trailing colons and then remove the whole line if VPATH becomes empty
17270 # (actually we leave an empty line to preserve line numbers).
17271 if test "x$srcdir" = x.; then
17272   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17273 s/:*\$(srcdir):*/:/
17274 s/:*\${srcdir}:*/:/
17275 s/:*@srcdir@:*/:/
17276 s/^\([^=]*=[     ]*\):*/\1/
17277 s/:*$//
17278 s/^[^=]*=[       ]*$//
17279 }'
17280 fi
17281
17282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17283 fi # test -n "$CONFIG_FILES"
17284
17285 # Set up the scripts for CONFIG_HEADERS section.
17286 # No need to generate them if there are no CONFIG_HEADERS.
17287 # This happens for instance with `./config.status Makefile'.
17288 if test -n "$CONFIG_HEADERS"; then
17289 cat >"$tmp/defines.awk" <<\_ACAWK ||
17290 BEGIN {
17291 _ACEOF
17292
17293 # Transform confdefs.h into an awk script `defines.awk', embedded as
17294 # here-document in config.status, that substitutes the proper values into
17295 # config.h.in to produce config.h.
17296
17297 # Create a delimiter string that does not exist in confdefs.h, to ease
17298 # handling of long lines.
17299 ac_delim='%!_!# '
17300 for ac_last_try in false false :; do
17301   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17302   if test -z "$ac_t"; then
17303     break
17304   elif $ac_last_try; then
17305     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17306   else
17307     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17308   fi
17309 done
17310
17311 # For the awk script, D is an array of macro values keyed by name,
17312 # likewise P contains macro parameters if any.  Preserve backslash
17313 # newline sequences.
17314
17315 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17316 sed -n '
17317 s/.\{148\}/&'"$ac_delim"'/g
17318 t rset
17319 :rset
17320 s/^[     ]*#[    ]*define[       ][      ]*/ /
17321 t def
17322 d
17323 :def
17324 s/\\$//
17325 t bsnl
17326 s/["\\]/\\&/g
17327 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17328 D["\1"]=" \3"/p
17329 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17330 d
17331 :bsnl
17332 s/["\\]/\\&/g
17333 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17334 D["\1"]=" \3\\\\\\n"\\/p
17335 t cont
17336 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17337 t cont
17338 d
17339 :cont
17340 n
17341 s/.\{148\}/&'"$ac_delim"'/g
17342 t clear
17343 :clear
17344 s/\\$//
17345 t bsnlc
17346 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17347 d
17348 :bsnlc
17349 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17350 b cont
17351 ' <confdefs.h | sed '
17352 s/'"$ac_delim"'/"\\\
17353 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17354
17355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17356   for (key in D) D_is_set[key] = 1
17357   FS = "\a"
17358 }
17359 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17360   line = \$ 0
17361   split(line, arg, " ")
17362   if (arg[1] == "#") {
17363     defundef = arg[2]
17364     mac1 = arg[3]
17365   } else {
17366     defundef = substr(arg[1], 2)
17367     mac1 = arg[2]
17368   }
17369   split(mac1, mac2, "(") #)
17370   macro = mac2[1]
17371   prefix = substr(line, 1, index(line, defundef) - 1)
17372   if (D_is_set[macro]) {
17373     # Preserve the white space surrounding the "#".
17374     print prefix "define", macro P[macro] D[macro]
17375     next
17376   } else {
17377     # Replace #undef with comments.  This is necessary, for example,
17378     # in the case of _POSIX_SOURCE, which is predefined and required
17379     # on some systems where configure will not decide to define it.
17380     if (defundef == "undef") {
17381       print "/*", prefix defundef, macro, "*/"
17382       next
17383     }
17384   }
17385 }
17386 { print }
17387 _ACAWK
17388 _ACEOF
17389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17390   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17391 fi # test -n "$CONFIG_HEADERS"
17392
17393
17394 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
17395 shift
17396 for ac_tag
17397 do
17398   case $ac_tag in
17399   :[FHLC]) ac_mode=$ac_tag; continue;;
17400   esac
17401   case $ac_mode$ac_tag in
17402   :[FHL]*:*);;
17403   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17404   :[FH]-) ac_tag=-:-;;
17405   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17406   esac
17407   ac_save_IFS=$IFS
17408   IFS=:
17409   set x $ac_tag
17410   IFS=$ac_save_IFS
17411   shift
17412   ac_file=$1
17413   shift
17414
17415   case $ac_mode in
17416   :L) ac_source=$1;;
17417   :[FH])
17418     ac_file_inputs=
17419     for ac_f
17420     do
17421       case $ac_f in
17422       -) ac_f="$tmp/stdin";;
17423       *) # Look for the file first in the build tree, then in the source tree
17424          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17425          # because $ac_f cannot contain `:'.
17426          test -f "$ac_f" ||
17427            case $ac_f in
17428            [\\/$]*) false;;
17429            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17430            esac ||
17431            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17432       esac
17433       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17434       as_fn_append ac_file_inputs " '$ac_f'"
17435     done
17436
17437     # Let's still pretend it is `configure' which instantiates (i.e., don't
17438     # use $as_me), people would be surprised to read:
17439     #    /* config.h.  Generated by config.status.  */
17440     configure_input='Generated from '`
17441           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17442         `' by configure.'
17443     if test x"$ac_file" != x-; then
17444       configure_input="$ac_file.  $configure_input"
17445       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17446 $as_echo "$as_me: creating $ac_file" >&6;}
17447     fi
17448     # Neutralize special characters interpreted by sed in replacement strings.
17449     case $configure_input in #(
17450     *\&* | *\|* | *\\* )
17451        ac_sed_conf_input=`$as_echo "$configure_input" |
17452        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17453     *) ac_sed_conf_input=$configure_input;;
17454     esac
17455
17456     case $ac_tag in
17457     *:-:* | *:-) cat >"$tmp/stdin" \
17458       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17459     esac
17460     ;;
17461   esac
17462
17463   ac_dir=`$as_dirname -- "$ac_file" ||
17464 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17465          X"$ac_file" : 'X\(//\)[^/]' \| \
17466          X"$ac_file" : 'X\(//\)$' \| \
17467          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17468 $as_echo X"$ac_file" |
17469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17470             s//\1/
17471             q
17472           }
17473           /^X\(\/\/\)[^/].*/{
17474             s//\1/
17475             q
17476           }
17477           /^X\(\/\/\)$/{
17478             s//\1/
17479             q
17480           }
17481           /^X\(\/\).*/{
17482             s//\1/
17483             q
17484           }
17485           s/.*/./; q'`
17486   as_dir="$ac_dir"; as_fn_mkdir_p
17487   ac_builddir=.
17488
17489 case "$ac_dir" in
17490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17491 *)
17492   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17493   # A ".." for each directory in $ac_dir_suffix.
17494   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17495   case $ac_top_builddir_sub in
17496   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17497   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17498   esac ;;
17499 esac
17500 ac_abs_top_builddir=$ac_pwd
17501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17502 # for backward compatibility:
17503 ac_top_builddir=$ac_top_build_prefix
17504
17505 case $srcdir in
17506   .)  # We are building in place.
17507     ac_srcdir=.
17508     ac_top_srcdir=$ac_top_builddir_sub
17509     ac_abs_top_srcdir=$ac_pwd ;;
17510   [\\/]* | ?:[\\/]* )  # Absolute name.
17511     ac_srcdir=$srcdir$ac_dir_suffix;
17512     ac_top_srcdir=$srcdir
17513     ac_abs_top_srcdir=$srcdir ;;
17514   *) # Relative name.
17515     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17516     ac_top_srcdir=$ac_top_build_prefix$srcdir
17517     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17518 esac
17519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17520
17521
17522   case $ac_mode in
17523   :F)
17524   #
17525   # CONFIG_FILE
17526   #
17527
17528   case $INSTALL in
17529   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17530   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17531   esac
17532   ac_MKDIR_P=$MKDIR_P
17533   case $MKDIR_P in
17534   [\\/$]* | ?:[\\/]* ) ;;
17535   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17536   esac
17537 _ACEOF
17538
17539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17540 # If the template does not know about datarootdir, expand it.
17541 # FIXME: This hack should be removed a few years after 2.60.
17542 ac_datarootdir_hack=; ac_datarootdir_seen=
17543 ac_sed_dataroot='
17544 /datarootdir/ {
17545   p
17546   q
17547 }
17548 /@datadir@/p
17549 /@docdir@/p
17550 /@infodir@/p
17551 /@localedir@/p
17552 /@mandir@/p'
17553 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17554 *datarootdir*) ac_datarootdir_seen=yes;;
17555 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17556   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17557 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17558 _ACEOF
17559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17560   ac_datarootdir_hack='
17561   s&@datadir@&$datadir&g
17562   s&@docdir@&$docdir&g
17563   s&@infodir@&$infodir&g
17564   s&@localedir@&$localedir&g
17565   s&@mandir@&$mandir&g
17566   s&\\\${datarootdir}&$datarootdir&g' ;;
17567 esac
17568 _ACEOF
17569
17570 # Neutralize VPATH when `$srcdir' = `.'.
17571 # Shell code in configure.ac might set extrasub.
17572 # FIXME: do we really want to maintain this feature?
17573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17574 ac_sed_extra="$ac_vpsub
17575 $extrasub
17576 _ACEOF
17577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17578 :t
17579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17580 s|@configure_input@|$ac_sed_conf_input|;t t
17581 s&@top_builddir@&$ac_top_builddir_sub&;t t
17582 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17583 s&@srcdir@&$ac_srcdir&;t t
17584 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17585 s&@top_srcdir@&$ac_top_srcdir&;t t
17586 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17587 s&@builddir@&$ac_builddir&;t t
17588 s&@abs_builddir@&$ac_abs_builddir&;t t
17589 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17590 s&@INSTALL@&$ac_INSTALL&;t t
17591 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17592 $ac_datarootdir_hack
17593 "
17594 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17595 if $ac_cs_awk_getline; then
17596   $AWK -f "$tmp/subs.awk"
17597 else
17598   $AWK -f "$tmp/subs.awk" | $SHELL
17599 fi >$tmp/out \
17600   || as_fn_error "could not create $ac_file" "$LINENO" 5
17601
17602 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17603   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17604   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17605   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17606 which seems to be undefined.  Please make sure it is defined." >&5
17607 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17608 which seems to be undefined.  Please make sure it is defined." >&2;}
17609
17610   rm -f "$tmp/stdin"
17611   case $ac_file in
17612   -) cat "$tmp/out" && rm -f "$tmp/out";;
17613   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17614   esac \
17615   || as_fn_error "could not create $ac_file" "$LINENO" 5
17616  ;;
17617   :H)
17618   #
17619   # CONFIG_HEADER
17620   #
17621   if test x"$ac_file" != x-; then
17622     {
17623       $as_echo "/* $configure_input  */" \
17624       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17625     } >"$tmp/config.h" \
17626       || as_fn_error "could not create $ac_file" "$LINENO" 5
17627     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17628       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17629 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17630     else
17631       rm -f "$ac_file"
17632       mv "$tmp/config.h" "$ac_file" \
17633         || as_fn_error "could not create $ac_file" "$LINENO" 5
17634     fi
17635   else
17636     $as_echo "/* $configure_input  */" \
17637       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17638       || as_fn_error "could not create -" "$LINENO" 5
17639   fi
17640 # Compute "$ac_file"'s index in $config_headers.
17641 _am_arg="$ac_file"
17642 _am_stamp_count=1
17643 for _am_header in $config_headers :; do
17644   case $_am_header in
17645     $_am_arg | $_am_arg:* )
17646       break ;;
17647     * )
17648       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17649   esac
17650 done
17651 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17652 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17653          X"$_am_arg" : 'X\(//\)[^/]' \| \
17654          X"$_am_arg" : 'X\(//\)$' \| \
17655          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17656 $as_echo X"$_am_arg" |
17657     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17658             s//\1/
17659             q
17660           }
17661           /^X\(\/\/\)[^/].*/{
17662             s//\1/
17663             q
17664           }
17665           /^X\(\/\/\)$/{
17666             s//\1/
17667             q
17668           }
17669           /^X\(\/\).*/{
17670             s//\1/
17671             q
17672           }
17673           s/.*/./; q'`/stamp-h$_am_stamp_count
17674  ;;
17675   :L)
17676   #
17677   # CONFIG_LINK
17678   #
17679
17680   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17681     :
17682   else
17683     # Prefer the file from the source tree if names are identical.
17684     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17685       ac_source=$srcdir/$ac_source
17686     fi
17687
17688     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17689 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17690
17691     if test ! -r "$ac_source"; then
17692       as_fn_error "$ac_source: file not found" "$LINENO" 5
17693     fi
17694     rm -f "$ac_file"
17695
17696     # Try a relative symlink, then a hard link, then a copy.
17697     case $srcdir in
17698     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17699         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17700     esac
17701     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17702       ln "$ac_source" "$ac_file" 2>/dev/null ||
17703       cp -p "$ac_source" "$ac_file" ||
17704       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17705   fi
17706  ;;
17707   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17708 $as_echo "$as_me: executing $ac_file commands" >&6;}
17709  ;;
17710   esac
17711
17712
17713   case $ac_file$ac_mode in
17714     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17715     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17716   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17717   # are listed without --file.  Let's play safe and only enable the eval
17718   # if we detect the quoting.
17719   case $CONFIG_FILES in
17720   *\'*) eval set x "$CONFIG_FILES" ;;
17721   *)   set x $CONFIG_FILES ;;
17722   esac
17723   shift
17724   for mf
17725   do
17726     # Strip MF so we end up with the name of the file.
17727     mf=`echo "$mf" | sed -e 's/:.*$//'`
17728     # Check whether this is an Automake generated Makefile or not.
17729     # We used to match only the files named `Makefile.in', but
17730     # some people rename them; so instead we look at the file content.
17731     # Grep'ing the first line is not enough: some people post-process
17732     # each Makefile.in and add a new line on top of each file to say so.
17733     # Grep'ing the whole file is not good either: AIX grep has a line
17734     # limit of 2048, but all sed's we know have understand at least 4000.
17735     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17736       dirpart=`$as_dirname -- "$mf" ||
17737 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17738          X"$mf" : 'X\(//\)[^/]' \| \
17739          X"$mf" : 'X\(//\)$' \| \
17740          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17741 $as_echo X"$mf" |
17742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17743             s//\1/
17744             q
17745           }
17746           /^X\(\/\/\)[^/].*/{
17747             s//\1/
17748             q
17749           }
17750           /^X\(\/\/\)$/{
17751             s//\1/
17752             q
17753           }
17754           /^X\(\/\).*/{
17755             s//\1/
17756             q
17757           }
17758           s/.*/./; q'`
17759     else
17760       continue
17761     fi
17762     # Extract the definition of DEPDIR, am__include, and am__quote
17763     # from the Makefile without running `make'.
17764     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17765     test -z "$DEPDIR" && continue
17766     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17767     test -z "am__include" && continue
17768     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17769     # When using ansi2knr, U may be empty or an underscore; expand it
17770     U=`sed -n 's/^U = //p' < "$mf"`
17771     # Find all dependency output files, they are included files with
17772     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17773     # simplest approach to changing $(DEPDIR) to its actual value in the
17774     # expansion.
17775     for file in `sed -n "
17776       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17777          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17778       # Make sure the directory exists.
17779       test -f "$dirpart/$file" && continue
17780       fdir=`$as_dirname -- "$file" ||
17781 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17782          X"$file" : 'X\(//\)[^/]' \| \
17783          X"$file" : 'X\(//\)$' \| \
17784          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17785 $as_echo X"$file" |
17786     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17787             s//\1/
17788             q
17789           }
17790           /^X\(\/\/\)[^/].*/{
17791             s//\1/
17792             q
17793           }
17794           /^X\(\/\/\)$/{
17795             s//\1/
17796             q
17797           }
17798           /^X\(\/\).*/{
17799             s//\1/
17800             q
17801           }
17802           s/.*/./; q'`
17803       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17804       # echo "creating $dirpart/$file"
17805       echo '# dummy' > "$dirpart/$file"
17806     done
17807   done
17808 }
17809  ;;
17810     "default":C)
17811 case x$CONFIG_HEADERS in
17812 xconfig.h:config.in)
17813 echo > stamp-h ;;
17814 esac
17815  ;;
17816
17817   esac
17818 done # for ac_tag
17819
17820
17821 as_fn_exit 0
17822 _ACEOF
17823 ac_clean_files=$ac_clean_files_save
17824
17825 test $ac_write_fail = 0 ||
17826   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17827
17828
17829 # configure is writing to config.log, and then calls config.status.
17830 # config.status does its own redirection, appending to config.log.
17831 # Unfortunately, on DOS this fails, as config.log is still kept open
17832 # by configure, so config.status won't be able to write to it; its
17833 # output is simply discarded.  So we exec the FD to /dev/null,
17834 # effectively closing config.log, so it can be properly (re)opened and
17835 # appended to by config.status.  When coming back to configure, we
17836 # need to make the FD available again.
17837 if test "$no_create" != yes; then
17838   ac_cs_success=:
17839   ac_config_status_args=
17840   test "$silent" = yes &&
17841     ac_config_status_args="$ac_config_status_args --quiet"
17842   exec 5>/dev/null
17843   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17844   exec 5>>config.log
17845   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17846   # would make configure fail if this is the last instruction.
17847   $ac_cs_success || as_fn_exit $?
17848 fi
17849
17850 #
17851 # CONFIG_SUBDIRS section.
17852 #
17853 if test "$no_recursion" != yes; then
17854
17855   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17856   # so they do not pile up.
17857   ac_sub_configure_args=
17858   ac_prev=
17859   eval "set x $ac_configure_args"
17860   shift
17861   for ac_arg
17862   do
17863     if test -n "$ac_prev"; then
17864       ac_prev=
17865       continue
17866     fi
17867     case $ac_arg in
17868     -cache-file | --cache-file | --cache-fil | --cache-fi \
17869     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17870       ac_prev=cache_file ;;
17871     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17872     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17873     | --c=*)
17874       ;;
17875     --config-cache | -C)
17876       ;;
17877     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17878       ac_prev=srcdir ;;
17879     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17880       ;;
17881     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17882       ac_prev=prefix ;;
17883     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17884       ;;
17885     --disable-option-checking)
17886       ;;
17887     *)
17888       case $ac_arg in
17889       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17890       esac
17891       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17892     esac
17893   done
17894
17895   # Always prepend --prefix to ensure using the same prefix
17896   # in subdir configurations.
17897   ac_arg="--prefix=$prefix"
17898   case $ac_arg in
17899   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17900   esac
17901   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17902
17903   # Pass --silent
17904   if test "$silent" = yes; then
17905     ac_sub_configure_args="--silent $ac_sub_configure_args"
17906   fi
17907
17908   # Always prepend --disable-option-checking to silence warnings, since
17909   # different subdirs can have different --enable and --with options.
17910   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17911
17912   ac_popdir=`pwd`
17913   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17914
17915     # Do not complain, so a configure script can configure whichever
17916     # parts of a large source tree are present.
17917     test -d "$srcdir/$ac_dir" || continue
17918
17919     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17920     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17921     $as_echo "$ac_msg" >&6
17922     as_dir="$ac_dir"; as_fn_mkdir_p
17923     ac_builddir=.
17924
17925 case "$ac_dir" in
17926 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17927 *)
17928   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17929   # A ".." for each directory in $ac_dir_suffix.
17930   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17931   case $ac_top_builddir_sub in
17932   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17933   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17934   esac ;;
17935 esac
17936 ac_abs_top_builddir=$ac_pwd
17937 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17938 # for backward compatibility:
17939 ac_top_builddir=$ac_top_build_prefix
17940
17941 case $srcdir in
17942   .)  # We are building in place.
17943     ac_srcdir=.
17944     ac_top_srcdir=$ac_top_builddir_sub
17945     ac_abs_top_srcdir=$ac_pwd ;;
17946   [\\/]* | ?:[\\/]* )  # Absolute name.
17947     ac_srcdir=$srcdir$ac_dir_suffix;
17948     ac_top_srcdir=$srcdir
17949     ac_abs_top_srcdir=$srcdir ;;
17950   *) # Relative name.
17951     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17952     ac_top_srcdir=$ac_top_build_prefix$srcdir
17953     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17954 esac
17955 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17956
17957
17958     cd "$ac_dir"
17959
17960     # Check for guested configure; otherwise get Cygnus style configure.
17961     if test -f "$ac_srcdir/configure.gnu"; then
17962       ac_sub_configure=$ac_srcdir/configure.gnu
17963     elif test -f "$ac_srcdir/configure"; then
17964       ac_sub_configure=$ac_srcdir/configure
17965     elif test -f "$ac_srcdir/configure.in"; then
17966       # This should be Cygnus configure.
17967       ac_sub_configure=$ac_aux_dir/configure
17968     else
17969       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17970 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17971       ac_sub_configure=
17972     fi
17973
17974     # The recursion is here.
17975     if test -n "$ac_sub_configure"; then
17976       # Make the cache file name correct relative to the subdirectory.
17977       case $cache_file in
17978       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17979       *) # Relative name.
17980         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17981       esac
17982
17983       { $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
17984 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17985       # The eval makes quoting arguments work.
17986       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17987            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17988         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17989     fi
17990
17991     cd "$ac_popdir"
17992   done
17993 fi
17994 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17995   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17996 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17997 fi
17998
17999
18000 exit 0