do not use python<version> subdir when including Python .h file
[external/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_DEFINE
658 TARGET_SYSTEM_ROOT
659 CONFIG_LDFLAGS
660 RDYNAMIC
661 ALLOCA
662 PYTHON_LIBS
663 PYTHON_CPPFLAGS
664 PYTHON_CFLAGS
665 python_prog_path
666 LTLIBEXPAT
667 LIBEXPAT
668 HAVE_LIBEXPAT
669 READLINE_TEXI_INCFLAG
670 READLINE_CFLAGS
671 READLINE_DEPS
672 READLINE
673 MIG
674 WINDRES
675 DLLTOOL
676 AR
677 YFLAGS
678 YACC
679 LN_S
680 REPORT_BUGS_TEXI
681 REPORT_BUGS_TO
682 PKGVERSION
683 TARGET_OBS
684 subdirs
685 GDB_DATADIR
686 DEBUGDIR
687 am__fastdepCC_FALSE
688 am__fastdepCC_TRUE
689 AMDEPBACKSLASH
690 AMDEP_FALSE
691 AMDEP_TRUE
692 am__quote
693 am__include
694 am__untar
695 am__tar
696 AMTAR
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
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 PACKAGE
715 GNULIB_STDINT_H
716 LIBGNU_LTLIBDEPS
717 LIBGNU_LIBDEPS
718 gltests_WITNESS
719 HAVE_WINT_T
720 HAVE_WCHAR_H
721 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
722 NEXT_WCHAR_H
723 REPLACE_WCWIDTH
724 REPLACE_WCSNRTOMBS
725 REPLACE_WCSRTOMBS
726 REPLACE_WCRTOMB
727 REPLACE_MBSNRTOWCS
728 REPLACE_MBSRTOWCS
729 REPLACE_MBRLEN
730 REPLACE_MBRTOWC
731 REPLACE_MBSINIT
732 REPLACE_WCTOB
733 REPLACE_BTOWC
734 REPLACE_MBSTATE_T
735 HAVE_DECL_WCWIDTH
736 HAVE_DECL_WCTOB
737 HAVE_WCSNRTOMBS
738 HAVE_WCSRTOMBS
739 HAVE_WCRTOMB
740 HAVE_MBSNRTOWCS
741 HAVE_MBSRTOWCS
742 HAVE_MBRLEN
743 HAVE_MBRTOWC
744 HAVE_MBSINIT
745 HAVE_BTOWC
746 GNULIB_WCWIDTH
747 GNULIB_WCSNRTOMBS
748 GNULIB_WCSRTOMBS
749 GNULIB_WCRTOMB
750 GNULIB_MBSNRTOWCS
751 GNULIB_MBSRTOWCS
752 GNULIB_MBRLEN
753 GNULIB_MBRTOWC
754 GNULIB_MBSINIT
755 GNULIB_WCTOB
756 GNULIB_BTOWC
757 NEXT_AS_FIRST_DIRECTIVE_STRING_H
758 NEXT_STRING_H
759 STDINT_H
760 WINT_T_SUFFIX
761 WCHAR_T_SUFFIX
762 SIG_ATOMIC_T_SUFFIX
763 SIZE_T_SUFFIX
764 PTRDIFF_T_SUFFIX
765 HAVE_SIGNED_WINT_T
766 HAVE_SIGNED_WCHAR_T
767 HAVE_SIGNED_SIG_ATOMIC_T
768 BITSIZEOF_WINT_T
769 BITSIZEOF_WCHAR_T
770 BITSIZEOF_SIG_ATOMIC_T
771 BITSIZEOF_SIZE_T
772 BITSIZEOF_PTRDIFF_T
773 HAVE_SYS_BITYPES_H
774 HAVE_SYS_INTTYPES_H
775 HAVE_STDINT_H
776 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
777 NEXT_STDINT_H
778 HAVE_SYS_TYPES_H
779 HAVE_INTTYPES_H
780 HAVE_UNSIGNED_LONG_LONG_INT
781 HAVE_LONG_LONG_INT
782 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
783 NEXT_STDDEF_H
784 PRAGMA_SYSTEM_HEADER
785 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
786 INCLUDE_NEXT
787 STDDEF_H
788 HAVE_WCHAR_T
789 REPLACE_NULL
790 APPLE_UNIVERSAL_BUILD
791 UNDEFINE_STRTOK_R
792 REPLACE_STRTOK_R
793 REPLACE_STRSIGNAL
794 REPLACE_STRNLEN
795 REPLACE_STRNDUP
796 REPLACE_STRNCAT
797 REPLACE_STRERROR
798 REPLACE_STRCASESTR
799 REPLACE_STRSTR
800 REPLACE_STRDUP
801 REPLACE_STPNCPY
802 REPLACE_MEMMEM
803 REPLACE_MEMCHR
804 HAVE_STRVERSCMP
805 HAVE_DECL_STRSIGNAL
806 HAVE_DECL_STRTOK_R
807 HAVE_STRCASESTR
808 HAVE_STRSEP
809 HAVE_STRPBRK
810 HAVE_DECL_STRNLEN
811 HAVE_DECL_STRNDUP
812 HAVE_DECL_STRDUP
813 HAVE_STRCHRNUL
814 HAVE_STPNCPY
815 HAVE_STPCPY
816 HAVE_RAWMEMCHR
817 HAVE_DECL_MEMRCHR
818 HAVE_MEMPCPY
819 HAVE_DECL_MEMMEM
820 HAVE_MEMCHR
821 HAVE_MBSLEN
822 GNULIB_STRVERSCMP
823 GNULIB_STRSIGNAL
824 GNULIB_STRERROR
825 GNULIB_MBSTOK_R
826 GNULIB_MBSSEP
827 GNULIB_MBSSPN
828 GNULIB_MBSPBRK
829 GNULIB_MBSCSPN
830 GNULIB_MBSCASESTR
831 GNULIB_MBSPCASECMP
832 GNULIB_MBSNCASECMP
833 GNULIB_MBSCASECMP
834 GNULIB_MBSSTR
835 GNULIB_MBSRCHR
836 GNULIB_MBSCHR
837 GNULIB_MBSNLEN
838 GNULIB_MBSLEN
839 GNULIB_STRTOK_R
840 GNULIB_STRCASESTR
841 GNULIB_STRSTR
842 GNULIB_STRSEP
843 GNULIB_STRPBRK
844 GNULIB_STRNLEN
845 GNULIB_STRNDUP
846 GNULIB_STRNCAT
847 GNULIB_STRDUP
848 GNULIB_STRCHRNUL
849 GNULIB_STPNCPY
850 GNULIB_STPCPY
851 GNULIB_RAWMEMCHR
852 GNULIB_MEMRCHR
853 GNULIB_MEMPCPY
854 GNULIB_MEMMEM
855 GNULIB_MEMCHR
856 GL_COND_LIBTOOL_FALSE
857 GL_COND_LIBTOOL_TRUE
858 CATOBJEXT
859 GENCAT
860 INSTOBJEXT
861 DATADIRNAME
862 CATALOGS
863 POSUB
864 GMSGFMT
865 XGETTEXT
866 INCINTL
867 LIBINTL_DEP
868 LIBINTL
869 USE_NLS
870 SET_MAKE
871 GMAKE_FALSE
872 GMAKE_TRUE
873 MAKE
874 CCDEPMODE
875 DEPDIR
876 am__leading_dot
877 target_os
878 target_vendor
879 target_cpu
880 target
881 RANLIB
882 EGREP
883 GREP
884 CPP
885 host_os
886 host_vendor
887 host_cpu
888 host
889 build_os
890 build_vendor
891 build_cpu
892 build
893 OBJEXT
894 EXEEXT
895 ac_ct_CC
896 CPPFLAGS
897 LDFLAGS
898 CFLAGS
899 CC
900 MAINT
901 MAINTAINER_MODE_FALSE
902 MAINTAINER_MODE_TRUE
903 target_alias
904 host_alias
905 build_alias
906 LIBS
907 ECHO_T
908 ECHO_N
909 ECHO_C
910 DEFS
911 mandir
912 localedir
913 libdir
914 psdir
915 pdfdir
916 dvidir
917 htmldir
918 infodir
919 docdir
920 oldincludedir
921 includedir
922 localstatedir
923 sharedstatedir
924 sysconfdir
925 datadir
926 datarootdir
927 libexecdir
928 sbindir
929 bindir
930 program_transform_name
931 prefix
932 exec_prefix
933 PACKAGE_URL
934 PACKAGE_BUGREPORT
935 PACKAGE_STRING
936 PACKAGE_VERSION
937 PACKAGE_TARNAME
938 PACKAGE_NAME
939 PATH_SEPARATOR
940 SHELL'
941 ac_subst_files='host_makefile_frag'
942 ac_user_opts='
943 enable_option_checking
944 enable_maintainer_mode
945 enable_plugins
946 enable_largefile
947 enable_dependency_tracking
948 with_separate_debug_dir
949 with_gdb_datadir
950 with_relocated_sources
951 enable_targets
952 enable_64_bit_bfd
953 enable_gdbcli
954 enable_gdbmi
955 enable_tui
956 enable_gdbtk
957 with_libunwind
958 with_curses
959 enable_profiling
960 with_pkgversion
961 with_bugurl
962 with_zlib
963 with_libiconv_prefix
964 with_system_readline
965 with_expat
966 with_gnu_ld
967 enable_rpath
968 with_libexpat_prefix
969 with_python
970 with_included_regex
971 with_sysroot
972 with_system_gdbinit
973 enable_werror
974 enable_build_warnings
975 enable_gdb_build_warnings
976 with_tcl
977 with_tk
978 with_x
979 enable_sim
980 enable_multi_ice
981 enable_gdbserver
982 '
983       ac_precious_vars='build_alias
984 host_alias
985 target_alias
986 CC
987 CFLAGS
988 LDFLAGS
989 LIBS
990 CPPFLAGS
991 CPP
992 YACC
993 YFLAGS
994 XMKMF'
995 ac_subdirs_all='testsuite
996 gdbtk
997 multi-ice
998 gdbserver'
999
1000 # Initialize some variables set by options.
1001 ac_init_help=
1002 ac_init_version=false
1003 ac_unrecognized_opts=
1004 ac_unrecognized_sep=
1005 # The variables have the same names as the options, with
1006 # dashes changed to underlines.
1007 cache_file=/dev/null
1008 exec_prefix=NONE
1009 no_create=
1010 no_recursion=
1011 prefix=NONE
1012 program_prefix=NONE
1013 program_suffix=NONE
1014 program_transform_name=s,x,x,
1015 silent=
1016 site=
1017 srcdir=
1018 verbose=
1019 x_includes=NONE
1020 x_libraries=NONE
1021
1022 # Installation directory options.
1023 # These are left unexpanded so users can "make install exec_prefix=/foo"
1024 # and all the variables that are supposed to be based on exec_prefix
1025 # by default will actually change.
1026 # Use braces instead of parens because sh, perl, etc. also accept them.
1027 # (The list follows the same order as the GNU Coding Standards.)
1028 bindir='${exec_prefix}/bin'
1029 sbindir='${exec_prefix}/sbin'
1030 libexecdir='${exec_prefix}/libexec'
1031 datarootdir='${prefix}/share'
1032 datadir='${datarootdir}'
1033 sysconfdir='${prefix}/etc'
1034 sharedstatedir='${prefix}/com'
1035 localstatedir='${prefix}/var'
1036 includedir='${prefix}/include'
1037 oldincludedir='/usr/include'
1038 docdir='${datarootdir}/doc/${PACKAGE}'
1039 infodir='${datarootdir}/info'
1040 htmldir='${docdir}'
1041 dvidir='${docdir}'
1042 pdfdir='${docdir}'
1043 psdir='${docdir}'
1044 libdir='${exec_prefix}/lib'
1045 localedir='${datarootdir}/locale'
1046 mandir='${datarootdir}/man'
1047
1048 ac_prev=
1049 ac_dashdash=
1050 for ac_option
1051 do
1052   # If the previous option needs an argument, assign it.
1053   if test -n "$ac_prev"; then
1054     eval $ac_prev=\$ac_option
1055     ac_prev=
1056     continue
1057   fi
1058
1059   case $ac_option in
1060   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1061   *)    ac_optarg=yes ;;
1062   esac
1063
1064   # Accept the important Cygnus configure options, so we can diagnose typos.
1065
1066   case $ac_dashdash$ac_option in
1067   --)
1068     ac_dashdash=yes ;;
1069
1070   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1071     ac_prev=bindir ;;
1072   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1073     bindir=$ac_optarg ;;
1074
1075   -build | --build | --buil | --bui | --bu)
1076     ac_prev=build_alias ;;
1077   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1078     build_alias=$ac_optarg ;;
1079
1080   -cache-file | --cache-file | --cache-fil | --cache-fi \
1081   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1082     ac_prev=cache_file ;;
1083   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1084   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1085     cache_file=$ac_optarg ;;
1086
1087   --config-cache | -C)
1088     cache_file=config.cache ;;
1089
1090   -datadir | --datadir | --datadi | --datad)
1091     ac_prev=datadir ;;
1092   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1093     datadir=$ac_optarg ;;
1094
1095   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1096   | --dataroo | --dataro | --datar)
1097     ac_prev=datarootdir ;;
1098   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1099   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1100     datarootdir=$ac_optarg ;;
1101
1102   -disable-* | --disable-*)
1103     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1104     # Reject names that are not valid shell variable names.
1105     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106       as_fn_error "invalid feature name: $ac_useropt"
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "enable_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval enable_$ac_useropt=no ;;
1117
1118   -docdir | --docdir | --docdi | --doc | --do)
1119     ac_prev=docdir ;;
1120   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1121     docdir=$ac_optarg ;;
1122
1123   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1124     ac_prev=dvidir ;;
1125   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1126     dvidir=$ac_optarg ;;
1127
1128   -enable-* | --enable-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       as_fn_error "invalid feature name: $ac_useropt"
1133     ac_useropt_orig=$ac_useropt
1134     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135     case $ac_user_opts in
1136       *"
1137 "enable_$ac_useropt"
1138 "*) ;;
1139       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1140          ac_unrecognized_sep=', ';;
1141     esac
1142     eval enable_$ac_useropt=\$ac_optarg ;;
1143
1144   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1145   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1146   | --exec | --exe | --ex)
1147     ac_prev=exec_prefix ;;
1148   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1149   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1150   | --exec=* | --exe=* | --ex=*)
1151     exec_prefix=$ac_optarg ;;
1152
1153   -gas | --gas | --ga | --g)
1154     # Obsolete; use --with-gas.
1155     with_gas=yes ;;
1156
1157   -help | --help | --hel | --he | -h)
1158     ac_init_help=long ;;
1159   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1160     ac_init_help=recursive ;;
1161   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1162     ac_init_help=short ;;
1163
1164   -host | --host | --hos | --ho)
1165     ac_prev=host_alias ;;
1166   -host=* | --host=* | --hos=* | --ho=*)
1167     host_alias=$ac_optarg ;;
1168
1169   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1170     ac_prev=htmldir ;;
1171   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1172   | --ht=*)
1173     htmldir=$ac_optarg ;;
1174
1175   -includedir | --includedir | --includedi | --included | --include \
1176   | --includ | --inclu | --incl | --inc)
1177     ac_prev=includedir ;;
1178   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1179   | --includ=* | --inclu=* | --incl=* | --inc=*)
1180     includedir=$ac_optarg ;;
1181
1182   -infodir | --infodir | --infodi | --infod | --info | --inf)
1183     ac_prev=infodir ;;
1184   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1185     infodir=$ac_optarg ;;
1186
1187   -libdir | --libdir | --libdi | --libd)
1188     ac_prev=libdir ;;
1189   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1190     libdir=$ac_optarg ;;
1191
1192   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1193   | --libexe | --libex | --libe)
1194     ac_prev=libexecdir ;;
1195   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1196   | --libexe=* | --libex=* | --libe=*)
1197     libexecdir=$ac_optarg ;;
1198
1199   -localedir | --localedir | --localedi | --localed | --locale)
1200     ac_prev=localedir ;;
1201   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1202     localedir=$ac_optarg ;;
1203
1204   -localstatedir | --localstatedir | --localstatedi | --localstated \
1205   | --localstate | --localstat | --localsta | --localst | --locals)
1206     ac_prev=localstatedir ;;
1207   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1208   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1209     localstatedir=$ac_optarg ;;
1210
1211   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1212     ac_prev=mandir ;;
1213   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1214     mandir=$ac_optarg ;;
1215
1216   -nfp | --nfp | --nf)
1217     # Obsolete; use --without-fp.
1218     with_fp=no ;;
1219
1220   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1221   | --no-cr | --no-c | -n)
1222     no_create=yes ;;
1223
1224   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1225   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1226     no_recursion=yes ;;
1227
1228   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1229   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1230   | --oldin | --oldi | --old | --ol | --o)
1231     ac_prev=oldincludedir ;;
1232   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1233   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1234   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1235     oldincludedir=$ac_optarg ;;
1236
1237   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1238     ac_prev=prefix ;;
1239   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1240     prefix=$ac_optarg ;;
1241
1242   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1243   | --program-pre | --program-pr | --program-p)
1244     ac_prev=program_prefix ;;
1245   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1246   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1247     program_prefix=$ac_optarg ;;
1248
1249   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1250   | --program-suf | --program-su | --program-s)
1251     ac_prev=program_suffix ;;
1252   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1253   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1254     program_suffix=$ac_optarg ;;
1255
1256   -program-transform-name | --program-transform-name \
1257   | --program-transform-nam | --program-transform-na \
1258   | --program-transform-n | --program-transform- \
1259   | --program-transform | --program-transfor \
1260   | --program-transfo | --program-transf \
1261   | --program-trans | --program-tran \
1262   | --progr-tra | --program-tr | --program-t)
1263     ac_prev=program_transform_name ;;
1264   -program-transform-name=* | --program-transform-name=* \
1265   | --program-transform-nam=* | --program-transform-na=* \
1266   | --program-transform-n=* | --program-transform-=* \
1267   | --program-transform=* | --program-transfor=* \
1268   | --program-transfo=* | --program-transf=* \
1269   | --program-trans=* | --program-tran=* \
1270   | --progr-tra=* | --program-tr=* | --program-t=*)
1271     program_transform_name=$ac_optarg ;;
1272
1273   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1274     ac_prev=pdfdir ;;
1275   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1276     pdfdir=$ac_optarg ;;
1277
1278   -psdir | --psdir | --psdi | --psd | --ps)
1279     ac_prev=psdir ;;
1280   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1281     psdir=$ac_optarg ;;
1282
1283   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284   | -silent | --silent | --silen | --sile | --sil)
1285     silent=yes ;;
1286
1287   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1288     ac_prev=sbindir ;;
1289   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1290   | --sbi=* | --sb=*)
1291     sbindir=$ac_optarg ;;
1292
1293   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1294   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1295   | --sharedst | --shareds | --shared | --share | --shar \
1296   | --sha | --sh)
1297     ac_prev=sharedstatedir ;;
1298   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1299   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1300   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1301   | --sha=* | --sh=*)
1302     sharedstatedir=$ac_optarg ;;
1303
1304   -site | --site | --sit)
1305     ac_prev=site ;;
1306   -site=* | --site=* | --sit=*)
1307     site=$ac_optarg ;;
1308
1309   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1310     ac_prev=srcdir ;;
1311   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1312     srcdir=$ac_optarg ;;
1313
1314   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1315   | --syscon | --sysco | --sysc | --sys | --sy)
1316     ac_prev=sysconfdir ;;
1317   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1318   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1319     sysconfdir=$ac_optarg ;;
1320
1321   -target | --target | --targe | --targ | --tar | --ta | --t)
1322     ac_prev=target_alias ;;
1323   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1324     target_alias=$ac_optarg ;;
1325
1326   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1327     verbose=yes ;;
1328
1329   -version | --version | --versio | --versi | --vers | -V)
1330     ac_init_version=: ;;
1331
1332   -with-* | --with-*)
1333     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1334     # Reject names that are not valid shell variable names.
1335     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336       as_fn_error "invalid package name: $ac_useropt"
1337     ac_useropt_orig=$ac_useropt
1338     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339     case $ac_user_opts in
1340       *"
1341 "with_$ac_useropt"
1342 "*) ;;
1343       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1344          ac_unrecognized_sep=', ';;
1345     esac
1346     eval with_$ac_useropt=\$ac_optarg ;;
1347
1348   -without-* | --without-*)
1349     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1350     # Reject names that are not valid shell variable names.
1351     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352       as_fn_error "invalid package name: $ac_useropt"
1353     ac_useropt_orig=$ac_useropt
1354     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355     case $ac_user_opts in
1356       *"
1357 "with_$ac_useropt"
1358 "*) ;;
1359       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1360          ac_unrecognized_sep=', ';;
1361     esac
1362     eval with_$ac_useropt=no ;;
1363
1364   --x)
1365     # Obsolete; use --with-x.
1366     with_x=yes ;;
1367
1368   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1369   | --x-incl | --x-inc | --x-in | --x-i)
1370     ac_prev=x_includes ;;
1371   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1372   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1373     x_includes=$ac_optarg ;;
1374
1375   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1376   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1377     ac_prev=x_libraries ;;
1378   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1379   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1380     x_libraries=$ac_optarg ;;
1381
1382   -*) as_fn_error "unrecognized option: \`$ac_option'
1383 Try \`$0 --help' for more information."
1384     ;;
1385
1386   *=*)
1387     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1388     # Reject names that are not valid shell variable names.
1389     case $ac_envvar in #(
1390       '' | [0-9]* | *[!_$as_cr_alnum]* )
1391       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1392     esac
1393     eval $ac_envvar=\$ac_optarg
1394     export $ac_envvar ;;
1395
1396   *)
1397     # FIXME: should be removed in autoconf 3.0.
1398     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1399     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1401     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1402     ;;
1403
1404   esac
1405 done
1406
1407 if test -n "$ac_prev"; then
1408   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1409   as_fn_error "missing argument to $ac_option"
1410 fi
1411
1412 if test -n "$ac_unrecognized_opts"; then
1413   case $enable_option_checking in
1414     no) ;;
1415     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1416     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1417   esac
1418 fi
1419
1420 # Check all directory arguments for consistency.
1421 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1422                 datadir sysconfdir sharedstatedir localstatedir includedir \
1423                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1424                 libdir localedir mandir
1425 do
1426   eval ac_val=\$$ac_var
1427   # Remove trailing slashes.
1428   case $ac_val in
1429     */ )
1430       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1431       eval $ac_var=\$ac_val;;
1432   esac
1433   # Be sure to have absolute directory names.
1434   case $ac_val in
1435     [\\/$]* | ?:[\\/]* )  continue;;
1436     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1437   esac
1438   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1439 done
1440
1441 # There might be people who depend on the old broken behavior: `$host'
1442 # used to hold the argument of --host etc.
1443 # FIXME: To remove some day.
1444 build=$build_alias
1445 host=$host_alias
1446 target=$target_alias
1447
1448 # FIXME: To remove some day.
1449 if test "x$host_alias" != x; then
1450   if test "x$build_alias" = x; then
1451     cross_compiling=maybe
1452     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1453     If a cross compiler is detected then cross compile mode will be used." >&2
1454   elif test "x$build_alias" != "x$host_alias"; then
1455     cross_compiling=yes
1456   fi
1457 fi
1458
1459 ac_tool_prefix=
1460 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1461
1462 test "$silent" = yes && exec 6>/dev/null
1463
1464
1465 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1466 ac_ls_di=`ls -di .` &&
1467 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1468   as_fn_error "working directory cannot be determined"
1469 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470   as_fn_error "pwd does not report name of working directory"
1471
1472
1473 # Find the source files, if location was not specified.
1474 if test -z "$srcdir"; then
1475   ac_srcdir_defaulted=yes
1476   # Try the directory containing this script, then the parent directory.
1477   ac_confdir=`$as_dirname -- "$as_myself" ||
1478 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1479          X"$as_myself" : 'X\(//\)[^/]' \| \
1480          X"$as_myself" : 'X\(//\)$' \| \
1481          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1482 $as_echo X"$as_myself" |
1483     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1484             s//\1/
1485             q
1486           }
1487           /^X\(\/\/\)[^/].*/{
1488             s//\1/
1489             q
1490           }
1491           /^X\(\/\/\)$/{
1492             s//\1/
1493             q
1494           }
1495           /^X\(\/\).*/{
1496             s//\1/
1497             q
1498           }
1499           s/.*/./; q'`
1500   srcdir=$ac_confdir
1501   if test ! -r "$srcdir/$ac_unique_file"; then
1502     srcdir=..
1503   fi
1504 else
1505   ac_srcdir_defaulted=no
1506 fi
1507 if test ! -r "$srcdir/$ac_unique_file"; then
1508   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1509   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1510 fi
1511 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1512 ac_abs_confdir=`(
1513         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1514         pwd)`
1515 # When building in place, set srcdir=.
1516 if test "$ac_abs_confdir" = "$ac_pwd"; then
1517   srcdir=.
1518 fi
1519 # Remove unnecessary trailing slashes from srcdir.
1520 # Double slashes in file names in object file debugging info
1521 # mess up M-x gdb in Emacs.
1522 case $srcdir in
1523 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1524 esac
1525 for ac_var in $ac_precious_vars; do
1526   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1527   eval ac_env_${ac_var}_value=\$${ac_var}
1528   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1529   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1530 done
1531
1532 #
1533 # Report the --help message.
1534 #
1535 if test "$ac_init_help" = "long"; then
1536   # Omit some internal or obsolete options to make the list less imposing.
1537   # This message is too long to be a string in the A/UX 3.1 sh.
1538   cat <<_ACEOF
1539 \`configure' configures this package to adapt to many kinds of systems.
1540
1541 Usage: $0 [OPTION]... [VAR=VALUE]...
1542
1543 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1544 VAR=VALUE.  See below for descriptions of some of the useful variables.
1545
1546 Defaults for the options are specified in brackets.
1547
1548 Configuration:
1549   -h, --help              display this help and exit
1550       --help=short        display options specific to this package
1551       --help=recursive    display the short help of all the included packages
1552   -V, --version           display version information and exit
1553   -q, --quiet, --silent   do not print \`checking...' messages
1554       --cache-file=FILE   cache test results in FILE [disabled]
1555   -C, --config-cache      alias for \`--cache-file=config.cache'
1556   -n, --no-create         do not create output files
1557       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1558
1559 Installation directories:
1560   --prefix=PREFIX         install architecture-independent files in PREFIX
1561                           [$ac_default_prefix]
1562   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1563                           [PREFIX]
1564
1565 By default, \`make install' will install all the files in
1566 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1567 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1568 for instance \`--prefix=\$HOME'.
1569
1570 For better control, use the options below.
1571
1572 Fine tuning of the installation directories:
1573   --bindir=DIR            user executables [EPREFIX/bin]
1574   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1575   --libexecdir=DIR        program executables [EPREFIX/libexec]
1576   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1577   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1578   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1579   --libdir=DIR            object code libraries [EPREFIX/lib]
1580   --includedir=DIR        C header files [PREFIX/include]
1581   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1582   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1583   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1584   --infodir=DIR           info documentation [DATAROOTDIR/info]
1585   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1586   --mandir=DIR            man documentation [DATAROOTDIR/man]
1587   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1588   --htmldir=DIR           html documentation [DOCDIR]
1589   --dvidir=DIR            dvi documentation [DOCDIR]
1590   --pdfdir=DIR            pdf documentation [DOCDIR]
1591   --psdir=DIR             ps documentation [DOCDIR]
1592 _ACEOF
1593
1594   cat <<\_ACEOF
1595
1596 Program names:
1597   --program-prefix=PREFIX            prepend PREFIX to installed program names
1598   --program-suffix=SUFFIX            append SUFFIX to installed program names
1599   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1600
1601 X features:
1602   --x-includes=DIR    X include files are in DIR
1603   --x-libraries=DIR   X library files are in DIR
1604
1605 System types:
1606   --build=BUILD     configure for building on BUILD [guessed]
1607   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1608   --target=TARGET   configure for building compilers for TARGET [HOST]
1609 _ACEOF
1610 fi
1611
1612 if test -n "$ac_init_help"; then
1613
1614   cat <<\_ACEOF
1615
1616 Optional Features:
1617   --disable-option-checking  ignore unrecognized --enable/--with options
1618   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1619   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1620   --enable-maintainer-mode  enable make rules and dependencies not useful
1621                           (and sometimes confusing) to the casual installer
1622   --enable-plugins        Enable support for plugins (defaults no)
1623   --disable-largefile     omit support for large files
1624   --disable-dependency-tracking  speeds up one-time build
1625   --enable-dependency-tracking   do not reject slow dependency extractors
1626   --enable-targets=TARGETS
1627                           alternative target configurations
1628   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1629   --disable-gdbcli        disable command-line interface (CLI)
1630   --disable-gdbmi         disable machine-interface (MI)
1631   --enable-tui            enable full-screen terminal user interface (TUI)
1632   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1633   --enable-profiling      enable profiling of GDB
1634   --disable-rpath         do not hardcode runtime library paths
1635   --enable-werror         treat compile warnings as errors
1636   --enable-build-warnings enable build-time compiler warnings if gcc is used
1637   --enable-gdb-build-warnings
1638                           enable GDB specific build-time compiler warnings if
1639                           gcc is used
1640   --enable-sim            link gdb with simulator
1641   --enable-multi-ice      build the multi-ice-gdb-server
1642   --enable-gdbserver      automatically build gdbserver (yes/no/auto, default
1643                           is auto)
1644
1645 Optional Packages:
1646   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1647   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1648   --with-separate-debug-dir=PATH
1649                           look for global separate debug info in this path
1650                           [LIBDIR/debug]
1651   --with-gdb-datadir=PATH look for global separate data files in this path
1652                           [DATADIR/gdb]
1653   --with-relocated-sources=PATH
1654                           automatically relocate this path for source files
1655   --with-libunwind        use libunwind frame unwinding support
1656   --with-curses           use the curses library instead of the termcap
1657                           library
1658   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1659   --with-bugurl=URL       Direct users to URL to report a bug
1660   --with-zlib             include zlib support (auto/yes/no) default=auto
1661   --with-libiconv-prefix=DIR
1662                           search for libiconv in DIR/include and DIR/lib
1663   --with-system-readline  use installed readline library
1664   --with-expat            include expat support (auto/yes/no)
1665   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1666   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1667   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1668   --with-python[=PYTHON]  include python support
1669                           (auto/yes/no/<python-program>)
1670   --without-included-regex
1671                           don't use included regex; this is the default on
1672                           systems with version 2 of the GNU C library (use
1673                           with caution on other system)
1674   --with-sysroot[=DIR]    search for usr/lib et al within DIR
1675   --with-system-gdbinit=PATH
1676                           automatically load a system-wide gdbinit file
1677   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1678   --with-tk               directory containing tk configuration (tkConfig.sh)
1679   --with-x                use the X Window System
1680
1681 Some influential environment variables:
1682   CC          C compiler command
1683   CFLAGS      C compiler flags
1684   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1685               nonstandard directory <lib dir>
1686   LIBS        libraries to pass to the linker, e.g. -l<library>
1687   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1688               you have headers in a nonstandard directory <include dir>
1689   CPP         C preprocessor
1690   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1691               the first program found out of: `bison -y', `byacc', `yacc'.
1692   YFLAGS      The list of arguments that will be passed by default to $YACC.
1693               This script will default YFLAGS to the empty string to avoid a
1694               default value of `-d' given by some make applications.
1695   XMKMF       Path to xmkmf, Makefile generator for X Window System
1696
1697 Use these variables to override the choices made by `configure' or to help
1698 it to find libraries and programs with nonstandard names/locations.
1699
1700 Report bugs to the package provider.
1701 _ACEOF
1702 ac_status=$?
1703 fi
1704
1705 if test "$ac_init_help" = "recursive"; then
1706   # If there are subdirs, report their specific --help.
1707   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1708     test -d "$ac_dir" ||
1709       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710       continue
1711     ac_builddir=.
1712
1713 case "$ac_dir" in
1714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *)
1716   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1717   # A ".." for each directory in $ac_dir_suffix.
1718   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1719   case $ac_top_builddir_sub in
1720   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1722   esac ;;
1723 esac
1724 ac_abs_top_builddir=$ac_pwd
1725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1726 # for backward compatibility:
1727 ac_top_builddir=$ac_top_build_prefix
1728
1729 case $srcdir in
1730   .)  # We are building in place.
1731     ac_srcdir=.
1732     ac_top_srcdir=$ac_top_builddir_sub
1733     ac_abs_top_srcdir=$ac_pwd ;;
1734   [\\/]* | ?:[\\/]* )  # Absolute name.
1735     ac_srcdir=$srcdir$ac_dir_suffix;
1736     ac_top_srcdir=$srcdir
1737     ac_abs_top_srcdir=$srcdir ;;
1738   *) # Relative name.
1739     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1740     ac_top_srcdir=$ac_top_build_prefix$srcdir
1741     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1742 esac
1743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1744
1745     cd "$ac_dir" || { ac_status=$?; continue; }
1746     # Check for guested configure.
1747     if test -f "$ac_srcdir/configure.gnu"; then
1748       echo &&
1749       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1750     elif test -f "$ac_srcdir/configure"; then
1751       echo &&
1752       $SHELL "$ac_srcdir/configure" --help=recursive
1753     else
1754       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1755     fi || ac_status=$?
1756     cd "$ac_pwd" || { ac_status=$?; break; }
1757   done
1758 fi
1759
1760 test -n "$ac_init_help" && exit $ac_status
1761 if $ac_init_version; then
1762   cat <<\_ACEOF
1763 configure
1764 generated by GNU Autoconf 2.64
1765
1766 Copyright (C) 2009 Free Software Foundation, Inc.
1767 This configure script is free software; the Free Software Foundation
1768 gives unlimited permission to copy, distribute and modify it.
1769 _ACEOF
1770   exit
1771 fi
1772
1773 ## ------------------------ ##
1774 ## Autoconf initialization. ##
1775 ## ------------------------ ##
1776
1777 # ac_fn_c_try_compile LINENO
1778 # --------------------------
1779 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_compile ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   rm -f conftest.$ac_objext
1784   if { { ac_try="$ac_compile"
1785 case "(($ac_try" in
1786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787   *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791   (eval "$ac_compile") 2>conftest.err
1792   ac_status=$?
1793   if test -s conftest.err; then
1794     grep -v '^ *+' conftest.err >conftest.er1
1795     cat conftest.er1 >&5
1796     mv -f conftest.er1 conftest.err
1797   fi
1798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799   test $ac_status = 0; } && {
1800          test -z "$ac_c_werror_flag" ||
1801          test ! -s conftest.err
1802        } && test -s conftest.$ac_objext; then :
1803   ac_retval=0
1804 else
1805   $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808         ac_retval=1
1809 fi
1810   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811   return $ac_retval
1812
1813 } # ac_fn_c_try_compile
1814
1815 # ac_fn_c_try_cpp LINENO
1816 # ----------------------
1817 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_cpp ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   if { { ac_try="$ac_cpp conftest.$ac_ext"
1822 case "(($ac_try" in
1823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824   *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1829   ac_status=$?
1830   if test -s conftest.err; then
1831     grep -v '^ *+' conftest.err >conftest.er1
1832     cat conftest.er1 >&5
1833     mv -f conftest.er1 conftest.err
1834   fi
1835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836   test $ac_status = 0; } >/dev/null && {
1837          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1838          test ! -s conftest.err
1839        }; then :
1840   ac_retval=0
1841 else
1842   $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1844
1845     ac_retval=1
1846 fi
1847   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848   return $ac_retval
1849
1850 } # ac_fn_c_try_cpp
1851
1852 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1853 # -------------------------------------------------------
1854 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1855 # the include files in INCLUDES and setting the cache variable VAR
1856 # accordingly.
1857 ac_fn_c_check_header_mongrel ()
1858 {
1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864   $as_echo_n "(cached) " >&6
1865 fi
1866 eval ac_res=\$$3
1867                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869 else
1870   # Is the header compilable?
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1872 $as_echo_n "checking $2 usability... " >&6; }
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h.  */
1875 $4
1876 #include <$2>
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879   ac_header_compiler=yes
1880 else
1881   ac_header_compiler=no
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1885 $as_echo "$ac_header_compiler" >&6; }
1886
1887 # Is the header present?
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1889 $as_echo_n "checking $2 presence... " >&6; }
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h.  */
1892 #include <$2>
1893 _ACEOF
1894 if ac_fn_c_try_cpp "$LINENO"; then :
1895   ac_header_preproc=yes
1896 else
1897   ac_header_preproc=no
1898 fi
1899 rm -f conftest.err conftest.$ac_ext
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1901 $as_echo "$ac_header_preproc" >&6; }
1902
1903 # So?  What about this header?
1904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1905   yes:no: )
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1907 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910     ;;
1911   no:yes:* )
1912     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1913 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1914     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1915 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1916     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1917 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1918     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1919 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1920     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1921 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1922     ;;
1923 esac
1924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927   $as_echo_n "(cached) " >&6
1928 else
1929   eval "$3=\$ac_header_compiler"
1930 fi
1931 eval ac_res=\$$3
1932                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 fi
1935   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936
1937 } # ac_fn_c_check_header_mongrel
1938
1939 # ac_fn_c_try_run LINENO
1940 # ----------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1942 # that executables *can* be run.
1943 ac_fn_c_try_run ()
1944 {
1945   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946   if { { ac_try="$ac_link"
1947 case "(($ac_try" in
1948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949   *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953   (eval "$ac_link") 2>&5
1954   ac_status=$?
1955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1957   { { case "(($ac_try" in
1958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959   *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963   (eval "$ac_try") 2>&5
1964   ac_status=$?
1965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966   test $ac_status = 0; }; }; then :
1967   ac_retval=0
1968 else
1969   $as_echo "$as_me: program exited with status $ac_status" >&5
1970        $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973        ac_retval=$ac_status
1974 fi
1975   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977   return $ac_retval
1978
1979 } # ac_fn_c_try_run
1980
1981 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1982 # -------------------------------------------------------
1983 # Tests whether HEADER exists and can be compiled using the include files in
1984 # INCLUDES, setting the cache variable VAR accordingly.
1985 ac_fn_c_check_header_compile ()
1986 {
1987   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1991   $as_echo_n "(cached) " >&6
1992 else
1993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h.  */
1995 $4
1996 #include <$2>
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999   eval "$3=yes"
2000 else
2001   eval "$3=no"
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 eval ac_res=\$$3
2006                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009
2010 } # ac_fn_c_check_header_compile
2011
2012 # ac_fn_c_try_link LINENO
2013 # -----------------------
2014 # Try to link conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_c_try_link ()
2016 {
2017   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018   rm -f conftest.$ac_objext conftest$ac_exeext
2019   if { { ac_try="$ac_link"
2020 case "(($ac_try" in
2021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022   *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026   (eval "$ac_link") 2>conftest.err
2027   ac_status=$?
2028   if test -s conftest.err; then
2029     grep -v '^ *+' conftest.err >conftest.er1
2030     cat conftest.er1 >&5
2031     mv -f conftest.er1 conftest.err
2032   fi
2033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034   test $ac_status = 0; } && {
2035          test -z "$ac_c_werror_flag" ||
2036          test ! -s conftest.err
2037        } && test -s conftest$ac_exeext && {
2038          test "$cross_compiling" = yes ||
2039          $as_test_x conftest$ac_exeext
2040        }; then :
2041   ac_retval=0
2042 else
2043   $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046         ac_retval=1
2047 fi
2048   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2049   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2050   # interfere with the next link command; also delete a directory that is
2051   # left behind by Apple's compiler.  We do this before executing the actions.
2052   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2053   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054   return $ac_retval
2055
2056 } # ac_fn_c_try_link
2057
2058 # ac_fn_c_check_func LINENO FUNC VAR
2059 # ----------------------------------
2060 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2061 ac_fn_c_check_func ()
2062 {
2063   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067   $as_echo_n "(cached) " >&6
2068 else
2069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h.  */
2071 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2073 #define $2 innocuous_$2
2074
2075 /* System header to define __stub macros and hopefully few prototypes,
2076     which can conflict with char $2 (); below.
2077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2078     <limits.h> exists even on freestanding compilers.  */
2079
2080 #ifdef __STDC__
2081 # include <limits.h>
2082 #else
2083 # include <assert.h>
2084 #endif
2085
2086 #undef $2
2087
2088 /* Override any GCC internal prototype to avoid an error.
2089    Use char because int might match the return type of a GCC
2090    builtin and then its argument prototype would still apply.  */
2091 #ifdef __cplusplus
2092 extern "C"
2093 #endif
2094 char $2 ();
2095 /* The GNU C library defines this for functions which it implements
2096     to always fail with ENOSYS.  Some functions are actually named
2097     something starting with __ and the normal name is an alias.  */
2098 #if defined __stub_$2 || defined __stub___$2
2099 choke me
2100 #endif
2101
2102 int
2103 main ()
2104 {
2105 return $2 ();
2106   ;
2107   return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_link "$LINENO"; then :
2111   eval "$3=yes"
2112 else
2113   eval "$3=no"
2114 fi
2115 rm -f core conftest.err conftest.$ac_objext \
2116     conftest$ac_exeext conftest.$ac_ext
2117 fi
2118 eval ac_res=\$$3
2119                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2122
2123 } # ac_fn_c_check_func
2124
2125 # ac_fn_c_check_decl LINENO SYMBOL VAR
2126 # ------------------------------------
2127 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2128 ac_fn_c_check_decl ()
2129 {
2130   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131   as_decl_name=`echo $2|sed 's/ *(.*//'`
2132   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2134 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2135 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2136   $as_echo_n "(cached) " >&6
2137 else
2138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h.  */
2140 $4
2141 int
2142 main ()
2143 {
2144 #ifndef $as_decl_name
2145 #ifdef __cplusplus
2146   (void) $as_decl_use;
2147 #else
2148   (void) $as_decl_name;
2149 #endif
2150 #endif
2151
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157   eval "$3=yes"
2158 else
2159   eval "$3=no"
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 fi
2163 eval ac_res=\$$3
2164                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2167
2168 } # ac_fn_c_check_decl
2169
2170 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2171 # --------------------------------------------
2172 # Tries to find the compile-time value of EXPR in a program that includes
2173 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2174 # computed
2175 ac_fn_c_compute_int ()
2176 {
2177   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178   if test "$cross_compiling" = yes; then
2179     # Depending upon the size, compute the lo and hi bounds.
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h.  */
2182 $4
2183 int
2184 main ()
2185 {
2186 static int test_array [1 - 2 * !(($2) >= 0)];
2187 test_array [0] = 0
2188
2189   ;
2190   return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194   ac_lo=0 ac_mid=0
2195   while :; do
2196     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 $4
2199 int
2200 main ()
2201 {
2202 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2203 test_array [0] = 0
2204
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 if ac_fn_c_try_compile "$LINENO"; then :
2210   ac_hi=$ac_mid; break
2211 else
2212   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2213                         if test $ac_lo -le $ac_mid; then
2214                           ac_lo= ac_hi=
2215                           break
2216                         fi
2217                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220   done
2221 else
2222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h.  */
2224 $4
2225 int
2226 main ()
2227 {
2228 static int test_array [1 - 2 * !(($2) < 0)];
2229 test_array [0] = 0
2230
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236   ac_hi=-1 ac_mid=-1
2237   while :; do
2238     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h.  */
2240 $4
2241 int
2242 main ()
2243 {
2244 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2245 test_array [0] = 0
2246
2247   ;
2248   return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252   ac_lo=$ac_mid; break
2253 else
2254   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2255                         if test $ac_mid -le $ac_hi; then
2256                           ac_lo= ac_hi=
2257                           break
2258                         fi
2259                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2260 fi
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262   done
2263 else
2264   ac_lo= ac_hi=
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 # Binary search between lo and hi bounds.
2270 while test "x$ac_lo" != "x$ac_hi"; do
2271   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h.  */
2274 $4
2275 int
2276 main ()
2277 {
2278 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2279 test_array [0] = 0
2280
2281   ;
2282   return 0;
2283 }
2284 _ACEOF
2285 if ac_fn_c_try_compile "$LINENO"; then :
2286   ac_hi=$ac_mid
2287 else
2288   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2289 fi
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 done
2292 case $ac_lo in #((
2293 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2294 '') ac_retval=1 ;;
2295 esac
2296   else
2297     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h.  */
2299 $4
2300 static long int longval () { return $2; }
2301 static unsigned long int ulongval () { return $2; }
2302 #include <stdio.h>
2303 #include <stdlib.h>
2304 int
2305 main ()
2306 {
2307
2308   FILE *f = fopen ("conftest.val", "w");
2309   if (! f)
2310     return 1;
2311   if (($2) < 0)
2312     {
2313       long int i = longval ();
2314       if (i != ($2))
2315         return 1;
2316       fprintf (f, "%ld", i);
2317     }
2318   else
2319     {
2320       unsigned long int i = ulongval ();
2321       if (i != ($2))
2322         return 1;
2323       fprintf (f, "%lu", i);
2324     }
2325   /* Do not output a trailing newline, as this causes \r\n confusion
2326      on some platforms.  */
2327   return ferror (f) || fclose (f) != 0;
2328
2329   ;
2330   return 0;
2331 }
2332 _ACEOF
2333 if ac_fn_c_try_run "$LINENO"; then :
2334   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2335 else
2336   ac_retval=1
2337 fi
2338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2339   conftest.$ac_objext conftest.beam conftest.$ac_ext
2340 rm -f conftest.val
2341
2342   fi
2343   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2344   return $ac_retval
2345
2346 } # ac_fn_c_compute_int
2347
2348 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2349 # ----------------------------------------------------
2350 # Tries to find if the field MEMBER exists in type AGGR, after including
2351 # INCLUDES, setting cache variable VAR accordingly.
2352 ac_fn_c_check_member ()
2353 {
2354   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2356 $as_echo_n "checking for $2.$3... " >&6; }
2357 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2358   $as_echo_n "(cached) " >&6
2359 else
2360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h.  */
2362 $5
2363 int
2364 main ()
2365 {
2366 static $2 ac_aggr;
2367 if (ac_aggr.$3)
2368 return 0;
2369   ;
2370   return 0;
2371 }
2372 _ACEOF
2373 if ac_fn_c_try_compile "$LINENO"; then :
2374   eval "$4=yes"
2375 else
2376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h.  */
2378 $5
2379 int
2380 main ()
2381 {
2382 static $2 ac_aggr;
2383 if (sizeof ac_aggr.$3)
2384 return 0;
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 if ac_fn_c_try_compile "$LINENO"; then :
2390   eval "$4=yes"
2391 else
2392   eval "$4=no"
2393 fi
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 fi
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 fi
2398 eval ac_res=\$$4
2399                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402
2403 } # ac_fn_c_check_member
2404
2405 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2406 # -------------------------------------------
2407 # Tests whether TYPE exists after having included INCLUDES, setting cache
2408 # variable VAR accordingly.
2409 ac_fn_c_check_type ()
2410 {
2411   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413 $as_echo_n "checking for $2... " >&6; }
2414 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2415   $as_echo_n "(cached) " >&6
2416 else
2417   eval "$3=no"
2418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h.  */
2420 $4
2421 int
2422 main ()
2423 {
2424 if (sizeof ($2))
2425          return 0;
2426   ;
2427   return 0;
2428 }
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h.  */
2433 $4
2434 int
2435 main ()
2436 {
2437 if (sizeof (($2)))
2438             return 0;
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"; then :
2444
2445 else
2446   eval "$3=yes"
2447 fi
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 fi
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 fi
2452 eval ac_res=\$$3
2453                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2456
2457 } # ac_fn_c_check_type
2458 cat >config.log <<_ACEOF
2459 This file contains any messages produced by compilers while
2460 running configure, to aid debugging if configure makes a mistake.
2461
2462 It was created by $as_me, which was
2463 generated by GNU Autoconf 2.64.  Invocation command line was
2464
2465   $ $0 $@
2466
2467 _ACEOF
2468 exec 5>>config.log
2469 {
2470 cat <<_ASUNAME
2471 ## --------- ##
2472 ## Platform. ##
2473 ## --------- ##
2474
2475 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2476 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2477 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2478 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2479 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2480
2481 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2482 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2483
2484 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2485 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2486 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2487 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2488 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2489 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2490 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2491
2492 _ASUNAME
2493
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499     $as_echo "PATH: $as_dir"
2500   done
2501 IFS=$as_save_IFS
2502
2503 } >&5
2504
2505 cat >&5 <<_ACEOF
2506
2507
2508 ## ----------- ##
2509 ## Core tests. ##
2510 ## ----------- ##
2511
2512 _ACEOF
2513
2514
2515 # Keep a trace of the command line.
2516 # Strip out --no-create and --no-recursion so they do not pile up.
2517 # Strip out --silent because we don't want to record it for future runs.
2518 # Also quote any args containing shell meta-characters.
2519 # Make two passes to allow for proper duplicate-argument suppression.
2520 ac_configure_args=
2521 ac_configure_args0=
2522 ac_configure_args1=
2523 ac_must_keep_next=false
2524 for ac_pass in 1 2
2525 do
2526   for ac_arg
2527   do
2528     case $ac_arg in
2529     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2530     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2531     | -silent | --silent | --silen | --sile | --sil)
2532       continue ;;
2533     *\'*)
2534       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2535     esac
2536     case $ac_pass in
2537     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2538     2)
2539       as_fn_append ac_configure_args1 " '$ac_arg'"
2540       if test $ac_must_keep_next = true; then
2541         ac_must_keep_next=false # Got value, back to normal.
2542       else
2543         case $ac_arg in
2544           *=* | --config-cache | -C | -disable-* | --disable-* \
2545           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2546           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2547           | -with-* | --with-* | -without-* | --without-* | --x)
2548             case "$ac_configure_args0 " in
2549               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2550             esac
2551             ;;
2552           -* ) ac_must_keep_next=true ;;
2553         esac
2554       fi
2555       as_fn_append ac_configure_args " '$ac_arg'"
2556       ;;
2557     esac
2558   done
2559 done
2560 { ac_configure_args0=; unset ac_configure_args0;}
2561 { ac_configure_args1=; unset ac_configure_args1;}
2562
2563 # When interrupted or exit'd, cleanup temporary files, and complete
2564 # config.log.  We remove comments because anyway the quotes in there
2565 # would cause problems or look ugly.
2566 # WARNING: Use '\'' to represent an apostrophe within the trap.
2567 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2568 trap 'exit_status=$?
2569   # Save into config.log some information that might help in debugging.
2570   {
2571     echo
2572
2573     cat <<\_ASBOX
2574 ## ---------------- ##
2575 ## Cache variables. ##
2576 ## ---------------- ##
2577 _ASBOX
2578     echo
2579     # The following way of writing the cache mishandles newlines in values,
2580 (
2581   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2582     eval ac_val=\$$ac_var
2583     case $ac_val in #(
2584     *${as_nl}*)
2585       case $ac_var in #(
2586       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2587 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2588       esac
2589       case $ac_var in #(
2590       _ | IFS | as_nl) ;; #(
2591       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2592       *) { eval $ac_var=; unset $ac_var;} ;;
2593       esac ;;
2594     esac
2595   done
2596   (set) 2>&1 |
2597     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2598     *${as_nl}ac_space=\ *)
2599       sed -n \
2600         "s/'\''/'\''\\\\'\'''\''/g;
2601           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2602       ;; #(
2603     *)
2604       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2605       ;;
2606     esac |
2607     sort
2608 )
2609     echo
2610
2611     cat <<\_ASBOX
2612 ## ----------------- ##
2613 ## Output variables. ##
2614 ## ----------------- ##
2615 _ASBOX
2616     echo
2617     for ac_var in $ac_subst_vars
2618     do
2619       eval ac_val=\$$ac_var
2620       case $ac_val in
2621       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2622       esac
2623       $as_echo "$ac_var='\''$ac_val'\''"
2624     done | sort
2625     echo
2626
2627     if test -n "$ac_subst_files"; then
2628       cat <<\_ASBOX
2629 ## ------------------- ##
2630 ## File substitutions. ##
2631 ## ------------------- ##
2632 _ASBOX
2633       echo
2634       for ac_var in $ac_subst_files
2635       do
2636         eval ac_val=\$$ac_var
2637         case $ac_val in
2638         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2639         esac
2640         $as_echo "$ac_var='\''$ac_val'\''"
2641       done | sort
2642       echo
2643     fi
2644
2645     if test -s confdefs.h; then
2646       cat <<\_ASBOX
2647 ## ----------- ##
2648 ## confdefs.h. ##
2649 ## ----------- ##
2650 _ASBOX
2651       echo
2652       cat confdefs.h
2653       echo
2654     fi
2655     test "$ac_signal" != 0 &&
2656       $as_echo "$as_me: caught signal $ac_signal"
2657     $as_echo "$as_me: exit $exit_status"
2658   } >&5
2659   rm -f core *.core core.conftest.* &&
2660     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2661     exit $exit_status
2662 ' 0
2663 for ac_signal in 1 2 13 15; do
2664   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2665 done
2666 ac_signal=0
2667
2668 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2669 rm -f -r conftest* confdefs.h
2670
2671 $as_echo "/* confdefs.h */" > confdefs.h
2672
2673 # Predefined preprocessor variables.
2674
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_NAME "$PACKAGE_NAME"
2677 _ACEOF
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2681 _ACEOF
2682
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2685 _ACEOF
2686
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_STRING "$PACKAGE_STRING"
2689 _ACEOF
2690
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2693 _ACEOF
2694
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_URL "$PACKAGE_URL"
2697 _ACEOF
2698
2699
2700 # Let the site file select an alternate cache file if it wants to.
2701 # Prefer an explicitly selected file to automatically selected ones.
2702 ac_site_file1=NONE
2703 ac_site_file2=NONE
2704 if test -n "$CONFIG_SITE"; then
2705   ac_site_file1=$CONFIG_SITE
2706 elif test "x$prefix" != xNONE; then
2707   ac_site_file1=$prefix/share/config.site
2708   ac_site_file2=$prefix/etc/config.site
2709 else
2710   ac_site_file1=$ac_default_prefix/share/config.site
2711   ac_site_file2=$ac_default_prefix/etc/config.site
2712 fi
2713 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2714 do
2715   test "x$ac_site_file" = xNONE && continue
2716   if test -r "$ac_site_file"; then
2717     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2718 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2719     sed 's/^/| /' "$ac_site_file" >&5
2720     . "$ac_site_file"
2721   fi
2722 done
2723
2724 if test -r "$cache_file"; then
2725   # Some versions of bash will fail to source /dev/null (special
2726   # files actually), so we avoid doing that.
2727   if test -f "$cache_file"; then
2728     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2729 $as_echo "$as_me: loading cache $cache_file" >&6;}
2730     case $cache_file in
2731       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2732       *)                      . "./$cache_file";;
2733     esac
2734   fi
2735 else
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2737 $as_echo "$as_me: creating cache $cache_file" >&6;}
2738   >$cache_file
2739 fi
2740
2741 gl_header_list="$gl_header_list sys/mman.h"
2742 gl_func_list="$gl_func_list mprotect"
2743 gl_func_list="$gl_func_list memchr"
2744 gl_header_list="$gl_header_list stddef.h"
2745 gl_header_list="$gl_header_list stdint.h"
2746 gl_header_list="$gl_header_list wchar.h"
2747 gl_header_list="$gl_header_list string.h"
2748 # Check that the precious variables saved in the cache have kept the same
2749 # value.
2750 ac_cache_corrupted=false
2751 for ac_var in $ac_precious_vars; do
2752   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2753   eval ac_new_set=\$ac_env_${ac_var}_set
2754   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2755   eval ac_new_val=\$ac_env_${ac_var}_value
2756   case $ac_old_set,$ac_new_set in
2757     set,)
2758       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2759 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2760       ac_cache_corrupted=: ;;
2761     ,set)
2762       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2763 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2764       ac_cache_corrupted=: ;;
2765     ,);;
2766     *)
2767       if test "x$ac_old_val" != "x$ac_new_val"; then
2768         # differences in whitespace do not lead to failure.
2769         ac_old_val_w=`echo x $ac_old_val`
2770         ac_new_val_w=`echo x $ac_new_val`
2771         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2772           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2773 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2774           ac_cache_corrupted=:
2775         else
2776           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2777 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2778           eval $ac_var=\$ac_old_val
2779         fi
2780         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2781 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2782         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2783 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2784       fi;;
2785   esac
2786   # Pass precious variables to config.status.
2787   if test "$ac_new_set" = set; then
2788     case $ac_new_val in
2789     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2790     *) ac_arg=$ac_var=$ac_new_val ;;
2791     esac
2792     case " $ac_configure_args " in
2793       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2794       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2795     esac
2796   fi
2797 done
2798 if $ac_cache_corrupted; then
2799   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2802 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2803   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2804 fi
2805 ## -------------------- ##
2806 ## Main body of script. ##
2807 ## -------------------- ##
2808
2809 ac_ext=c
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814
2815
2816
2817
2818
2819 ac_config_headers="$ac_config_headers config.h:config.in"
2820
2821
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2823 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2824     # Check whether --enable-maintainer-mode was given.
2825 if test "${enable_maintainer_mode+set}" = set; then :
2826   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2827 else
2828   USE_MAINTAINER_MODE=no
2829 fi
2830
2831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2832 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2833    if test $USE_MAINTAINER_MODE = yes; then
2834   MAINTAINER_MODE_TRUE=
2835   MAINTAINER_MODE_FALSE='#'
2836 else
2837   MAINTAINER_MODE_TRUE='#'
2838   MAINTAINER_MODE_FALSE=
2839 fi
2840
2841   MAINT=$MAINTAINER_MODE_TRUE
2842
2843
2844
2845 ac_ext=c
2846 ac_cpp='$CPP $CPPFLAGS'
2847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 if test -n "$ac_tool_prefix"; then
2851   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2852 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if test "${ac_cv_prog_CC+set}" = set; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   if test -n "$CC"; then
2859   ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864   IFS=$as_save_IFS
2865   test -z "$as_dir" && as_dir=.
2866     for ac_exec_ext in '' $ac_executable_extensions; do
2867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870     break 2
2871   fi
2872 done
2873   done
2874 IFS=$as_save_IFS
2875
2876 fi
2877 fi
2878 CC=$ac_cv_prog_CC
2879 if test -n "$CC"; then
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881 $as_echo "$CC" >&6; }
2882 else
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2885 fi
2886
2887
2888 fi
2889 if test -z "$ac_cv_prog_CC"; then
2890   ac_ct_CC=$CC
2891   # Extract the first word of "gcc", so it can be a program name with args.
2892 set dummy gcc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2896   $as_echo_n "(cached) " >&6
2897 else
2898   if test -n "$ac_ct_CC"; then
2899   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904   IFS=$as_save_IFS
2905   test -z "$as_dir" && as_dir=.
2906     for ac_exec_ext in '' $ac_executable_extensions; do
2907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908     ac_cv_prog_ac_ct_CC="gcc"
2909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910     break 2
2911   fi
2912 done
2913   done
2914 IFS=$as_save_IFS
2915
2916 fi
2917 fi
2918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919 if test -n "$ac_ct_CC"; then
2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2921 $as_echo "$ac_ct_CC" >&6; }
2922 else
2923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2925 fi
2926
2927   if test "x$ac_ct_CC" = x; then
2928     CC=""
2929   else
2930     case $cross_compiling:$ac_tool_warned in
2931 yes:)
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934 ac_tool_warned=yes ;;
2935 esac
2936     CC=$ac_ct_CC
2937   fi
2938 else
2939   CC="$ac_cv_prog_CC"
2940 fi
2941
2942 if test -z "$CC"; then
2943           if test -n "$ac_tool_prefix"; then
2944     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}cc; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if test "${ac_cv_prog_CC+set}" = set; then :
2949   $as_echo_n "(cached) " >&6
2950 else
2951   if test -n "$CC"; then
2952   ac_cv_prog_CC="$CC" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957   IFS=$as_save_IFS
2958   test -z "$as_dir" && as_dir=.
2959     for ac_exec_ext in '' $ac_executable_extensions; do
2960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961     ac_cv_prog_CC="${ac_tool_prefix}cc"
2962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963     break 2
2964   fi
2965 done
2966   done
2967 IFS=$as_save_IFS
2968
2969 fi
2970 fi
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2975 else
2976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2978 fi
2979
2980
2981   fi
2982 fi
2983 if test -z "$CC"; then
2984   # Extract the first word of "cc", so it can be a program name with args.
2985 set dummy cc; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if test "${ac_cv_prog_CC+set}" = set; then :
2989   $as_echo_n "(cached) " >&6
2990 else
2991   if test -n "$CC"; then
2992   ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994   ac_prog_rejected=no
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000     for ac_exec_ext in '' $ac_executable_extensions; do
3001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3003        ac_prog_rejected=yes
3004        continue
3005      fi
3006     ac_cv_prog_CC="cc"
3007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008     break 2
3009   fi
3010 done
3011   done
3012 IFS=$as_save_IFS
3013
3014 if test $ac_prog_rejected = yes; then
3015   # We found a bogon in the path, so make sure we never use it.
3016   set dummy $ac_cv_prog_CC
3017   shift
3018   if test $# != 0; then
3019     # We chose a different compiler from the bogus one.
3020     # However, it has the same basename, so the bogon will be chosen
3021     # first if we set CC to just the basename; use the full file name.
3022     shift
3023     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3024   fi
3025 fi
3026 fi
3027 fi
3028 CC=$ac_cv_prog_CC
3029 if test -n "$CC"; then
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3032 else
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037
3038 fi
3039 if test -z "$CC"; then
3040   if test -n "$ac_tool_prefix"; then
3041   for ac_prog in cl.exe
3042   do
3043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if test "${ac_cv_prog_CC+set}" = set; then :
3048   $as_echo_n "(cached) " >&6
3049 else
3050   if test -n "$CC"; then
3051   ac_cv_prog_CC="$CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058     for ac_exec_ext in '' $ac_executable_extensions; do
3059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062     break 2
3063   fi
3064 done
3065   done
3066 IFS=$as_save_IFS
3067
3068 fi
3069 fi
3070 CC=$ac_cv_prog_CC
3071 if test -n "$CC"; then
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3073 $as_echo "$CC" >&6; }
3074 else
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3077 fi
3078
3079
3080     test -n "$CC" && break
3081   done
3082 fi
3083 if test -z "$CC"; then
3084   ac_ct_CC=$CC
3085   for ac_prog in cl.exe
3086 do
3087   # Extract the first word of "$ac_prog", so it can be a program name with args.
3088 set dummy $ac_prog; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3092   $as_echo_n "(cached) " >&6
3093 else
3094   if test -n "$ac_ct_CC"; then
3095   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100   IFS=$as_save_IFS
3101   test -z "$as_dir" && as_dir=.
3102     for ac_exec_ext in '' $ac_executable_extensions; do
3103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104     ac_cv_prog_ac_ct_CC="$ac_prog"
3105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106     break 2
3107   fi
3108 done
3109   done
3110 IFS=$as_save_IFS
3111
3112 fi
3113 fi
3114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115 if test -n "$ac_ct_CC"; then
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3117 $as_echo "$ac_ct_CC" >&6; }
3118 else
3119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3121 fi
3122
3123
3124   test -n "$ac_ct_CC" && break
3125 done
3126
3127   if test "x$ac_ct_CC" = x; then
3128     CC=""
3129   else
3130     case $cross_compiling:$ac_tool_warned in
3131 yes:)
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3134 ac_tool_warned=yes ;;
3135 esac
3136     CC=$ac_ct_CC
3137   fi
3138 fi
3139
3140 fi
3141
3142
3143 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error "no acceptable C compiler found in \$PATH
3146 See \`config.log' for more details." "$LINENO" 5; }
3147
3148 # Provide some information about the compiler.
3149 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3150 set X $ac_compile
3151 ac_compiler=$2
3152 for ac_option in --version -v -V -qversion; do
3153   { { ac_try="$ac_compiler $ac_option >&5"
3154 case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3161   ac_status=$?
3162   if test -s conftest.err; then
3163     sed '10a\
3164 ... rest of stderr output deleted ...
3165          10q' conftest.err >conftest.er1
3166     cat conftest.er1 >&5
3167     rm -f conftest.er1 conftest.err
3168   fi
3169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170   test $ac_status = 0; }
3171 done
3172
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h.  */
3175
3176 int
3177 main ()
3178 {
3179
3180   ;
3181   return 0;
3182 }
3183 _ACEOF
3184 ac_clean_files_save=$ac_clean_files
3185 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3186 # Try to create an executable without -o first, disregard a.out.
3187 # It will help us diagnose broken compilers, and finding out an intuition
3188 # of exeext.
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3190 $as_echo_n "checking for C compiler default output file name... " >&6; }
3191 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3192
3193 # The possible output files:
3194 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3195
3196 ac_rmfiles=
3197 for ac_file in $ac_files
3198 do
3199   case $ac_file in
3200     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3201     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3202   esac
3203 done
3204 rm -f $ac_rmfiles
3205
3206 if { { ac_try="$ac_link_default"
3207 case "(($ac_try" in
3208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209   *) ac_try_echo=$ac_try;;
3210 esac
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213   (eval "$ac_link_default") 2>&5
3214   ac_status=$?
3215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216   test $ac_status = 0; }; then :
3217   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3218 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3219 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3220 # so that the user can short-circuit this test for compilers unknown to
3221 # Autoconf.
3222 for ac_file in $ac_files ''
3223 do
3224   test -f "$ac_file" || continue
3225   case $ac_file in
3226     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3227         ;;
3228     [ab].out )
3229         # We found the default executable, but exeext='' is most
3230         # certainly right.
3231         break;;
3232     *.* )
3233         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3234         then :; else
3235            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236         fi
3237         # We set ac_cv_exeext here because the later test for it is not
3238         # safe: cross compilers may not add the suffix if given an `-o'
3239         # argument, so we may need to know it at that point already.
3240         # Even if this section looks crufty: it has the advantage of
3241         # actually working.
3242         break;;
3243     * )
3244         break;;
3245   esac
3246 done
3247 test "$ac_cv_exeext" = no && ac_cv_exeext=
3248
3249 else
3250   ac_file=''
3251 fi
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3253 $as_echo "$ac_file" >&6; }
3254 if test -z "$ac_file"; then :
3255   $as_echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 { as_fn_set_status 77
3261 as_fn_error "C compiler cannot create executables
3262 See \`config.log' for more details." "$LINENO" 5; }; }
3263 fi
3264 ac_exeext=$ac_cv_exeext
3265
3266 # Check that the compiler produces executables we can run.  If not, either
3267 # the compiler is broken, or we cross compile.
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3269 $as_echo_n "checking whether the C compiler works... " >&6; }
3270 # If not cross compiling, check that we can run a simple program.
3271 if test "$cross_compiling" != yes; then
3272   if { ac_try='./$ac_file'
3273   { { case "(($ac_try" in
3274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275   *) ac_try_echo=$ac_try;;
3276 esac
3277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278 $as_echo "$ac_try_echo"; } >&5
3279   (eval "$ac_try") 2>&5
3280   ac_status=$?
3281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282   test $ac_status = 0; }; }; then
3283     cross_compiling=no
3284   else
3285     if test "$cross_compiling" = maybe; then
3286         cross_compiling=yes
3287     else
3288         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error "cannot run C compiled programs.
3291 If you meant to cross compile, use \`--host'.
3292 See \`config.log' for more details." "$LINENO" 5; }
3293     fi
3294   fi
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3298
3299 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3300 ac_clean_files=$ac_clean_files_save
3301 # Check that the compiler produces executables we can run.  If not, either
3302 # the compiler is broken, or we cross compile.
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3304 $as_echo_n "checking whether we are cross compiling... " >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3306 $as_echo "$cross_compiling" >&6; }
3307
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3309 $as_echo_n "checking for suffix of executables... " >&6; }
3310 if { { ac_try="$ac_link"
3311 case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 $as_echo "$ac_try_echo"; } >&5
3317   (eval "$ac_link") 2>&5
3318   ac_status=$?
3319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320   test $ac_status = 0; }; then :
3321   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3322 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3323 # work properly (i.e., refer to `conftest.exe'), while it won't with
3324 # `rm'.
3325 for ac_file in conftest.exe conftest conftest.*; do
3326   test -f "$ac_file" || continue
3327   case $ac_file in
3328     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3329     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330           break;;
3331     * ) break;;
3332   esac
3333 done
3334 else
3335   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error "cannot compute suffix of executables: cannot compile and link
3338 See \`config.log' for more details." "$LINENO" 5; }
3339 fi
3340 rm -f conftest$ac_cv_exeext
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3342 $as_echo "$ac_cv_exeext" >&6; }
3343
3344 rm -f conftest.$ac_ext
3345 EXEEXT=$ac_cv_exeext
3346 ac_exeext=$EXEEXT
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3348 $as_echo_n "checking for suffix of object files... " >&6; }
3349 if test "${ac_cv_objext+set}" = set; then :
3350   $as_echo_n "(cached) " >&6
3351 else
3352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h.  */
3354
3355 int
3356 main ()
3357 {
3358
3359   ;
3360   return 0;
3361 }
3362 _ACEOF
3363 rm -f conftest.o conftest.obj
3364 if { { ac_try="$ac_compile"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371   (eval "$ac_compile") 2>&5
3372   ac_status=$?
3373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374   test $ac_status = 0; }; then :
3375   for ac_file in conftest.o conftest.obj conftest.*; do
3376   test -f "$ac_file" || continue;
3377   case $ac_file in
3378     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3379     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3380        break;;
3381   esac
3382 done
3383 else
3384   $as_echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error "cannot compute suffix of object files: cannot compile
3390 See \`config.log' for more details." "$LINENO" 5; }
3391 fi
3392 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3395 $as_echo "$ac_cv_objext" >&6; }
3396 OBJEXT=$ac_cv_objext
3397 ac_objext=$OBJEXT
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3399 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3400 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3401   $as_echo_n "(cached) " >&6
3402 else
3403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h.  */
3405
3406 int
3407 main ()
3408 {
3409 #ifndef __GNUC__
3410        choke me
3411 #endif
3412
3413   ;
3414   return 0;
3415 }
3416 _ACEOF
3417 if ac_fn_c_try_compile "$LINENO"; then :
3418   ac_compiler_gnu=yes
3419 else
3420   ac_compiler_gnu=no
3421 fi
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3424
3425 fi
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3427 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3428 if test $ac_compiler_gnu = yes; then
3429   GCC=yes
3430 else
3431   GCC=
3432 fi
3433 ac_test_CFLAGS=${CFLAGS+set}
3434 ac_save_CFLAGS=$CFLAGS
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3436 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3437 if test "${ac_cv_prog_cc_g+set}" = set; then :
3438   $as_echo_n "(cached) " >&6
3439 else
3440   ac_save_c_werror_flag=$ac_c_werror_flag
3441    ac_c_werror_flag=yes
3442    ac_cv_prog_cc_g=no
3443    CFLAGS="-g"
3444    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h.  */
3446
3447 int
3448 main ()
3449 {
3450
3451   ;
3452   return 0;
3453 }
3454 _ACEOF
3455 if ac_fn_c_try_compile "$LINENO"; then :
3456   ac_cv_prog_cc_g=yes
3457 else
3458   CFLAGS=""
3459       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h.  */
3461
3462 int
3463 main ()
3464 {
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471
3472 else
3473   ac_c_werror_flag=$ac_save_c_werror_flag
3474          CFLAGS="-g"
3475          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h.  */
3477
3478 int
3479 main ()
3480 {
3481
3482   ;
3483   return 0;
3484 }
3485 _ACEOF
3486 if ac_fn_c_try_compile "$LINENO"; then :
3487   ac_cv_prog_cc_g=yes
3488 fi
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 fi
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 fi
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494    ac_c_werror_flag=$ac_save_c_werror_flag
3495 fi
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3497 $as_echo "$ac_cv_prog_cc_g" >&6; }
3498 if test "$ac_test_CFLAGS" = set; then
3499   CFLAGS=$ac_save_CFLAGS
3500 elif test $ac_cv_prog_cc_g = yes; then
3501   if test "$GCC" = yes; then
3502     CFLAGS="-g -O2"
3503   else
3504     CFLAGS="-g"
3505   fi
3506 else
3507   if test "$GCC" = yes; then
3508     CFLAGS="-O2"
3509   else
3510     CFLAGS=
3511   fi
3512 fi
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3514 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3515 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3516   $as_echo_n "(cached) " >&6
3517 else
3518   ac_cv_prog_cc_c89=no
3519 ac_save_CC=$CC
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h.  */
3522 #include <stdarg.h>
3523 #include <stdio.h>
3524 #include <sys/types.h>
3525 #include <sys/stat.h>
3526 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3527 struct buf { int x; };
3528 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3529 static char *e (p, i)
3530      char **p;
3531      int i;
3532 {
3533   return p[i];
3534 }
3535 static char *f (char * (*g) (char **, int), char **p, ...)
3536 {
3537   char *s;
3538   va_list v;
3539   va_start (v,p);
3540   s = g (p, va_arg (v,int));
3541   va_end (v);
3542   return s;
3543 }
3544
3545 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3546    function prototypes and stuff, but not '\xHH' hex character constants.
3547    These don't provoke an error unfortunately, instead are silently treated
3548    as 'x'.  The following induces an error, until -std is added to get
3549    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3550    array size at least.  It's necessary to write '\x00'==0 to get something
3551    that's true only with -std.  */
3552 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3553
3554 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3555    inside strings and character constants.  */
3556 #define FOO(x) 'x'
3557 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3558
3559 int test (int i, double x);
3560 struct s1 {int (*f) (int a);};
3561 struct s2 {int (*f) (double a);};
3562 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3563 int argc;
3564 char **argv;
3565 int
3566 main ()
3567 {
3568 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3574         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3575 do
3576   CC="$ac_save_CC $ac_arg"
3577   if ac_fn_c_try_compile "$LINENO"; then :
3578   ac_cv_prog_cc_c89=$ac_arg
3579 fi
3580 rm -f core conftest.err conftest.$ac_objext
3581   test "x$ac_cv_prog_cc_c89" != "xno" && break
3582 done
3583 rm -f conftest.$ac_ext
3584 CC=$ac_save_CC
3585
3586 fi
3587 # AC_CACHE_VAL
3588 case "x$ac_cv_prog_cc_c89" in
3589   x)
3590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3591 $as_echo "none needed" >&6; } ;;
3592   xno)
3593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3594 $as_echo "unsupported" >&6; } ;;
3595   *)
3596     CC="$CC $ac_cv_prog_cc_c89"
3597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3598 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3599 esac
3600 if test "x$ac_cv_prog_cc_c89" != xno; then :
3601
3602 fi
3603
3604 ac_ext=c
3605 ac_cpp='$CPP $CPPFLAGS'
3606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3609
3610 ac_aux_dir=
3611 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3612   for ac_t in install-sh install.sh shtool; do
3613     if test -f "$ac_dir/$ac_t"; then
3614       ac_aux_dir=$ac_dir
3615       ac_install_sh="$ac_aux_dir/$ac_t -c"
3616       break 2
3617     fi
3618   done
3619 done
3620 if test -z "$ac_aux_dir"; then
3621   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3622 fi
3623
3624 # These three variables are undocumented and unsupported,
3625 # and are intended to be withdrawn in a future Autoconf release.
3626 # They can cause serious problems if a builder's source tree is in a directory
3627 # whose full name contains unusual characters.
3628 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3629 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3630 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3631
3632
3633 # Make sure we can run config.sub.
3634 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3635   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3636
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3638 $as_echo_n "checking build system type... " >&6; }
3639 if test "${ac_cv_build+set}" = set; then :
3640   $as_echo_n "(cached) " >&6
3641 else
3642   ac_build_alias=$build_alias
3643 test "x$ac_build_alias" = x &&
3644   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3645 test "x$ac_build_alias" = x &&
3646   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3647 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3648   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3649
3650 fi
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3652 $as_echo "$ac_cv_build" >&6; }
3653 case $ac_cv_build in
3654 *-*-*) ;;
3655 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3656 esac
3657 build=$ac_cv_build
3658 ac_save_IFS=$IFS; IFS='-'
3659 set x $ac_cv_build
3660 shift
3661 build_cpu=$1
3662 build_vendor=$2
3663 shift; shift
3664 # Remember, the first character of IFS is used to create $*,
3665 # except with old shells:
3666 build_os=$*
3667 IFS=$ac_save_IFS
3668 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3669
3670
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3672 $as_echo_n "checking host system type... " >&6; }
3673 if test "${ac_cv_host+set}" = set; then :
3674   $as_echo_n "(cached) " >&6
3675 else
3676   if test "x$host_alias" = x; then
3677   ac_cv_host=$ac_cv_build
3678 else
3679   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3680     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3681 fi
3682
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3685 $as_echo "$ac_cv_host" >&6; }
3686 case $ac_cv_host in
3687 *-*-*) ;;
3688 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3689 esac
3690 host=$ac_cv_host
3691 ac_save_IFS=$IFS; IFS='-'
3692 set x $ac_cv_host
3693 shift
3694 host_cpu=$1
3695 host_vendor=$2
3696 shift; shift
3697 # Remember, the first character of IFS is used to create $*,
3698 # except with old shells:
3699 host_os=$*
3700 IFS=$ac_save_IFS
3701 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3702
3703
3704
3705 ac_ext=c
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3711 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3712 # On Suns, sometimes $CPP names a directory.
3713 if test -n "$CPP" && test -d "$CPP"; then
3714   CPP=
3715 fi
3716 if test -z "$CPP"; then
3717   if test "${ac_cv_prog_CPP+set}" = set; then :
3718   $as_echo_n "(cached) " >&6
3719 else
3720       # Double quotes because CPP needs to be expanded
3721     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3722     do
3723       ac_preproc_ok=false
3724 for ac_c_preproc_warn_flag in '' yes
3725 do
3726   # Use a header file that comes with gcc, so configuring glibc
3727   # with a fresh cross-compiler works.
3728   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3729   # <limits.h> exists even on freestanding compilers.
3730   # On the NeXT, cc -E runs the code through the compiler's parser,
3731   # not just through cpp. "Syntax error" is here to catch this case.
3732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h.  */
3734 #ifdef __STDC__
3735 # include <limits.h>
3736 #else
3737 # include <assert.h>
3738 #endif
3739                      Syntax error
3740 _ACEOF
3741 if ac_fn_c_try_cpp "$LINENO"; then :
3742
3743 else
3744   # Broken: fails on valid input.
3745 continue
3746 fi
3747 rm -f conftest.err conftest.$ac_ext
3748
3749   # OK, works on sane cases.  Now check whether nonexistent headers
3750   # can be detected and how.
3751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h.  */
3753 #include <ac_nonexistent.h>
3754 _ACEOF
3755 if ac_fn_c_try_cpp "$LINENO"; then :
3756   # Broken: success on invalid input.
3757 continue
3758 else
3759   # Passes both tests.
3760 ac_preproc_ok=:
3761 break
3762 fi
3763 rm -f conftest.err conftest.$ac_ext
3764
3765 done
3766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3767 rm -f conftest.err conftest.$ac_ext
3768 if $ac_preproc_ok; then :
3769   break
3770 fi
3771
3772     done
3773     ac_cv_prog_CPP=$CPP
3774
3775 fi
3776   CPP=$ac_cv_prog_CPP
3777 else
3778   ac_cv_prog_CPP=$CPP
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3781 $as_echo "$CPP" >&6; }
3782 ac_preproc_ok=false
3783 for ac_c_preproc_warn_flag in '' yes
3784 do
3785   # Use a header file that comes with gcc, so configuring glibc
3786   # with a fresh cross-compiler works.
3787   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3788   # <limits.h> exists even on freestanding compilers.
3789   # On the NeXT, cc -E runs the code through the compiler's parser,
3790   # not just through cpp. "Syntax error" is here to catch this case.
3791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h.  */
3793 #ifdef __STDC__
3794 # include <limits.h>
3795 #else
3796 # include <assert.h>
3797 #endif
3798                      Syntax error
3799 _ACEOF
3800 if ac_fn_c_try_cpp "$LINENO"; then :
3801
3802 else
3803   # Broken: fails on valid input.
3804 continue
3805 fi
3806 rm -f conftest.err conftest.$ac_ext
3807
3808   # OK, works on sane cases.  Now check whether nonexistent headers
3809   # can be detected and how.
3810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h.  */
3812 #include <ac_nonexistent.h>
3813 _ACEOF
3814 if ac_fn_c_try_cpp "$LINENO"; then :
3815   # Broken: success on invalid input.
3816 continue
3817 else
3818   # Passes both tests.
3819 ac_preproc_ok=:
3820 break
3821 fi
3822 rm -f conftest.err conftest.$ac_ext
3823
3824 done
3825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3826 rm -f conftest.err conftest.$ac_ext
3827 if $ac_preproc_ok; then :
3828
3829 else
3830   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3833 See \`config.log' for more details." "$LINENO" 5; }
3834 fi
3835
3836 ac_ext=c
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841
3842
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3844 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3845 if test "${ac_cv_path_GREP+set}" = set; then :
3846   $as_echo_n "(cached) " >&6
3847 else
3848   if test -z "$GREP"; then
3849   ac_path_GREP_found=false
3850   # Loop through the user's path and test for each of PROGNAME-LIST
3851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856     for ac_prog in grep ggrep; do
3857     for ac_exec_ext in '' $ac_executable_extensions; do
3858       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3859       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3860 # Check for GNU ac_path_GREP and select it if it is found.
3861   # Check for GNU $ac_path_GREP
3862 case `"$ac_path_GREP" --version 2>&1` in
3863 *GNU*)
3864   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3865 *)
3866   ac_count=0
3867   $as_echo_n 0123456789 >"conftest.in"
3868   while :
3869   do
3870     cat "conftest.in" "conftest.in" >"conftest.tmp"
3871     mv "conftest.tmp" "conftest.in"
3872     cp "conftest.in" "conftest.nl"
3873     $as_echo 'GREP' >> "conftest.nl"
3874     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3875     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3876     as_fn_arith $ac_count + 1 && ac_count=$as_val
3877     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3878       # Best one so far, save it but keep looking for a better one
3879       ac_cv_path_GREP="$ac_path_GREP"
3880       ac_path_GREP_max=$ac_count
3881     fi
3882     # 10*(2^10) chars as input seems more than enough
3883     test $ac_count -gt 10 && break
3884   done
3885   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886 esac
3887
3888       $ac_path_GREP_found && break 3
3889     done
3890   done
3891   done
3892 IFS=$as_save_IFS
3893   if test -z "$ac_cv_path_GREP"; then
3894     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3895   fi
3896 else
3897   ac_cv_path_GREP=$GREP
3898 fi
3899
3900 fi
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3902 $as_echo "$ac_cv_path_GREP" >&6; }
3903  GREP="$ac_cv_path_GREP"
3904
3905
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3907 $as_echo_n "checking for egrep... " >&6; }
3908 if test "${ac_cv_path_EGREP+set}" = set; then :
3909   $as_echo_n "(cached) " >&6
3910 else
3911   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3912    then ac_cv_path_EGREP="$GREP -E"
3913    else
3914      if test -z "$EGREP"; then
3915   ac_path_EGREP_found=false
3916   # Loop through the user's path and test for each of PROGNAME-LIST
3917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3919 do
3920   IFS=$as_save_IFS
3921   test -z "$as_dir" && as_dir=.
3922     for ac_prog in egrep; do
3923     for ac_exec_ext in '' $ac_executable_extensions; do
3924       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3925       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3926 # Check for GNU ac_path_EGREP and select it if it is found.
3927   # Check for GNU $ac_path_EGREP
3928 case `"$ac_path_EGREP" --version 2>&1` in
3929 *GNU*)
3930   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3931 *)
3932   ac_count=0
3933   $as_echo_n 0123456789 >"conftest.in"
3934   while :
3935   do
3936     cat "conftest.in" "conftest.in" >"conftest.tmp"
3937     mv "conftest.tmp" "conftest.in"
3938     cp "conftest.in" "conftest.nl"
3939     $as_echo 'EGREP' >> "conftest.nl"
3940     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3941     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3942     as_fn_arith $ac_count + 1 && ac_count=$as_val
3943     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3944       # Best one so far, save it but keep looking for a better one
3945       ac_cv_path_EGREP="$ac_path_EGREP"
3946       ac_path_EGREP_max=$ac_count
3947     fi
3948     # 10*(2^10) chars as input seems more than enough
3949     test $ac_count -gt 10 && break
3950   done
3951   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3952 esac
3953
3954       $ac_path_EGREP_found && break 3
3955     done
3956   done
3957   done
3958 IFS=$as_save_IFS
3959   if test -z "$ac_cv_path_EGREP"; then
3960     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3961   fi
3962 else
3963   ac_cv_path_EGREP=$EGREP
3964 fi
3965
3966    fi
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3969 $as_echo "$ac_cv_path_EGREP" >&6; }
3970  EGREP="$ac_cv_path_EGREP"
3971
3972
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3974 $as_echo_n "checking for ANSI C header files... " >&6; }
3975 if test "${ac_cv_header_stdc+set}" = set; then :
3976   $as_echo_n "(cached) " >&6
3977 else
3978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h.  */
3980 #include <stdlib.h>
3981 #include <stdarg.h>
3982 #include <string.h>
3983 #include <float.h>
3984
3985 int
3986 main ()
3987 {
3988
3989   ;
3990   return 0;
3991 }
3992 _ACEOF
3993 if ac_fn_c_try_compile "$LINENO"; then :
3994   ac_cv_header_stdc=yes
3995 else
3996   ac_cv_header_stdc=no
3997 fi
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999
4000 if test $ac_cv_header_stdc = yes; then
4001   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h.  */
4004 #include <string.h>
4005
4006 _ACEOF
4007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4008   $EGREP "memchr" >/dev/null 2>&1; then :
4009
4010 else
4011   ac_cv_header_stdc=no
4012 fi
4013 rm -f conftest*
4014
4015 fi
4016
4017 if test $ac_cv_header_stdc = yes; then
4018   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h.  */
4021 #include <stdlib.h>
4022
4023 _ACEOF
4024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4025   $EGREP "free" >/dev/null 2>&1; then :
4026
4027 else
4028   ac_cv_header_stdc=no
4029 fi
4030 rm -f conftest*
4031
4032 fi
4033
4034 if test $ac_cv_header_stdc = yes; then
4035   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4036   if test "$cross_compiling" = yes; then :
4037   :
4038 else
4039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h.  */
4041 #include <ctype.h>
4042 #include <stdlib.h>
4043 #if ((' ' & 0x0FF) == 0x020)
4044 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4045 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4046 #else
4047 # define ISLOWER(c) \
4048                    (('a' <= (c) && (c) <= 'i') \
4049                      || ('j' <= (c) && (c) <= 'r') \
4050                      || ('s' <= (c) && (c) <= 'z'))
4051 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4052 #endif
4053
4054 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4055 int
4056 main ()
4057 {
4058   int i;
4059   for (i = 0; i < 256; i++)
4060     if (XOR (islower (i), ISLOWER (i))
4061         || toupper (i) != TOUPPER (i))
4062       return 2;
4063   return 0;
4064 }
4065 _ACEOF
4066 if ac_fn_c_try_run "$LINENO"; then :
4067
4068 else
4069   ac_cv_header_stdc=no
4070 fi
4071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4072   conftest.$ac_objext conftest.beam conftest.$ac_ext
4073 fi
4074
4075 fi
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4078 $as_echo "$ac_cv_header_stdc" >&6; }
4079 if test $ac_cv_header_stdc = yes; then
4080
4081 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4082
4083 fi
4084
4085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4086 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4087                   inttypes.h stdint.h unistd.h
4088 do :
4089   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4090 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4091 "
4092 eval as_val=\$$as_ac_Header
4093    if test "x$as_val" = x""yes; then :
4094   cat >>confdefs.h <<_ACEOF
4095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4096 _ACEOF
4097
4098 fi
4099
4100 done
4101
4102
4103
4104
4105
4106   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4107 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4108   MINIX=yes
4109 else
4110   MINIX=
4111 fi
4112
4113
4114   if test "$MINIX" = yes; then
4115
4116 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4117
4118
4119 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4120
4121
4122 $as_echo "#define _MINIX 1" >>confdefs.h
4123
4124   fi
4125
4126         case "$host_os" in
4127     hpux*)
4128
4129 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4130
4131       ;;
4132   esac
4133
4134
4135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4136 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4137 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4138   $as_echo_n "(cached) " >&6
4139 else
4140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h.  */
4142
4143 #         define __EXTENSIONS__ 1
4144           $ac_includes_default
4145 int
4146 main ()
4147 {
4148
4149   ;
4150   return 0;
4151 }
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154   ac_cv_safe_to_define___extensions__=yes
4155 else
4156   ac_cv_safe_to_define___extensions__=no
4157 fi
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4161 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4162   test $ac_cv_safe_to_define___extensions__ = yes &&
4163     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4164
4165   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4166
4167   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4168
4169   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4170
4171   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4172
4173
4174 if test -n "$ac_tool_prefix"; then
4175   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4176 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4180   $as_echo_n "(cached) " >&6
4181 else
4182   if test -n "$RANLIB"; then
4183   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190     for ac_exec_ext in '' $ac_executable_extensions; do
4191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194     break 2
4195   fi
4196 done
4197   done
4198 IFS=$as_save_IFS
4199
4200 fi
4201 fi
4202 RANLIB=$ac_cv_prog_RANLIB
4203 if test -n "$RANLIB"; then
4204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4205 $as_echo "$RANLIB" >&6; }
4206 else
4207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 $as_echo "no" >&6; }
4209 fi
4210
4211
4212 fi
4213 if test -z "$ac_cv_prog_RANLIB"; then
4214   ac_ct_RANLIB=$RANLIB
4215   # Extract the first word of "ranlib", so it can be a program name with args.
4216 set dummy ranlib; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4220   $as_echo_n "(cached) " >&6
4221 else
4222   if test -n "$ac_ct_RANLIB"; then
4223   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230     for ac_exec_ext in '' $ac_executable_extensions; do
4231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232     ac_cv_prog_ac_ct_RANLIB="ranlib"
4233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234     break 2
4235   fi
4236 done
4237   done
4238 IFS=$as_save_IFS
4239
4240 fi
4241 fi
4242 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4243 if test -n "$ac_ct_RANLIB"; then
4244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4245 $as_echo "$ac_ct_RANLIB" >&6; }
4246 else
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251   if test "x$ac_ct_RANLIB" = x; then
4252     RANLIB=":"
4253   else
4254     case $cross_compiling:$ac_tool_warned in
4255 yes:)
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4258 ac_tool_warned=yes ;;
4259 esac
4260     RANLIB=$ac_ct_RANLIB
4261   fi
4262 else
4263   RANLIB="$ac_cv_prog_RANLIB"
4264 fi
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274   # Code from module arg-nonnull:
4275   # Code from module c++defs:
4276   # Code from module extensions:
4277
4278   # Code from module include_next:
4279   # Code from module memchr:
4280   # Code from module memmem:
4281   # Code from module memmem-simple:
4282   # Code from module multiarch:
4283   # Code from module stddef:
4284   # Code from module stdint:
4285   # Code from module string:
4286   # Code from module warn-on-use:
4287   # Code from module wchar:
4288
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4290 $as_echo_n "checking target system type... " >&6; }
4291 if test "${ac_cv_target+set}" = set; then :
4292   $as_echo_n "(cached) " >&6
4293 else
4294   if test "x$target_alias" = x; then
4295   ac_cv_target=$ac_cv_host
4296 else
4297   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4298     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4299 fi
4300
4301 fi
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4303 $as_echo "$ac_cv_target" >&6; }
4304 case $ac_cv_target in
4305 *-*-*) ;;
4306 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4307 esac
4308 target=$ac_cv_target
4309 ac_save_IFS=$IFS; IFS='-'
4310 set x $ac_cv_target
4311 shift
4312 target_cpu=$1
4313 target_vendor=$2
4314 shift; shift
4315 # Remember, the first character of IFS is used to create $*,
4316 # except with old shells:
4317 target_os=$*
4318 IFS=$ac_save_IFS
4319 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4320
4321
4322 # The aliases save the names the user supplied, while $host etc.
4323 # will get canonicalized.
4324 test -n "$target_alias" &&
4325   test "$program_prefix$program_suffix$program_transform_name" = \
4326     NONENONEs,x,x, &&
4327   program_prefix=${target_alias}-
4328
4329 # The tests for host and target for $enable_largefile require
4330 # canonical names.
4331
4332
4333
4334 # As the $enable_largefile decision depends on --enable-plugins we must set it
4335 # even in directories otherwise not depending on the $plugins option.
4336
4337
4338 # Check whether --enable-plugins was given.
4339 if test "${enable_plugins+set}" = set; then :
4340   enableval=$enable_plugins; case "${enableval}" in
4341   yes | "") plugins=yes ;;
4342   no) plugins=no ;;
4343   *) plugins=yes ;;
4344  esac
4345 else
4346   plugins=no
4347 fi
4348
4349
4350
4351 case "${host}" in
4352   sparc-*-solaris*|i[3-7]86-*-solaris*)
4353     # On native 32bit sparc and ia32 solaris, large-file and procfs support
4354     # are mutually exclusive; and without procfs support, the bfd/ elf module
4355     # cannot provide certain routines such as elfcore_write_prpsinfo
4356     # or elfcore_write_prstatus.  So unless the user explicitly requested
4357     # large-file support through the --enable-largefile switch, disable
4358     # large-file support in favor of procfs support.
4359     test "${target}" = "${host}" -a "x$plugins" = xno \
4360       && : ${enable_largefile="no"}
4361     ;;
4362 esac
4363
4364 # Check whether --enable-largefile was given.
4365 if test "${enable_largefile+set}" = set; then :
4366   enableval=$enable_largefile;
4367 fi
4368
4369 if test "$enable_largefile" != no; then
4370
4371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4372 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4373 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4374   $as_echo_n "(cached) " >&6
4375 else
4376   ac_cv_sys_largefile_CC=no
4377      if test "$GCC" != yes; then
4378        ac_save_CC=$CC
4379        while :; do
4380          # IRIX 6.2 and later do not support large files by default,
4381          # so use the C compiler's -n32 option if that helps.
4382          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h.  */
4384 #include <sys/types.h>
4385  /* Check that off_t can represent 2**63 - 1 correctly.
4386     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4387     since some C++ compilers masquerading as C compilers
4388     incorrectly reject 9223372036854775807.  */
4389 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4390   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4391                        && LARGE_OFF_T % 2147483647 == 1)
4392                       ? 1 : -1];
4393 int
4394 main ()
4395 {
4396
4397   ;
4398   return 0;
4399 }
4400 _ACEOF
4401          if ac_fn_c_try_compile "$LINENO"; then :
4402   break
4403 fi
4404 rm -f core conftest.err conftest.$ac_objext
4405          CC="$CC -n32"
4406          if ac_fn_c_try_compile "$LINENO"; then :
4407   ac_cv_sys_largefile_CC=' -n32'; break
4408 fi
4409 rm -f core conftest.err conftest.$ac_objext
4410          break
4411        done
4412        CC=$ac_save_CC
4413        rm -f conftest.$ac_ext
4414     fi
4415 fi
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4417 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4418   if test "$ac_cv_sys_largefile_CC" != no; then
4419     CC=$CC$ac_cv_sys_largefile_CC
4420   fi
4421
4422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4423 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4424 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4425   $as_echo_n "(cached) " >&6
4426 else
4427   while :; do
4428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h.  */
4430 #include <sys/types.h>
4431  /* Check that off_t can represent 2**63 - 1 correctly.
4432     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4433     since some C++ compilers masquerading as C compilers
4434     incorrectly reject 9223372036854775807.  */
4435 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4436   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4437                        && LARGE_OFF_T % 2147483647 == 1)
4438                       ? 1 : -1];
4439 int
4440 main ()
4441 {
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 if ac_fn_c_try_compile "$LINENO"; then :
4448   ac_cv_sys_file_offset_bits=no; break
4449 fi
4450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h.  */
4453 #define _FILE_OFFSET_BITS 64
4454 #include <sys/types.h>
4455  /* Check that off_t can represent 2**63 - 1 correctly.
4456     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4457     since some C++ compilers masquerading as C compilers
4458     incorrectly reject 9223372036854775807.  */
4459 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4460   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4461                        && LARGE_OFF_T % 2147483647 == 1)
4462                       ? 1 : -1];
4463 int
4464 main ()
4465 {
4466
4467   ;
4468   return 0;
4469 }
4470 _ACEOF
4471 if ac_fn_c_try_compile "$LINENO"; then :
4472   ac_cv_sys_file_offset_bits=64; break
4473 fi
4474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475   ac_cv_sys_file_offset_bits=unknown
4476   break
4477 done
4478 fi
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4480 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4481 case $ac_cv_sys_file_offset_bits in #(
4482   no | unknown) ;;
4483   *)
4484 cat >>confdefs.h <<_ACEOF
4485 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4486 _ACEOF
4487 ;;
4488 esac
4489 rm -rf conftest*
4490   if test $ac_cv_sys_file_offset_bits = unknown; then
4491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4492 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4493 if test "${ac_cv_sys_large_files+set}" = set; then :
4494   $as_echo_n "(cached) " >&6
4495 else
4496   while :; do
4497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h.  */
4499 #include <sys/types.h>
4500  /* Check that off_t can represent 2**63 - 1 correctly.
4501     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4502     since some C++ compilers masquerading as C compilers
4503     incorrectly reject 9223372036854775807.  */
4504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4505   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4506                        && LARGE_OFF_T % 2147483647 == 1)
4507                       ? 1 : -1];
4508 int
4509 main ()
4510 {
4511
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 if ac_fn_c_try_compile "$LINENO"; then :
4517   ac_cv_sys_large_files=no; break
4518 fi
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h.  */
4522 #define _LARGE_FILES 1
4523 #include <sys/types.h>
4524  /* Check that off_t can represent 2**63 - 1 correctly.
4525     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4526     since some C++ compilers masquerading as C compilers
4527     incorrectly reject 9223372036854775807.  */
4528 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4529   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4530                        && LARGE_OFF_T % 2147483647 == 1)
4531                       ? 1 : -1];
4532 int
4533 main ()
4534 {
4535
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 if ac_fn_c_try_compile "$LINENO"; then :
4541   ac_cv_sys_large_files=1; break
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544   ac_cv_sys_large_files=unknown
4545   break
4546 done
4547 fi
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4549 $as_echo "$ac_cv_sys_large_files" >&6; }
4550 case $ac_cv_sys_large_files in #(
4551   no | unknown) ;;
4552   *)
4553 cat >>confdefs.h <<_ACEOF
4554 #define _LARGE_FILES $ac_cv_sys_large_files
4555 _ACEOF
4556 ;;
4557 esac
4558 rm -rf conftest*
4559   fi
4560 fi
4561
4562
4563
4564
4565
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4567 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4568 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4569   $as_echo_n "(cached) " >&6
4570 else
4571   am_cv_prog_cc_stdc=no
4572 ac_save_CC="$CC"
4573 # Don't try gcc -ansi; that turns off useful extensions and
4574 # breaks some systems' header files.
4575 # AIX                   -qlanglvl=ansi
4576 # Ultrix and OSF/1      -std1
4577 # HP-UX 10.20 and later -Ae
4578 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4579 # SVR4                  -Xc -D__EXTENSIONS__
4580 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4581 do
4582   CC="$ac_save_CC $ac_arg"
4583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h.  */
4585 #include <stdarg.h>
4586 #include <stdio.h>
4587 #include <sys/types.h>
4588 #include <sys/stat.h>
4589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4590 struct buf { int x; };
4591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4592 static char *e (p, i)
4593      char **p;
4594      int i;
4595 {
4596   return p[i];
4597 }
4598 static char *f (char * (*g) (char **, int), char **p, ...)
4599 {
4600   char *s;
4601   va_list v;
4602   va_start (v,p);
4603   s = g (p, va_arg (v,int));
4604   va_end (v);
4605   return s;
4606 }
4607 int test (int i, double x);
4608 struct s1 {int (*f) (int a);};
4609 struct s2 {int (*f) (double a);};
4610 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4611 int argc;
4612 char **argv;
4613
4614 int
4615 main ()
4616 {
4617
4618 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4619
4620   ;
4621   return 0;
4622 }
4623 _ACEOF
4624 if ac_fn_c_try_compile "$LINENO"; then :
4625   am_cv_prog_cc_stdc="$ac_arg"; break
4626 fi
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 done
4629 CC="$ac_save_CC"
4630
4631 fi
4632
4633 if test -z "$am_cv_prog_cc_stdc"; then
4634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4635 $as_echo "none needed" >&6; }
4636 else
4637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4638 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4639 fi
4640 case "x$am_cv_prog_cc_stdc" in
4641   x|xno) ;;
4642   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4643 esac
4644
4645
4646 ac_aux_dir=
4647 for ac_dir in .. "$srcdir"/..; do
4648   for ac_t in install-sh install.sh shtool; do
4649     if test -f "$ac_dir/$ac_t"; then
4650       ac_aux_dir=$ac_dir
4651       ac_install_sh="$ac_aux_dir/$ac_t -c"
4652       break 2
4653     fi
4654   done
4655 done
4656 if test -z "$ac_aux_dir"; then
4657   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4658 fi
4659
4660 # These three variables are undocumented and unsupported,
4661 # and are intended to be withdrawn in a future Autoconf release.
4662 # They can cause serious problems if a builder's source tree is in a directory
4663 # whose full name contains unusual characters.
4664 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4665 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4666 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4667
4668
4669
4670
4671 # Dependency checking.
4672 rm -rf .tst 2>/dev/null
4673 mkdir .tst 2>/dev/null
4674 if test -d .tst; then
4675   am__leading_dot=.
4676 else
4677   am__leading_dot=_
4678 fi
4679 rmdir .tst 2>/dev/null
4680
4681 DEPDIR="${am__leading_dot}deps"
4682
4683 ac_config_commands="$ac_config_commands depdir"
4684
4685
4686 depcc="$CC"   am_compiler_list=
4687
4688 am_depcomp=$ac_aux_dir/depcomp
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4690 $as_echo_n "checking dependency style of $depcc... " >&6; }
4691 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4692   $as_echo_n "(cached) " >&6
4693 else
4694   if test -f "$am_depcomp"; then
4695   # We make a subdir and do the tests there.  Otherwise we can end up
4696   # making bogus files that we don't know about and never remove.  For
4697   # instance it was reported that on HP-UX the gcc test will end up
4698   # making a dummy file named `D' -- because `-MD' means `put the output
4699   # in D'.
4700   mkdir conftest.dir
4701   # Copy depcomp to subdir because otherwise we won't find it if we're
4702   # using a relative directory.
4703   cp "$am_depcomp" conftest.dir
4704   cd conftest.dir
4705   # We will build objects and dependencies in a subdirectory because
4706   # it helps to detect inapplicable dependency modes.  For instance
4707   # both Tru64's cc and ICC support -MD to output dependencies as a
4708   # side effect of compilation, but ICC will put the dependencies in
4709   # the current directory while Tru64 will put them in the object
4710   # directory.
4711   mkdir sub
4712
4713   am_cv_CC_dependencies_compiler_type=none
4714   if test "$am_compiler_list" = ""; then
4715      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4716   fi
4717   for depmode in $am_compiler_list; do
4718     if test $depmode = none; then break; fi
4719
4720     $as_echo "$as_me:$LINENO: trying $depmode" >&5
4721     # Setup a source with many dependencies, because some compilers
4722     # like to wrap large dependency lists on column 80 (with \), and
4723     # we should not choose a depcomp mode which is confused by this.
4724     #
4725     # We need to recreate these files for each test, as the compiler may
4726     # overwrite some of them when testing with obscure command lines.
4727     # This happens at least with the AIX C compiler.
4728     : > sub/conftest.c
4729     for i in 1 2 3 4 5 6; do
4730       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4731       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4732       # Solaris 8's {/usr,}/bin/sh.
4733       touch sub/conftst$i.h
4734     done
4735     echo "include sub/conftest.Po" > confmf
4736
4737     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4738     # mode.  It turns out that the SunPro C++ compiler does not properly
4739     # handle `-M -o', and we need to detect this.
4740     depcmd="depmode=$depmode \
4741        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4742        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4743        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4744     echo "| $depcmd" | sed -e 's/  */ /g' >&5
4745     if env $depcmd > conftest.err 2>&1 &&
4746        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4747        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4748        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4749       # icc doesn't choke on unknown options, it will just issue warnings
4750       # or remarks (even with -Werror).  So we grep stderr for any message
4751       # that says an option was ignored or not supported.
4752       # When given -MP, icc 7.0 and 7.1 complain thusly:
4753       #   icc: Command line warning: ignoring option '-M'; no argument required
4754       # The diagnosis changed in icc 8.0:
4755       #   icc: Command line remark: option '-MP' not supported
4756       if (grep 'ignoring option' conftest.err ||
4757           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4758         am_cv_CC_dependencies_compiler_type=$depmode
4759         $as_echo "$as_me:$LINENO: success" >&5
4760         break
4761       fi
4762     fi
4763     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4764     sed -e 's/^/| /' < conftest.err >&5
4765   done
4766
4767   cd ..
4768   rm -rf conftest.dir
4769 else
4770   am_cv_CC_dependencies_compiler_type=none
4771 fi
4772
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4775 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4776 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4777 then as_fn_error "no usable dependency style found" "$LINENO" 5
4778 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4779
4780 fi
4781
4782
4783 # Check for the 'make' the user wants to use.
4784 for ac_prog in make
4785 do
4786   # Extract the first word of "$ac_prog", so it can be a program name with args.
4787 set dummy $ac_prog; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if test "${ac_cv_prog_MAKE+set}" = set; then :
4791   $as_echo_n "(cached) " >&6
4792 else
4793   if test -n "$MAKE"; then
4794   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4798 do
4799   IFS=$as_save_IFS
4800   test -z "$as_dir" && as_dir=.
4801     for ac_exec_ext in '' $ac_executable_extensions; do
4802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803     ac_cv_prog_MAKE="$ac_prog"
4804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805     break 2
4806   fi
4807 done
4808   done
4809 IFS=$as_save_IFS
4810
4811 fi
4812 fi
4813 MAKE=$ac_cv_prog_MAKE
4814 if test -n "$MAKE"; then
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4816 $as_echo "$MAKE" >&6; }
4817 else
4818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 fi
4821
4822
4823   test -n "$MAKE" && break
4824 done
4825
4826 MAKE_IS_GNU=
4827 case "`$MAKE --version 2>&1 | sed 1q`" in
4828   *GNU*)
4829     MAKE_IS_GNU=yes
4830     ;;
4831 esac
4832  if test "$MAKE_IS_GNU" = yes; then
4833   GMAKE_TRUE=
4834   GMAKE_FALSE='#'
4835 else
4836   GMAKE_TRUE='#'
4837   GMAKE_FALSE=
4838 fi
4839
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4841 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4842 set x ${MAKE-make}
4843 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4844 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4845   $as_echo_n "(cached) " >&6
4846 else
4847   cat >conftest.make <<\_ACEOF
4848 SHELL = /bin/sh
4849 all:
4850         @echo '@@@%%%=$(MAKE)=@@@%%%'
4851 _ACEOF
4852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4853 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4854   *@@@%%%=?*=@@@%%%*)
4855     eval ac_cv_prog_make_${ac_make}_set=yes;;
4856   *)
4857     eval ac_cv_prog_make_${ac_make}_set=no;;
4858 esac
4859 rm -f conftest.make
4860 fi
4861 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4863 $as_echo "yes" >&6; }
4864   SET_MAKE=
4865 else
4866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4868   SET_MAKE="MAKE=${MAKE-make}"
4869 fi
4870
4871
4872
4873 CONFIG_OBS=
4874 CONFIG_DEPS=
4875 CONFIG_SRCS=
4876 ENABLE_CFLAGS=
4877
4878 CONFIG_ALL=
4879 CONFIG_CLEAN=
4880 CONFIG_INSTALL=
4881 CONFIG_UNINSTALL=
4882
4883 # If we haven't got the data from the intl directory,
4884 # assume NLS is disabled.
4885 USE_NLS=no
4886 LIBINTL=
4887 LIBINTL_DEP=
4888 INCINTL=
4889 XGETTEXT=
4890 GMSGFMT=
4891 POSUB=
4892
4893 if test -f  ../intl/config.intl; then
4894   .  ../intl/config.intl
4895 fi
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4897 $as_echo_n "checking whether NLS is requested... " >&6; }
4898 if test x"$USE_NLS" != xyes; then
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4901 else
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4903 $as_echo "yes" >&6; }
4904
4905 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4906
4907
4908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4909 $as_echo_n "checking for catalogs to be installed... " >&6; }
4910   # Look for .po and .gmo files in the source directory.
4911   CATALOGS=
4912   XLINGUAS=
4913   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4914     # If there aren't any .gmo files the shell will give us the
4915     # literal string "../path/to/srcdir/po/*.gmo" which has to be
4916     # weeded out.
4917     case "$cat" in *\**)
4918       continue;;
4919     esac
4920     # The quadruple backslash is collapsed to a double backslash
4921     # by the backticks, then collapsed again by the double quotes,
4922     # leaving us with one backslash in the sed expression (right
4923     # before the dot that mustn't act as a wildcard).
4924     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4925     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4926     # The user is allowed to set LINGUAS to a list of languages to
4927     # install catalogs for.  If it's empty that means "all of them."
4928     if test "x$LINGUAS" = x; then
4929       CATALOGS="$CATALOGS $cat"
4930       XLINGUAS="$XLINGUAS $lang"
4931     else
4932       case "$LINGUAS" in *$lang*)
4933         CATALOGS="$CATALOGS $cat"
4934         XLINGUAS="$XLINGUAS $lang"
4935         ;;
4936       esac
4937     fi
4938   done
4939   LINGUAS="$XLINGUAS"
4940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4941 $as_echo "$LINGUAS" >&6; }
4942
4943
4944     DATADIRNAME=share
4945
4946   INSTOBJEXT=.mo
4947
4948   GENCAT=gencat
4949
4950   CATOBJEXT=.gmo
4951
4952 fi
4953
4954 localedir='${datadir}/locale'
4955
4956
4957 if test x"$USE_NLS" = xyes; then
4958    CONFIG_ALL="$CONFIG_ALL all-po"
4959    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4960    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4961    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4962 fi
4963
4964
4965
4966
4967
4968           LIBC_FATAL_STDERR_=1
4969   export LIBC_FATAL_STDERR_
4970
4971
4972
4973
4974
4975   for ac_header in $gl_header_list
4976 do :
4977   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4978 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4979 eval as_val=\$$as_ac_Header
4980    if test "x$as_val" = x""yes; then :
4981   cat >>confdefs.h <<_ACEOF
4982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4983 _ACEOF
4984
4985 fi
4986
4987 done
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997   for ac_func in $gl_func_list
4998 do :
4999   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5000 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5001 eval as_val=\$$as_ac_var
5002    if test "x$as_val" = x""yes; then :
5003   cat >>confdefs.h <<_ACEOF
5004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5005 _ACEOF
5006
5007 fi
5008 done
5009
5010
5011
5012
5013
5014
5015   GNULIB_MEMCHR=0;
5016   GNULIB_MEMMEM=0;
5017   GNULIB_MEMPCPY=0;
5018   GNULIB_MEMRCHR=0;
5019   GNULIB_RAWMEMCHR=0;
5020   GNULIB_STPCPY=0;
5021   GNULIB_STPNCPY=0;
5022   GNULIB_STRCHRNUL=0;
5023   GNULIB_STRDUP=0;
5024   GNULIB_STRNCAT=0;
5025   GNULIB_STRNDUP=0;
5026   GNULIB_STRNLEN=0;
5027   GNULIB_STRPBRK=0;
5028   GNULIB_STRSEP=0;
5029   GNULIB_STRSTR=0;
5030   GNULIB_STRCASESTR=0;
5031   GNULIB_STRTOK_R=0;
5032   GNULIB_MBSLEN=0;
5033   GNULIB_MBSNLEN=0;
5034   GNULIB_MBSCHR=0;
5035   GNULIB_MBSRCHR=0;
5036   GNULIB_MBSSTR=0;
5037   GNULIB_MBSCASECMP=0;
5038   GNULIB_MBSNCASECMP=0;
5039   GNULIB_MBSPCASECMP=0;
5040   GNULIB_MBSCASESTR=0;
5041   GNULIB_MBSCSPN=0;
5042   GNULIB_MBSPBRK=0;
5043   GNULIB_MBSSPN=0;
5044   GNULIB_MBSSEP=0;
5045   GNULIB_MBSTOK_R=0;
5046   GNULIB_STRERROR=0;
5047   GNULIB_STRSIGNAL=0;
5048   GNULIB_STRVERSCMP=0;
5049   HAVE_MBSLEN=0;
5050     HAVE_MEMCHR=1;
5051   HAVE_DECL_MEMMEM=1;
5052   HAVE_MEMPCPY=1;
5053   HAVE_DECL_MEMRCHR=1;
5054   HAVE_RAWMEMCHR=1;
5055   HAVE_STPCPY=1;
5056   HAVE_STPNCPY=1;
5057   HAVE_STRCHRNUL=1;
5058   HAVE_DECL_STRDUP=1;
5059   HAVE_DECL_STRNDUP=1;
5060   HAVE_DECL_STRNLEN=1;
5061   HAVE_STRPBRK=1;
5062   HAVE_STRSEP=1;
5063   HAVE_STRCASESTR=1;
5064   HAVE_DECL_STRTOK_R=1;
5065   HAVE_DECL_STRSIGNAL=1;
5066   HAVE_STRVERSCMP=1;
5067   REPLACE_MEMCHR=0;
5068   REPLACE_MEMMEM=0;
5069   REPLACE_STPNCPY=0;
5070   REPLACE_STRDUP=0;
5071   REPLACE_STRSTR=0;
5072   REPLACE_STRCASESTR=0;
5073   REPLACE_STRERROR=0;
5074   REPLACE_STRNCAT=0;
5075   REPLACE_STRNDUP=0;
5076   REPLACE_STRNLEN=0;
5077   REPLACE_STRSIGNAL=0;
5078   REPLACE_STRTOK_R=0;
5079   UNDEFINE_STRTOK_R=0;
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5094   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5095   # irrelevant for anonymous mappings.
5096   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5097 if test "x$ac_cv_func_mmap" = x""yes; then :
5098   gl_have_mmap=yes
5099 else
5100   gl_have_mmap=no
5101 fi
5102
5103
5104   # Try to allow MAP_ANONYMOUS.
5105   gl_have_mmap_anonymous=no
5106   if test $gl_have_mmap = yes; then
5107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5108 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5109     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h.  */
5111
5112 #include <sys/mman.h>
5113 #ifdef MAP_ANONYMOUS
5114     I cant identify this map.
5115 #endif
5116
5117 _ACEOF
5118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5119   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5120   gl_have_mmap_anonymous=yes
5121 fi
5122 rm -f conftest*
5123
5124     if test $gl_have_mmap_anonymous != yes; then
5125       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h.  */
5127
5128 #include <sys/mman.h>
5129 #ifdef MAP_ANON
5130     I cant identify this map.
5131 #endif
5132
5133 _ACEOF
5134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5135   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5136
5137 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5138
5139          gl_have_mmap_anonymous=yes
5140 fi
5141 rm -f conftest*
5142
5143     fi
5144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5145 $as_echo "$gl_have_mmap_anonymous" >&6; }
5146     if test $gl_have_mmap_anonymous = yes; then
5147
5148 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5149
5150     fi
5151   fi
5152
5153
5154   :
5155
5156
5157
5158
5159
5160
5161   :
5162
5163
5164
5165
5166
5167
5168
5169
5170   :
5171
5172
5173
5174
5175
5176   if test $ac_cv_func_memchr = yes; then
5177     # Detect platform-specific bugs in some versions of glibc:
5178     # memchr should not dereference anything with length 0
5179     #   http://bugzilla.redhat.com/499689
5180     # memchr should not dereference overestimated length after a match
5181     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5182     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5183     # Assume that memchr works on platforms that lack mprotect.
5184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5185 $as_echo_n "checking whether memchr works... " >&6; }
5186 if test "${gl_cv_func_memchr_works+set}" = set; then :
5187   $as_echo_n "(cached) " >&6
5188 else
5189   if test "$cross_compiling" = yes; then :
5190          gl_cv_func_memchr_works="guessing no"
5191 else
5192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h.  */
5194
5195 #include <string.h>
5196 #if HAVE_SYS_MMAN_H
5197 # include <fcntl.h>
5198 # include <unistd.h>
5199 # include <sys/types.h>
5200 # include <sys/mman.h>
5201 # ifndef MAP_FILE
5202 #  define MAP_FILE 0
5203 # endif
5204 #endif
5205
5206 int
5207 main ()
5208 {
5209
5210   char *fence = NULL;
5211 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5212 # if HAVE_MAP_ANONYMOUS
5213   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5214   const int fd = -1;
5215 # else /* !HAVE_MAP_ANONYMOUS */
5216   const int flags = MAP_FILE | MAP_PRIVATE;
5217   int fd = open ("/dev/zero", O_RDONLY, 0666);
5218   if (fd >= 0)
5219 # endif
5220     {
5221       int pagesize = getpagesize ();
5222       char *two_pages =
5223         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5224                        flags, fd, 0);
5225       if (two_pages != (char *)(-1)
5226           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5227         fence = two_pages + pagesize;
5228     }
5229 #endif
5230   if (fence)
5231     {
5232       if (memchr (fence, 0, 0))
5233         return 1;
5234       strcpy (fence - 9, "12345678");
5235       if (memchr (fence - 9, 0, 79) != fence - 1)
5236         return 2;
5237     }
5238   return 0;
5239
5240   ;
5241   return 0;
5242 }
5243 _ACEOF
5244 if ac_fn_c_try_run "$LINENO"; then :
5245   gl_cv_func_memchr_works=yes
5246 else
5247   gl_cv_func_memchr_works=no
5248 fi
5249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5250   conftest.$ac_objext conftest.beam conftest.$ac_ext
5251 fi
5252
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5255 $as_echo "$gl_cv_func_memchr_works" >&6; }
5256     if test "$gl_cv_func_memchr_works" != yes; then
5257       REPLACE_MEMCHR=1
5258     fi
5259   else
5260     HAVE_MEMCHR=0
5261   fi
5262   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5263
5264
5265
5266
5267
5268
5269
5270
5271   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5272
5273
5274   for ac_header in bp-sym.h
5275 do :
5276   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5277 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5278   cat >>confdefs.h <<_ACEOF
5279 #define HAVE_BP_SYM_H 1
5280 _ACEOF
5281
5282 fi
5283
5284 done
5285
5286
5287   fi
5288
5289
5290       ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5291 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5292   ac_have_decl=1
5293 else
5294   ac_have_decl=0
5295 fi
5296
5297 cat >>confdefs.h <<_ACEOF
5298 #define HAVE_DECL_MEMMEM $ac_have_decl
5299 _ACEOF
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314   for ac_func in memmem
5315 do :
5316   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5317 if test "x$ac_cv_func_memmem" = x""yes; then :
5318   cat >>confdefs.h <<_ACEOF
5319 #define HAVE_MEMMEM 1
5320 _ACEOF
5321
5322 else
5323
5324     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5325
5326 fi
5327 done
5328
5329
5330
5331   :
5332
5333
5334
5335
5336
5337   if test $ac_cv_have_decl_memmem = no; then
5338     HAVE_DECL_MEMMEM=0
5339   fi
5340   :
5341
5342
5343     gl_cv_c_multiarch=no
5344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h.  */
5346 #ifndef __APPLE_CC__
5347          not a universal capable compiler
5348         #endif
5349         typedef int dummy;
5350
5351 _ACEOF
5352 if ac_fn_c_try_compile "$LINENO"; then :
5353
5354                arch=
5355      prev=
5356      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5357        if test -n "$prev"; then
5358          case $word in
5359            i?86 | x86_64 | ppc | ppc64)
5360              if test -z "$arch" || test "$arch" = "$word"; then
5361                arch="$word"
5362              else
5363                gl_cv_c_multiarch=yes
5364              fi
5365              ;;
5366          esac
5367          prev=
5368        else
5369          if test "x$word" = "x-arch"; then
5370            prev=arch
5371          fi
5372        fi
5373      done
5374
5375 fi
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377   if test $gl_cv_c_multiarch = yes; then
5378
5379 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5380
5381     APPLE_UNIVERSAL_BUILD=1
5382   else
5383     APPLE_UNIVERSAL_BUILD=0
5384   fi
5385
5386
5387
5388     REPLACE_NULL=0;
5389   HAVE_WCHAR_T=1;
5390   STDDEF_H='';
5391
5392
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5394 $as_echo_n "checking for wchar_t... " >&6; }
5395 if test "${gt_cv_c_wchar_t+set}" = set; then :
5396   $as_echo_n "(cached) " >&6
5397 else
5398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h.  */
5400 #include <stddef.h>
5401        wchar_t foo = (wchar_t)'\0';
5402 int
5403 main ()
5404 {
5405
5406   ;
5407   return 0;
5408 }
5409 _ACEOF
5410 if ac_fn_c_try_compile "$LINENO"; then :
5411   gt_cv_c_wchar_t=yes
5412 else
5413   gt_cv_c_wchar_t=no
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 fi
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5418 $as_echo "$gt_cv_c_wchar_t" >&6; }
5419   if test $gt_cv_c_wchar_t = yes; then
5420
5421 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5422
5423   fi
5424
5425
5426
5427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5428 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5429 if test "${gl_cv_have_include_next+set}" = set; then :
5430   $as_echo_n "(cached) " >&6
5431 else
5432   rm -rf conftestd1a conftestd1b conftestd2
5433      mkdir conftestd1a conftestd1b conftestd2
5434                                                   cat <<EOF > conftestd1a/conftest.h
5435 #define DEFINED_IN_CONFTESTD1
5436 #include_next <conftest.h>
5437 #ifdef DEFINED_IN_CONFTESTD2
5438 int foo;
5439 #else
5440 #error "include_next doesn't work"
5441 #endif
5442 EOF
5443      cat <<EOF > conftestd1b/conftest.h
5444 #define DEFINED_IN_CONFTESTD1
5445 #include <stdio.h>
5446 #include_next <conftest.h>
5447 #ifdef DEFINED_IN_CONFTESTD2
5448 int foo;
5449 #else
5450 #error "include_next doesn't work"
5451 #endif
5452 EOF
5453      cat <<EOF > conftestd2/conftest.h
5454 #ifndef DEFINED_IN_CONFTESTD1
5455 #error "include_next test doesn't work"
5456 #endif
5457 #define DEFINED_IN_CONFTESTD2
5458 EOF
5459      gl_save_CPPFLAGS="$CPPFLAGS"
5460      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5461      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h.  */
5463 #include <conftest.h>
5464 _ACEOF
5465 if ac_fn_c_try_compile "$LINENO"; then :
5466   gl_cv_have_include_next=yes
5467 else
5468   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -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=buggy
5475 else
5476   gl_cv_have_include_next=no
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482      CPPFLAGS="$gl_save_CPPFLAGS"
5483      rm -rf conftestd1a conftestd1b conftestd2
5484
5485 fi
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5487 $as_echo "$gl_cv_have_include_next" >&6; }
5488   PRAGMA_SYSTEM_HEADER=
5489   if test $gl_cv_have_include_next = yes; then
5490     INCLUDE_NEXT=include_next
5491     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5492     if test -n "$GCC"; then
5493       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5494     fi
5495   else
5496     if test $gl_cv_have_include_next = buggy; then
5497       INCLUDE_NEXT=include
5498       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5499     else
5500       INCLUDE_NEXT=include
5501       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5502     fi
5503   fi
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5515 $as_echo_n "checking for long long int... " >&6; }
5516 if test "${ac_cv_type_long_long_int+set}" = set; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h.  */
5521
5522   /* For now, do not test the preprocessor; as of 2007 there are too many
5523          implementations with broken preprocessors.  Perhaps this can
5524          be revisited in 2012.  In the meantime, code should not expect
5525          #if to work with literals wider than 32 bits.  */
5526       /* Test literals.  */
5527       long long int ll = 9223372036854775807ll;
5528       long long int nll = -9223372036854775807LL;
5529       unsigned long long int ull = 18446744073709551615ULL;
5530       /* Test constant expressions.   */
5531       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5532                      ? 1 : -1)];
5533       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5534                      ? 1 : -1)];
5535       int i = 63;
5536 int
5537 main ()
5538 {
5539 /* Test availability of runtime routines for shift and division.  */
5540       long long int llmax = 9223372036854775807ll;
5541       unsigned long long int ullmax = 18446744073709551615ull;
5542       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5543               | (llmax / ll) | (llmax % ll)
5544               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5545               | (ullmax / ull) | (ullmax % ull));
5546   ;
5547   return 0;
5548 }
5549
5550 _ACEOF
5551 if ac_fn_c_try_link "$LINENO"; then :
5552                           if test "$cross_compiling" = yes; then :
5553   ac_cv_type_long_long_int=yes
5554 else
5555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h.  */
5557 #include <limits.h>
5558                #ifndef LLONG_MAX
5559                # define HALF \
5560                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5561                # define LLONG_MAX (HALF - 1 + HALF)
5562                #endif
5563 int
5564 main ()
5565 {
5566 long long int n = 1;
5567                int i;
5568                for (i = 0; ; i++)
5569                  {
5570                    long long int m = n << i;
5571                    if (m >> i != n)
5572                      return 1;
5573                    if (LLONG_MAX / 2 < m)
5574                      break;
5575                  }
5576                return 0;
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 if ac_fn_c_try_run "$LINENO"; then :
5582   ac_cv_type_long_long_int=yes
5583 else
5584   ac_cv_type_long_long_int=no
5585 fi
5586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5587   conftest.$ac_objext conftest.beam conftest.$ac_ext
5588 fi
5589
5590 else
5591   ac_cv_type_long_long_int=no
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext \
5594     conftest$ac_exeext conftest.$ac_ext
5595 fi
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5597 $as_echo "$ac_cv_type_long_long_int" >&6; }
5598   if test $ac_cv_type_long_long_int = yes; then
5599
5600 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5601
5602   fi
5603
5604
5605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5606 $as_echo_n "checking for unsigned long long int... " >&6; }
5607 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5608   $as_echo_n "(cached) " >&6
5609 else
5610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h.  */
5612
5613   /* For now, do not test the preprocessor; as of 2007 there are too many
5614          implementations with broken preprocessors.  Perhaps this can
5615          be revisited in 2012.  In the meantime, code should not expect
5616          #if to work with literals wider than 32 bits.  */
5617       /* Test literals.  */
5618       long long int ll = 9223372036854775807ll;
5619       long long int nll = -9223372036854775807LL;
5620       unsigned long long int ull = 18446744073709551615ULL;
5621       /* Test constant expressions.   */
5622       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5623                      ? 1 : -1)];
5624       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5625                      ? 1 : -1)];
5626       int i = 63;
5627 int
5628 main ()
5629 {
5630 /* Test availability of runtime routines for shift and division.  */
5631       long long int llmax = 9223372036854775807ll;
5632       unsigned long long int ullmax = 18446744073709551615ull;
5633       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5634               | (llmax / ll) | (llmax % ll)
5635               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5636               | (ullmax / ull) | (ullmax % ull));
5637   ;
5638   return 0;
5639 }
5640
5641 _ACEOF
5642 if ac_fn_c_try_link "$LINENO"; then :
5643   ac_cv_type_unsigned_long_long_int=yes
5644 else
5645   ac_cv_type_unsigned_long_long_int=no
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext \
5648     conftest$ac_exeext conftest.$ac_ext
5649 fi
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5651 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5652   if test $ac_cv_type_unsigned_long_long_int = yes; then
5653
5654 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5655
5656   fi
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5669 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5670 if test "${ac_cv_c_restrict+set}" = set; then :
5671   $as_echo_n "(cached) " >&6
5672 else
5673   ac_cv_c_restrict=no
5674    # The order here caters to the fact that C++ does not require restrict.
5675    for ac_kw in __restrict __restrict__ _Restrict restrict; do
5676      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h.  */
5678 typedef int * int_ptr;
5679         int foo (int_ptr $ac_kw ip) {
5680         return ip[0];
5681        }
5682 int
5683 main ()
5684 {
5685 int s[1];
5686         int * $ac_kw t = s;
5687         t[0] = 0;
5688         return foo(t)
5689   ;
5690   return 0;
5691 }
5692 _ACEOF
5693 if ac_fn_c_try_compile "$LINENO"; then :
5694   ac_cv_c_restrict=$ac_kw
5695 fi
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697      test "$ac_cv_c_restrict" != no && break
5698    done
5699
5700 fi
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5702 $as_echo "$ac_cv_c_restrict" >&6; }
5703
5704  case $ac_cv_c_restrict in
5705    restrict) ;;
5706    no) $as_echo "#define restrict /**/" >>confdefs.h
5707  ;;
5708    *)  cat >>confdefs.h <<_ACEOF
5709 #define restrict $ac_cv_c_restrict
5710 _ACEOF
5711  ;;
5712  esac
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726   :
5727
5728
5729
5730
5731
5732
5733
5734      if test $gl_cv_have_include_next = yes; then
5735        gl_cv_next_string_h='<'string.h'>'
5736      else
5737        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5738 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5739 if test "${gl_cv_next_string_h+set}" = set; then :
5740   $as_echo_n "(cached) " >&6
5741 else
5742
5743           if test $ac_cv_header_string_h = yes; then
5744             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h.  */
5746 #include <string.h>
5747
5748 _ACEOF
5749                                                                                                 case "$host_os" in
5750               aix*) gl_absname_cpp="$ac_cpp -C" ;;
5751               *)    gl_absname_cpp="$ac_cpp" ;;
5752             esac
5753                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5754                sed -n '\#/string.h#{
5755                  s#.*"\(.*/string.h\)".*#\1#
5756                  s#^/[^/]#//&#
5757                  p
5758                  q
5759                }'`'"'
5760           else
5761             gl_cv_next_string_h='<'string.h'>'
5762           fi
5763
5764 fi
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5766 $as_echo "$gl_cv_next_string_h" >&6; }
5767      fi
5768      NEXT_STRING_H=$gl_cv_next_string_h
5769
5770      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5771        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5772        gl_next_as_first_directive='<'string.h'>'
5773      else
5774        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5775        gl_next_as_first_directive=$gl_cv_next_string_h
5776      fi
5777      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5778
5779
5780
5781
5782
5783     for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
5784     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5786 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5787 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5788   $as_echo_n "(cached) " >&6
5789 else
5790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h.  */
5792 #include <string.h>
5793
5794 int
5795 main ()
5796 {
5797 #undef $gl_func
5798   (void) $gl_func;
5799   ;
5800   return 0;
5801 }
5802 _ACEOF
5803 if ac_fn_c_try_compile "$LINENO"; then :
5804   eval "$as_gl_Symbol=yes"
5805 else
5806   eval "$as_gl_Symbol=no"
5807 fi
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 fi
5810 eval ac_res=\$$as_gl_Symbol
5811                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5812 $as_echo "$ac_res" >&6; }
5813      eval as_val=\$$as_gl_Symbol
5814    if test "x$as_val" = x""yes; then :
5815   cat >>confdefs.h <<_ACEOF
5816 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5817 _ACEOF
5818
5819                      eval ac_cv_have_decl_$gl_func=yes
5820 fi
5821       done
5822
5823
5824
5825   GNULIB_BTOWC=0;
5826   GNULIB_WCTOB=0;
5827   GNULIB_MBSINIT=0;
5828   GNULIB_MBRTOWC=0;
5829   GNULIB_MBRLEN=0;
5830   GNULIB_MBSRTOWCS=0;
5831   GNULIB_MBSNRTOWCS=0;
5832   GNULIB_WCRTOMB=0;
5833   GNULIB_WCSRTOMBS=0;
5834   GNULIB_WCSNRTOMBS=0;
5835   GNULIB_WCWIDTH=0;
5836     HAVE_BTOWC=1;
5837   HAVE_MBSINIT=1;
5838   HAVE_MBRTOWC=1;
5839   HAVE_MBRLEN=1;
5840   HAVE_MBSRTOWCS=1;
5841   HAVE_MBSNRTOWCS=1;
5842   HAVE_WCRTOMB=1;
5843   HAVE_WCSRTOMBS=1;
5844   HAVE_WCSNRTOMBS=1;
5845   HAVE_DECL_WCTOB=1;
5846   HAVE_DECL_WCWIDTH=1;
5847   REPLACE_MBSTATE_T=0;
5848   REPLACE_BTOWC=0;
5849   REPLACE_WCTOB=0;
5850   REPLACE_MBSINIT=0;
5851   REPLACE_MBRTOWC=0;
5852   REPLACE_MBRLEN=0;
5853   REPLACE_MBSRTOWCS=0;
5854   REPLACE_MBSNRTOWCS=0;
5855   REPLACE_WCRTOMB=0;
5856   REPLACE_WCSRTOMBS=0;
5857   REPLACE_WCSNRTOMBS=0;
5858   REPLACE_WCWIDTH=0;
5859
5860
5861             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5862 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5863 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   gl_cv_header_wchar_h_correct_inline=yes
5867      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h.  */
5869
5870        #define wcstod renamed_wcstod
5871 #include <wchar.h>
5872 extern int zero (void);
5873 int main () { return zero(); }
5874
5875 _ACEOF
5876      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5877   (eval $ac_compile) 2>&5
5878   ac_status=$?
5879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5880   test $ac_status = 0; }; then
5881        mv conftest.$ac_objext conftest1.$ac_objext
5882        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h.  */
5884
5885          #define wcstod renamed_wcstod
5886 #include <wchar.h>
5887 int zero (void) { return 0; }
5888
5889 _ACEOF
5890        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5891   (eval $ac_compile) 2>&5
5892   ac_status=$?
5893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5894   test $ac_status = 0; }; then
5895          mv conftest.$ac_objext conftest2.$ac_objext
5896          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5897            :
5898          else
5899            gl_cv_header_wchar_h_correct_inline=no
5900          fi
5901        fi
5902      fi
5903      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5904
5905 fi
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5907 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5908   if test $gl_cv_header_wchar_h_correct_inline = no; then
5909     as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5910 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5911 C99 mode. You have four options:
5912   - Add the flag -fgnu89-inline to CC and reconfigure, or
5913   - Fix your include files, using parts of
5914     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5915   - Use a gcc version older than 4.3, or
5916   - Don't use the flags -std=c99 or -std=gnu99.
5917 Configuration aborted." "$LINENO" 5
5918   fi
5919
5920
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5922 $as_echo_n "checking for wint_t... " >&6; }
5923 if test "${gt_cv_c_wint_t+set}" = set; then :
5924   $as_echo_n "(cached) " >&6
5925 else
5926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h.  */
5928
5929 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5930    <wchar.h>.
5931    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5932    before <wchar.h>.  */
5933 #include <stddef.h>
5934 #include <stdio.h>
5935 #include <time.h>
5936 #include <wchar.h>
5937        wint_t foo = (wchar_t)'\0';
5938 int
5939 main ()
5940 {
5941
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 if ac_fn_c_try_compile "$LINENO"; then :
5947   gt_cv_c_wint_t=yes
5948 else
5949   gt_cv_c_wint_t=no
5950 fi
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 fi
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5954 $as_echo "$gt_cv_c_wint_t" >&6; }
5955   if test $gt_cv_c_wint_t = yes; then
5956
5957 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5958
5959   fi
5960
5961
5962    if false; then
5963   GL_COND_LIBTOOL_TRUE=
5964   GL_COND_LIBTOOL_FALSE='#'
5965 else
5966   GL_COND_LIBTOOL_TRUE='#'
5967   GL_COND_LIBTOOL_FALSE=
5968 fi
5969
5970   gl_cond_libtool=false
5971   gl_libdeps=
5972   gl_ltlibdeps=
5973   gl_m4_base='gnulib/m4'
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983   gl_source_base='gnulib'
5984   # Code from module arg-nonnull:
5985   # Code from module c++defs:
5986   # Code from module extensions:
5987   # Code from module include_next:
5988   # Code from module memchr:
5989
5990
5991
5992
5993   GNULIB_MEMCHR=1
5994
5995
5996
5997 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
5998
5999
6000
6001   # Code from module memmem:
6002
6003
6004   if test $ac_cv_have_decl_memmem = yes; then
6005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6006 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6007 if test "${gl_cv_func_memmem_works+set}" = set; then :
6008   $as_echo_n "(cached) " >&6
6009 else
6010   if test "$cross_compiling" = yes; then :
6011                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h.  */
6013
6014 #include <features.h>
6015 #ifdef __GNU_LIBRARY__
6016  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6017   Lucky user
6018  #endif
6019 #endif
6020 #ifdef __CYGWIN__
6021  #include <cygwin/version.h>
6022  #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6023   Lucky user
6024  #endif
6025 #endif
6026
6027 _ACEOF
6028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6029   $EGREP "Lucky user" >/dev/null 2>&1; then :
6030   gl_cv_func_memmem_works=yes
6031 else
6032   gl_cv_func_memmem_works="guessing no"
6033 fi
6034 rm -f conftest*
6035
6036
6037 else
6038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h.  */
6040
6041 #include <signal.h> /* for signal */
6042 #include <string.h> /* for memmem */
6043 #include <stdlib.h> /* for malloc */
6044 #include <unistd.h> /* for alarm */
6045
6046 int
6047 main ()
6048 {
6049 size_t m = 1000000;
6050     char *haystack = (char *) malloc (2 * m + 1);
6051     char *needle = (char *) malloc (m + 1);
6052     void *result = 0;
6053     /* Failure to compile this test due to missing alarm is okay,
6054        since all such platforms (mingw) also lack memmem.  */
6055     signal (SIGALRM, SIG_DFL);
6056     alarm (5);
6057     /* Check for quadratic performance.  */
6058     if (haystack && needle)
6059       {
6060         memset (haystack, 'A', 2 * m);
6061         haystack[2 * m] = 'B';
6062         memset (needle, 'A', m);
6063         needle[m] = 'B';
6064         result = memmem (haystack, 2 * m + 1, needle, m + 1);
6065       }
6066     /* Check for empty needle behavior.  */
6067     return !result || !memmem ("a", 1, 0, 0);
6068   ;
6069   return 0;
6070 }
6071 _ACEOF
6072 if ac_fn_c_try_run "$LINENO"; then :
6073   gl_cv_func_memmem_works=yes
6074 else
6075   gl_cv_func_memmem_works=no
6076 fi
6077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6078   conftest.$ac_objext conftest.beam conftest.$ac_ext
6079 fi
6080
6081
6082 fi
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6084 $as_echo "$gl_cv_func_memmem_works" >&6; }
6085     if test "$gl_cv_func_memmem_works" != yes; then
6086       REPLACE_MEMMEM=1
6087
6088
6089
6090
6091
6092
6093
6094
6095   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6096
6097     fi
6098   fi
6099
6100   # Code from module memmem-simple:
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113   for ac_func in memmem
6114 do :
6115   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6116 if test "x$ac_cv_func_memmem" = x""yes; then :
6117   cat >>confdefs.h <<_ACEOF
6118 #define HAVE_MEMMEM 1
6119 _ACEOF
6120
6121 else
6122
6123     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6124
6125 fi
6126 done
6127
6128
6129
6130   :
6131
6132
6133
6134
6135
6136   if test $ac_cv_have_decl_memmem = no; then
6137     HAVE_DECL_MEMMEM=0
6138   fi
6139   :
6140
6141
6142
6143
6144   GNULIB_MEMMEM=1
6145
6146
6147
6148 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6149
6150
6151
6152   # Code from module multiarch:
6153
6154   # Code from module stddef:
6155
6156
6157
6158   if test $gt_cv_c_wchar_t = no; then
6159     HAVE_WCHAR_T=0
6160     STDDEF_H=stddef.h
6161   fi
6162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6163 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6164 if test "${gl_cv_decl_null_works+set}" = set; then :
6165   $as_echo_n "(cached) " >&6
6166 else
6167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h.  */
6169 #include <stddef.h>
6170       int test[2 * (sizeof NULL == sizeof (void *)) -1];
6171
6172 int
6173 main ()
6174 {
6175
6176   ;
6177   return 0;
6178 }
6179 _ACEOF
6180 if ac_fn_c_try_compile "$LINENO"; then :
6181   gl_cv_decl_null_works=yes
6182 else
6183   gl_cv_decl_null_works=no
6184 fi
6185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186 fi
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6188 $as_echo "$gl_cv_decl_null_works" >&6; }
6189   if test $gl_cv_decl_null_works = no; then
6190     REPLACE_NULL=1
6191     STDDEF_H=stddef.h
6192   fi
6193   if test -n "$STDDEF_H"; then
6194
6195
6196
6197
6198   :
6199
6200
6201
6202
6203
6204
6205
6206      if test $gl_cv_have_include_next = yes; then
6207        gl_cv_next_stddef_h='<'stddef.h'>'
6208      else
6209        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6210 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6211 if test "${gl_cv_next_stddef_h+set}" = set; then :
6212   $as_echo_n "(cached) " >&6
6213 else
6214
6215           if test $ac_cv_header_stddef_h = yes; then
6216             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h.  */
6218 #include <stddef.h>
6219
6220 _ACEOF
6221                                                                                                 case "$host_os" in
6222               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6223               *)    gl_absname_cpp="$ac_cpp" ;;
6224             esac
6225                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6226                sed -n '\#/stddef.h#{
6227                  s#.*"\(.*/stddef.h\)".*#\1#
6228                  s#^/[^/]#//&#
6229                  p
6230                  q
6231                }'`'"'
6232           else
6233             gl_cv_next_stddef_h='<'stddef.h'>'
6234           fi
6235
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6238 $as_echo "$gl_cv_next_stddef_h" >&6; }
6239      fi
6240      NEXT_STDDEF_H=$gl_cv_next_stddef_h
6241
6242      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6243        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6244        gl_next_as_first_directive='<'stddef.h'>'
6245      else
6246        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6247        gl_next_as_first_directive=$gl_cv_next_stddef_h
6248      fi
6249      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6250
6251
6252
6253   fi
6254
6255   # Code from module stdint:
6256
6257
6258
6259   if test $ac_cv_type_long_long_int = yes; then
6260     HAVE_LONG_LONG_INT=1
6261   else
6262     HAVE_LONG_LONG_INT=0
6263   fi
6264
6265
6266   if test $ac_cv_type_unsigned_long_long_int = yes; then
6267     HAVE_UNSIGNED_LONG_LONG_INT=1
6268   else
6269     HAVE_UNSIGNED_LONG_LONG_INT=0
6270   fi
6271
6272
6273       if test $ac_cv_header_inttypes_h = yes; then
6274     HAVE_INTTYPES_H=1
6275   else
6276     HAVE_INTTYPES_H=0
6277   fi
6278
6279
6280       if test $ac_cv_header_sys_types_h = yes; then
6281     HAVE_SYS_TYPES_H=1
6282   else
6283     HAVE_SYS_TYPES_H=0
6284   fi
6285
6286
6287
6288
6289
6290
6291   :
6292
6293
6294
6295
6296
6297
6298
6299      if test $gl_cv_have_include_next = yes; then
6300        gl_cv_next_stdint_h='<'stdint.h'>'
6301      else
6302        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6303 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6304 if test "${gl_cv_next_stdint_h+set}" = set; then :
6305   $as_echo_n "(cached) " >&6
6306 else
6307
6308           if test $ac_cv_header_stdint_h = yes; then
6309             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h.  */
6311 #include <stdint.h>
6312
6313 _ACEOF
6314                                                                                                 case "$host_os" in
6315               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6316               *)    gl_absname_cpp="$ac_cpp" ;;
6317             esac
6318                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6319                sed -n '\#/stdint.h#{
6320                  s#.*"\(.*/stdint.h\)".*#\1#
6321                  s#^/[^/]#//&#
6322                  p
6323                  q
6324                }'`'"'
6325           else
6326             gl_cv_next_stdint_h='<'stdint.h'>'
6327           fi
6328
6329 fi
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6331 $as_echo "$gl_cv_next_stdint_h" >&6; }
6332      fi
6333      NEXT_STDINT_H=$gl_cv_next_stdint_h
6334
6335      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6336        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6337        gl_next_as_first_directive='<'stdint.h'>'
6338      else
6339        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6340        gl_next_as_first_directive=$gl_cv_next_stdint_h
6341      fi
6342      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6343
6344
6345
6346   if test $ac_cv_header_stdint_h = yes; then
6347     HAVE_STDINT_H=1
6348   else
6349     HAVE_STDINT_H=0
6350   fi
6351
6352
6353     if test $ac_cv_header_stdint_h = yes; then
6354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6355 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6356 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6357   $as_echo_n "(cached) " >&6
6358 else
6359   gl_cv_header_working_stdint_h=no
6360        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h.  */
6362
6363
6364 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6365 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6366 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6367 #include <stdint.h>
6368 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
6369 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6370 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6371 #endif
6372
6373
6374   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6375      included before <wchar.h>.  */
6376   #include <stddef.h>
6377   #include <signal.h>
6378   #if HAVE_WCHAR_H
6379   # include <stdio.h>
6380   # include <time.h>
6381   # include <wchar.h>
6382   #endif
6383
6384
6385 #ifdef INT8_MAX
6386 int8_t a1 = INT8_MAX;
6387 int8_t a1min = INT8_MIN;
6388 #endif
6389 #ifdef INT16_MAX
6390 int16_t a2 = INT16_MAX;
6391 int16_t a2min = INT16_MIN;
6392 #endif
6393 #ifdef INT32_MAX
6394 int32_t a3 = INT32_MAX;
6395 int32_t a3min = INT32_MIN;
6396 #endif
6397 #ifdef INT64_MAX
6398 int64_t a4 = INT64_MAX;
6399 int64_t a4min = INT64_MIN;
6400 #endif
6401 #ifdef UINT8_MAX
6402 uint8_t b1 = UINT8_MAX;
6403 #else
6404 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6405 #endif
6406 #ifdef UINT16_MAX
6407 uint16_t b2 = UINT16_MAX;
6408 #endif
6409 #ifdef UINT32_MAX
6410 uint32_t b3 = UINT32_MAX;
6411 #endif
6412 #ifdef UINT64_MAX
6413 uint64_t b4 = UINT64_MAX;
6414 #endif
6415 int_least8_t c1 = INT8_C (0x7f);
6416 int_least8_t c1max = INT_LEAST8_MAX;
6417 int_least8_t c1min = INT_LEAST8_MIN;
6418 int_least16_t c2 = INT16_C (0x7fff);
6419 int_least16_t c2max = INT_LEAST16_MAX;
6420 int_least16_t c2min = INT_LEAST16_MIN;
6421 int_least32_t c3 = INT32_C (0x7fffffff);
6422 int_least32_t c3max = INT_LEAST32_MAX;
6423 int_least32_t c3min = INT_LEAST32_MIN;
6424 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6425 int_least64_t c4max = INT_LEAST64_MAX;
6426 int_least64_t c4min = INT_LEAST64_MIN;
6427 uint_least8_t d1 = UINT8_C (0xff);
6428 uint_least8_t d1max = UINT_LEAST8_MAX;
6429 uint_least16_t d2 = UINT16_C (0xffff);
6430 uint_least16_t d2max = UINT_LEAST16_MAX;
6431 uint_least32_t d3 = UINT32_C (0xffffffff);
6432 uint_least32_t d3max = UINT_LEAST32_MAX;
6433 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6434 uint_least64_t d4max = UINT_LEAST64_MAX;
6435 int_fast8_t e1 = INT_FAST8_MAX;
6436 int_fast8_t e1min = INT_FAST8_MIN;
6437 int_fast16_t e2 = INT_FAST16_MAX;
6438 int_fast16_t e2min = INT_FAST16_MIN;
6439 int_fast32_t e3 = INT_FAST32_MAX;
6440 int_fast32_t e3min = INT_FAST32_MIN;
6441 int_fast64_t e4 = INT_FAST64_MAX;
6442 int_fast64_t e4min = INT_FAST64_MIN;
6443 uint_fast8_t f1 = UINT_FAST8_MAX;
6444 uint_fast16_t f2 = UINT_FAST16_MAX;
6445 uint_fast32_t f3 = UINT_FAST32_MAX;
6446 uint_fast64_t f4 = UINT_FAST64_MAX;
6447 #ifdef INTPTR_MAX
6448 intptr_t g = INTPTR_MAX;
6449 intptr_t gmin = INTPTR_MIN;
6450 #endif
6451 #ifdef UINTPTR_MAX
6452 uintptr_t h = UINTPTR_MAX;
6453 #endif
6454 intmax_t i = INTMAX_MAX;
6455 uintmax_t j = UINTMAX_MAX;
6456
6457 #include <limits.h> /* for CHAR_BIT */
6458 #define TYPE_MINIMUM(t) \
6459   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6460 #define TYPE_MAXIMUM(t) \
6461   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6462 struct s {
6463   int check_PTRDIFF:
6464       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6465       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6466       ? 1 : -1;
6467   /* Detect bug in FreeBSD 6.0 / ia64.  */
6468   int check_SIG_ATOMIC:
6469       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6470       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6471       ? 1 : -1;
6472   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6473   int check_WCHAR:
6474       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6475       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6476       ? 1 : -1;
6477   /* Detect bug in mingw.  */
6478   int check_WINT:
6479       WINT_MIN == TYPE_MINIMUM (wint_t)
6480       && WINT_MAX == TYPE_MAXIMUM (wint_t)
6481       ? 1 : -1;
6482
6483   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
6484   int check_UINT8_C:
6485         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6486   int check_UINT16_C:
6487         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6488
6489   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
6490 #ifdef UINT8_MAX
6491   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6492 #endif
6493 #ifdef UINT16_MAX
6494   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6495 #endif
6496 #ifdef UINT32_MAX
6497   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6498 #endif
6499 #ifdef UINT64_MAX
6500   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6501 #endif
6502   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6503   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6504   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6505   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6506   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6507   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6508   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6509   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6510   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6511   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6512   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6513 };
6514
6515 int
6516 main ()
6517 {
6518
6519   ;
6520   return 0;
6521 }
6522 _ACEOF
6523 if ac_fn_c_try_compile "$LINENO"; then :
6524                                                     if test "$cross_compiling" = yes; then :
6525                  gl_cv_header_working_stdint_h=yes
6526
6527 else
6528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h.  */
6530
6531
6532 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6533 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6534 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6535 #include <stdint.h>
6536
6537
6538   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6539      included before <wchar.h>.  */
6540   #include <stddef.h>
6541   #include <signal.h>
6542   #if HAVE_WCHAR_H
6543   # include <stdio.h>
6544   # include <time.h>
6545   # include <wchar.h>
6546   #endif
6547
6548
6549 #include <stdio.h>
6550 #include <string.h>
6551 #define MVAL(macro) MVAL1(macro)
6552 #define MVAL1(expression) #expression
6553 static const char *macro_values[] =
6554   {
6555 #ifdef INT8_MAX
6556     MVAL (INT8_MAX),
6557 #endif
6558 #ifdef INT16_MAX
6559     MVAL (INT16_MAX),
6560 #endif
6561 #ifdef INT32_MAX
6562     MVAL (INT32_MAX),
6563 #endif
6564 #ifdef INT64_MAX
6565     MVAL (INT64_MAX),
6566 #endif
6567 #ifdef UINT8_MAX
6568     MVAL (UINT8_MAX),
6569 #endif
6570 #ifdef UINT16_MAX
6571     MVAL (UINT16_MAX),
6572 #endif
6573 #ifdef UINT32_MAX
6574     MVAL (UINT32_MAX),
6575 #endif
6576 #ifdef UINT64_MAX
6577     MVAL (UINT64_MAX),
6578 #endif
6579     NULL
6580   };
6581
6582 int
6583 main ()
6584 {
6585
6586   const char **mv;
6587   for (mv = macro_values; *mv != NULL; mv++)
6588     {
6589       const char *value = *mv;
6590       /* Test whether it looks like a cast expression.  */
6591       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6592           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6593           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6594           || strncmp (value, "((int)"/*)*/, 6) == 0
6595           || strncmp (value, "((signed short)"/*)*/, 15) == 0
6596           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6597         return 1;
6598     }
6599   return 0;
6600
6601   ;
6602   return 0;
6603 }
6604 _ACEOF
6605 if ac_fn_c_try_run "$LINENO"; then :
6606   gl_cv_header_working_stdint_h=yes
6607 fi
6608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6609   conftest.$ac_objext conftest.beam conftest.$ac_ext
6610 fi
6611
6612
6613 fi
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615
6616 fi
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6618 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6619   fi
6620   if test "$gl_cv_header_working_stdint_h" = yes; then
6621     STDINT_H=
6622   else
6623             for ac_header in sys/inttypes.h sys/bitypes.h
6624 do :
6625   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6626 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6627 eval as_val=\$$as_ac_Header
6628    if test "x$as_val" = x""yes; then :
6629   cat >>confdefs.h <<_ACEOF
6630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631 _ACEOF
6632
6633 fi
6634
6635 done
6636
6637     if test $ac_cv_header_sys_inttypes_h = yes; then
6638       HAVE_SYS_INTTYPES_H=1
6639     else
6640       HAVE_SYS_INTTYPES_H=0
6641     fi
6642
6643     if test $ac_cv_header_sys_bitypes_h = yes; then
6644       HAVE_SYS_BITYPES_H=1
6645     else
6646       HAVE_SYS_BITYPES_H=0
6647     fi
6648
6649
6650
6651   :
6652
6653
6654
6655
6656
6657
6658
6659
6660   if test $APPLE_UNIVERSAL_BUILD = 0; then
6661
6662
6663   for gltype in ptrdiff_t size_t ; do
6664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6665 $as_echo_n "checking for bit size of $gltype... " >&6; }
6666 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
6670   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6671      included before <wchar.h>.  */
6672   #include <stddef.h>
6673   #include <signal.h>
6674   #if HAVE_WCHAR_H
6675   # include <stdio.h>
6676   # include <time.h>
6677   # include <wchar.h>
6678   #endif
6679
6680 #include <limits.h>"; then :
6681
6682 else
6683   result=unknown
6684 fi
6685
6686        eval gl_cv_bitsizeof_${gltype}=\$result
6687
6688 fi
6689 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6690                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6691 $as_echo "$ac_res" >&6; }
6692     eval result=\$gl_cv_bitsizeof_${gltype}
6693     if test $result = unknown; then
6694                                                 result=0
6695     fi
6696     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6697     cat >>confdefs.h <<_ACEOF
6698 #define BITSIZEOF_${GLTYPE} $result
6699 _ACEOF
6700
6701     eval BITSIZEOF_${GLTYPE}=\$result
6702   done
6703
6704
6705   fi
6706
6707
6708   for gltype in sig_atomic_t wchar_t wint_t ; do
6709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6710 $as_echo_n "checking for bit size of $gltype... " >&6; }
6711 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6712   $as_echo_n "(cached) " >&6
6713 else
6714   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
6715   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6716      included before <wchar.h>.  */
6717   #include <stddef.h>
6718   #include <signal.h>
6719   #if HAVE_WCHAR_H
6720   # include <stdio.h>
6721   # include <time.h>
6722   # include <wchar.h>
6723   #endif
6724
6725 #include <limits.h>"; then :
6726
6727 else
6728   result=unknown
6729 fi
6730
6731        eval gl_cv_bitsizeof_${gltype}=\$result
6732
6733 fi
6734 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6735                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6736 $as_echo "$ac_res" >&6; }
6737     eval result=\$gl_cv_bitsizeof_${gltype}
6738     if test $result = unknown; then
6739                                                 result=0
6740     fi
6741     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6742     cat >>confdefs.h <<_ACEOF
6743 #define BITSIZEOF_${GLTYPE} $result
6744 _ACEOF
6745
6746     eval BITSIZEOF_${GLTYPE}=\$result
6747   done
6748
6749
6750
6751
6752   for gltype in sig_atomic_t wchar_t wint_t ; do
6753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6754 $as_echo_n "checking whether $gltype is signed... " >&6; }
6755 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6756   $as_echo_n "(cached) " >&6
6757 else
6758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h.  */
6760
6761   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6762      included before <wchar.h>.  */
6763   #include <stddef.h>
6764   #include <signal.h>
6765   #if HAVE_WCHAR_H
6766   # include <stdio.h>
6767   # include <time.h>
6768   # include <wchar.h>
6769   #endif
6770
6771             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6772 int
6773 main ()
6774 {
6775
6776   ;
6777   return 0;
6778 }
6779 _ACEOF
6780 if ac_fn_c_try_compile "$LINENO"; then :
6781   result=yes
6782 else
6783   result=no
6784 fi
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786        eval gl_cv_type_${gltype}_signed=\$result
6787
6788 fi
6789 eval ac_res=\$gl_cv_type_${gltype}_signed
6790                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6791 $as_echo "$ac_res" >&6; }
6792     eval result=\$gl_cv_type_${gltype}_signed
6793     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6794     if test "$result" = yes; then
6795       cat >>confdefs.h <<_ACEOF
6796 #define HAVE_SIGNED_${GLTYPE} 1
6797 _ACEOF
6798
6799       eval HAVE_SIGNED_${GLTYPE}=1
6800     else
6801       eval HAVE_SIGNED_${GLTYPE}=0
6802     fi
6803   done
6804
6805
6806   gl_cv_type_ptrdiff_t_signed=yes
6807   gl_cv_type_size_t_signed=no
6808   if test $APPLE_UNIVERSAL_BUILD = 0; then
6809
6810
6811   for gltype in ptrdiff_t size_t ; do
6812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6813 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6814 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6815   $as_echo_n "(cached) " >&6
6816 else
6817   eval gl_cv_type_${gltype}_suffix=no
6818        eval result=\$gl_cv_type_${gltype}_signed
6819        if test "$result" = yes; then
6820          glsufu=
6821        else
6822          glsufu=u
6823        fi
6824        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6825          case $glsuf in
6826            '')  gltype1='int';;
6827            l)   gltype1='long int';;
6828            ll)  gltype1='long long int';;
6829            i64) gltype1='__int64';;
6830            u)   gltype1='unsigned int';;
6831            ul)  gltype1='unsigned long int';;
6832            ull) gltype1='unsigned long long int';;
6833            ui64)gltype1='unsigned __int64';;
6834          esac
6835          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h.  */
6837
6838   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6839      included before <wchar.h>.  */
6840   #include <stddef.h>
6841   #include <signal.h>
6842   #if HAVE_WCHAR_H
6843   # include <stdio.h>
6844   # include <time.h>
6845   # include <wchar.h>
6846   #endif
6847
6848               extern $gltype foo;
6849               extern $gltype1 foo;
6850 int
6851 main ()
6852 {
6853
6854   ;
6855   return 0;
6856 }
6857 _ACEOF
6858 if ac_fn_c_try_compile "$LINENO"; then :
6859   eval gl_cv_type_${gltype}_suffix=\$glsuf
6860 fi
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862          eval result=\$gl_cv_type_${gltype}_suffix
6863          test "$result" != no && break
6864        done
6865 fi
6866 eval ac_res=\$gl_cv_type_${gltype}_suffix
6867                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6868 $as_echo "$ac_res" >&6; }
6869     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6870     eval result=\$gl_cv_type_${gltype}_suffix
6871     test "$result" = no && result=
6872     eval ${GLTYPE}_SUFFIX=\$result
6873     cat >>confdefs.h <<_ACEOF
6874 #define ${GLTYPE}_SUFFIX $result
6875 _ACEOF
6876
6877   done
6878
6879
6880   fi
6881
6882
6883   for gltype in sig_atomic_t wchar_t wint_t ; do
6884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6885 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6886 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   eval gl_cv_type_${gltype}_suffix=no
6890        eval result=\$gl_cv_type_${gltype}_signed
6891        if test "$result" = yes; then
6892          glsufu=
6893        else
6894          glsufu=u
6895        fi
6896        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6897          case $glsuf in
6898            '')  gltype1='int';;
6899            l)   gltype1='long int';;
6900            ll)  gltype1='long long int';;
6901            i64) gltype1='__int64';;
6902            u)   gltype1='unsigned int';;
6903            ul)  gltype1='unsigned long int';;
6904            ull) gltype1='unsigned long long int';;
6905            ui64)gltype1='unsigned __int64';;
6906          esac
6907          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h.  */
6909
6910   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6911      included before <wchar.h>.  */
6912   #include <stddef.h>
6913   #include <signal.h>
6914   #if HAVE_WCHAR_H
6915   # include <stdio.h>
6916   # include <time.h>
6917   # include <wchar.h>
6918   #endif
6919
6920               extern $gltype foo;
6921               extern $gltype1 foo;
6922 int
6923 main ()
6924 {
6925
6926   ;
6927   return 0;
6928 }
6929 _ACEOF
6930 if ac_fn_c_try_compile "$LINENO"; then :
6931   eval gl_cv_type_${gltype}_suffix=\$glsuf
6932 fi
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934          eval result=\$gl_cv_type_${gltype}_suffix
6935          test "$result" != no && break
6936        done
6937 fi
6938 eval ac_res=\$gl_cv_type_${gltype}_suffix
6939                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6940 $as_echo "$ac_res" >&6; }
6941     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6942     eval result=\$gl_cv_type_${gltype}_suffix
6943     test "$result" = no && result=
6944     eval ${GLTYPE}_SUFFIX=\$result
6945     cat >>confdefs.h <<_ACEOF
6946 #define ${GLTYPE}_SUFFIX $result
6947 _ACEOF
6948
6949   done
6950
6951
6952
6953     STDINT_H=stdint.h
6954   fi
6955
6956
6957   # Code from module string:
6958
6959
6960
6961   # Code from module warn-on-use:
6962   # Code from module wchar:
6963
6964
6965
6966
6967   :
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977   :
6978
6979
6980
6981
6982
6983
6984
6985      if test $gl_cv_have_include_next = yes; then
6986        gl_cv_next_wchar_h='<'wchar.h'>'
6987      else
6988        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6989 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6990 if test "${gl_cv_next_wchar_h+set}" = set; then :
6991   $as_echo_n "(cached) " >&6
6992 else
6993
6994           if test $ac_cv_header_wchar_h = yes; then
6995             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h.  */
6997 #include <wchar.h>
6998
6999 _ACEOF
7000                                                                                                 case "$host_os" in
7001               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7002               *)    gl_absname_cpp="$ac_cpp" ;;
7003             esac
7004                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7005                sed -n '\#/wchar.h#{
7006                  s#.*"\(.*/wchar.h\)".*#\1#
7007                  s#^/[^/]#//&#
7008                  p
7009                  q
7010                }'`'"'
7011           else
7012             gl_cv_next_wchar_h='<'wchar.h'>'
7013           fi
7014
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7017 $as_echo "$gl_cv_next_wchar_h" >&6; }
7018      fi
7019      NEXT_WCHAR_H=$gl_cv_next_wchar_h
7020
7021      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7022        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7023        gl_next_as_first_directive='<'wchar.h'>'
7024      else
7025        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7026        gl_next_as_first_directive=$gl_cv_next_wchar_h
7027      fi
7028      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7029
7030
7031
7032   if test $ac_cv_header_wchar_h = yes; then
7033     HAVE_WCHAR_H=1
7034   else
7035     HAVE_WCHAR_H=0
7036   fi
7037
7038
7039
7040   if test $gt_cv_c_wint_t = yes; then
7041     HAVE_WINT_T=1
7042   else
7043     HAVE_WINT_T=0
7044   fi
7045
7046
7047
7048     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
7049     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7051 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7052 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7053   $as_echo_n "(cached) " >&6
7054 else
7055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h.  */
7057
7058 /* Some systems require additional headers.  */
7059 #ifndef __GLIBC__
7060 # include <stddef.h>
7061 # include <stdio.h>
7062 # include <time.h>
7063 #endif
7064 #include <wchar.h>
7065
7066 int
7067 main ()
7068 {
7069 #undef $gl_func
7070   (void) $gl_func;
7071   ;
7072   return 0;
7073 }
7074 _ACEOF
7075 if ac_fn_c_try_compile "$LINENO"; then :
7076   eval "$as_gl_Symbol=yes"
7077 else
7078   eval "$as_gl_Symbol=no"
7079 fi
7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081 fi
7082 eval ac_res=\$$as_gl_Symbol
7083                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7084 $as_echo "$ac_res" >&6; }
7085      eval as_val=\$$as_gl_Symbol
7086    if test "x$as_val" = x""yes; then :
7087   cat >>confdefs.h <<_ACEOF
7088 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7089 _ACEOF
7090
7091                      eval ac_cv_have_decl_$gl_func=yes
7092 fi
7093       done
7094
7095
7096   # Code from module dummy:
7097   # End of code from modules
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107   gltests_libdeps=
7108   gltests_ltlibdeps=
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118   gl_source_base='tests'
7119   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
7120
7121   gl_module_indicator_condition=$gltests_WITNESS
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131   LIBGNU_LIBDEPS="$gl_libdeps"
7132
7133   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7134
7135
7136
7137 # For Makefile dependencies.
7138 GNULIB_STDINT_H=
7139 if test x"$STDINT_H" != x; then
7140   GNULIB_STDINT_H=gnulib/$STDINT_H
7141 fi
7142
7143
7144 PACKAGE=gdb
7145
7146 cat >>confdefs.h <<_ACEOF
7147 #define PACKAGE "$PACKAGE"
7148 _ACEOF
7149
7150
7151
7152 # GDB does not use automake, but gnulib does.  This line lets us
7153 # generate its Makefile.in.
7154 am__api_version='1.11'
7155
7156 # Find a good install program.  We prefer a C program (faster),
7157 # so one script is as good as another.  But avoid the broken or
7158 # incompatible versions:
7159 # SysV /etc/install, /usr/sbin/install
7160 # SunOS /usr/etc/install
7161 # IRIX /sbin/install
7162 # AIX /bin/install
7163 # AmigaOS /C/install, which installs bootblocks on floppy discs
7164 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7165 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7166 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7167 # OS/2's system install, which has a completely different semantic
7168 # ./install, which can be erroneously created by make from ./install.sh.
7169 # Reject install programs that cannot install multiple files.
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7171 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7172 if test -z "$INSTALL"; then
7173 if test "${ac_cv_path_install+set}" = set; then :
7174   $as_echo_n "(cached) " >&6
7175 else
7176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179   IFS=$as_save_IFS
7180   test -z "$as_dir" && as_dir=.
7181     # Account for people who put trailing slashes in PATH elements.
7182 case $as_dir/ in #((
7183   ./ | .// | /[cC]/* | \
7184   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7185   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7186   /usr/ucb/* ) ;;
7187   *)
7188     # OSF1 and SCO ODT 3.0 have their own names for install.
7189     # Don't use installbsd from OSF since it installs stuff as root
7190     # by default.
7191     for ac_prog in ginstall scoinst install; do
7192       for ac_exec_ext in '' $ac_executable_extensions; do
7193         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7194           if test $ac_prog = install &&
7195             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7196             # AIX install.  It has an incompatible calling convention.
7197             :
7198           elif test $ac_prog = install &&
7199             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7200             # program-specific install script used by HP pwplus--don't use.
7201             :
7202           else
7203             rm -rf conftest.one conftest.two conftest.dir
7204             echo one > conftest.one
7205             echo two > conftest.two
7206             mkdir conftest.dir
7207             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7208               test -s conftest.one && test -s conftest.two &&
7209               test -s conftest.dir/conftest.one &&
7210               test -s conftest.dir/conftest.two
7211             then
7212               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7213               break 3
7214             fi
7215           fi
7216         fi
7217       done
7218     done
7219     ;;
7220 esac
7221
7222   done
7223 IFS=$as_save_IFS
7224
7225 rm -rf conftest.one conftest.two conftest.dir
7226
7227 fi
7228   if test "${ac_cv_path_install+set}" = set; then
7229     INSTALL=$ac_cv_path_install
7230   else
7231     # As a last resort, use the slow shell script.  Don't cache a
7232     # value for INSTALL within a source directory, because that will
7233     # break other packages using the cache if that directory is
7234     # removed, or if the value is a relative name.
7235     INSTALL=$ac_install_sh
7236   fi
7237 fi
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7239 $as_echo "$INSTALL" >&6; }
7240
7241 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7242 # It thinks the first close brace ends the variable substitution.
7243 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7244
7245 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7246
7247 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7248
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7250 $as_echo_n "checking whether build environment is sane... " >&6; }
7251 # Just in case
7252 sleep 1
7253 echo timestamp > conftest.file
7254 # Reject unsafe characters in $srcdir or the absolute working directory
7255 # name.  Accept space and tab only in the latter.
7256 am_lf='
7257 '
7258 case `pwd` in
7259   *[\\\"\#\$\&\'\`$am_lf]*)
7260     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7261 esac
7262 case $srcdir in
7263   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
7264     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7265 esac
7266
7267 # Do `set' in a subshell so we don't clobber the current shell's
7268 # arguments.  Must try -L first in case configure is actually a
7269 # symlink; some systems play weird games with the mod time of symlinks
7270 # (eg FreeBSD returns the mod time of the symlink's containing
7271 # directory).
7272 if (
7273    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7274    if test "$*" = "X"; then
7275       # -L didn't work.
7276       set X `ls -t "$srcdir/configure" conftest.file`
7277    fi
7278    rm -f conftest.file
7279    if test "$*" != "X $srcdir/configure conftest.file" \
7280       && test "$*" != "X conftest.file $srcdir/configure"; then
7281
7282       # If neither matched, then we have a broken ls.  This can happen
7283       # if, for instance, CONFIG_SHELL is bash and it inherits a
7284       # broken ls alias from the environment.  This has actually
7285       # happened.  Such a system could not be considered "sane".
7286       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
7287 alias in your environment" "$LINENO" 5
7288    fi
7289
7290    test "$2" = conftest.file
7291    )
7292 then
7293    # Ok.
7294    :
7295 else
7296    as_fn_error "newly created file is older than distributed files!
7297 Check your system clock" "$LINENO" 5
7298 fi
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7300 $as_echo "yes" >&6; }
7301 test "$program_prefix" != NONE &&
7302   program_transform_name="s&^&$program_prefix&;$program_transform_name"
7303 # Use a double $ so make ignores it.
7304 test "$program_suffix" != NONE &&
7305   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7306 # Double any \ or $.
7307 # By default was `s,x,x', remove it if useless.
7308 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7309 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7310
7311 # expand $ac_aux_dir to an absolute path
7312 am_aux_dir=`cd $ac_aux_dir && pwd`
7313
7314 if test x"${MISSING+set}" != xset; then
7315   case $am_aux_dir in
7316   *\ * | *\     *)
7317     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7318   *)
7319     MISSING="\${SHELL} $am_aux_dir/missing" ;;
7320   esac
7321 fi
7322 # Use eval to expand $SHELL
7323 if eval "$MISSING --run true"; then
7324   am_missing_run="$MISSING --run "
7325 else
7326   am_missing_run=
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7328 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7329 fi
7330
7331 if test x"${install_sh}" != xset; then
7332   case $am_aux_dir in
7333   *\ * | *\     *)
7334     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7335   *)
7336     install_sh="\${SHELL} $am_aux_dir/install-sh"
7337   esac
7338 fi
7339
7340 # Installed binaries are usually stripped using `strip' when the user
7341 # run `make install-strip'.  However `strip' might not be the right
7342 # tool to use in cross-compilation environments, therefore Automake
7343 # will honor the `STRIP' environment variable to overrule this program.
7344 if test "$cross_compiling" != no; then
7345   if test -n "$ac_tool_prefix"; then
7346   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7347 set dummy ${ac_tool_prefix}strip; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if test "${ac_cv_prog_STRIP+set}" = set; then :
7351   $as_echo_n "(cached) " >&6
7352 else
7353   if test -n "$STRIP"; then
7354   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361     for ac_exec_ext in '' $ac_executable_extensions; do
7362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368   done
7369 IFS=$as_save_IFS
7370
7371 fi
7372 fi
7373 STRIP=$ac_cv_prog_STRIP
7374 if test -n "$STRIP"; then
7375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7376 $as_echo "$STRIP" >&6; }
7377 else
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7380 fi
7381
7382
7383 fi
7384 if test -z "$ac_cv_prog_STRIP"; then
7385   ac_ct_STRIP=$STRIP
7386   # Extract the first word of "strip", so it can be a program name with args.
7387 set dummy strip; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   if test -n "$ac_ct_STRIP"; then
7394   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401     for ac_exec_ext in '' $ac_executable_extensions; do
7402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403     ac_cv_prog_ac_ct_STRIP="strip"
7404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408   done
7409 IFS=$as_save_IFS
7410
7411 fi
7412 fi
7413 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7414 if test -n "$ac_ct_STRIP"; then
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7416 $as_echo "$ac_ct_STRIP" >&6; }
7417 else
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421
7422   if test "x$ac_ct_STRIP" = x; then
7423     STRIP=":"
7424   else
7425     case $cross_compiling:$ac_tool_warned in
7426 yes:)
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7429 ac_tool_warned=yes ;;
7430 esac
7431     STRIP=$ac_ct_STRIP
7432   fi
7433 else
7434   STRIP="$ac_cv_prog_STRIP"
7435 fi
7436
7437 fi
7438 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7439
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7441 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7442 if test -z "$MKDIR_P"; then
7443   if test "${ac_cv_path_mkdir+set}" = set; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7448 do
7449   IFS=$as_save_IFS
7450   test -z "$as_dir" && as_dir=.
7451     for ac_prog in mkdir gmkdir; do
7452          for ac_exec_ext in '' $ac_executable_extensions; do
7453            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7454            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7455              'mkdir (GNU coreutils) '* | \
7456              'mkdir (coreutils) '* | \
7457              'mkdir (fileutils) '4.1*)
7458                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7459                break 3;;
7460            esac
7461          done
7462        done
7463   done
7464 IFS=$as_save_IFS
7465
7466 fi
7467
7468   if test "${ac_cv_path_mkdir+set}" = set; then
7469     MKDIR_P="$ac_cv_path_mkdir -p"
7470   else
7471     # As a last resort, use the slow shell script.  Don't cache a
7472     # value for MKDIR_P within a source directory, because that will
7473     # break other packages using the cache if that directory is
7474     # removed, or if the value is a relative name.
7475     test -d ./--version && rmdir ./--version
7476     MKDIR_P="$ac_install_sh -d"
7477   fi
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7480 $as_echo "$MKDIR_P" >&6; }
7481
7482
7483 mkdir_p="$MKDIR_P"
7484 case $mkdir_p in
7485   [\\/$]* | ?:[\\/]*) ;;
7486   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7487 esac
7488
7489 for ac_prog in gawk mawk nawk awk
7490 do
7491   # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if test "${ac_cv_prog_AWK+set}" = set; then :
7496   $as_echo_n "(cached) " >&6
7497 else
7498   if test -n "$AWK"; then
7499   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504   IFS=$as_save_IFS
7505   test -z "$as_dir" && as_dir=.
7506     for ac_exec_ext in '' $ac_executable_extensions; do
7507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508     ac_cv_prog_AWK="$ac_prog"
7509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510     break 2
7511   fi
7512 done
7513   done
7514 IFS=$as_save_IFS
7515
7516 fi
7517 fi
7518 AWK=$ac_cv_prog_AWK
7519 if test -n "$AWK"; then
7520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7521 $as_echo "$AWK" >&6; }
7522 else
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7525 fi
7526
7527
7528   test -n "$AWK" && break
7529 done
7530
7531 ac_config_commands="$ac_config_commands depfiles"
7532
7533
7534 am_make=${MAKE-make}
7535 cat > confinc << 'END'
7536 am__doit:
7537         @echo this is the am__doit target
7538 .PHONY: am__doit
7539 END
7540 # If we don't find an include directive, just comment out the code.
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7542 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7543 am__include="#"
7544 am__quote=
7545 _am_result=none
7546 # First try GNU make style include.
7547 echo "include confinc" > confmf
7548 # Ignore all kinds of additional output from `make'.
7549 case `$am_make -s -f confmf 2> /dev/null` in #(
7550 *the\ am__doit\ target*)
7551   am__include=include
7552   am__quote=
7553   _am_result=GNU
7554   ;;
7555 esac
7556 # Now try BSD make style include.
7557 if test "$am__include" = "#"; then
7558    echo '.include "confinc"' > confmf
7559    case `$am_make -s -f confmf 2> /dev/null` in #(
7560    *the\ am__doit\ target*)
7561      am__include=.include
7562      am__quote="\""
7563      _am_result=BSD
7564      ;;
7565    esac
7566 fi
7567
7568
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7570 $as_echo "$_am_result" >&6; }
7571 rm -f confinc confmf
7572
7573 # Check whether --enable-dependency-tracking was given.
7574 if test "${enable_dependency_tracking+set}" = set; then :
7575   enableval=$enable_dependency_tracking;
7576 fi
7577
7578 if test "x$enable_dependency_tracking" != xno; then
7579   am_depcomp="$ac_aux_dir/depcomp"
7580   AMDEPBACKSLASH='\'
7581 fi
7582  if test "x$enable_dependency_tracking" != xno; then
7583   AMDEP_TRUE=
7584   AMDEP_FALSE='#'
7585 else
7586   AMDEP_TRUE='#'
7587   AMDEP_FALSE=
7588 fi
7589
7590
7591 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7592   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7593   # is not polluted with repeated "-I."
7594   am__isrc=' -I$(srcdir)'
7595   # test to see if srcdir already configured
7596   if test -f $srcdir/config.status; then
7597     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7598   fi
7599 fi
7600
7601 # test whether we have cygpath
7602 if test -z "$CYGPATH_W"; then
7603   if (cygpath --version) >/dev/null 2>/dev/null; then
7604     CYGPATH_W='cygpath -w'
7605   else
7606     CYGPATH_W=echo
7607   fi
7608 fi
7609
7610
7611 # Define the identity of the package.
7612  PACKAGE=gdb
7613  VERSION=UNUSED-VERSION
7614
7615
7616 # Some tools Automake needs.
7617
7618 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7619
7620
7621 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7622
7623
7624 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7625
7626
7627 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7628
7629
7630 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7631
7632 # We need awk for the "check" target.  The system "awk" is bad on
7633 # some platforms.
7634 # Always define AMTAR for backward compatibility.
7635
7636 AMTAR=${AMTAR-"${am_missing_run}tar"}
7637
7638 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7639
7640
7641
7642
7643 depcc="$CC"   am_compiler_list=
7644
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7646 $as_echo_n "checking dependency style of $depcc... " >&6; }
7647 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7651   # We make a subdir and do the tests there.  Otherwise we can end up
7652   # making bogus files that we don't know about and never remove.  For
7653   # instance it was reported that on HP-UX the gcc test will end up
7654   # making a dummy file named `D' -- because `-MD' means `put the output
7655   # in D'.
7656   mkdir conftest.dir
7657   # Copy depcomp to subdir because otherwise we won't find it if we're
7658   # using a relative directory.
7659   cp "$am_depcomp" conftest.dir
7660   cd conftest.dir
7661   # We will build objects and dependencies in a subdirectory because
7662   # it helps to detect inapplicable dependency modes.  For instance
7663   # both Tru64's cc and ICC support -MD to output dependencies as a
7664   # side effect of compilation, but ICC will put the dependencies in
7665   # the current directory while Tru64 will put them in the object
7666   # directory.
7667   mkdir sub
7668
7669   am_cv_CC_dependencies_compiler_type=none
7670   if test "$am_compiler_list" = ""; then
7671      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7672   fi
7673   am__universal=false
7674   case " $depcc " in #(
7675      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7676      esac
7677
7678   for depmode in $am_compiler_list; do
7679     # Setup a source with many dependencies, because some compilers
7680     # like to wrap large dependency lists on column 80 (with \), and
7681     # we should not choose a depcomp mode which is confused by this.
7682     #
7683     # We need to recreate these files for each test, as the compiler may
7684     # overwrite some of them when testing with obscure command lines.
7685     # This happens at least with the AIX C compiler.
7686     : > sub/conftest.c
7687     for i in 1 2 3 4 5 6; do
7688       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7689       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7690       # Solaris 8's {/usr,}/bin/sh.
7691       touch sub/conftst$i.h
7692     done
7693     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7694
7695     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7696     # mode.  It turns out that the SunPro C++ compiler does not properly
7697     # handle `-M -o', and we need to detect this.  Also, some Intel
7698     # versions had trouble with output in subdirs
7699     am__obj=sub/conftest.${OBJEXT-o}
7700     am__minus_obj="-o $am__obj"
7701     case $depmode in
7702     gcc)
7703       # This depmode causes a compiler race in universal mode.
7704       test "$am__universal" = false || continue
7705       ;;
7706     nosideeffect)
7707       # after this tag, mechanisms are not by side-effect, so they'll
7708       # only be used when explicitly requested
7709       if test "x$enable_dependency_tracking" = xyes; then
7710         continue
7711       else
7712         break
7713       fi
7714       ;;
7715     msvisualcpp | msvcmsys)
7716       # This compiler won't grok `-c -o', but also, the minuso test has
7717       # not run yet.  These depmodes are late enough in the game, and
7718       # so weak that their functioning should not be impacted.
7719       am__obj=conftest.${OBJEXT-o}
7720       am__minus_obj=
7721       ;;
7722     none) break ;;
7723     esac
7724     if depmode=$depmode \
7725        source=sub/conftest.c object=$am__obj \
7726        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7727        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7728          >/dev/null 2>conftest.err &&
7729        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7730        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7731        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7732        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7733       # icc doesn't choke on unknown options, it will just issue warnings
7734       # or remarks (even with -Werror).  So we grep stderr for any message
7735       # that says an option was ignored or not supported.
7736       # When given -MP, icc 7.0 and 7.1 complain thusly:
7737       #   icc: Command line warning: ignoring option '-M'; no argument required
7738       # The diagnosis changed in icc 8.0:
7739       #   icc: Command line remark: option '-MP' not supported
7740       if (grep 'ignoring option' conftest.err ||
7741           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7742         am_cv_CC_dependencies_compiler_type=$depmode
7743         break
7744       fi
7745     fi
7746   done
7747
7748   cd ..
7749   rm -rf conftest.dir
7750 else
7751   am_cv_CC_dependencies_compiler_type=none
7752 fi
7753
7754 fi
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7756 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7757 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7758
7759  if
7760   test "x$enable_dependency_tracking" != xno \
7761   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7762   am__fastdepCC_TRUE=
7763   am__fastdepCC_FALSE='#'
7764 else
7765   am__fastdepCC_TRUE='#'
7766   am__fastdepCC_FALSE=
7767 fi
7768
7769
7770
7771
7772
7773
7774 # Check whether --with-separate-debug-dir was given.
7775 if test "${with_separate_debug_dir+set}" = set; then :
7776   withval=$with_separate_debug_dir;
7777     DEBUGDIR=$withval
7778 else
7779   DEBUGDIR=${libdir}/debug
7780 fi
7781
7782
7783   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7784   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7785   ac_define_dir=`eval echo $DEBUGDIR`
7786   ac_define_dir=`eval echo $ac_define_dir`
7787
7788 cat >>confdefs.h <<_ACEOF
7789 #define DEBUGDIR "$ac_define_dir"
7790 _ACEOF
7791
7792
7793
7794
7795   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7796      if test "x$prefix" = xNONE; then
7797         test_prefix=/usr/local
7798      else
7799         test_prefix=$prefix
7800      fi
7801   else
7802      test_prefix=$exec_prefix
7803   fi
7804   value=0
7805   case ${ac_define_dir} in
7806      "${test_prefix}"|"${test_prefix}/"*|\
7807         '${exec_prefix}'|'${exec_prefix}/'*)
7808      value=1
7809      ;;
7810   esac
7811
7812 cat >>confdefs.h <<_ACEOF
7813 #define DEBUGDIR_RELOCATABLE $value
7814 _ACEOF
7815
7816
7817
7818
7819 # GDB's datadir relocation
7820
7821
7822
7823 # Check whether --with-gdb-datadir was given.
7824 if test "${with_gdb_datadir+set}" = set; then :
7825   withval=$with_gdb_datadir;
7826     GDB_DATADIR=$withval
7827 else
7828   GDB_DATADIR=${datadir}/gdb
7829 fi
7830
7831
7832   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7833   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7834   ac_define_dir=`eval echo $GDB_DATADIR`
7835   ac_define_dir=`eval echo $ac_define_dir`
7836
7837 cat >>confdefs.h <<_ACEOF
7838 #define GDB_DATADIR "$ac_define_dir"
7839 _ACEOF
7840
7841
7842
7843
7844   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7845      if test "x$prefix" = xNONE; then
7846         test_prefix=/usr/local
7847      else
7848         test_prefix=$prefix
7849      fi
7850   else
7851      test_prefix=$exec_prefix
7852   fi
7853   value=0
7854   case ${ac_define_dir} in
7855      "${test_prefix}"|"${test_prefix}/"*|\
7856         '${exec_prefix}'|'${exec_prefix}/'*)
7857      value=1
7858      ;;
7859   esac
7860
7861 cat >>confdefs.h <<_ACEOF
7862 #define GDB_DATADIR_RELOCATABLE $value
7863 _ACEOF
7864
7865
7866
7867
7868
7869 # Check whether --with-relocated-sources was given.
7870 if test "${with_relocated_sources+set}" = set; then :
7871   withval=$with_relocated_sources; reloc_srcdir="${withval}"
7872
7873   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7874   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7875   ac_define_dir=`eval echo $reloc_srcdir`
7876   ac_define_dir=`eval echo $ac_define_dir`
7877
7878 cat >>confdefs.h <<_ACEOF
7879 #define RELOC_SRCDIR "$ac_define_dir"
7880 _ACEOF
7881
7882
7883
7884 fi
7885
7886
7887
7888
7889 subdirs="$subdirs testsuite"
7890
7891
7892 # Check whether to support alternative target configurations
7893 # Check whether --enable-targets was given.
7894 if test "${enable_targets+set}" = set; then :
7895   enableval=$enable_targets; case "${enableval}" in
7896   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7897             ;;
7898   no)       enable_targets= ;;
7899   *)        enable_targets=$enableval ;;
7900 esac
7901 fi
7902
7903
7904 # Check whether to enable 64-bit support on 32-bit hosts
7905 # Check whether --enable-64-bit-bfd was given.
7906 if test "${enable_64_bit_bfd+set}" = set; then :
7907   enableval=$enable_64_bit_bfd; case "${enableval}" in
7908   yes)  want64=true  ;;
7909   no)   want64=false ;;
7910   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7911 esac
7912 else
7913   want64=false
7914 fi
7915
7916 # Provide defaults for some variables set by the per-host and per-target
7917 # configuration.
7918 gdb_host_obs=posix-hdep.o
7919
7920 if test "${target}" = "${host}"; then
7921   gdb_native=yes
7922 else
7923   gdb_native=no
7924 fi
7925
7926 . $srcdir/configure.host
7927
7928 # Accumulate some settings from configure.tgt over all enabled targets
7929
7930 TARGET_OBS=
7931 all_targets=
7932
7933 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7934 do
7935   if test "$targ_alias" = "all"; then
7936     all_targets=true
7937   else
7938     # Canonicalize the secondary target names.
7939     result=`$ac_config_sub $targ_alias 2>/dev/null`
7940     if test -n "$result"; then
7941         targ=$result
7942     else
7943         targ=$targ_alias
7944     fi
7945
7946     . ${srcdir}/configure.tgt
7947
7948     if test -z "${gdb_target_obs}"; then :
7949   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
7950 fi
7951
7952     # Target-specific object files
7953     for i in ${gdb_target_obs}; do
7954         case " $TARGET_OBS " in
7955         *" ${i} "*) ;;
7956         *)
7957           TARGET_OBS="$TARGET_OBS ${i}"
7958           ;;
7959         esac
7960     done
7961
7962     # Check whether this target needs 64-bit CORE_ADDR
7963     if test x${want64} = xfalse; then
7964       . ${srcdir}/../bfd/config.bfd
7965     fi
7966   fi
7967 done
7968
7969 if test x${all_targets} = xtrue; then
7970
7971   # We want all 64-bit targets if we either:
7972   #  - run on a 64-bit host  or
7973   #  - already require 64-bit support for some other target  or
7974   #  - the --enable-64-bit-bfd option was supplied
7975   # Otherwise we only support all 32-bit targets.
7976   #
7977   # NOTE: This test must be in sync with the corresponding
7978   #       tests in BFD!
7979
7980   if test x${want64} = xfalse; then
7981     # The cast to long int works around a bug in the HP C Compiler
7982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7984 # This bug is HP SR number 8606223364.
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7986 $as_echo_n "checking size of long... " >&6; }
7987 if test "${ac_cv_sizeof_long+set}" = set; then :
7988   $as_echo_n "(cached) " >&6
7989 else
7990   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
7991
7992 else
7993   if test "$ac_cv_type_long" = yes; then
7994      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7996 { as_fn_set_status 77
7997 as_fn_error "cannot compute sizeof (long)
7998 See \`config.log' for more details." "$LINENO" 5; }; }
7999    else
8000      ac_cv_sizeof_long=0
8001    fi
8002 fi
8003
8004 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8006 $as_echo "$ac_cv_sizeof_long" >&6; }
8007
8008
8009
8010 cat >>confdefs.h <<_ACEOF
8011 #define SIZEOF_LONG $ac_cv_sizeof_long
8012 _ACEOF
8013
8014
8015     if test "x${ac_cv_sizeof_long}" = "x8"; then
8016       want64=true
8017     fi
8018   fi
8019   if test x${want64} = xtrue; then
8020     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8021   else
8022     TARGET_OBS='$(ALL_TARGET_OBS)'
8023   fi
8024 fi
8025
8026
8027
8028 # For other settings, only the main target counts.
8029 gdb_sim=
8030 gdb_osabi=
8031 build_gdbserver=
8032 targ=$target; . ${srcdir}/configure.tgt
8033
8034 # Fetch the default architecture and default target vector from BFD.
8035 targ=$target; . $srcdir/../bfd/config.bfd
8036
8037 # We only want the first architecture, so strip off the others if
8038 # there is more than one.
8039 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8040
8041 if test "x$targ_archs" != x; then
8042
8043 cat >>confdefs.h <<_ACEOF
8044 #define DEFAULT_BFD_ARCH $targ_archs
8045 _ACEOF
8046
8047 fi
8048 if test "x$targ_defvec" != x; then
8049
8050 cat >>confdefs.h <<_ACEOF
8051 #define DEFAULT_BFD_VEC $targ_defvec
8052 _ACEOF
8053
8054 fi
8055
8056 # The CLI cannot be disabled yet, but may be in the future.
8057
8058 # Enable CLI.
8059 # Check whether --enable-gdbcli was given.
8060 if test "${enable_gdbcli+set}" = set; then :
8061   enableval=$enable_gdbcli; case $enableval in
8062     yes)
8063       ;;
8064     no)
8065       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8066     *)
8067       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8068   esac
8069 else
8070   enable_gdbcli=yes
8071 fi
8072
8073 if test x"$enable_gdbcli" = xyes; then
8074   if test -d $srcdir/cli; then
8075     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8076     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8077     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8078     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8079   fi
8080 fi
8081
8082 # Enable MI.
8083 # Check whether --enable-gdbmi was given.
8084 if test "${enable_gdbmi+set}" = set; then :
8085   enableval=$enable_gdbmi; case $enableval in
8086     yes | no)
8087       ;;
8088     *)
8089       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8090   esac
8091 else
8092   enable_gdbmi=yes
8093 fi
8094
8095 if test x"$enable_gdbmi" = xyes; then
8096   if test -d $srcdir/mi; then
8097     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8098     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8099     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8100     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8101   fi
8102 fi
8103
8104 # Enable TUI.
8105 # Check whether --enable-tui was given.
8106 if test "${enable_tui+set}" = set; then :
8107   enableval=$enable_tui; case $enableval in
8108     yes | no | auto)
8109       ;;
8110     *)
8111       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8112   esac
8113 else
8114   enable_tui=auto
8115 fi
8116
8117
8118 # Enable gdbtk.
8119 # Check whether --enable-gdbtk was given.
8120 if test "${enable_gdbtk+set}" = set; then :
8121   enableval=$enable_gdbtk; case $enableval in
8122     yes | no)
8123       ;;
8124     *)
8125       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8126   esac
8127 else
8128   if test -d $srcdir/gdbtk; then
8129     enable_gdbtk=yes
8130   else
8131     enable_gdbtk=no
8132   fi
8133 fi
8134
8135 # We unconditionally disable gdbtk tests on selected platforms.
8136 case $host_os in
8137   go32* | windows*)
8138     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8139 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8140     enable_gdbtk=no ;;
8141 esac
8142
8143 # Libunwind support.
8144
8145 # Check whether --with-libunwind was given.
8146 if test "${with_libunwind+set}" = set; then :
8147   withval=$with_libunwind; case "${withval}" in
8148   yes)  enable_libunwind=yes ;;
8149   no)   enable_libunwind=no ;;
8150   *)    as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8151 esac
8152 else
8153
8154   for ac_header in libunwind.h libunwind-ia64.h
8155 do :
8156   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8157 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8158 eval as_val=\$$as_ac_Header
8159    if test "x$as_val" = x""yes; then :
8160   cat >>confdefs.h <<_ACEOF
8161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8162 _ACEOF
8163
8164 fi
8165
8166 done
8167
8168   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8169     enable_libunwind=yes;
8170   fi
8171
8172 fi
8173
8174
8175 if test x"$enable_libunwind" = xyes; then
8176   for ac_header in libunwind.h libunwind-ia64.h
8177 do :
8178   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8179 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8180 eval as_val=\$$as_ac_Header
8181    if test "x$as_val" = x""yes; then :
8182   cat >>confdefs.h <<_ACEOF
8183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8184 _ACEOF
8185
8186 fi
8187
8188 done
8189
8190
8191 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8192
8193   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8194   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8195   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8196 fi
8197
8198 opt_curses=no
8199
8200 # Check whether --with-curses was given.
8201 if test "${with_curses+set}" = set; then :
8202   withval=$with_curses; opt_curses=$withval
8203 fi
8204
8205
8206 prefer_curses=no
8207 if test "$opt_curses" = "yes"; then
8208   prefer_curses=yes
8209 fi
8210
8211 # Profiling support.
8212 # Check whether --enable-profiling was given.
8213 if test "${enable_profiling+set}" = set; then :
8214   enableval=$enable_profiling; case $enableval in
8215     yes | no)
8216       ;;
8217     *)
8218       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8219   esac
8220 else
8221   enable_profiling=no
8222 fi
8223
8224
8225 for ac_func in monstartup _mcleanup
8226 do :
8227   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8228 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8229 eval as_val=\$$as_ac_var
8230    if test "x$as_val" = x""yes; then :
8231   cat >>confdefs.h <<_ACEOF
8232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8233 _ACEOF
8234
8235 fi
8236 done
8237
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8239 $as_echo_n "checking for _etext... " >&6; }
8240 if test "${ac_cv_var__etext+set}" = set; then :
8241   $as_echo_n "(cached) " >&6
8242 else
8243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h.  */
8245 #include <stdlib.h>
8246 extern char _etext;
8247
8248 int
8249 main ()
8250 {
8251 free (&_etext);
8252   ;
8253   return 0;
8254 }
8255 _ACEOF
8256 if ac_fn_c_try_link "$LINENO"; then :
8257   ac_cv_var__etext=yes
8258 else
8259   ac_cv_var__etext=no
8260 fi
8261 rm -f core conftest.err conftest.$ac_objext \
8262     conftest$ac_exeext conftest.$ac_ext
8263 fi
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8265 $as_echo "$ac_cv_var__etext" >&6; }
8266 if test $ac_cv_var__etext = yes; then
8267
8268 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8269
8270 fi
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8272 $as_echo_n "checking for etext... " >&6; }
8273 if test "${ac_cv_var_etext+set}" = set; then :
8274   $as_echo_n "(cached) " >&6
8275 else
8276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h.  */
8278 #include <stdlib.h>
8279 extern char etext;
8280
8281 int
8282 main ()
8283 {
8284 free (&etext);
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 if ac_fn_c_try_link "$LINENO"; then :
8290   ac_cv_var_etext=yes
8291 else
8292   ac_cv_var_etext=no
8293 fi
8294 rm -f core conftest.err conftest.$ac_objext \
8295     conftest$ac_exeext conftest.$ac_ext
8296 fi
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8298 $as_echo "$ac_cv_var_etext" >&6; }
8299 if test $ac_cv_var_etext = yes; then
8300
8301 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8302
8303 fi
8304 if test "$enable_profiling" = yes ; then
8305   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8306     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8307   fi
8308   PROFILE_CFLAGS=-pg
8309   OLD_CFLAGS="$CFLAGS"
8310   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8311
8312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8313 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8314 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8315   $as_echo_n "(cached) " >&6
8316 else
8317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h.  */
8319
8320 int
8321 main ()
8322 {
8323 int x;
8324   ;
8325   return 0;
8326 }
8327 _ACEOF
8328 if ac_fn_c_try_compile "$LINENO"; then :
8329   ac_cv_cc_supports_pg=yes
8330 else
8331   ac_cv_cc_supports_pg=no
8332 fi
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 fi
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8336 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8337
8338   if test $ac_cv_cc_supports_pg = no; then
8339     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8340   fi
8341
8342   CFLAGS="$OLD_CFLAGS"
8343 fi
8344
8345
8346
8347 # Check whether --with-pkgversion was given.
8348 if test "${with_pkgversion+set}" = set; then :
8349   withval=$with_pkgversion; case "$withval" in
8350       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8351       no)  PKGVERSION= ;;
8352       *)   PKGVERSION="($withval) " ;;
8353      esac
8354 else
8355   PKGVERSION="(GDB) "
8356
8357 fi
8358
8359
8360
8361
8362
8363 # Check whether --with-bugurl was given.
8364 if test "${with_bugurl+set}" = set; then :
8365   withval=$with_bugurl; case "$withval" in
8366       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8367       no)  BUGURL=
8368            ;;
8369       *)   BUGURL="$withval"
8370            ;;
8371      esac
8372 else
8373   BUGURL="http://www.gnu.org/software/gdb/bugs/"
8374
8375 fi
8376
8377   case ${BUGURL} in
8378   "")
8379     REPORT_BUGS_TO=
8380     REPORT_BUGS_TEXI=
8381     ;;
8382   *)
8383     REPORT_BUGS_TO="<$BUGURL>"
8384     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8385     ;;
8386   esac;
8387
8388
8389
8390
8391 cat >>confdefs.h <<_ACEOF
8392 #define PKGVERSION "$PKGVERSION"
8393 _ACEOF
8394
8395
8396 cat >>confdefs.h <<_ACEOF
8397 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8398 _ACEOF
8399
8400
8401 # --------------------- #
8402 # Checks for programs.  #
8403 # --------------------- #
8404
8405 for ac_prog in gawk mawk nawk awk
8406 do
8407   # Extract the first word of "$ac_prog", so it can be a program name with args.
8408 set dummy $ac_prog; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if test "${ac_cv_prog_AWK+set}" = set; then :
8412   $as_echo_n "(cached) " >&6
8413 else
8414   if test -n "$AWK"; then
8415   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8416 else
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8419 do
8420   IFS=$as_save_IFS
8421   test -z "$as_dir" && as_dir=.
8422     for ac_exec_ext in '' $ac_executable_extensions; do
8423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424     ac_cv_prog_AWK="$ac_prog"
8425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426     break 2
8427   fi
8428 done
8429   done
8430 IFS=$as_save_IFS
8431
8432 fi
8433 fi
8434 AWK=$ac_cv_prog_AWK
8435 if test -n "$AWK"; then
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8437 $as_echo "$AWK" >&6; }
8438 else
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8441 fi
8442
8443
8444   test -n "$AWK" && break
8445 done
8446
8447
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8449 $as_echo_n "checking whether ln -s works... " >&6; }
8450 LN_S=$as_ln_s
8451 if test "$LN_S" = "ln -s"; then
8452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8453 $as_echo "yes" >&6; }
8454 else
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8456 $as_echo "no, using $LN_S" >&6; }
8457 fi
8458
8459 if test -n "$ac_tool_prefix"; then
8460   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8465   $as_echo_n "(cached) " >&6
8466 else
8467   if test -n "$RANLIB"; then
8468   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8469 else
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8472 do
8473   IFS=$as_save_IFS
8474   test -z "$as_dir" && as_dir=.
8475     for ac_exec_ext in '' $ac_executable_extensions; do
8476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8477     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479     break 2
8480   fi
8481 done
8482   done
8483 IFS=$as_save_IFS
8484
8485 fi
8486 fi
8487 RANLIB=$ac_cv_prog_RANLIB
8488 if test -n "$RANLIB"; then
8489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8490 $as_echo "$RANLIB" >&6; }
8491 else
8492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8494 fi
8495
8496
8497 fi
8498 if test -z "$ac_cv_prog_RANLIB"; then
8499   ac_ct_RANLIB=$RANLIB
8500   # Extract the first word of "ranlib", so it can be a program name with args.
8501 set dummy ranlib; ac_word=$2
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 $as_echo_n "checking for $ac_word... " >&6; }
8504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8505   $as_echo_n "(cached) " >&6
8506 else
8507   if test -n "$ac_ct_RANLIB"; then
8508   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8509 else
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8512 do
8513   IFS=$as_save_IFS
8514   test -z "$as_dir" && as_dir=.
8515     for ac_exec_ext in '' $ac_executable_extensions; do
8516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8517     ac_cv_prog_ac_ct_RANLIB="ranlib"
8518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519     break 2
8520   fi
8521 done
8522   done
8523 IFS=$as_save_IFS
8524
8525 fi
8526 fi
8527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8528 if test -n "$ac_ct_RANLIB"; then
8529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8530 $as_echo "$ac_ct_RANLIB" >&6; }
8531 else
8532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8534 fi
8535
8536   if test "x$ac_ct_RANLIB" = x; then
8537     RANLIB=":"
8538   else
8539     case $cross_compiling:$ac_tool_warned in
8540 yes:)
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8543 ac_tool_warned=yes ;;
8544 esac
8545     RANLIB=$ac_ct_RANLIB
8546   fi
8547 else
8548   RANLIB="$ac_cv_prog_RANLIB"
8549 fi
8550
8551 for ac_prog in 'bison -y' byacc
8552 do
8553   # Extract the first word of "$ac_prog", so it can be a program name with args.
8554 set dummy $ac_prog; ac_word=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if test "${ac_cv_prog_YACC+set}" = set; then :
8558   $as_echo_n "(cached) " >&6
8559 else
8560   if test -n "$YACC"; then
8561   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8562 else
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8565 do
8566   IFS=$as_save_IFS
8567   test -z "$as_dir" && as_dir=.
8568     for ac_exec_ext in '' $ac_executable_extensions; do
8569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8570     ac_cv_prog_YACC="$ac_prog"
8571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572     break 2
8573   fi
8574 done
8575   done
8576 IFS=$as_save_IFS
8577
8578 fi
8579 fi
8580 YACC=$ac_cv_prog_YACC
8581 if test -n "$YACC"; then
8582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8583 $as_echo "$YACC" >&6; }
8584 else
8585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8587 fi
8588
8589
8590   test -n "$YACC" && break
8591 done
8592 test -n "$YACC" || YACC="yacc"
8593
8594
8595 if test -n "$ac_tool_prefix"; then
8596   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8597 set dummy ${ac_tool_prefix}ar; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if test "${ac_cv_prog_AR+set}" = set; then :
8601   $as_echo_n "(cached) " >&6
8602 else
8603   if test -n "$AR"; then
8604   ac_cv_prog_AR="$AR" # Let the user override the test.
8605 else
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8608 do
8609   IFS=$as_save_IFS
8610   test -z "$as_dir" && as_dir=.
8611     for ac_exec_ext in '' $ac_executable_extensions; do
8612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8613     ac_cv_prog_AR="${ac_tool_prefix}ar"
8614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615     break 2
8616   fi
8617 done
8618   done
8619 IFS=$as_save_IFS
8620
8621 fi
8622 fi
8623 AR=$ac_cv_prog_AR
8624 if test -n "$AR"; then
8625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8626 $as_echo "$AR" >&6; }
8627 else
8628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8630 fi
8631
8632
8633 fi
8634 if test -z "$ac_cv_prog_AR"; then
8635   ac_ct_AR=$AR
8636   # Extract the first word of "ar", so it can be a program name with args.
8637 set dummy ar; ac_word=$2
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639 $as_echo_n "checking for $ac_word... " >&6; }
8640 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8641   $as_echo_n "(cached) " >&6
8642 else
8643   if test -n "$ac_ct_AR"; then
8644   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8645 else
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8648 do
8649   IFS=$as_save_IFS
8650   test -z "$as_dir" && as_dir=.
8651     for ac_exec_ext in '' $ac_executable_extensions; do
8652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8653     ac_cv_prog_ac_ct_AR="ar"
8654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655     break 2
8656   fi
8657 done
8658   done
8659 IFS=$as_save_IFS
8660
8661 fi
8662 fi
8663 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8664 if test -n "$ac_ct_AR"; then
8665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8666 $as_echo "$ac_ct_AR" >&6; }
8667 else
8668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8670 fi
8671
8672   if test "x$ac_ct_AR" = x; then
8673     AR=""
8674   else
8675     case $cross_compiling:$ac_tool_warned in
8676 yes:)
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8679 ac_tool_warned=yes ;;
8680 esac
8681     AR=$ac_ct_AR
8682   fi
8683 else
8684   AR="$ac_cv_prog_AR"
8685 fi
8686
8687 if test -n "$ac_tool_prefix"; then
8688   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8689 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8693   $as_echo_n "(cached) " >&6
8694 else
8695   if test -n "$DLLTOOL"; then
8696   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8697 else
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8700 do
8701   IFS=$as_save_IFS
8702   test -z "$as_dir" && as_dir=.
8703     for ac_exec_ext in '' $ac_executable_extensions; do
8704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707     break 2
8708   fi
8709 done
8710   done
8711 IFS=$as_save_IFS
8712
8713 fi
8714 fi
8715 DLLTOOL=$ac_cv_prog_DLLTOOL
8716 if test -n "$DLLTOOL"; then
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8718 $as_echo "$DLLTOOL" >&6; }
8719 else
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8722 fi
8723
8724
8725 fi
8726 if test -z "$ac_cv_prog_DLLTOOL"; then
8727   ac_ct_DLLTOOL=$DLLTOOL
8728   # Extract the first word of "dlltool", so it can be a program name with args.
8729 set dummy dlltool; ac_word=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8733   $as_echo_n "(cached) " >&6
8734 else
8735   if test -n "$ac_ct_DLLTOOL"; then
8736   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8737 else
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in $PATH
8740 do
8741   IFS=$as_save_IFS
8742   test -z "$as_dir" && as_dir=.
8743     for ac_exec_ext in '' $ac_executable_extensions; do
8744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8745     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747     break 2
8748   fi
8749 done
8750   done
8751 IFS=$as_save_IFS
8752
8753 fi
8754 fi
8755 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8756 if test -n "$ac_ct_DLLTOOL"; then
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8758 $as_echo "$ac_ct_DLLTOOL" >&6; }
8759 else
8760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 $as_echo "no" >&6; }
8762 fi
8763
8764   if test "x$ac_ct_DLLTOOL" = x; then
8765     DLLTOOL=""
8766   else
8767     case $cross_compiling:$ac_tool_warned in
8768 yes:)
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8771 ac_tool_warned=yes ;;
8772 esac
8773     DLLTOOL=$ac_ct_DLLTOOL
8774   fi
8775 else
8776   DLLTOOL="$ac_cv_prog_DLLTOOL"
8777 fi
8778
8779 if test -n "$ac_tool_prefix"; then
8780   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8781 set dummy ${ac_tool_prefix}windres; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8785   $as_echo_n "(cached) " >&6
8786 else
8787   if test -n "$WINDRES"; then
8788   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8789 else
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 for as_dir in $PATH
8792 do
8793   IFS=$as_save_IFS
8794   test -z "$as_dir" && as_dir=.
8795     for ac_exec_ext in '' $ac_executable_extensions; do
8796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8797     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799     break 2
8800   fi
8801 done
8802   done
8803 IFS=$as_save_IFS
8804
8805 fi
8806 fi
8807 WINDRES=$ac_cv_prog_WINDRES
8808 if test -n "$WINDRES"; then
8809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8810 $as_echo "$WINDRES" >&6; }
8811 else
8812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8814 fi
8815
8816
8817 fi
8818 if test -z "$ac_cv_prog_WINDRES"; then
8819   ac_ct_WINDRES=$WINDRES
8820   # Extract the first word of "windres", so it can be a program name with args.
8821 set dummy windres; ac_word=$2
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823 $as_echo_n "checking for $ac_word... " >&6; }
8824 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8825   $as_echo_n "(cached) " >&6
8826 else
8827   if test -n "$ac_ct_WINDRES"; then
8828   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8829 else
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 for as_dir in $PATH
8832 do
8833   IFS=$as_save_IFS
8834   test -z "$as_dir" && as_dir=.
8835     for ac_exec_ext in '' $ac_executable_extensions; do
8836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8837     ac_cv_prog_ac_ct_WINDRES="windres"
8838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8839     break 2
8840   fi
8841 done
8842   done
8843 IFS=$as_save_IFS
8844
8845 fi
8846 fi
8847 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8848 if test -n "$ac_ct_WINDRES"; then
8849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8850 $as_echo "$ac_ct_WINDRES" >&6; }
8851 else
8852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8854 fi
8855
8856   if test "x$ac_ct_WINDRES" = x; then
8857     WINDRES=""
8858   else
8859     case $cross_compiling:$ac_tool_warned in
8860 yes:)
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8863 ac_tool_warned=yes ;;
8864 esac
8865     WINDRES=$ac_ct_WINDRES
8866   fi
8867 else
8868   WINDRES="$ac_cv_prog_WINDRES"
8869 fi
8870
8871
8872 # Needed for GNU/Hurd.
8873 if test -n "$ac_tool_prefix"; then
8874   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8875 set dummy ${ac_tool_prefix}mig; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if test "${ac_cv_prog_MIG+set}" = set; then :
8879   $as_echo_n "(cached) " >&6
8880 else
8881   if test -n "$MIG"; then
8882   ac_cv_prog_MIG="$MIG" # Let the user override the test.
8883 else
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8886 do
8887   IFS=$as_save_IFS
8888   test -z "$as_dir" && as_dir=.
8889     for ac_exec_ext in '' $ac_executable_extensions; do
8890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891     ac_cv_prog_MIG="${ac_tool_prefix}mig"
8892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893     break 2
8894   fi
8895 done
8896   done
8897 IFS=$as_save_IFS
8898
8899 fi
8900 fi
8901 MIG=$ac_cv_prog_MIG
8902 if test -n "$MIG"; then
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8904 $as_echo "$MIG" >&6; }
8905 else
8906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8908 fi
8909
8910
8911 fi
8912 if test -z "$ac_cv_prog_MIG"; then
8913   ac_ct_MIG=$MIG
8914   # Extract the first word of "mig", so it can be a program name with args.
8915 set dummy mig; ac_word=$2
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8917 $as_echo_n "checking for $ac_word... " >&6; }
8918 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8919   $as_echo_n "(cached) " >&6
8920 else
8921   if test -n "$ac_ct_MIG"; then
8922   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8923 else
8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 for as_dir in $PATH
8926 do
8927   IFS=$as_save_IFS
8928   test -z "$as_dir" && as_dir=.
8929     for ac_exec_ext in '' $ac_executable_extensions; do
8930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8931     ac_cv_prog_ac_ct_MIG="mig"
8932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933     break 2
8934   fi
8935 done
8936   done
8937 IFS=$as_save_IFS
8938
8939 fi
8940 fi
8941 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8942 if test -n "$ac_ct_MIG"; then
8943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8944 $as_echo "$ac_ct_MIG" >&6; }
8945 else
8946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8948 fi
8949
8950   if test "x$ac_ct_MIG" = x; then
8951     MIG=""
8952   else
8953     case $cross_compiling:$ac_tool_warned in
8954 yes:)
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8957 ac_tool_warned=yes ;;
8958 esac
8959     MIG=$ac_ct_MIG
8960   fi
8961 else
8962   MIG="$ac_cv_prog_MIG"
8963 fi
8964
8965
8966 # ---------------------- #
8967 # Checks for libraries.  #
8968 # ---------------------- #
8969
8970 # We might need to link with -lm; most simulators need it.
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8972 $as_echo_n "checking for main in -lm... " >&6; }
8973 if test "${ac_cv_lib_m_main+set}" = set; then :
8974   $as_echo_n "(cached) " >&6
8975 else
8976   ac_check_lib_save_LIBS=$LIBS
8977 LIBS="-lm  $LIBS"
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h.  */
8980
8981
8982 int
8983 main ()
8984 {
8985 return main ();
8986   ;
8987   return 0;
8988 }
8989 _ACEOF
8990 if ac_fn_c_try_link "$LINENO"; then :
8991   ac_cv_lib_m_main=yes
8992 else
8993   ac_cv_lib_m_main=no
8994 fi
8995 rm -f core conftest.err conftest.$ac_objext \
8996     conftest$ac_exeext conftest.$ac_ext
8997 LIBS=$ac_check_lib_save_LIBS
8998 fi
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9000 $as_echo "$ac_cv_lib_m_main" >&6; }
9001 if test "x$ac_cv_lib_m_main" = x""yes; then :
9002   cat >>confdefs.h <<_ACEOF
9003 #define HAVE_LIBM 1
9004 _ACEOF
9005
9006   LIBS="-lm $LIBS"
9007
9008 fi
9009
9010
9011 # We need to link with -lw to get `wctype' on Solaris before Solaris
9012 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
9013 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9014 # is known to have this problem).  Therefore we avoid libw if we can.
9015 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9016 if test "x$ac_cv_func_wctype" = x""yes; then :
9017
9018 else
9019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9020 $as_echo_n "checking for wctype in -lw... " >&6; }
9021 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9022   $as_echo_n "(cached) " >&6
9023 else
9024   ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lw  $LIBS"
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h.  */
9028
9029 /* Override any GCC internal prototype to avoid an error.
9030    Use char because int might match the return type of a GCC
9031    builtin and then its argument prototype would still apply.  */
9032 #ifdef __cplusplus
9033 extern "C"
9034 #endif
9035 char wctype ();
9036 int
9037 main ()
9038 {
9039 return wctype ();
9040   ;
9041   return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_link "$LINENO"; then :
9045   ac_cv_lib_w_wctype=yes
9046 else
9047   ac_cv_lib_w_wctype=no
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext \
9050     conftest$ac_exeext conftest.$ac_ext
9051 LIBS=$ac_check_lib_save_LIBS
9052 fi
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9054 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9055 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9056   cat >>confdefs.h <<_ACEOF
9057 #define HAVE_LIBW 1
9058 _ACEOF
9059
9060   LIBS="-lw $LIBS"
9061
9062 fi
9063
9064 fi
9065
9066
9067 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9069 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9070 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9071   $as_echo_n "(cached) " >&6
9072 else
9073   ac_func_search_save_LIBS=$LIBS
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h.  */
9076
9077 /* Override any GCC internal prototype to avoid an error.
9078    Use char because int might match the return type of a GCC
9079    builtin and then its argument prototype would still apply.  */
9080 #ifdef __cplusplus
9081 extern "C"
9082 #endif
9083 char gethostbyname ();
9084 int
9085 main ()
9086 {
9087 return gethostbyname ();
9088   ;
9089   return 0;
9090 }
9091 _ACEOF
9092 for ac_lib in '' nsl; do
9093   if test -z "$ac_lib"; then
9094     ac_res="none required"
9095   else
9096     ac_res=-l$ac_lib
9097     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9098   fi
9099   if ac_fn_c_try_link "$LINENO"; then :
9100   ac_cv_search_gethostbyname=$ac_res
9101 fi
9102 rm -f core conftest.err conftest.$ac_objext \
9103     conftest$ac_exeext
9104   if test "${ac_cv_search_gethostbyname+set}" = set; then :
9105   break
9106 fi
9107 done
9108 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9109
9110 else
9111   ac_cv_search_gethostbyname=no
9112 fi
9113 rm conftest.$ac_ext
9114 LIBS=$ac_func_search_save_LIBS
9115 fi
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9117 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9118 ac_res=$ac_cv_search_gethostbyname
9119 if test "$ac_res" != no; then :
9120   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9121
9122 fi
9123
9124
9125 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9127 $as_echo_n "checking for library containing socketpair... " >&6; }
9128 if test "${ac_cv_search_socketpair+set}" = set; then :
9129   $as_echo_n "(cached) " >&6
9130 else
9131   ac_func_search_save_LIBS=$LIBS
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h.  */
9134
9135 /* Override any GCC internal prototype to avoid an error.
9136    Use char because int might match the return type of a GCC
9137    builtin and then its argument prototype would still apply.  */
9138 #ifdef __cplusplus
9139 extern "C"
9140 #endif
9141 char socketpair ();
9142 int
9143 main ()
9144 {
9145 return socketpair ();
9146   ;
9147   return 0;
9148 }
9149 _ACEOF
9150 for ac_lib in '' socket; do
9151   if test -z "$ac_lib"; then
9152     ac_res="none required"
9153   else
9154     ac_res=-l$ac_lib
9155     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9156   fi
9157   if ac_fn_c_try_link "$LINENO"; then :
9158   ac_cv_search_socketpair=$ac_res
9159 fi
9160 rm -f core conftest.err conftest.$ac_objext \
9161     conftest$ac_exeext
9162   if test "${ac_cv_search_socketpair+set}" = set; then :
9163   break
9164 fi
9165 done
9166 if test "${ac_cv_search_socketpair+set}" = set; then :
9167
9168 else
9169   ac_cv_search_socketpair=no
9170 fi
9171 rm conftest.$ac_ext
9172 LIBS=$ac_func_search_save_LIBS
9173 fi
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9175 $as_echo "$ac_cv_search_socketpair" >&6; }
9176 ac_res=$ac_cv_search_socketpair
9177 if test "$ac_res" != no; then :
9178   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9179
9180 fi
9181
9182
9183 # Link in zlib if we can.  This allows us to read compressed debug sections.
9184
9185   # See if the user specified whether he wants zlib support or not.
9186
9187 # Check whether --with-zlib was given.
9188 if test "${with_zlib+set}" = set; then :
9189   withval=$with_zlib;
9190 else
9191   with_zlib=auto
9192 fi
9193
9194
9195   if test "$with_zlib" != "no"; then
9196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9197 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9198 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9199   $as_echo_n "(cached) " >&6
9200 else
9201   ac_func_search_save_LIBS=$LIBS
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h.  */
9204
9205 /* Override any GCC internal prototype to avoid an error.
9206    Use char because int might match the return type of a GCC
9207    builtin and then its argument prototype would still apply.  */
9208 #ifdef __cplusplus
9209 extern "C"
9210 #endif
9211 char zlibVersion ();
9212 int
9213 main ()
9214 {
9215 return zlibVersion ();
9216   ;
9217   return 0;
9218 }
9219 _ACEOF
9220 for ac_lib in '' z; do
9221   if test -z "$ac_lib"; then
9222     ac_res="none required"
9223   else
9224     ac_res=-l$ac_lib
9225     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9226   fi
9227   if ac_fn_c_try_link "$LINENO"; then :
9228   ac_cv_search_zlibVersion=$ac_res
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext \
9231     conftest$ac_exeext
9232   if test "${ac_cv_search_zlibVersion+set}" = set; then :
9233   break
9234 fi
9235 done
9236 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9237
9238 else
9239   ac_cv_search_zlibVersion=no
9240 fi
9241 rm conftest.$ac_ext
9242 LIBS=$ac_func_search_save_LIBS
9243 fi
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9245 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9246 ac_res=$ac_cv_search_zlibVersion
9247 if test "$ac_res" != no; then :
9248   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9249   for ac_header in zlib.h
9250 do :
9251   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9252 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9253   cat >>confdefs.h <<_ACEOF
9254 #define HAVE_ZLIB_H 1
9255 _ACEOF
9256
9257 fi
9258
9259 done
9260
9261 fi
9262
9263     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9264       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9265     fi
9266   fi
9267
9268
9269 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9271 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9272 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9273   $as_echo_n "(cached) " >&6
9274 else
9275   ac_func_search_save_LIBS=$LIBS
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h.  */
9278
9279 /* Override any GCC internal prototype to avoid an error.
9280    Use char because int might match the return type of a GCC
9281    builtin and then its argument prototype would still apply.  */
9282 #ifdef __cplusplus
9283 extern "C"
9284 #endif
9285 char dlgetmodinfo ();
9286 int
9287 main ()
9288 {
9289 return dlgetmodinfo ();
9290   ;
9291   return 0;
9292 }
9293 _ACEOF
9294 for ac_lib in '' dl xpdl; do
9295   if test -z "$ac_lib"; then
9296     ac_res="none required"
9297   else
9298     ac_res=-l$ac_lib
9299     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9300   fi
9301   if ac_fn_c_try_link "$LINENO"; then :
9302   ac_cv_search_dlgetmodinfo=$ac_res
9303 fi
9304 rm -f core conftest.err conftest.$ac_objext \
9305     conftest$ac_exeext
9306   if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9307   break
9308 fi
9309 done
9310 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9311
9312 else
9313   ac_cv_search_dlgetmodinfo=no
9314 fi
9315 rm conftest.$ac_ext
9316 LIBS=$ac_func_search_save_LIBS
9317 fi
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9319 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9320 ac_res=$ac_cv_search_dlgetmodinfo
9321 if test "$ac_res" != no; then :
9322   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9323
9324 fi
9325
9326
9327
9328
9329
9330 # Check whether --with-libiconv-prefix was given.
9331 if test "${with_libiconv_prefix+set}" = set; then :
9332   withval=$with_libiconv_prefix;
9333     for dir in `echo "$withval" | tr : ' '`; do
9334       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9335       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9336     done
9337
9338 fi
9339
9340
9341   BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9342   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9343
9344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9345 $as_echo_n "checking for iconv... " >&6; }
9346 if test "${am_cv_func_iconv+set}" = set; then :
9347   $as_echo_n "(cached) " >&6
9348 else
9349
9350     am_cv_func_iconv="no, consider installing GNU libiconv"
9351     am_cv_lib_iconv=no
9352     am_cv_use_build_libiconv=no
9353     am_cv_build_libiconv_path=
9354
9355     # If libiconv is part of the build tree, then try using it over
9356     # any system iconv.
9357     if test -d ../libiconv; then
9358       for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9359         am_save_LIBS="$LIBS"
9360         am_save_CPPFLAGS="$CPPFLAGS"
9361         LIBS="$LIBS $lib_dir/libiconv.a"
9362         CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9363         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h.  */
9365 #include <stdlib.h>
9366 #include <iconv.h>
9367 int
9368 main ()
9369 {
9370 iconv_t cd = iconv_open("","");
9371            iconv(cd,NULL,NULL,NULL,NULL);
9372            iconv_close(cd);
9373   ;
9374   return 0;
9375 }
9376 _ACEOF
9377 if ac_fn_c_try_link "$LINENO"; then :
9378   am_cv_use_build_libiconv=yes
9379           am_cv_build_libiconv_path=$lib_dir/libiconv.a
9380           am_cv_lib_iconv=yes
9381           am_cv_func_iconv=yes
9382 fi
9383 rm -f core conftest.err conftest.$ac_objext \
9384     conftest$ac_exeext conftest.$ac_ext
9385         LIBS="$am_save_LIBS"
9386         CPPFLAGS="$am_save_CPPFLAGS"
9387         if test "$am_cv_use_build_libiconv" = "yes"; then
9388           break
9389         fi
9390       done
9391     fi
9392
9393     # Next, try to find iconv in libc.
9394     if test "$am_cv_func_iconv" != yes; then
9395       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h.  */
9397 #include <stdlib.h>
9398 #include <iconv.h>
9399 int
9400 main ()
9401 {
9402 iconv_t cd = iconv_open("","");
9403          iconv(cd,NULL,NULL,NULL,NULL);
9404          iconv_close(cd);
9405   ;
9406   return 0;
9407 }
9408 _ACEOF
9409 if ac_fn_c_try_link "$LINENO"; then :
9410   am_cv_func_iconv=yes
9411 fi
9412 rm -f core conftest.err conftest.$ac_objext \
9413     conftest$ac_exeext conftest.$ac_ext
9414     fi
9415
9416     # If iconv was not in libc, try -liconv.  In this case, arrange to
9417     # look in the libiconv prefix, if it was specified by the user.
9418     if test "$am_cv_func_iconv" != yes; then
9419       am_save_CPPFLAGS="$CPPFLAGS"
9420       am_save_LIBS="$LIBS"
9421       if test -n "$LIBICONV_INCLUDE"; then
9422         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9423         LIBS="$LIBS $LIBICONV_LIBDIR"
9424       fi
9425       LIBS="$LIBS -liconv"
9426       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h.  */
9428 #include <stdlib.h>
9429 #include <iconv.h>
9430 int
9431 main ()
9432 {
9433 iconv_t cd = iconv_open("","");
9434          iconv(cd,NULL,NULL,NULL,NULL);
9435          iconv_close(cd);
9436   ;
9437   return 0;
9438 }
9439 _ACEOF
9440 if ac_fn_c_try_link "$LINENO"; then :
9441   am_cv_lib_iconv=yes
9442         am_cv_func_iconv=yes
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext \
9445     conftest$ac_exeext conftest.$ac_ext
9446       LIBS="$am_save_LIBS"
9447       CPPFLAGS="$am_save_CPPFLAGS"
9448     fi
9449
9450 fi
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9452 $as_echo "$am_cv_func_iconv" >&6; }
9453
9454   # Set the various flags based on the cache variables.  We can't rely
9455   # on the flags to remain set from the above code, due to caching.
9456   LIBICONV=
9457   if test "$am_cv_lib_iconv" = yes; then
9458     LIBICONV="-liconv"
9459   else
9460     LIBICONV_LIBDIR=
9461     LIBICONV_INCLUDE=
9462   fi
9463   if test "$am_cv_use_build_libiconv" = yes; then
9464     LIBICONV="$am_cv_build_libiconv_path"
9465     LIBICONV_LIBDIR=""
9466     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9467   fi
9468   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9469   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9470
9471   if test "$am_cv_func_iconv" = yes; then
9472
9473 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9474
9475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9476 $as_echo_n "checking for iconv declaration... " >&6; }
9477     if test "${am_cv_proto_iconv+set}" = set; then :
9478   $as_echo_n "(cached) " >&6
9479 else
9480
9481       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h.  */
9483
9484 #include <stdlib.h>
9485 #include <iconv.h>
9486 extern
9487 #ifdef __cplusplus
9488 "C"
9489 #endif
9490 #if defined(__STDC__) || defined(__cplusplus)
9491 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9492 #else
9493 size_t iconv();
9494 #endif
9495
9496 int
9497 main ()
9498 {
9499
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 if ac_fn_c_try_compile "$LINENO"; then :
9505   am_cv_proto_iconv_arg1=""
9506 else
9507   am_cv_proto_iconv_arg1="const"
9508 fi
9509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9510       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);"
9511 fi
9512
9513     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9515          }$am_cv_proto_iconv" >&5
9516 $as_echo "${ac_t:-
9517          }$am_cv_proto_iconv" >&6; }
9518
9519 cat >>confdefs.h <<_ACEOF
9520 #define ICONV_CONST $am_cv_proto_iconv_arg1
9521 _ACEOF
9522
9523   fi
9524
9525
9526 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9527 # There is a very specific comment in /usr/include/curses.h explaining that
9528 # termcap routines built into libcurses must not be used.
9529 #
9530 # The symptoms we observed so far is GDB unexpectedly changing
9531 # the terminal settings when tgetent is called - this is particularly
9532 # visible as the output is missing carriage returns, and so rapidly
9533 # becomes very hard to read.
9534 #
9535 # The readline configure script has already decided that libtermcap
9536 # was enough for its purposes, and so decided to build readline using
9537 # libtermcap.  Since the TUI mode requires curses, building GDB with
9538 # TUI enabled results in both libraries to be used at the same time,
9539 # which is not allowed.  This basically means that GDB with TUI is
9540 # broken on alpha-osf.
9541
9542 case $host_os in
9543   osf* )
9544     if test x"$enable_tui" = xyes; then
9545       as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9546     fi
9547     if test x"$enable_tui" = xauto; then
9548       enable_tui=no
9549     fi
9550     ;;
9551 esac
9552
9553 # For the TUI, we need enhanced curses functionality.
9554 if test x"$enable_tui" != xno; then
9555   prefer_curses=yes
9556 fi
9557
9558 curses_found=no
9559 if test x"$prefer_curses" = xyes; then
9560   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9561   # curses library because the latter might not provide all the
9562   # functionality we need.  However, this leads to problems on systems
9563   # where the linker searches /usr/local/lib, but the compiler doesn't
9564   # search /usr/local/include, if ncurses is installed in /usr/local.  A
9565   # default installation of ncurses on alpha*-dec-osf* will lead to such
9566   # a situation.
9567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9568 $as_echo_n "checking for library containing waddstr... " >&6; }
9569 if test "${ac_cv_search_waddstr+set}" = set; then :
9570   $as_echo_n "(cached) " >&6
9571 else
9572   ac_func_search_save_LIBS=$LIBS
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h.  */
9575
9576 /* Override any GCC internal prototype to avoid an error.
9577    Use char because int might match the return type of a GCC
9578    builtin and then its argument prototype would still apply.  */
9579 #ifdef __cplusplus
9580 extern "C"
9581 #endif
9582 char waddstr ();
9583 int
9584 main ()
9585 {
9586 return waddstr ();
9587   ;
9588   return 0;
9589 }
9590 _ACEOF
9591 for ac_lib in '' ncurses cursesX curses; do
9592   if test -z "$ac_lib"; then
9593     ac_res="none required"
9594   else
9595     ac_res=-l$ac_lib
9596     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9597   fi
9598   if ac_fn_c_try_link "$LINENO"; then :
9599   ac_cv_search_waddstr=$ac_res
9600 fi
9601 rm -f core conftest.err conftest.$ac_objext \
9602     conftest$ac_exeext
9603   if test "${ac_cv_search_waddstr+set}" = set; then :
9604   break
9605 fi
9606 done
9607 if test "${ac_cv_search_waddstr+set}" = set; then :
9608
9609 else
9610   ac_cv_search_waddstr=no
9611 fi
9612 rm conftest.$ac_ext
9613 LIBS=$ac_func_search_save_LIBS
9614 fi
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9616 $as_echo "$ac_cv_search_waddstr" >&6; }
9617 ac_res=$ac_cv_search_waddstr
9618 if test "$ac_res" != no; then :
9619   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9620
9621 fi
9622
9623
9624   if test "$ac_cv_search_waddstr" != no; then
9625     curses_found=yes
9626   fi
9627 fi
9628
9629 # Check whether we should enable the TUI, but only do so if we really
9630 # can.
9631 if test x"$enable_tui" != xno; then
9632   if test -d $srcdir/tui; then
9633     if test "$curses_found" != no; then
9634       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9635       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9636       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9637       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9638       CONFIG_ALL="${CONFIG_ALL} all-tui"
9639       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9640       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9641       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9642     else
9643       if test x"$enable_tui" = xyes; then
9644         as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9645       else
9646         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9647 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9648       fi
9649     fi
9650   fi
9651 fi
9652
9653 # Since GDB uses Readline, we need termcap functionality.  In many
9654 # cases this will be provided by the curses library, but some systems
9655 # have a seperate termcap library, or no curses library at all.
9656
9657 case $host_os in
9658   cygwin*)
9659     if test -d $srcdir/libtermcap; then
9660       LIBS="../libtermcap/libtermcap.a $LIBS"
9661       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9662     fi ;;
9663   go32* | *djgpp*)
9664     ac_cv_search_tgetent="none required"
9665     ;;
9666   *mingw32*)
9667     ac_cv_search_tgetent="none required"
9668     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9669     ;;
9670 esac
9671
9672 # These are the libraries checked by Readline.
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9674 $as_echo_n "checking for library containing tgetent... " >&6; }
9675 if test "${ac_cv_search_tgetent+set}" = set; then :
9676   $as_echo_n "(cached) " >&6
9677 else
9678   ac_func_search_save_LIBS=$LIBS
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h.  */
9681
9682 /* Override any GCC internal prototype to avoid an error.
9683    Use char because int might match the return type of a GCC
9684    builtin and then its argument prototype would still apply.  */
9685 #ifdef __cplusplus
9686 extern "C"
9687 #endif
9688 char tgetent ();
9689 int
9690 main ()
9691 {
9692 return tgetent ();
9693   ;
9694   return 0;
9695 }
9696 _ACEOF
9697 for ac_lib in '' termcap tinfo curses ncurses; do
9698   if test -z "$ac_lib"; then
9699     ac_res="none required"
9700   else
9701     ac_res=-l$ac_lib
9702     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9703   fi
9704   if ac_fn_c_try_link "$LINENO"; then :
9705   ac_cv_search_tgetent=$ac_res
9706 fi
9707 rm -f core conftest.err conftest.$ac_objext \
9708     conftest$ac_exeext
9709   if test "${ac_cv_search_tgetent+set}" = set; then :
9710   break
9711 fi
9712 done
9713 if test "${ac_cv_search_tgetent+set}" = set; then :
9714
9715 else
9716   ac_cv_search_tgetent=no
9717 fi
9718 rm conftest.$ac_ext
9719 LIBS=$ac_func_search_save_LIBS
9720 fi
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9722 $as_echo "$ac_cv_search_tgetent" >&6; }
9723 ac_res=$ac_cv_search_tgetent
9724 if test "$ac_res" != no; then :
9725   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9726
9727 fi
9728
9729
9730 if test "$ac_cv_search_tgetent" = no; then
9731   as_fn_error "no termcap library found" "$LINENO" 5
9732 fi
9733
9734
9735 # Check whether --with-system-readline was given.
9736 if test "${with_system_readline+set}" = set; then :
9737   withval=$with_system_readline;
9738 fi
9739
9740
9741 if test "$with_system_readline" = yes; then
9742   READLINE=-lreadline
9743   READLINE_DEPS=
9744   READLINE_CFLAGS=
9745   READLINE_TEXI_INCFLAG=
9746
9747   # readline-6.0 started to use the name `_rl_echoing_p'.
9748   # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9749
9750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9751 $as_echo_n "checking for readline_echoing_p... " >&6; }
9752   save_LIBS=$LIBS
9753   LIBS="$LIBS $READLINE"
9754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h.  */
9756
9757 int
9758 main ()
9759 {
9760 extern int readline_echoing_p;
9761                                     return readline_echoing_p;
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 if ac_fn_c_try_link "$LINENO"; then :
9767   READLINE_ECHOING_P=yes
9768 else
9769   READLINE_ECHOING_P=no
9770
9771 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9772
9773 fi
9774 rm -f core conftest.err conftest.$ac_objext \
9775     conftest$ac_exeext conftest.$ac_ext
9776   LIBS="$save_LIBS"
9777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9778 $as_echo "$READLINE_ECHOING_P" >&6; }
9779 else
9780   READLINE='$(READLINE_DIR)/libreadline.a'
9781   READLINE_DEPS='$(READLINE)'
9782   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9783   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
9784 fi
9785
9786
9787
9788
9789
9790
9791 # Check whether --with-expat was given.
9792 if test "${with_expat+set}" = set; then :
9793   withval=$with_expat;
9794 else
9795   with_expat=auto
9796 fi
9797
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9799 $as_echo_n "checking whether to use expat... " >&6; }
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9801 $as_echo "$with_expat" >&6; }
9802
9803 if test "${with_expat}" = no; then
9804   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9805 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9806   HAVE_LIBEXPAT=no
9807 else
9808
9809       if test "X$prefix" = "XNONE"; then
9810     acl_final_prefix="$ac_default_prefix"
9811   else
9812     acl_final_prefix="$prefix"
9813   fi
9814   if test "X$exec_prefix" = "XNONE"; then
9815     acl_final_exec_prefix='${prefix}'
9816   else
9817     acl_final_exec_prefix="$exec_prefix"
9818   fi
9819   acl_save_prefix="$prefix"
9820   prefix="$acl_final_prefix"
9821   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9822   prefix="$acl_save_prefix"
9823
9824
9825 # Check whether --with-gnu-ld was given.
9826 if test "${with_gnu_ld+set}" = set; then :
9827   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9828 else
9829   with_gnu_ld=no
9830 fi
9831
9832 # Prepare PATH_SEPARATOR.
9833 # The user is always right.
9834 if test "${PATH_SEPARATOR+set}" != set; then
9835   echo "#! /bin/sh" >conf$$.sh
9836   echo  "exit 0"   >>conf$$.sh
9837   chmod +x conf$$.sh
9838   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9839     PATH_SEPARATOR=';'
9840   else
9841     PATH_SEPARATOR=:
9842   fi
9843   rm -f conf$$.sh
9844 fi
9845 ac_prog=ld
9846 if test "$GCC" = yes; then
9847   # Check if gcc -print-prog-name=ld gives a path.
9848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9849 $as_echo_n "checking for ld used by GCC... " >&6; }
9850   case $host in
9851   *-*-mingw*)
9852     # gcc leaves a trailing carriage return which upsets mingw
9853     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9854   *)
9855     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9856   esac
9857   case $ac_prog in
9858     # Accept absolute paths.
9859     [\\/]* | [A-Za-z]:[\\/]*)
9860       re_direlt='/[^/][^/]*/\.\./'
9861       # Canonicalize the path of ld
9862       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9863       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9864         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9865       done
9866       test -z "$LD" && LD="$ac_prog"
9867       ;;
9868   "")
9869     # If it fails, then pretend we aren't using GCC.
9870     ac_prog=ld
9871     ;;
9872   *)
9873     # If it is relative, then search for the first ld in PATH.
9874     with_gnu_ld=unknown
9875     ;;
9876   esac
9877 elif test "$with_gnu_ld" = yes; then
9878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9879 $as_echo_n "checking for GNU ld... " >&6; }
9880 else
9881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9882 $as_echo_n "checking for non-GNU ld... " >&6; }
9883 fi
9884 if test "${acl_cv_path_LD+set}" = set; then :
9885   $as_echo_n "(cached) " >&6
9886 else
9887   if test -z "$LD"; then
9888   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9889   for ac_dir in $PATH; do
9890     test -z "$ac_dir" && ac_dir=.
9891     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9892       acl_cv_path_LD="$ac_dir/$ac_prog"
9893       # Check to see if the program is GNU ld.  I'd rather use --version,
9894       # but apparently some GNU ld's only accept -v.
9895       # Break only if it was the GNU/non-GNU ld that we prefer.
9896       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9897         test "$with_gnu_ld" != no && break
9898       else
9899         test "$with_gnu_ld" != yes && break
9900       fi
9901     fi
9902   done
9903   IFS="$ac_save_ifs"
9904 else
9905   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9906 fi
9907 fi
9908
9909 LD="$acl_cv_path_LD"
9910 if test -n "$LD"; then
9911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9912 $as_echo "$LD" >&6; }
9913 else
9914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9916 fi
9917 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9919 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9920 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9921   $as_echo_n "(cached) " >&6
9922 else
9923   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9924 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9925   acl_cv_prog_gnu_ld=yes
9926 else
9927   acl_cv_prog_gnu_ld=no
9928 fi
9929 fi
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9931 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9932 with_gnu_ld=$acl_cv_prog_gnu_ld
9933
9934
9935
9936                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9937 $as_echo_n "checking for shared library run path origin... " >&6; }
9938 if test "${acl_cv_rpath+set}" = set; then :
9939   $as_echo_n "(cached) " >&6
9940 else
9941
9942     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9943     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9944     . ./conftest.sh
9945     rm -f ./conftest.sh
9946     acl_cv_rpath=done
9947
9948 fi
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9950 $as_echo "$acl_cv_rpath" >&6; }
9951   wl="$acl_cv_wl"
9952   libext="$acl_cv_libext"
9953   shlibext="$acl_cv_shlibext"
9954   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9955   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9956   hardcode_direct="$acl_cv_hardcode_direct"
9957   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9958     # Check whether --enable-rpath was given.
9959 if test "${enable_rpath+set}" = set; then :
9960   enableval=$enable_rpath; :
9961 else
9962   enable_rpath=yes
9963 fi
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974     use_additional=yes
9975
9976   acl_save_prefix="$prefix"
9977   prefix="$acl_final_prefix"
9978   acl_save_exec_prefix="$exec_prefix"
9979   exec_prefix="$acl_final_exec_prefix"
9980
9981     eval additional_includedir=\"$includedir\"
9982     eval additional_libdir=\"$libdir\"
9983
9984   exec_prefix="$acl_save_exec_prefix"
9985   prefix="$acl_save_prefix"
9986
9987
9988 # Check whether --with-libexpat-prefix was given.
9989 if test "${with_libexpat_prefix+set}" = set; then :
9990   withval=$with_libexpat_prefix;
9991     if test "X$withval" = "Xno"; then
9992       use_additional=no
9993     else
9994       if test "X$withval" = "X"; then
9995
9996   acl_save_prefix="$prefix"
9997   prefix="$acl_final_prefix"
9998   acl_save_exec_prefix="$exec_prefix"
9999   exec_prefix="$acl_final_exec_prefix"
10000
10001           eval additional_includedir=\"$includedir\"
10002           eval additional_libdir=\"$libdir\"
10003
10004   exec_prefix="$acl_save_exec_prefix"
10005   prefix="$acl_save_prefix"
10006
10007       else
10008         additional_includedir="$withval/include"
10009         additional_libdir="$withval/lib"
10010       fi
10011     fi
10012
10013 fi
10014
10015       LIBEXPAT=
10016   LTLIBEXPAT=
10017   INCEXPAT=
10018   rpathdirs=
10019   ltrpathdirs=
10020   names_already_handled=
10021   names_next_round='expat '
10022   while test -n "$names_next_round"; do
10023     names_this_round="$names_next_round"
10024     names_next_round=
10025     for name in $names_this_round; do
10026       already_handled=
10027       for n in $names_already_handled; do
10028         if test "$n" = "$name"; then
10029           already_handled=yes
10030           break
10031         fi
10032       done
10033       if test -z "$already_handled"; then
10034         names_already_handled="$names_already_handled $name"
10035                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10036         eval value=\"\$HAVE_LIB$uppername\"
10037         if test -n "$value"; then
10038           if test "$value" = yes; then
10039             eval value=\"\$LIB$uppername\"
10040             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10041             eval value=\"\$LTLIB$uppername\"
10042             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10043           else
10044                                     :
10045           fi
10046         else
10047                               found_dir=
10048           found_la=
10049           found_so=
10050           found_a=
10051           if test $use_additional = yes; then
10052             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10053               found_dir="$additional_libdir"
10054               found_so="$additional_libdir/lib$name.$shlibext"
10055               if test -f "$additional_libdir/lib$name.la"; then
10056                 found_la="$additional_libdir/lib$name.la"
10057               fi
10058             else
10059               if test -f "$additional_libdir/lib$name.$libext"; then
10060                 found_dir="$additional_libdir"
10061                 found_a="$additional_libdir/lib$name.$libext"
10062                 if test -f "$additional_libdir/lib$name.la"; then
10063                   found_la="$additional_libdir/lib$name.la"
10064                 fi
10065               fi
10066             fi
10067           fi
10068           if test "X$found_dir" = "X"; then
10069             for x in $LDFLAGS $LTLIBEXPAT; do
10070
10071   acl_save_prefix="$prefix"
10072   prefix="$acl_final_prefix"
10073   acl_save_exec_prefix="$exec_prefix"
10074   exec_prefix="$acl_final_exec_prefix"
10075   eval x=\"$x\"
10076   exec_prefix="$acl_save_exec_prefix"
10077   prefix="$acl_save_prefix"
10078
10079               case "$x" in
10080                 -L*)
10081                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10082                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10083                     found_dir="$dir"
10084                     found_so="$dir/lib$name.$shlibext"
10085                     if test -f "$dir/lib$name.la"; then
10086                       found_la="$dir/lib$name.la"
10087                     fi
10088                   else
10089                     if test -f "$dir/lib$name.$libext"; then
10090                       found_dir="$dir"
10091                       found_a="$dir/lib$name.$libext"
10092                       if test -f "$dir/lib$name.la"; then
10093                         found_la="$dir/lib$name.la"
10094                       fi
10095                     fi
10096                   fi
10097                   ;;
10098               esac
10099               if test "X$found_dir" != "X"; then
10100                 break
10101               fi
10102             done
10103           fi
10104           if test "X$found_dir" != "X"; then
10105                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10106             if test "X$found_so" != "X"; then
10107                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10108                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10109               else
10110                                                                                 haveit=
10111                 for x in $ltrpathdirs; do
10112                   if test "X$x" = "X$found_dir"; then
10113                     haveit=yes
10114                     break
10115                   fi
10116                 done
10117                 if test -z "$haveit"; then
10118                   ltrpathdirs="$ltrpathdirs $found_dir"
10119                 fi
10120                                 if test "$hardcode_direct" = yes; then
10121                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10122                 else
10123                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10124                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10125                                                             haveit=
10126                     for x in $rpathdirs; do
10127                       if test "X$x" = "X$found_dir"; then
10128                         haveit=yes
10129                         break
10130                       fi
10131                     done
10132                     if test -z "$haveit"; then
10133                       rpathdirs="$rpathdirs $found_dir"
10134                     fi
10135                   else
10136                                                                                 haveit=
10137                     for x in $LDFLAGS $LIBEXPAT; do
10138
10139   acl_save_prefix="$prefix"
10140   prefix="$acl_final_prefix"
10141   acl_save_exec_prefix="$exec_prefix"
10142   exec_prefix="$acl_final_exec_prefix"
10143   eval x=\"$x\"
10144   exec_prefix="$acl_save_exec_prefix"
10145   prefix="$acl_save_prefix"
10146
10147                       if test "X$x" = "X-L$found_dir"; then
10148                         haveit=yes
10149                         break
10150                       fi
10151                     done
10152                     if test -z "$haveit"; then
10153                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10154                     fi
10155                     if test "$hardcode_minus_L" != no; then
10156                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10157                     else
10158                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10159                     fi
10160                   fi
10161                 fi
10162               fi
10163             else
10164               if test "X$found_a" != "X"; then
10165                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10166               else
10167                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10168               fi
10169             fi
10170                         additional_includedir=
10171             case "$found_dir" in
10172               */lib | */lib/)
10173                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10174                 additional_includedir="$basedir/include"
10175                 ;;
10176             esac
10177             if test "X$additional_includedir" != "X"; then
10178                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10179                 haveit=
10180                 if test "X$additional_includedir" = "X/usr/local/include"; then
10181                   if test -n "$GCC"; then
10182                     case $host_os in
10183                       linux*) haveit=yes;;
10184                     esac
10185                   fi
10186                 fi
10187                 if test -z "$haveit"; then
10188                   for x in $CPPFLAGS $INCEXPAT; do
10189
10190   acl_save_prefix="$prefix"
10191   prefix="$acl_final_prefix"
10192   acl_save_exec_prefix="$exec_prefix"
10193   exec_prefix="$acl_final_exec_prefix"
10194   eval x=\"$x\"
10195   exec_prefix="$acl_save_exec_prefix"
10196   prefix="$acl_save_prefix"
10197
10198                     if test "X$x" = "X-I$additional_includedir"; then
10199                       haveit=yes
10200                       break
10201                     fi
10202                   done
10203                   if test -z "$haveit"; then
10204                     if test -d "$additional_includedir"; then
10205                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10206                     fi
10207                   fi
10208                 fi
10209               fi
10210             fi
10211                         if test -n "$found_la"; then
10212                                                         save_libdir="$libdir"
10213               case "$found_la" in
10214                 */* | *\\*) . "$found_la" ;;
10215                 *) . "./$found_la" ;;
10216               esac
10217               libdir="$save_libdir"
10218                             for dep in $dependency_libs; do
10219                 case "$dep" in
10220                   -L*)
10221                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10222                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10223                       haveit=
10224                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10225                         if test -n "$GCC"; then
10226                           case $host_os in
10227                             linux*) haveit=yes;;
10228                           esac
10229                         fi
10230                       fi
10231                       if test -z "$haveit"; then
10232                         haveit=
10233                         for x in $LDFLAGS $LIBEXPAT; do
10234
10235   acl_save_prefix="$prefix"
10236   prefix="$acl_final_prefix"
10237   acl_save_exec_prefix="$exec_prefix"
10238   exec_prefix="$acl_final_exec_prefix"
10239   eval x=\"$x\"
10240   exec_prefix="$acl_save_exec_prefix"
10241   prefix="$acl_save_prefix"
10242
10243                           if test "X$x" = "X-L$additional_libdir"; then
10244                             haveit=yes
10245                             break
10246                           fi
10247                         done
10248                         if test -z "$haveit"; then
10249                           if test -d "$additional_libdir"; then
10250                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10251                           fi
10252                         fi
10253                         haveit=
10254                         for x in $LDFLAGS $LTLIBEXPAT; do
10255
10256   acl_save_prefix="$prefix"
10257   prefix="$acl_final_prefix"
10258   acl_save_exec_prefix="$exec_prefix"
10259   exec_prefix="$acl_final_exec_prefix"
10260   eval x=\"$x\"
10261   exec_prefix="$acl_save_exec_prefix"
10262   prefix="$acl_save_prefix"
10263
10264                           if test "X$x" = "X-L$additional_libdir"; then
10265                             haveit=yes
10266                             break
10267                           fi
10268                         done
10269                         if test -z "$haveit"; then
10270                           if test -d "$additional_libdir"; then
10271                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10272                           fi
10273                         fi
10274                       fi
10275                     fi
10276                     ;;
10277                   -R*)
10278                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10279                     if test "$enable_rpath" != no; then
10280                                                                   haveit=
10281                       for x in $rpathdirs; do
10282                         if test "X$x" = "X$dir"; then
10283                           haveit=yes
10284                           break
10285                         fi
10286                       done
10287                       if test -z "$haveit"; then
10288                         rpathdirs="$rpathdirs $dir"
10289                       fi
10290                                                                   haveit=
10291                       for x in $ltrpathdirs; do
10292                         if test "X$x" = "X$dir"; then
10293                           haveit=yes
10294                           break
10295                         fi
10296                       done
10297                       if test -z "$haveit"; then
10298                         ltrpathdirs="$ltrpathdirs $dir"
10299                       fi
10300                     fi
10301                     ;;
10302                   -l*)
10303                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10304                     ;;
10305                   *.la)
10306                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10307                     ;;
10308                   *)
10309                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10310                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10311                     ;;
10312                 esac
10313               done
10314             fi
10315           else
10316                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10317             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10318           fi
10319         fi
10320       fi
10321     done
10322   done
10323   if test "X$rpathdirs" != "X"; then
10324     if test -n "$hardcode_libdir_separator"; then
10325                         alldirs=
10326       for found_dir in $rpathdirs; do
10327         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10328       done
10329             acl_save_libdir="$libdir"
10330       libdir="$alldirs"
10331       eval flag=\"$hardcode_libdir_flag_spec\"
10332       libdir="$acl_save_libdir"
10333       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10334     else
10335             for found_dir in $rpathdirs; do
10336         acl_save_libdir="$libdir"
10337         libdir="$found_dir"
10338         eval flag=\"$hardcode_libdir_flag_spec\"
10339         libdir="$acl_save_libdir"
10340         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10341       done
10342     fi
10343   fi
10344   if test "X$ltrpathdirs" != "X"; then
10345             for found_dir in $ltrpathdirs; do
10346       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10347     done
10348   fi
10349
10350
10351         ac_save_CPPFLAGS="$CPPFLAGS"
10352
10353   for element in $INCEXPAT; do
10354     haveit=
10355     for x in $CPPFLAGS; do
10356
10357   acl_save_prefix="$prefix"
10358   prefix="$acl_final_prefix"
10359   acl_save_exec_prefix="$exec_prefix"
10360   exec_prefix="$acl_final_exec_prefix"
10361   eval x=\"$x\"
10362   exec_prefix="$acl_save_exec_prefix"
10363   prefix="$acl_save_prefix"
10364
10365       if test "X$x" = "X$element"; then
10366         haveit=yes
10367         break
10368       fi
10369     done
10370     if test -z "$haveit"; then
10371       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10372     fi
10373   done
10374
10375
10376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10377 $as_echo_n "checking for libexpat... " >&6; }
10378 if test "${ac_cv_libexpat+set}" = set; then :
10379   $as_echo_n "(cached) " >&6
10380 else
10381
10382     ac_save_LIBS="$LIBS"
10383     LIBS="$LIBS $LIBEXPAT"
10384     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h.  */
10386 #include "expat.h"
10387 int
10388 main ()
10389 {
10390 XML_Parser p = XML_ParserCreate (0);
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 if ac_fn_c_try_link "$LINENO"; then :
10396   ac_cv_libexpat=yes
10397 else
10398   ac_cv_libexpat=no
10399 fi
10400 rm -f core conftest.err conftest.$ac_objext \
10401     conftest$ac_exeext conftest.$ac_ext
10402     LIBS="$ac_save_LIBS"
10403
10404 fi
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10406 $as_echo "$ac_cv_libexpat" >&6; }
10407   if test "$ac_cv_libexpat" = yes; then
10408     HAVE_LIBEXPAT=yes
10409
10410 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10411
10412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10413 $as_echo_n "checking how to link with libexpat... " >&6; }
10414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10415 $as_echo "$LIBEXPAT" >&6; }
10416   else
10417     HAVE_LIBEXPAT=no
10418             CPPFLAGS="$ac_save_CPPFLAGS"
10419     LIBEXPAT=
10420     LTLIBEXPAT=
10421   fi
10422
10423
10424
10425
10426
10427
10428   if test "$HAVE_LIBEXPAT" != yes; then
10429     if test "$with_expat" = yes; then
10430       as_fn_error "expat is missing or unusable" "$LINENO" 5
10431     else
10432       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10433 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10434     fi
10435   else
10436     save_LIBS=$LIBS
10437     LIBS="$LIBS $LIBEXPAT"
10438     for ac_func in XML_StopParser
10439 do :
10440   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10441 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10442   cat >>confdefs.h <<_ACEOF
10443 #define HAVE_XML_STOPPARSER 1
10444 _ACEOF
10445
10446 fi
10447 done
10448
10449     LIBS=$save_LIBS
10450   fi
10451 fi
10452
10453
10454
10455
10456
10457
10458 # Check whether --with-python was given.
10459 if test "${with_python+set}" = set; then :
10460   withval=$with_python;
10461 else
10462   with_python=auto
10463 fi
10464
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10466 $as_echo_n "checking whether to use python... " >&6; }
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10468 $as_echo "$with_python" >&6; }
10469
10470 if test "${with_python}" = no; then
10471   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10472 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10473   have_libpython=no
10474 else
10475   case "${with_python}" in
10476   /*)
10477     if test -d ${with_python}; then
10478       # Assume the python binary is ${with_python}/bin/python.
10479       python_prog="${with_python}/bin/python"
10480       python_prefix=
10481       if test ! -x "${python_prog}"; then
10482         # Fall back to gdb 7.0/7.1 behaviour.
10483         python_prog=missing
10484         python_prefix=${with_python}
10485       fi
10486     elif test -x "${with_python}"; then
10487       # While we can't run python compiled for $host (unless host == build),
10488       # the user could write a script that provides the needed information,
10489       # so we support that.
10490       python_prog=${with_python}
10491       python_prefix=
10492     else
10493       as_fn_error "invalid value for --with-python" "$LINENO" 5
10494     fi
10495     ;;
10496   */*)
10497     # Disallow --with-python=foo/bar.
10498     as_fn_error "invalid value for --with-python" "$LINENO" 5
10499     ;;
10500   *)
10501     # The user has either specified auto, yes, or the name of the python
10502     # program assumed to be in $PATH.
10503     python_prefix=
10504     case "${with_python}" in
10505     yes | auto)
10506       if test ${build} = ${host}; then
10507         # Extract the first word of "python", so it can be a program name with args.
10508 set dummy python; ac_word=$2
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510 $as_echo_n "checking for $ac_word... " >&6; }
10511 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10512   $as_echo_n "(cached) " >&6
10513 else
10514   case $python_prog_path in
10515   [\\/]* | ?:[\\/]*)
10516   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10517   ;;
10518   *)
10519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520 for as_dir in $PATH
10521 do
10522   IFS=$as_save_IFS
10523   test -z "$as_dir" && as_dir=.
10524     for ac_exec_ext in '' $ac_executable_extensions; do
10525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528     break 2
10529   fi
10530 done
10531   done
10532 IFS=$as_save_IFS
10533
10534   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10535   ;;
10536 esac
10537 fi
10538 python_prog_path=$ac_cv_path_python_prog_path
10539 if test -n "$python_prog_path"; then
10540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10541 $as_echo "$python_prog_path" >&6; }
10542 else
10543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544 $as_echo "no" >&6; }
10545 fi
10546
10547
10548         if test "${python_prog_path}" = missing; then
10549           python_prog=missing
10550         else
10551           python_prog=${python_prog_path}
10552         fi
10553       else
10554         # Not much we can do except assume the cross-compiler will find the
10555         # right files.
10556         python_prog=missing
10557       fi
10558       ;;
10559     *)
10560       # While we can't run python compiled for $host (unless host == build),
10561       # the user could write a script that provides the needed information,
10562       # so we support that.
10563       python_prog="${with_python}"
10564       # Extract the first word of "${python_prog}", so it can be a program name with args.
10565 set dummy ${python_prog}; ac_word=$2
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567 $as_echo_n "checking for $ac_word... " >&6; }
10568 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10569   $as_echo_n "(cached) " >&6
10570 else
10571   case $python_prog_path in
10572   [\\/]* | ?:[\\/]*)
10573   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10574   ;;
10575   *)
10576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10577 for as_dir in $PATH
10578 do
10579   IFS=$as_save_IFS
10580   test -z "$as_dir" && as_dir=.
10581     for ac_exec_ext in '' $ac_executable_extensions; do
10582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10583     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10585     break 2
10586   fi
10587 done
10588   done
10589 IFS=$as_save_IFS
10590
10591   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10592   ;;
10593 esac
10594 fi
10595 python_prog_path=$ac_cv_path_python_prog_path
10596 if test -n "$python_prog_path"; then
10597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10598 $as_echo "$python_prog_path" >&6; }
10599 else
10600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; }
10602 fi
10603
10604
10605       if test "${python_prog_path}" = missing; then
10606         as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10607       fi
10608       ;;
10609     esac
10610   esac
10611
10612   if test "${python_prog}" != missing; then
10613     # We have a python program to use, but it may be too old.
10614     # Don't flag an error for --with-python=auto (the default).
10615     have_python_config=yes
10616     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10617     if test $? != 0; then
10618       have_python_config=failed
10619       if test "${with_python}" != auto; then
10620         as_fn_error "failure running python-config --includes" "$LINENO" 5
10621       fi
10622     fi
10623     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10624     if test $? != 0; then
10625       have_python_config=failed
10626       if test "${with_python}" != auto; then
10627         as_fn_error "failure running python-config --ldflags" "$LINENO" 5
10628       fi
10629     fi
10630     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10631     if test $? != 0; then
10632       have_python_config=failed
10633       if test "${with_python}" != auto; then
10634         as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10635       fi
10636     fi
10637   else
10638     # We do not have a python executable we can use to determine where
10639     # to find the Python headers and libs.  We cannot guess the include
10640     # path from the python_prefix either, because that include path
10641     # depends on the Python version.  So, there is nothing much we can
10642     # do except assume that the compiler will be able to find those files.
10643     python_includes=
10644     python_libs=
10645     have_python_config=no
10646   fi
10647
10648   # If we have python-config, only try the configuration it provides.
10649   # Otherwise fallback on the old way of trying different versions of
10650   # python in turn.
10651
10652   have_libpython=no
10653   if test "${have_python_config}" = yes; then
10654     python_version=`echo " ${python_libs} " \
10655                          | sed -e 's,^.* -l\(python[0-9]*[.][0-9]*\) .*$,\1,'`
10656     case "${python_version}" in
10657     python*)
10658
10659   version=${python_version}
10660
10661   new_CPPFLAGS=${python_includes}
10662   new_LIBS=${python_libs}
10663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10664 $as_echo_n "checking for ${version}... " >&6; }
10665   save_CPPFLAGS=$CPPFLAGS
10666   save_LIBS=$LIBS
10667   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10668   LIBS="$LIBS $new_LIBS"
10669   found_usable_python=no
10670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h.  */
10672 #include "Python.h"
10673 int
10674 main ()
10675 {
10676 Py_Initialize ();
10677   ;
10678   return 0;
10679 }
10680 _ACEOF
10681 if ac_fn_c_try_link "$LINENO"; then :
10682   have_libpython=${version}
10683                   found_usable_python=yes
10684                   PYTHON_CPPFLAGS=$new_CPPFLAGS
10685                   PYTHON_LIBS=$new_LIBS
10686 fi
10687 rm -f core conftest.err conftest.$ac_objext \
10688     conftest$ac_exeext conftest.$ac_ext
10689   CPPFLAGS=$save_CPPFLAGS
10690   LIBS=$save_LIBS
10691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10692 $as_echo "${found_usable_python}" >&6; }
10693
10694       ;;
10695     *)
10696       as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
10697       ;;
10698     esac
10699   elif test "${have_python_config}" != failed; then
10700     if test "${have_libpython}" = no; then
10701
10702   version=python2.7
10703
10704   new_CPPFLAGS=${python_includes}
10705   new_LIBS="${python_libs} -lpython2.7"
10706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10707 $as_echo_n "checking for ${version}... " >&6; }
10708   save_CPPFLAGS=$CPPFLAGS
10709   save_LIBS=$LIBS
10710   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10711   LIBS="$LIBS $new_LIBS"
10712   found_usable_python=no
10713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h.  */
10715 #include "Python.h"
10716 int
10717 main ()
10718 {
10719 Py_Initialize ();
10720   ;
10721   return 0;
10722 }
10723 _ACEOF
10724 if ac_fn_c_try_link "$LINENO"; then :
10725   have_libpython=${version}
10726                   found_usable_python=yes
10727                   PYTHON_CPPFLAGS=$new_CPPFLAGS
10728                   PYTHON_LIBS=$new_LIBS
10729 fi
10730 rm -f core conftest.err conftest.$ac_objext \
10731     conftest$ac_exeext conftest.$ac_ext
10732   CPPFLAGS=$save_CPPFLAGS
10733   LIBS=$save_LIBS
10734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10735 $as_echo "${found_usable_python}" >&6; }
10736
10737     fi
10738     if test "${have_libpython}" = no; then
10739
10740   version=python2.6
10741
10742   new_CPPFLAGS=${python_includes}
10743   new_LIBS="${python_libs} -lpython2.6"
10744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10745 $as_echo_n "checking for ${version}... " >&6; }
10746   save_CPPFLAGS=$CPPFLAGS
10747   save_LIBS=$LIBS
10748   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10749   LIBS="$LIBS $new_LIBS"
10750   found_usable_python=no
10751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h.  */
10753 #include "Python.h"
10754 int
10755 main ()
10756 {
10757 Py_Initialize ();
10758   ;
10759   return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_link "$LINENO"; then :
10763   have_libpython=${version}
10764                   found_usable_python=yes
10765                   PYTHON_CPPFLAGS=$new_CPPFLAGS
10766                   PYTHON_LIBS=$new_LIBS
10767 fi
10768 rm -f core conftest.err conftest.$ac_objext \
10769     conftest$ac_exeext conftest.$ac_ext
10770   CPPFLAGS=$save_CPPFLAGS
10771   LIBS=$save_LIBS
10772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10773 $as_echo "${found_usable_python}" >&6; }
10774
10775     fi
10776     if test ${have_libpython} = no; then
10777
10778   version=python2.5
10779
10780   new_CPPFLAGS=${python_includes}
10781   new_LIBS="${python_libs} -lpython2.5"
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10783 $as_echo_n "checking for ${version}... " >&6; }
10784   save_CPPFLAGS=$CPPFLAGS
10785   save_LIBS=$LIBS
10786   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10787   LIBS="$LIBS $new_LIBS"
10788   found_usable_python=no
10789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h.  */
10791 #include "Python.h"
10792 int
10793 main ()
10794 {
10795 Py_Initialize ();
10796   ;
10797   return 0;
10798 }
10799 _ACEOF
10800 if ac_fn_c_try_link "$LINENO"; then :
10801   have_libpython=${version}
10802                   found_usable_python=yes
10803                   PYTHON_CPPFLAGS=$new_CPPFLAGS
10804                   PYTHON_LIBS=$new_LIBS
10805 fi
10806 rm -f core conftest.err conftest.$ac_objext \
10807     conftest$ac_exeext conftest.$ac_ext
10808   CPPFLAGS=$save_CPPFLAGS
10809   LIBS=$save_LIBS
10810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10811 $as_echo "${found_usable_python}" >&6; }
10812
10813     fi
10814     if test ${have_libpython} = no; then
10815
10816   version=python2.4
10817
10818   new_CPPFLAGS=${python_includes}
10819   new_LIBS="${python_libs} -lpython2.4"
10820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10821 $as_echo_n "checking for ${version}... " >&6; }
10822   save_CPPFLAGS=$CPPFLAGS
10823   save_LIBS=$LIBS
10824   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10825   LIBS="$LIBS $new_LIBS"
10826   found_usable_python=no
10827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h.  */
10829 #include "Python.h"
10830 int
10831 main ()
10832 {
10833 Py_Initialize ();
10834   ;
10835   return 0;
10836 }
10837 _ACEOF
10838 if ac_fn_c_try_link "$LINENO"; then :
10839   have_libpython=${version}
10840                   found_usable_python=yes
10841                   PYTHON_CPPFLAGS=$new_CPPFLAGS
10842                   PYTHON_LIBS=$new_LIBS
10843 fi
10844 rm -f core conftest.err conftest.$ac_objext \
10845     conftest$ac_exeext conftest.$ac_ext
10846   CPPFLAGS=$save_CPPFLAGS
10847   LIBS=$save_LIBS
10848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10849 $as_echo "${found_usable_python}" >&6; }
10850
10851     fi
10852   fi
10853   if test "${have_libpython}" = python2.7; then
10854
10855 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10856
10857   elif test "${have_libpython}" = python2.6; then
10858
10859 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10860
10861   elif test "${have_libpython}" = python2.5; then
10862
10863 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10864
10865   elif test "${have_libpython}" = python2.4; then
10866
10867 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10868
10869   fi
10870
10871   if test "${have_libpython}" = no; then
10872     case "${with_python}" in
10873     yes)
10874       as_fn_error "python is missing or unusable" "$LINENO" 5
10875       ;;
10876     auto)
10877       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10878 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10879       ;;
10880     *)
10881       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
10882       ;;
10883     esac
10884   else
10885     if test -n "${python_prefix}"; then
10886
10887 cat >>confdefs.h <<_ACEOF
10888 #define WITH_PYTHON_PATH "${python_prefix}"
10889 _ACEOF
10890
10891
10892   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10893      if test "x$prefix" = xNONE; then
10894         test_prefix=/usr/local
10895      else
10896         test_prefix=$prefix
10897      fi
10898   else
10899      test_prefix=$exec_prefix
10900   fi
10901   value=0
10902   case ${python_prefix} in
10903      "${test_prefix}"|"${test_prefix}/"*|\
10904         '${exec_prefix}'|'${exec_prefix}/'*)
10905      value=1
10906      ;;
10907   esac
10908
10909 cat >>confdefs.h <<_ACEOF
10910 #define PYTHON_PATH_RELOCATABLE $value
10911 _ACEOF
10912
10913
10914     fi
10915   fi
10916 fi
10917
10918 if test "${have_libpython}" != no; then
10919
10920 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10921
10922   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10923   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10924   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10925   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
10926   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10927
10928   # Flags needed to compile Python code (taken from python-config --cflags).
10929   # We cannot call python-config directly because it will output whatever was
10930   # used when compiling the Python interpreter itself, including flags which
10931   # would make the python-related objects be compiled differently from the
10932   # rest of GDB (e.g., -O2 and -fPIC).
10933   if test "${GCC}" = yes; then
10934     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10935   fi
10936
10937   if test "x${tentative_python_cflags}" != x; then
10938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10939 $as_echo_n "checking compiler flags for python code... " >&6; }
10940     for flag in ${tentative_python_cflags}; do
10941       # Check that the compiler accepts it
10942       saved_CFLAGS="$CFLAGS"
10943       CFLAGS="$CFLAGS $flag"
10944       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h.  */
10946
10947 int
10948 main ()
10949 {
10950
10951   ;
10952   return 0;
10953 }
10954 _ACEOF
10955 if ac_fn_c_try_compile "$LINENO"; then :
10956   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10957 fi
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959       CFLAGS="$saved_CFLAGS"
10960     done
10961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10962 $as_echo "${PYTHON_CFLAGS}" >&6; }
10963   fi
10964
10965   # On IRIX, type siginfo is not defined.  Instead, sys/siginfo.h provides:
10966   #    #if _SGIAPI
10967   #    #define siginfo __siginfo
10968   #    #endif
10969   # The problem is that including Python causes some XOPEN macros to be
10970   # unilaterally defined, and that in turn causes _SGIAPI to evaluate
10971   # to false.  So, we work around this issue by defining siginfo ourself
10972   # though the command-line.
10973   case "$gdb_host" in
10974     irix*) if test "${GCC}" = yes; then
10975              CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
10976            fi
10977            ;;
10978   esac
10979 else
10980   # Even if Python support is not compiled in, we need to have these files
10981   # included.
10982   CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10983   CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
10984         python/py-prettyprint.c python/py-auto-load.c"
10985 fi
10986
10987
10988
10989
10990 # ------------------------- #
10991 # Checks for header files.  #
10992 # ------------------------- #
10993
10994 ac_header_dirent=no
10995 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10996   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10998 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11000   $as_echo_n "(cached) " >&6
11001 else
11002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h.  */
11004 #include <sys/types.h>
11005 #include <$ac_hdr>
11006
11007 int
11008 main ()
11009 {
11010 if ((DIR *) 0)
11011 return 0;
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 if ac_fn_c_try_compile "$LINENO"; then :
11017   eval "$as_ac_Header=yes"
11018 else
11019   eval "$as_ac_Header=no"
11020 fi
11021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11022 fi
11023 eval ac_res=\$$as_ac_Header
11024                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11025 $as_echo "$ac_res" >&6; }
11026 eval as_val=\$$as_ac_Header
11027    if test "x$as_val" = x""yes; then :
11028   cat >>confdefs.h <<_ACEOF
11029 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11030 _ACEOF
11031
11032 ac_header_dirent=$ac_hdr; break
11033 fi
11034
11035 done
11036 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11037 if test $ac_header_dirent = dirent.h; then
11038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11039 $as_echo_n "checking for library containing opendir... " >&6; }
11040 if test "${ac_cv_search_opendir+set}" = set; then :
11041   $as_echo_n "(cached) " >&6
11042 else
11043   ac_func_search_save_LIBS=$LIBS
11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h.  */
11046
11047 /* Override any GCC internal prototype to avoid an error.
11048    Use char because int might match the return type of a GCC
11049    builtin and then its argument prototype would still apply.  */
11050 #ifdef __cplusplus
11051 extern "C"
11052 #endif
11053 char opendir ();
11054 int
11055 main ()
11056 {
11057 return opendir ();
11058   ;
11059   return 0;
11060 }
11061 _ACEOF
11062 for ac_lib in '' dir; do
11063   if test -z "$ac_lib"; then
11064     ac_res="none required"
11065   else
11066     ac_res=-l$ac_lib
11067     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11068   fi
11069   if ac_fn_c_try_link "$LINENO"; then :
11070   ac_cv_search_opendir=$ac_res
11071 fi
11072 rm -f core conftest.err conftest.$ac_objext \
11073     conftest$ac_exeext
11074   if test "${ac_cv_search_opendir+set}" = set; then :
11075   break
11076 fi
11077 done
11078 if test "${ac_cv_search_opendir+set}" = set; then :
11079
11080 else
11081   ac_cv_search_opendir=no
11082 fi
11083 rm conftest.$ac_ext
11084 LIBS=$ac_func_search_save_LIBS
11085 fi
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11087 $as_echo "$ac_cv_search_opendir" >&6; }
11088 ac_res=$ac_cv_search_opendir
11089 if test "$ac_res" != no; then :
11090   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11091
11092 fi
11093
11094 else
11095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11096 $as_echo_n "checking for library containing opendir... " >&6; }
11097 if test "${ac_cv_search_opendir+set}" = set; then :
11098   $as_echo_n "(cached) " >&6
11099 else
11100   ac_func_search_save_LIBS=$LIBS
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h.  */
11103
11104 /* Override any GCC internal prototype to avoid an error.
11105    Use char because int might match the return type of a GCC
11106    builtin and then its argument prototype would still apply.  */
11107 #ifdef __cplusplus
11108 extern "C"
11109 #endif
11110 char opendir ();
11111 int
11112 main ()
11113 {
11114 return opendir ();
11115   ;
11116   return 0;
11117 }
11118 _ACEOF
11119 for ac_lib in '' x; do
11120   if test -z "$ac_lib"; then
11121     ac_res="none required"
11122   else
11123     ac_res=-l$ac_lib
11124     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11125   fi
11126   if ac_fn_c_try_link "$LINENO"; then :
11127   ac_cv_search_opendir=$ac_res
11128 fi
11129 rm -f core conftest.err conftest.$ac_objext \
11130     conftest$ac_exeext
11131   if test "${ac_cv_search_opendir+set}" = set; then :
11132   break
11133 fi
11134 done
11135 if test "${ac_cv_search_opendir+set}" = set; then :
11136
11137 else
11138   ac_cv_search_opendir=no
11139 fi
11140 rm conftest.$ac_ext
11141 LIBS=$ac_func_search_save_LIBS
11142 fi
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11144 $as_echo "$ac_cv_search_opendir" >&6; }
11145 ac_res=$ac_cv_search_opendir
11146 if test "$ac_res" != no; then :
11147   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11148
11149 fi
11150
11151 fi
11152
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11154 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11155 if test "${ac_cv_header_stat_broken+set}" = set; then :
11156   $as_echo_n "(cached) " >&6
11157 else
11158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h.  */
11160 #include <sys/types.h>
11161 #include <sys/stat.h>
11162
11163 #if defined S_ISBLK && defined S_IFDIR
11164 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11165 #endif
11166
11167 #if defined S_ISBLK && defined S_IFCHR
11168 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11169 #endif
11170
11171 #if defined S_ISLNK && defined S_IFREG
11172 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11173 #endif
11174
11175 #if defined S_ISSOCK && defined S_IFREG
11176 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11177 #endif
11178
11179 _ACEOF
11180 if ac_fn_c_try_compile "$LINENO"; then :
11181   ac_cv_header_stat_broken=no
11182 else
11183   ac_cv_header_stat_broken=yes
11184 fi
11185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11186 fi
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11188 $as_echo "$ac_cv_header_stat_broken" >&6; }
11189 if test $ac_cv_header_stat_broken = yes; then
11190
11191 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11192
11193 fi
11194
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11196 $as_echo_n "checking for ANSI C header files... " >&6; }
11197 if test "${ac_cv_header_stdc+set}" = set; then :
11198   $as_echo_n "(cached) " >&6
11199 else
11200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h.  */
11202 #include <stdlib.h>
11203 #include <stdarg.h>
11204 #include <string.h>
11205 #include <float.h>
11206
11207 int
11208 main ()
11209 {
11210
11211   ;
11212   return 0;
11213 }
11214 _ACEOF
11215 if ac_fn_c_try_compile "$LINENO"; then :
11216   ac_cv_header_stdc=yes
11217 else
11218   ac_cv_header_stdc=no
11219 fi
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221
11222 if test $ac_cv_header_stdc = yes; then
11223   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h.  */
11226 #include <string.h>
11227
11228 _ACEOF
11229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11230   $EGREP "memchr" >/dev/null 2>&1; then :
11231
11232 else
11233   ac_cv_header_stdc=no
11234 fi
11235 rm -f conftest*
11236
11237 fi
11238
11239 if test $ac_cv_header_stdc = yes; then
11240   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h.  */
11243 #include <stdlib.h>
11244
11245 _ACEOF
11246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11247   $EGREP "free" >/dev/null 2>&1; then :
11248
11249 else
11250   ac_cv_header_stdc=no
11251 fi
11252 rm -f conftest*
11253
11254 fi
11255
11256 if test $ac_cv_header_stdc = yes; then
11257   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11258   if test "$cross_compiling" = yes; then :
11259   :
11260 else
11261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h.  */
11263 #include <ctype.h>
11264 #include <stdlib.h>
11265 #if ((' ' & 0x0FF) == 0x020)
11266 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11267 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11268 #else
11269 # define ISLOWER(c) \
11270                    (('a' <= (c) && (c) <= 'i') \
11271                      || ('j' <= (c) && (c) <= 'r') \
11272                      || ('s' <= (c) && (c) <= 'z'))
11273 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11274 #endif
11275
11276 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11277 int
11278 main ()
11279 {
11280   int i;
11281   for (i = 0; i < 256; i++)
11282     if (XOR (islower (i), ISLOWER (i))
11283         || toupper (i) != TOUPPER (i))
11284       return 2;
11285   return 0;
11286 }
11287 _ACEOF
11288 if ac_fn_c_try_run "$LINENO"; then :
11289
11290 else
11291   ac_cv_header_stdc=no
11292 fi
11293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11294   conftest.$ac_objext conftest.beam conftest.$ac_ext
11295 fi
11296
11297 fi
11298 fi
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11300 $as_echo "$ac_cv_header_stdc" >&6; }
11301 if test $ac_cv_header_stdc = yes; then
11302
11303 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11304
11305 fi
11306
11307 # elf_hp.h is for HP/UX 64-bit shared library support.
11308 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11309 # unconditionally, so what's the point in checking these?
11310 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11311                   thread_db.h gnu/libc-version.h signal.h stddef.h \
11312                   stdlib.h string.h memory.h strings.h sys/fault.h \
11313                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11314                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11315                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11316                   sys/types.h sys/wait.h wait.h termios.h termio.h \
11317                   sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
11318 do :
11319   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11320 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11321 eval as_val=\$$as_ac_Header
11322    if test "x$as_val" = x""yes; then :
11323   cat >>confdefs.h <<_ACEOF
11324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11325 _ACEOF
11326
11327 fi
11328
11329 done
11330
11331 for ac_header in link.h
11332 do :
11333   ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11334 # include <sys/types.h>
11335 #endif
11336 #if HAVE_NLIST_H
11337 # include <nlist.h>
11338 #endif
11339
11340 "
11341 if test "x$ac_cv_header_link_h" = x""yes; then :
11342   cat >>confdefs.h <<_ACEOF
11343 #define HAVE_LINK_H 1
11344 _ACEOF
11345
11346 fi
11347
11348 done
11349
11350 for ac_header in sys/proc.h
11351 do :
11352   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11353 # include <sys/param.h>
11354 #endif
11355
11356 "
11357 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11358   cat >>confdefs.h <<_ACEOF
11359 #define HAVE_SYS_PROC_H 1
11360 _ACEOF
11361
11362 fi
11363
11364 done
11365
11366 for ac_header in sys/user.h
11367 do :
11368   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11369 # include <sys/param.h>
11370 #endif
11371
11372 "
11373 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11374   cat >>confdefs.h <<_ACEOF
11375 #define HAVE_SYS_USER_H 1
11376 _ACEOF
11377
11378 fi
11379
11380 done
11381
11382
11383 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11384 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11385 # think that we don't have <curses.h> if we're using GCC.
11386 case $host_os in
11387   solaris2.[789])
11388     if test "$GCC" = yes; then
11389
11390 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11391
11392     fi ;;
11393 esac
11394 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11395 do :
11396   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11397 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11398 eval as_val=\$$as_ac_Header
11399    if test "x$as_val" = x""yes; then :
11400   cat >>confdefs.h <<_ACEOF
11401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11402 _ACEOF
11403
11404 fi
11405
11406 done
11407
11408 for ac_header in term.h
11409 do :
11410   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11411 # include <curses.h>
11412 #endif
11413
11414 "
11415 if test "x$ac_cv_header_term_h" = x""yes; then :
11416   cat >>confdefs.h <<_ACEOF
11417 #define HAVE_TERM_H 1
11418 _ACEOF
11419
11420 fi
11421
11422 done
11423
11424
11425 # ------------------------- #
11426 # Checks for declarations.  #
11427 # ------------------------- #
11428
11429 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11430 if test "x$ac_cv_have_decl_free" = x""yes; then :
11431   ac_have_decl=1
11432 else
11433   ac_have_decl=0
11434 fi
11435
11436 cat >>confdefs.h <<_ACEOF
11437 #define HAVE_DECL_FREE $ac_have_decl
11438 _ACEOF
11439 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11440 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11441   ac_have_decl=1
11442 else
11443   ac_have_decl=0
11444 fi
11445
11446 cat >>confdefs.h <<_ACEOF
11447 #define HAVE_DECL_MALLOC $ac_have_decl
11448 _ACEOF
11449 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11450 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11451   ac_have_decl=1
11452 else
11453   ac_have_decl=0
11454 fi
11455
11456 cat >>confdefs.h <<_ACEOF
11457 #define HAVE_DECL_REALLOC $ac_have_decl
11458 _ACEOF
11459 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11460 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11461   ac_have_decl=1
11462 else
11463   ac_have_decl=0
11464 fi
11465
11466 cat >>confdefs.h <<_ACEOF
11467 #define HAVE_DECL_STRERROR $ac_have_decl
11468 _ACEOF
11469 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11470 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11471   ac_have_decl=1
11472 else
11473   ac_have_decl=0
11474 fi
11475
11476 cat >>confdefs.h <<_ACEOF
11477 #define HAVE_DECL_STRSTR $ac_have_decl
11478 _ACEOF
11479 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11480 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11481   ac_have_decl=1
11482 else
11483   ac_have_decl=0
11484 fi
11485
11486 cat >>confdefs.h <<_ACEOF
11487 #define HAVE_DECL_GETOPT $ac_have_decl
11488 _ACEOF
11489 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11490 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11491   ac_have_decl=1
11492 else
11493   ac_have_decl=0
11494 fi
11495
11496 cat >>confdefs.h <<_ACEOF
11497 #define HAVE_DECL_SNPRINTF $ac_have_decl
11498 _ACEOF
11499 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11500 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11501   ac_have_decl=1
11502 else
11503   ac_have_decl=0
11504 fi
11505
11506 cat >>confdefs.h <<_ACEOF
11507 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11508 _ACEOF
11509
11510
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11512 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11513 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11514   $as_echo_n "(cached) " >&6
11515 else
11516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h.  */
11518 #include <locale.h>
11519 int
11520 main ()
11521 {
11522 return LC_MESSAGES
11523   ;
11524   return 0;
11525 }
11526 _ACEOF
11527 if ac_fn_c_try_link "$LINENO"; then :
11528   am_cv_val_LC_MESSAGES=yes
11529 else
11530   am_cv_val_LC_MESSAGES=no
11531 fi
11532 rm -f core conftest.err conftest.$ac_objext \
11533     conftest$ac_exeext conftest.$ac_ext
11534 fi
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11536 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11537   if test $am_cv_val_LC_MESSAGES = yes; then
11538
11539 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11540
11541   fi
11542
11543
11544 # ----------------------- #
11545 # Checks for structures.  #
11546 # ----------------------- #
11547
11548 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11549 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11550
11551 cat >>confdefs.h <<_ACEOF
11552 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11553 _ACEOF
11554
11555
11556 fi
11557 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11558 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11559
11560 cat >>confdefs.h <<_ACEOF
11561 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11562 _ACEOF
11563
11564
11565 fi
11566
11567
11568 # ------------------ #
11569 # Checks for types.  #
11570 # ------------------ #
11571
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11573 $as_echo_n "checking return type of signal handlers... " >&6; }
11574 if test "${ac_cv_type_signal+set}" = set; then :
11575   $as_echo_n "(cached) " >&6
11576 else
11577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h.  */
11579 #include <sys/types.h>
11580 #include <signal.h>
11581
11582 int
11583 main ()
11584 {
11585 return *(signal (0, 0)) (0) == 1;
11586   ;
11587   return 0;
11588 }
11589 _ACEOF
11590 if ac_fn_c_try_compile "$LINENO"; then :
11591   ac_cv_type_signal=int
11592 else
11593   ac_cv_type_signal=void
11594 fi
11595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596 fi
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11598 $as_echo "$ac_cv_type_signal" >&6; }
11599
11600 cat >>confdefs.h <<_ACEOF
11601 #define RETSIGTYPE $ac_cv_type_signal
11602 _ACEOF
11603
11604
11605 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11606 #include <sys/socket.h>
11607
11608 "
11609 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11610
11611 cat >>confdefs.h <<_ACEOF
11612 #define HAVE_SOCKLEN_T 1
11613 _ACEOF
11614
11615
11616 fi
11617
11618
11619 # ------------------------------------- #
11620 # Checks for compiler characteristics.  #
11621 # ------------------------------------- #
11622
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11624 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11625 if test "${ac_cv_c_const+set}" = set; then :
11626   $as_echo_n "(cached) " >&6
11627 else
11628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629 /* end confdefs.h.  */
11630
11631 int
11632 main ()
11633 {
11634 /* FIXME: Include the comments suggested by Paul. */
11635 #ifndef __cplusplus
11636   /* Ultrix mips cc rejects this.  */
11637   typedef int charset[2];
11638   const charset cs;
11639   /* SunOS 4.1.1 cc rejects this.  */
11640   char const *const *pcpcc;
11641   char **ppc;
11642   /* NEC SVR4.0.2 mips cc rejects this.  */
11643   struct point {int x, y;};
11644   static struct point const zero = {0,0};
11645   /* AIX XL C 1.02.0.0 rejects this.
11646      It does not let you subtract one const X* pointer from another in
11647      an arm of an if-expression whose if-part is not a constant
11648      expression */
11649   const char *g = "string";
11650   pcpcc = &g + (g ? g-g : 0);
11651   /* HPUX 7.0 cc rejects these. */
11652   ++pcpcc;
11653   ppc = (char**) pcpcc;
11654   pcpcc = (char const *const *) ppc;
11655   { /* SCO 3.2v4 cc rejects this.  */
11656     char *t;
11657     char const *s = 0 ? (char *) 0 : (char const *) 0;
11658
11659     *t++ = 0;
11660     if (s) return 0;
11661   }
11662   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11663     int x[] = {25, 17};
11664     const int *foo = &x[0];
11665     ++foo;
11666   }
11667   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11668     typedef const int *iptr;
11669     iptr p = 0;
11670     ++p;
11671   }
11672   { /* AIX XL C 1.02.0.0 rejects this saying
11673        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11674     struct s { int j; const int *ap[3]; };
11675     struct s *b; b->j = 5;
11676   }
11677   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11678     const int foo = 10;
11679     if (!foo) return 0;
11680   }
11681   return !cs[0] && !zero.x;
11682 #endif
11683
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 if ac_fn_c_try_compile "$LINENO"; then :
11689   ac_cv_c_const=yes
11690 else
11691   ac_cv_c_const=no
11692 fi
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694 fi
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11696 $as_echo "$ac_cv_c_const" >&6; }
11697 if test $ac_cv_c_const = no; then
11698
11699 $as_echo "#define const /**/" >>confdefs.h
11700
11701 fi
11702
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11704 $as_echo_n "checking for inline... " >&6; }
11705 if test "${ac_cv_c_inline+set}" = set; then :
11706   $as_echo_n "(cached) " >&6
11707 else
11708   ac_cv_c_inline=no
11709 for ac_kw in inline __inline__ __inline; do
11710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h.  */
11712 #ifndef __cplusplus
11713 typedef int foo_t;
11714 static $ac_kw foo_t static_foo () {return 0; }
11715 $ac_kw foo_t foo () {return 0; }
11716 #endif
11717
11718 _ACEOF
11719 if ac_fn_c_try_compile "$LINENO"; then :
11720   ac_cv_c_inline=$ac_kw
11721 fi
11722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11723   test "$ac_cv_c_inline" != no && break
11724 done
11725
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11728 $as_echo "$ac_cv_c_inline" >&6; }
11729
11730 case $ac_cv_c_inline in
11731   inline | yes) ;;
11732   *)
11733     case $ac_cv_c_inline in
11734       no) ac_val=;;
11735       *) ac_val=$ac_cv_c_inline;;
11736     esac
11737     cat >>confdefs.h <<_ACEOF
11738 #ifndef __cplusplus
11739 #define inline $ac_val
11740 #endif
11741 _ACEOF
11742     ;;
11743 esac
11744
11745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11746 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11747 if test "${ac_cv_c_bigendian+set}" = set; then :
11748   $as_echo_n "(cached) " >&6
11749 else
11750   ac_cv_c_bigendian=unknown
11751     # See if we're dealing with a universal compiler.
11752     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h.  */
11754 #ifndef __APPLE_CC__
11755                not a universal capable compiler
11756              #endif
11757              typedef int dummy;
11758
11759 _ACEOF
11760 if ac_fn_c_try_compile "$LINENO"; then :
11761
11762         # Check for potential -arch flags.  It is not universal unless
11763         # there are at least two -arch flags with different values.
11764         ac_arch=
11765         ac_prev=
11766         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11767          if test -n "$ac_prev"; then
11768            case $ac_word in
11769              i?86 | x86_64 | ppc | ppc64)
11770                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11771                  ac_arch=$ac_word
11772                else
11773                  ac_cv_c_bigendian=universal
11774                  break
11775                fi
11776                ;;
11777            esac
11778            ac_prev=
11779          elif test "x$ac_word" = "x-arch"; then
11780            ac_prev=arch
11781          fi
11782        done
11783 fi
11784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785     if test $ac_cv_c_bigendian = unknown; then
11786       # See if sys/param.h defines the BYTE_ORDER macro.
11787       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h.  */
11789 #include <sys/types.h>
11790              #include <sys/param.h>
11791
11792 int
11793 main ()
11794 {
11795 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11796                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11797                      && LITTLE_ENDIAN)
11798               bogus endian macros
11799              #endif
11800
11801   ;
11802   return 0;
11803 }
11804 _ACEOF
11805 if ac_fn_c_try_compile "$LINENO"; then :
11806   # It does; now see whether it defined to BIG_ENDIAN or not.
11807          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h.  */
11809 #include <sys/types.h>
11810                 #include <sys/param.h>
11811
11812 int
11813 main ()
11814 {
11815 #if BYTE_ORDER != BIG_ENDIAN
11816                  not big endian
11817                 #endif
11818
11819   ;
11820   return 0;
11821 }
11822 _ACEOF
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824   ac_cv_c_bigendian=yes
11825 else
11826   ac_cv_c_bigendian=no
11827 fi
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 fi
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831     fi
11832     if test $ac_cv_c_bigendian = unknown; then
11833       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11834       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h.  */
11836 #include <limits.h>
11837
11838 int
11839 main ()
11840 {
11841 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11842               bogus endian macros
11843              #endif
11844
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 if ac_fn_c_try_compile "$LINENO"; then :
11850   # It does; now see whether it defined to _BIG_ENDIAN or not.
11851          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h.  */
11853 #include <limits.h>
11854
11855 int
11856 main ()
11857 {
11858 #ifndef _BIG_ENDIAN
11859                  not big endian
11860                 #endif
11861
11862   ;
11863   return 0;
11864 }
11865 _ACEOF
11866 if ac_fn_c_try_compile "$LINENO"; then :
11867   ac_cv_c_bigendian=yes
11868 else
11869   ac_cv_c_bigendian=no
11870 fi
11871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872 fi
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874     fi
11875     if test $ac_cv_c_bigendian = unknown; then
11876       # Compile a test program.
11877       if test "$cross_compiling" = yes; then :
11878   # Try to guess by grepping values from an object file.
11879          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h.  */
11881 short int ascii_mm[] =
11882                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11883                 short int ascii_ii[] =
11884                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11885                 int use_ascii (int i) {
11886                   return ascii_mm[i] + ascii_ii[i];
11887                 }
11888                 short int ebcdic_ii[] =
11889                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11890                 short int ebcdic_mm[] =
11891                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11892                 int use_ebcdic (int i) {
11893                   return ebcdic_mm[i] + ebcdic_ii[i];
11894                 }
11895                 extern int foo;
11896
11897 int
11898 main ()
11899 {
11900 return use_ascii (foo) == use_ebcdic (foo);
11901   ;
11902   return 0;
11903 }
11904 _ACEOF
11905 if ac_fn_c_try_compile "$LINENO"; then :
11906   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11907               ac_cv_c_bigendian=yes
11908             fi
11909             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11910               if test "$ac_cv_c_bigendian" = unknown; then
11911                 ac_cv_c_bigendian=no
11912               else
11913                 # finding both strings is unlikely to happen, but who knows?
11914                 ac_cv_c_bigendian=unknown
11915               fi
11916             fi
11917 fi
11918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11919 else
11920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h.  */
11922 $ac_includes_default
11923 int
11924 main ()
11925 {
11926
11927              /* Are we little or big endian?  From Harbison&Steele.  */
11928              union
11929              {
11930                long int l;
11931                char c[sizeof (long int)];
11932              } u;
11933              u.l = 1;
11934              return u.c[sizeof (long int) - 1] == 1;
11935
11936   ;
11937   return 0;
11938 }
11939 _ACEOF
11940 if ac_fn_c_try_run "$LINENO"; then :
11941   ac_cv_c_bigendian=no
11942 else
11943   ac_cv_c_bigendian=yes
11944 fi
11945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11946   conftest.$ac_objext conftest.beam conftest.$ac_ext
11947 fi
11948
11949     fi
11950 fi
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11952 $as_echo "$ac_cv_c_bigendian" >&6; }
11953  case $ac_cv_c_bigendian in #(
11954    yes)
11955      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11956 ;; #(
11957    no)
11958       ;; #(
11959    universal)
11960
11961 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11962
11963      ;; #(
11964    *)
11965      as_fn_error "unknown endianness
11966  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11967  esac
11968
11969
11970 # ------------------------------ #
11971 # Checks for library functions.  #
11972 # ------------------------------ #
11973
11974 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11975 # for constant arguments.  Useless!
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11977 $as_echo_n "checking for working alloca.h... " >&6; }
11978 if test "${ac_cv_working_alloca_h+set}" = set; then :
11979   $as_echo_n "(cached) " >&6
11980 else
11981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h.  */
11983 #include <alloca.h>
11984 int
11985 main ()
11986 {
11987 char *p = (char *) alloca (2 * sizeof (int));
11988                           if (p) return 0;
11989   ;
11990   return 0;
11991 }
11992 _ACEOF
11993 if ac_fn_c_try_link "$LINENO"; then :
11994   ac_cv_working_alloca_h=yes
11995 else
11996   ac_cv_working_alloca_h=no
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext \
11999     conftest$ac_exeext conftest.$ac_ext
12000 fi
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12002 $as_echo "$ac_cv_working_alloca_h" >&6; }
12003 if test $ac_cv_working_alloca_h = yes; then
12004
12005 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12006
12007 fi
12008
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12010 $as_echo_n "checking for alloca... " >&6; }
12011 if test "${ac_cv_func_alloca_works+set}" = set; then :
12012   $as_echo_n "(cached) " >&6
12013 else
12014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h.  */
12016 #ifdef __GNUC__
12017 # define alloca __builtin_alloca
12018 #else
12019 # ifdef _MSC_VER
12020 #  include <malloc.h>
12021 #  define alloca _alloca
12022 # else
12023 #  ifdef HAVE_ALLOCA_H
12024 #   include <alloca.h>
12025 #  else
12026 #   ifdef _AIX
12027  #pragma alloca
12028 #   else
12029 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12030 char *alloca ();
12031 #    endif
12032 #   endif
12033 #  endif
12034 # endif
12035 #endif
12036
12037 int
12038 main ()
12039 {
12040 char *p = (char *) alloca (1);
12041                                     if (p) return 0;
12042   ;
12043   return 0;
12044 }
12045 _ACEOF
12046 if ac_fn_c_try_link "$LINENO"; then :
12047   ac_cv_func_alloca_works=yes
12048 else
12049   ac_cv_func_alloca_works=no
12050 fi
12051 rm -f core conftest.err conftest.$ac_objext \
12052     conftest$ac_exeext conftest.$ac_ext
12053 fi
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12055 $as_echo "$ac_cv_func_alloca_works" >&6; }
12056
12057 if test $ac_cv_func_alloca_works = yes; then
12058
12059 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12060
12061 else
12062   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12063 # that cause trouble.  Some versions do not even contain alloca or
12064 # contain a buggy version.  If you still want to use their alloca,
12065 # use ar to extract alloca.o from them instead of compiling alloca.c.
12066
12067 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12068
12069 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12070
12071
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12073 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12074 if test "${ac_cv_os_cray+set}" = set; then :
12075   $as_echo_n "(cached) " >&6
12076 else
12077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h.  */
12079 #if defined CRAY && ! defined CRAY2
12080 webecray
12081 #else
12082 wenotbecray
12083 #endif
12084
12085 _ACEOF
12086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12087   $EGREP "webecray" >/dev/null 2>&1; then :
12088   ac_cv_os_cray=yes
12089 else
12090   ac_cv_os_cray=no
12091 fi
12092 rm -f conftest*
12093
12094 fi
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12096 $as_echo "$ac_cv_os_cray" >&6; }
12097 if test $ac_cv_os_cray = yes; then
12098   for ac_func in _getb67 GETB67 getb67; do
12099     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12100 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12101 eval as_val=\$$as_ac_var
12102    if test "x$as_val" = x""yes; then :
12103
12104 cat >>confdefs.h <<_ACEOF
12105 #define CRAY_STACKSEG_END $ac_func
12106 _ACEOF
12107
12108     break
12109 fi
12110
12111   done
12112 fi
12113
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12115 $as_echo_n "checking stack direction for C alloca... " >&6; }
12116 if test "${ac_cv_c_stack_direction+set}" = set; then :
12117   $as_echo_n "(cached) " >&6
12118 else
12119   if test "$cross_compiling" = yes; then :
12120   ac_cv_c_stack_direction=0
12121 else
12122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h.  */
12124 $ac_includes_default
12125 int
12126 find_stack_direction ()
12127 {
12128   static char *addr = 0;
12129   auto char dummy;
12130   if (addr == 0)
12131     {
12132       addr = &dummy;
12133       return find_stack_direction ();
12134     }
12135   else
12136     return (&dummy > addr) ? 1 : -1;
12137 }
12138
12139 int
12140 main ()
12141 {
12142   return find_stack_direction () < 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_run "$LINENO"; then :
12146   ac_cv_c_stack_direction=1
12147 else
12148   ac_cv_c_stack_direction=-1
12149 fi
12150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12151   conftest.$ac_objext conftest.beam conftest.$ac_ext
12152 fi
12153
12154 fi
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12156 $as_echo "$ac_cv_c_stack_direction" >&6; }
12157 cat >>confdefs.h <<_ACEOF
12158 #define STACK_DIRECTION $ac_cv_c_stack_direction
12159 _ACEOF
12160
12161
12162 fi
12163
12164 for ac_header in stdlib.h unistd.h
12165 do :
12166   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12167 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12168 eval as_val=\$$as_ac_Header
12169    if test "x$as_val" = x""yes; then :
12170   cat >>confdefs.h <<_ACEOF
12171 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12172 _ACEOF
12173
12174 fi
12175
12176 done
12177
12178 for ac_func in getpagesize
12179 do :
12180   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12181 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12182   cat >>confdefs.h <<_ACEOF
12183 #define HAVE_GETPAGESIZE 1
12184 _ACEOF
12185
12186 fi
12187 done
12188
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12190 $as_echo_n "checking for working mmap... " >&6; }
12191 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12192   $as_echo_n "(cached) " >&6
12193 else
12194   if test "$cross_compiling" = yes; then :
12195   ac_cv_func_mmap_fixed_mapped=no
12196 else
12197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198 /* end confdefs.h.  */
12199 $ac_includes_default
12200 /* malloc might have been renamed as rpl_malloc. */
12201 #undef malloc
12202
12203 /* Thanks to Mike Haertel and Jim Avera for this test.
12204    Here is a matrix of mmap possibilities:
12205         mmap private not fixed
12206         mmap private fixed at somewhere currently unmapped
12207         mmap private fixed at somewhere already mapped
12208         mmap shared not fixed
12209         mmap shared fixed at somewhere currently unmapped
12210         mmap shared fixed at somewhere already mapped
12211    For private mappings, we should verify that changes cannot be read()
12212    back from the file, nor mmap's back from the file at a different
12213    address.  (There have been systems where private was not correctly
12214    implemented like the infamous i386 svr4.0, and systems where the
12215    VM page cache was not coherent with the file system buffer cache
12216    like early versions of FreeBSD and possibly contemporary NetBSD.)
12217    For shared mappings, we should conversely verify that changes get
12218    propagated back to all the places they're supposed to be.
12219
12220    Grep wants private fixed already mapped.
12221    The main things grep needs to know about mmap are:
12222    * does it exist and is it safe to write into the mmap'd area
12223    * how to use it (BSD variants)  */
12224
12225 #include <fcntl.h>
12226 #include <sys/mman.h>
12227
12228 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12229 char *malloc ();
12230 #endif
12231
12232 /* This mess was copied from the GNU getpagesize.h.  */
12233 #ifndef HAVE_GETPAGESIZE
12234 /* Assume that all systems that can run configure have sys/param.h.  */
12235 # ifndef HAVE_SYS_PARAM_H
12236 #  define HAVE_SYS_PARAM_H 1
12237 # endif
12238
12239 # ifdef _SC_PAGESIZE
12240 #  define getpagesize() sysconf(_SC_PAGESIZE)
12241 # else /* no _SC_PAGESIZE */
12242 #  ifdef HAVE_SYS_PARAM_H
12243 #   include <sys/param.h>
12244 #   ifdef EXEC_PAGESIZE
12245 #    define getpagesize() EXEC_PAGESIZE
12246 #   else /* no EXEC_PAGESIZE */
12247 #    ifdef NBPG
12248 #     define getpagesize() NBPG * CLSIZE
12249 #     ifndef CLSIZE
12250 #      define CLSIZE 1
12251 #     endif /* no CLSIZE */
12252 #    else /* no NBPG */
12253 #     ifdef NBPC
12254 #      define getpagesize() NBPC
12255 #     else /* no NBPC */
12256 #      ifdef PAGESIZE
12257 #       define getpagesize() PAGESIZE
12258 #      endif /* PAGESIZE */
12259 #     endif /* no NBPC */
12260 #    endif /* no NBPG */
12261 #   endif /* no EXEC_PAGESIZE */
12262 #  else /* no HAVE_SYS_PARAM_H */
12263 #   define getpagesize() 8192   /* punt totally */
12264 #  endif /* no HAVE_SYS_PARAM_H */
12265 # endif /* no _SC_PAGESIZE */
12266
12267 #endif /* no HAVE_GETPAGESIZE */
12268
12269 int
12270 main ()
12271 {
12272   char *data, *data2, *data3;
12273   int i, pagesize;
12274   int fd;
12275
12276   pagesize = getpagesize ();
12277
12278   /* First, make a file with some known garbage in it. */
12279   data = (char *) malloc (pagesize);
12280   if (!data)
12281     return 1;
12282   for (i = 0; i < pagesize; ++i)
12283     *(data + i) = rand ();
12284   umask (0);
12285   fd = creat ("conftest.mmap", 0600);
12286   if (fd < 0)
12287     return 1;
12288   if (write (fd, data, pagesize) != pagesize)
12289     return 1;
12290   close (fd);
12291
12292   /* Next, try to mmap the file at a fixed address which already has
12293      something else allocated at it.  If we can, also make sure that
12294      we see the same garbage.  */
12295   fd = open ("conftest.mmap", O_RDWR);
12296   if (fd < 0)
12297     return 1;
12298   data2 = (char *) malloc (2 * pagesize);
12299   if (!data2)
12300     return 1;
12301   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12302   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12303                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12304     return 1;
12305   for (i = 0; i < pagesize; ++i)
12306     if (*(data + i) != *(data2 + i))
12307       return 1;
12308
12309   /* Finally, make sure that changes to the mapped area do not
12310      percolate back to the file as seen by read().  (This is a bug on
12311      some variants of i386 svr4.0.)  */
12312   for (i = 0; i < pagesize; ++i)
12313     *(data2 + i) = *(data2 + i) + 1;
12314   data3 = (char *) malloc (pagesize);
12315   if (!data3)
12316     return 1;
12317   if (read (fd, data3, pagesize) != pagesize)
12318     return 1;
12319   for (i = 0; i < pagesize; ++i)
12320     if (*(data + i) != *(data3 + i))
12321       return 1;
12322   close (fd);
12323   return 0;
12324 }
12325 _ACEOF
12326 if ac_fn_c_try_run "$LINENO"; then :
12327   ac_cv_func_mmap_fixed_mapped=yes
12328 else
12329   ac_cv_func_mmap_fixed_mapped=no
12330 fi
12331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12332   conftest.$ac_objext conftest.beam conftest.$ac_ext
12333 fi
12334
12335 fi
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12337 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12338 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12339
12340 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12341
12342 fi
12343 rm -f conftest.mmap
12344
12345 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12346 if test "x$ac_cv_type_pid_t" = x""yes; then :
12347
12348 else
12349
12350 cat >>confdefs.h <<_ACEOF
12351 #define pid_t int
12352 _ACEOF
12353
12354 fi
12355
12356 for ac_header in vfork.h
12357 do :
12358   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12359 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12360   cat >>confdefs.h <<_ACEOF
12361 #define HAVE_VFORK_H 1
12362 _ACEOF
12363
12364 fi
12365
12366 done
12367
12368 for ac_func in fork vfork
12369 do :
12370   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12371 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12372 eval as_val=\$$as_ac_var
12373    if test "x$as_val" = x""yes; then :
12374   cat >>confdefs.h <<_ACEOF
12375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12376 _ACEOF
12377
12378 fi
12379 done
12380
12381 if test "x$ac_cv_func_fork" = xyes; then
12382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12383 $as_echo_n "checking for working fork... " >&6; }
12384 if test "${ac_cv_func_fork_works+set}" = set; then :
12385   $as_echo_n "(cached) " >&6
12386 else
12387   if test "$cross_compiling" = yes; then :
12388   ac_cv_func_fork_works=cross
12389 else
12390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h.  */
12392 $ac_includes_default
12393 int
12394 main ()
12395 {
12396
12397           /* By Ruediger Kuhlmann. */
12398           return fork () < 0;
12399
12400   ;
12401   return 0;
12402 }
12403 _ACEOF
12404 if ac_fn_c_try_run "$LINENO"; then :
12405   ac_cv_func_fork_works=yes
12406 else
12407   ac_cv_func_fork_works=no
12408 fi
12409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12410   conftest.$ac_objext conftest.beam conftest.$ac_ext
12411 fi
12412
12413 fi
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12415 $as_echo "$ac_cv_func_fork_works" >&6; }
12416
12417 else
12418   ac_cv_func_fork_works=$ac_cv_func_fork
12419 fi
12420 if test "x$ac_cv_func_fork_works" = xcross; then
12421   case $host in
12422     *-*-amigaos* | *-*-msdosdjgpp*)
12423       # Override, as these systems have only a dummy fork() stub
12424       ac_cv_func_fork_works=no
12425       ;;
12426     *)
12427       ac_cv_func_fork_works=yes
12428       ;;
12429   esac
12430   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12431 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12432 fi
12433 ac_cv_func_vfork_works=$ac_cv_func_vfork
12434 if test "x$ac_cv_func_vfork" = xyes; then
12435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12436 $as_echo_n "checking for working vfork... " >&6; }
12437 if test "${ac_cv_func_vfork_works+set}" = set; then :
12438   $as_echo_n "(cached) " >&6
12439 else
12440   if test "$cross_compiling" = yes; then :
12441   ac_cv_func_vfork_works=cross
12442 else
12443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h.  */
12445 /* Thanks to Paul Eggert for this test.  */
12446 $ac_includes_default
12447 #include <sys/wait.h>
12448 #ifdef HAVE_VFORK_H
12449 # include <vfork.h>
12450 #endif
12451 /* On some sparc systems, changes by the child to local and incoming
12452    argument registers are propagated back to the parent.  The compiler
12453    is told about this with #include <vfork.h>, but some compilers
12454    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12455    static variable whose address is put into a register that is
12456    clobbered by the vfork.  */
12457 static void
12458 #ifdef __cplusplus
12459 sparc_address_test (int arg)
12460 # else
12461 sparc_address_test (arg) int arg;
12462 #endif
12463 {
12464   static pid_t child;
12465   if (!child) {
12466     child = vfork ();
12467     if (child < 0) {
12468       perror ("vfork");
12469       _exit(2);
12470     }
12471     if (!child) {
12472       arg = getpid();
12473       write(-1, "", 0);
12474       _exit (arg);
12475     }
12476   }
12477 }
12478
12479 int
12480 main ()
12481 {
12482   pid_t parent = getpid ();
12483   pid_t child;
12484
12485   sparc_address_test (0);
12486
12487   child = vfork ();
12488
12489   if (child == 0) {
12490     /* Here is another test for sparc vfork register problems.  This
12491        test uses lots of local variables, at least as many local
12492        variables as main has allocated so far including compiler
12493        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12494        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12495        reuse the register of parent for one of the local variables,
12496        since it will think that parent can't possibly be used any more
12497        in this routine.  Assigning to the local variable will thus
12498        munge parent in the parent process.  */
12499     pid_t
12500       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12501       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12502     /* Convince the compiler that p..p7 are live; otherwise, it might
12503        use the same hardware register for all 8 local variables.  */
12504     if (p != p1 || p != p2 || p != p3 || p != p4
12505         || p != p5 || p != p6 || p != p7)
12506       _exit(1);
12507
12508     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12509        from child file descriptors.  If the child closes a descriptor
12510        before it execs or exits, this munges the parent's descriptor
12511        as well.  Test for this by closing stdout in the child.  */
12512     _exit(close(fileno(stdout)) != 0);
12513   } else {
12514     int status;
12515     struct stat st;
12516
12517     while (wait(&status) != child)
12518       ;
12519     return (
12520          /* Was there some problem with vforking?  */
12521          child < 0
12522
12523          /* Did the child fail?  (This shouldn't happen.)  */
12524          || status
12525
12526          /* Did the vfork/compiler bug occur?  */
12527          || parent != getpid()
12528
12529          /* Did the file descriptor bug occur?  */
12530          || fstat(fileno(stdout), &st) != 0
12531          );
12532   }
12533 }
12534 _ACEOF
12535 if ac_fn_c_try_run "$LINENO"; then :
12536   ac_cv_func_vfork_works=yes
12537 else
12538   ac_cv_func_vfork_works=no
12539 fi
12540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12541   conftest.$ac_objext conftest.beam conftest.$ac_ext
12542 fi
12543
12544 fi
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12546 $as_echo "$ac_cv_func_vfork_works" >&6; }
12547
12548 fi;
12549 if test "x$ac_cv_func_fork_works" = xcross; then
12550   ac_cv_func_vfork_works=$ac_cv_func_vfork
12551   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12552 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12553 fi
12554
12555 if test "x$ac_cv_func_vfork_works" = xyes; then
12556
12557 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12558
12559 else
12560
12561 $as_echo "#define vfork fork" >>confdefs.h
12562
12563 fi
12564 if test "x$ac_cv_func_fork_works" = xyes; then
12565
12566 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12567
12568 fi
12569
12570 for ac_func in canonicalize_file_name realpath getrusage getuid \
12571                 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
12572                 sigaction sigprocmask sigsetmask socketpair syscall \
12573                 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12574                 setrlimit getrlimit posix_madvise waitpid
12575 do :
12576   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12577 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12578 eval as_val=\$$as_ac_var
12579    if test "x$as_val" = x""yes; then :
12580   cat >>confdefs.h <<_ACEOF
12581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12582 _ACEOF
12583
12584 fi
12585 done
12586
12587
12588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12589 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12590 if test "${am_cv_langinfo_codeset+set}" = set; then :
12591   $as_echo_n "(cached) " >&6
12592 else
12593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h.  */
12595 #include <langinfo.h>
12596 int
12597 main ()
12598 {
12599 char* cs = nl_langinfo(CODESET);
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 if ac_fn_c_try_link "$LINENO"; then :
12605   am_cv_langinfo_codeset=yes
12606 else
12607   am_cv_langinfo_codeset=no
12608 fi
12609 rm -f core conftest.err conftest.$ac_objext \
12610     conftest$ac_exeext conftest.$ac_ext
12611
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12614 $as_echo "$am_cv_langinfo_codeset" >&6; }
12615   if test $am_cv_langinfo_codeset = yes; then
12616
12617 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12618
12619   fi
12620
12621
12622 # Check the return and argument types of ptrace.  No canned test for
12623 # this, so roll our own.
12624 gdb_ptrace_headers='
12625 #if HAVE_SYS_TYPES_H
12626 # include <sys/types.h>
12627 #endif
12628 #if HAVE_SYS_PTRACE_H
12629 # include <sys/ptrace.h>
12630 #endif
12631 #if HAVE_UNISTD_H
12632 # include <unistd.h>
12633 #endif
12634 '
12635 # There is no point in checking if we don't have a prototype.
12636 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12637 "
12638 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12639   ac_have_decl=1
12640 else
12641   ac_have_decl=0
12642 fi
12643
12644 cat >>confdefs.h <<_ACEOF
12645 #define HAVE_DECL_PTRACE $ac_have_decl
12646 _ACEOF
12647 if test $ac_have_decl = 1; then :
12648
12649 else
12650
12651   : ${gdb_cv_func_ptrace_ret='int'}
12652   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12653
12654 fi
12655
12656 # Check return type.  Varargs (used on GNU/Linux) conflict with the
12657 # empty argument list, so check for that explicitly.
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12659 $as_echo_n "checking return type of ptrace... " >&6; }
12660 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12661   $as_echo_n "(cached) " >&6
12662 else
12663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h.  */
12665 $gdb_ptrace_headers
12666 int
12667 main ()
12668 {
12669 extern long ptrace (enum __ptrace_request, ...);
12670   ;
12671   return 0;
12672 }
12673 _ACEOF
12674 if ac_fn_c_try_compile "$LINENO"; then :
12675   gdb_cv_func_ptrace_ret='long'
12676 else
12677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h.  */
12679 $gdb_ptrace_headers
12680 int
12681 main ()
12682 {
12683 extern int ptrace ();
12684   ;
12685   return 0;
12686 }
12687 _ACEOF
12688 if ac_fn_c_try_compile "$LINENO"; then :
12689   gdb_cv_func_ptrace_ret='int'
12690 else
12691   gdb_cv_func_ptrace_ret='long'
12692 fi
12693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12698 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12699
12700 cat >>confdefs.h <<_ACEOF
12701 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12702 _ACEOF
12703
12704 # Check argument types.
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12706 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12707 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12708   $as_echo_n "(cached) " >&6
12709 else
12710
12711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h.  */
12713 $gdb_ptrace_headers
12714 int
12715 main ()
12716 {
12717 extern long ptrace (enum __ptrace_request, ...);
12718   ;
12719   return 0;
12720 }
12721 _ACEOF
12722 if ac_fn_c_try_compile "$LINENO"; then :
12723   gdb_cv_func_ptrace_args='int,int,long,long'
12724 else
12725
12726 for gdb_arg1 in 'int' 'long'; do
12727  for gdb_arg2 in 'pid_t' 'int' 'long'; do
12728   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12729    for gdb_arg4 in 'int' 'long'; do
12730      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h.  */
12732 $gdb_ptrace_headers
12733 int
12734 main ()
12735 {
12736
12737 extern $gdb_cv_func_ptrace_ret
12738   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12739
12740   ;
12741   return 0;
12742 }
12743 _ACEOF
12744 if ac_fn_c_try_compile "$LINENO"; then :
12745   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12746     break 4;
12747 fi
12748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12749     for gdb_arg5 in 'int *' 'int' 'long'; do
12750      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h.  */
12752 $gdb_ptrace_headers
12753 int
12754 main ()
12755 {
12756
12757 extern $gdb_cv_func_ptrace_ret
12758   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12759
12760   ;
12761   return 0;
12762 }
12763 _ACEOF
12764 if ac_fn_c_try_compile "$LINENO"; then :
12765
12766 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12767     break 5;
12768 fi
12769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770     done
12771    done
12772   done
12773  done
12774 done
12775 # Provide a safe default value.
12776 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12777
12778 fi
12779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12782 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12783 ac_save_IFS=$IFS; IFS=','
12784 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12785 IFS=$ac_save_IFS
12786 shift
12787
12788 cat >>confdefs.h <<_ACEOF
12789 #define PTRACE_TYPE_ARG3 $3
12790 _ACEOF
12791
12792 if test -n "$5"; then
12793
12794 cat >>confdefs.h <<_ACEOF
12795 #define PTRACE_TYPE_ARG5 $5
12796 _ACEOF
12797
12798 fi
12799
12800 if test "$cross_compiling" = no; then
12801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12802 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12803 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12804   $as_echo_n "(cached) " >&6
12805 else
12806   if test "$cross_compiling" = yes; then :
12807   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12808 else
12809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h.  */
12811 $ac_includes_default
12812 int
12813 main ()
12814 {
12815 /* If this system has a BSD-style setpgrp which takes arguments,
12816   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12817   exit successfully. */
12818   return setpgrp (1,1) != -1;
12819   ;
12820   return 0;
12821 }
12822 _ACEOF
12823 if ac_fn_c_try_run "$LINENO"; then :
12824   ac_cv_func_setpgrp_void=no
12825 else
12826   ac_cv_func_setpgrp_void=yes
12827 fi
12828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12829   conftest.$ac_objext conftest.beam conftest.$ac_ext
12830 fi
12831
12832 fi
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12834 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12835 if test $ac_cv_func_setpgrp_void = yes; then
12836
12837 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12838
12839 fi
12840
12841 else
12842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12843 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12844 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12845   $as_echo_n "(cached) " >&6
12846 else
12847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h.  */
12849
12850 #include <unistd.h>
12851
12852 int
12853 main ()
12854 {
12855
12856   if (setpgrp(1,1) == -1)
12857     exit (0);
12858   else
12859     exit (1);
12860
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 if ac_fn_c_try_compile "$LINENO"; then :
12866   ac_cv_func_setpgrp_void=no
12867 else
12868   ac_cv_func_setpgrp_void=yes
12869 fi
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 fi
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12873 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12874 if test $ac_cv_func_setpgrp_void = yes; then
12875   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12876
12877 fi
12878 fi
12879
12880 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
12881 # since sigsetjmp might only be defined as a macro.
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12883 $as_echo_n "checking for sigsetjmp... " >&6; }
12884 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12885   $as_echo_n "(cached) " >&6
12886 else
12887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h.  */
12889
12890 #include <setjmp.h>
12891
12892 int
12893 main ()
12894 {
12895 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12896   ;
12897   return 0;
12898 }
12899 _ACEOF
12900 if ac_fn_c_try_compile "$LINENO"; then :
12901   gdb_cv_func_sigsetjmp=yes
12902 else
12903   gdb_cv_func_sigsetjmp=no
12904 fi
12905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12906 fi
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12908 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12909 if test $gdb_cv_func_sigsetjmp = yes; then
12910
12911 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12912
12913 fi
12914
12915 # Assume we'll default to using the included libiberty regex.
12916 gdb_use_included_regex=yes
12917
12918 # However, if the system regex is GNU regex, then default to *not*
12919 # using the included regex.
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12921 $as_echo_n "checking for GNU regex... " >&6; }
12922 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12923   $as_echo_n "(cached) " >&6
12924 else
12925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h.  */
12927 #include <gnu-versions.h>
12928 int
12929 main ()
12930 {
12931 #define REGEX_INTERFACE_VERSION 1
12932 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12933 # error "Version mismatch"
12934 #endif
12935   ;
12936   return 0;
12937 }
12938 _ACEOF
12939 if ac_fn_c_try_compile "$LINENO"; then :
12940   gdb_cv_have_gnu_regex=yes
12941 else
12942   gdb_cv_have_gnu_regex=no
12943 fi
12944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12945 fi
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12947 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12948 if test $gdb_cv_have_gnu_regex = yes; then
12949   gdb_use_included_regex=no
12950 fi
12951
12952
12953 # Check whether --with-included-regex was given.
12954 if test "${with_included_regex+set}" = set; then :
12955   withval=$with_included_regex; gdb_with_regex=$withval
12956 else
12957   gdb_with_regex=$gdb_use_included_regex
12958 fi
12959
12960 if test "$gdb_with_regex" = yes; then
12961
12962 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12963
12964 fi
12965
12966 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12967 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12968 #include <sys/proc.h>
12969
12970 "
12971 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12972
12973 cat >>confdefs.h <<_ACEOF
12974 #define HAVE_STRUCT_THREAD_TD_PCB 1
12975 _ACEOF
12976
12977
12978 fi
12979
12980
12981 # See if <sys/lwp.h> defines `struct lwp`.
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12983 $as_echo_n "checking for struct lwp... " >&6; }
12984 if test "${gdb_cv_struct_lwp+set}" = set; then :
12985   $as_echo_n "(cached) " >&6
12986 else
12987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h.  */
12989 #include <sys/param.h>
12990 #include <sys/lwp.h>
12991 int
12992 main ()
12993 {
12994 struct lwp l;
12995   ;
12996   return 0;
12997 }
12998 _ACEOF
12999 if ac_fn_c_try_compile "$LINENO"; then :
13000   gdb_cv_struct_lwp=yes
13001 else
13002   gdb_cv_struct_lwp=no
13003 fi
13004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005 fi
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13007 $as_echo "$gdb_cv_struct_lwp" >&6; }
13008 if test $gdb_cv_struct_lwp = yes; then
13009
13010 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13011
13012 fi
13013
13014 # See if <machine/reg.h> degines `struct reg'.
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13016 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13017 if test "${gdb_cv_struct_reg+set}" = set; then :
13018   $as_echo_n "(cached) " >&6
13019 else
13020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h.  */
13022 #include <sys/types.h>
13023 #include <machine/reg.h>
13024 int
13025 main ()
13026 {
13027 struct reg r;
13028   ;
13029   return 0;
13030 }
13031 _ACEOF
13032 if ac_fn_c_try_compile "$LINENO"; then :
13033   gdb_cv_struct_reg=yes
13034 else
13035   gdb_cv_struct_reg=no
13036 fi
13037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13038 fi
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13040 $as_echo "$gdb_cv_struct_reg" >&6; }
13041 if test $gdb_cv_struct_reg = yes; then
13042
13043 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13044
13045 fi
13046
13047 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13048 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13049 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13050 "
13051 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
13052
13053 cat >>confdefs.h <<_ACEOF
13054 #define HAVE_STRUCT_REG_R_FS 1
13055 _ACEOF
13056
13057
13058 fi
13059 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13060 "
13061 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
13062
13063 cat >>confdefs.h <<_ACEOF
13064 #define HAVE_STRUCT_REG_R_GS 1
13065 _ACEOF
13066
13067
13068 fi
13069
13070
13071 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13073 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13074 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13075   $as_echo_n "(cached) " >&6
13076 else
13077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h.  */
13079 #include <sys/ptrace.h>
13080 int
13081 main ()
13082 {
13083 PTRACE_GETREGS;
13084   ;
13085   return 0;
13086 }
13087 _ACEOF
13088 if ac_fn_c_try_compile "$LINENO"; then :
13089   gdb_cv_have_ptrace_getregs=yes
13090 else
13091   gdb_cv_have_ptrace_getregs=no
13092 fi
13093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13094 fi
13095
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13097 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13098 if test $gdb_cv_have_ptrace_getregs = yes; then
13099
13100 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13101
13102 fi
13103
13104 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13106 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13107 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13108   $as_echo_n "(cached) " >&6
13109 else
13110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h.  */
13112 #include <sys/ptrace.h>
13113 int
13114 main ()
13115 {
13116 PTRACE_GETFPXREGS;
13117   ;
13118   return 0;
13119 }
13120 _ACEOF
13121 if ac_fn_c_try_compile "$LINENO"; then :
13122   gdb_cv_have_ptrace_getfpxregs=yes
13123 else
13124   gdb_cv_have_ptrace_getfpxregs=no
13125 fi
13126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13127 fi
13128
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13130 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13131 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13132
13133 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13134
13135 fi
13136
13137 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13139 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13140 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13141   $as_echo_n "(cached) " >&6
13142 else
13143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h.  */
13145 #include <sys/types.h>
13146 #include <sys/ptrace.h>
13147 int
13148 main ()
13149 {
13150 PT_GETDBREGS;
13151   ;
13152   return 0;
13153 }
13154 _ACEOF
13155 if ac_fn_c_try_compile "$LINENO"; then :
13156   gdb_cv_have_pt_getdbregs=yes
13157 else
13158   gdb_cv_have_pt_getdbregs=no
13159 fi
13160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13161 fi
13162
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13164 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13165 if test $gdb_cv_have_pt_getdbregs = yes; then
13166
13167 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13168
13169 fi
13170
13171 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13173 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13174 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13175   $as_echo_n "(cached) " >&6
13176 else
13177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h.  */
13179 #include <sys/types.h>
13180 #include <sys/ptrace.h>
13181 int
13182 main ()
13183 {
13184 PT_GETXMMREGS;
13185   ;
13186   return 0;
13187 }
13188 _ACEOF
13189 if ac_fn_c_try_compile "$LINENO"; then :
13190   gdb_cv_have_pt_getxmmregs=yes
13191 else
13192   gdb_cv_have_pt_getxmmregs=no
13193 fi
13194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13195 fi
13196
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13198 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13199 if test $gdb_cv_have_pt_getxmmregs = yes; then
13200
13201 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13202
13203 fi
13204
13205 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13206
13207 if test "${target}" = "${host}"; then
13208   case "${host}" in
13209   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
13210
13211 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13212
13213       ;;
13214   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13215
13216 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13217
13218       ;;
13219   mips-sgi-irix5*)
13220       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13221
13222 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13223
13224       ;;
13225   esac
13226 fi
13227
13228 if test "$ac_cv_header_sys_procfs_h" = yes; then
13229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13230 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13231  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13232   $as_echo_n "(cached) " >&6
13233 else
13234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h.  */
13236
13237 #define _SYSCALL32
13238 /* Needed for new procfs interface on sparc-solaris.  */
13239 #define _STRUCTURED_PROC 1
13240 #include <sys/procfs.h>
13241 int
13242 main ()
13243 {
13244 pstatus_t avar
13245   ;
13246   return 0;
13247 }
13248 _ACEOF
13249 if ac_fn_c_try_compile "$LINENO"; then :
13250   bfd_cv_have_sys_procfs_type_pstatus_t=yes
13251 else
13252   bfd_cv_have_sys_procfs_type_pstatus_t=no
13253
13254 fi
13255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13256 fi
13257
13258  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13259
13260 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13261
13262  fi
13263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13264 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13265
13266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13267 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13268  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13269   $as_echo_n "(cached) " >&6
13270 else
13271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h.  */
13273
13274 #define _SYSCALL32
13275 /* Needed for new procfs interface on sparc-solaris.  */
13276 #define _STRUCTURED_PROC 1
13277 #include <sys/procfs.h>
13278 int
13279 main ()
13280 {
13281 prrun_t avar
13282   ;
13283   return 0;
13284 }
13285 _ACEOF
13286 if ac_fn_c_try_compile "$LINENO"; then :
13287   bfd_cv_have_sys_procfs_type_prrun_t=yes
13288 else
13289   bfd_cv_have_sys_procfs_type_prrun_t=no
13290
13291 fi
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293 fi
13294
13295  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13296
13297 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13298
13299  fi
13300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13301 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13302
13303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13304 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13305  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13306   $as_echo_n "(cached) " >&6
13307 else
13308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h.  */
13310
13311 #define _SYSCALL32
13312 /* Needed for new procfs interface on sparc-solaris.  */
13313 #define _STRUCTURED_PROC 1
13314 #include <sys/procfs.h>
13315 int
13316 main ()
13317 {
13318 gregset_t avar
13319   ;
13320   return 0;
13321 }
13322 _ACEOF
13323 if ac_fn_c_try_compile "$LINENO"; then :
13324   bfd_cv_have_sys_procfs_type_gregset_t=yes
13325 else
13326   bfd_cv_have_sys_procfs_type_gregset_t=no
13327
13328 fi
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330 fi
13331
13332  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13333
13334 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13335
13336  fi
13337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13338 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13339
13340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13341 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13342  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13343   $as_echo_n "(cached) " >&6
13344 else
13345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h.  */
13347
13348 #define _SYSCALL32
13349 /* Needed for new procfs interface on sparc-solaris.  */
13350 #define _STRUCTURED_PROC 1
13351 #include <sys/procfs.h>
13352 int
13353 main ()
13354 {
13355 fpregset_t avar
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 if ac_fn_c_try_compile "$LINENO"; then :
13361   bfd_cv_have_sys_procfs_type_fpregset_t=yes
13362 else
13363   bfd_cv_have_sys_procfs_type_fpregset_t=no
13364
13365 fi
13366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367 fi
13368
13369  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13370
13371 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13372
13373  fi
13374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13375 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13376
13377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13378 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13379  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13380   $as_echo_n "(cached) " >&6
13381 else
13382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h.  */
13384
13385 #define _SYSCALL32
13386 /* Needed for new procfs interface on sparc-solaris.  */
13387 #define _STRUCTURED_PROC 1
13388 #include <sys/procfs.h>
13389 int
13390 main ()
13391 {
13392 prgregset_t avar
13393   ;
13394   return 0;
13395 }
13396 _ACEOF
13397 if ac_fn_c_try_compile "$LINENO"; then :
13398   bfd_cv_have_sys_procfs_type_prgregset_t=yes
13399 else
13400   bfd_cv_have_sys_procfs_type_prgregset_t=no
13401
13402 fi
13403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404 fi
13405
13406  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13407
13408 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13409
13410  fi
13411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13412 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13413
13414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13415 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13416  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13417   $as_echo_n "(cached) " >&6
13418 else
13419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h.  */
13421
13422 #define _SYSCALL32
13423 /* Needed for new procfs interface on sparc-solaris.  */
13424 #define _STRUCTURED_PROC 1
13425 #include <sys/procfs.h>
13426 int
13427 main ()
13428 {
13429 prfpregset_t avar
13430   ;
13431   return 0;
13432 }
13433 _ACEOF
13434 if ac_fn_c_try_compile "$LINENO"; then :
13435   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13436 else
13437   bfd_cv_have_sys_procfs_type_prfpregset_t=no
13438
13439 fi
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 fi
13442
13443  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13444
13445 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13446
13447  fi
13448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13449 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13450
13451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13452 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13453  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13454   $as_echo_n "(cached) " >&6
13455 else
13456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h.  */
13458
13459 #define _SYSCALL32
13460 /* Needed for new procfs interface on sparc-solaris.  */
13461 #define _STRUCTURED_PROC 1
13462 #include <sys/procfs.h>
13463 int
13464 main ()
13465 {
13466 prgregset32_t avar
13467   ;
13468   return 0;
13469 }
13470 _ACEOF
13471 if ac_fn_c_try_compile "$LINENO"; then :
13472   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13473 else
13474   bfd_cv_have_sys_procfs_type_prgregset32_t=no
13475
13476 fi
13477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13478 fi
13479
13480  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13481
13482 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13483
13484  fi
13485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13486 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13487
13488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13489 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13490  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13491   $as_echo_n "(cached) " >&6
13492 else
13493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h.  */
13495
13496 #define _SYSCALL32
13497 /* Needed for new procfs interface on sparc-solaris.  */
13498 #define _STRUCTURED_PROC 1
13499 #include <sys/procfs.h>
13500 int
13501 main ()
13502 {
13503 prfpregset32_t avar
13504   ;
13505   return 0;
13506 }
13507 _ACEOF
13508 if ac_fn_c_try_compile "$LINENO"; then :
13509   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
13510 else
13511   bfd_cv_have_sys_procfs_type_prfpregset32_t=no
13512
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13515 fi
13516
13517  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13518
13519 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13520
13521  fi
13522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13523 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13524
13525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13526 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13527  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13528   $as_echo_n "(cached) " >&6
13529 else
13530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h.  */
13532
13533 #define _SYSCALL32
13534 /* Needed for new procfs interface on sparc-solaris.  */
13535 #define _STRUCTURED_PROC 1
13536 #include <sys/procfs.h>
13537 int
13538 main ()
13539 {
13540 lwpid_t avar
13541   ;
13542   return 0;
13543 }
13544 _ACEOF
13545 if ac_fn_c_try_compile "$LINENO"; then :
13546   bfd_cv_have_sys_procfs_type_lwpid_t=yes
13547 else
13548   bfd_cv_have_sys_procfs_type_lwpid_t=no
13549
13550 fi
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552 fi
13553
13554  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13555
13556 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13557
13558  fi
13559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13560 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13561
13562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13563 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13564  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13565   $as_echo_n "(cached) " >&6
13566 else
13567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h.  */
13569
13570 #define _SYSCALL32
13571 /* Needed for new procfs interface on sparc-solaris.  */
13572 #define _STRUCTURED_PROC 1
13573 #include <sys/procfs.h>
13574 int
13575 main ()
13576 {
13577 psaddr_t avar
13578   ;
13579   return 0;
13580 }
13581 _ACEOF
13582 if ac_fn_c_try_compile "$LINENO"; then :
13583   bfd_cv_have_sys_procfs_type_psaddr_t=yes
13584 else
13585   bfd_cv_have_sys_procfs_type_psaddr_t=no
13586
13587 fi
13588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589 fi
13590
13591  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13592
13593 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13594
13595  fi
13596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13597 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13598
13599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13600 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13601  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13602   $as_echo_n "(cached) " >&6
13603 else
13604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h.  */
13606
13607 #define _SYSCALL32
13608 /* Needed for new procfs interface on sparc-solaris.  */
13609 #define _STRUCTURED_PROC 1
13610 #include <sys/procfs.h>
13611 int
13612 main ()
13613 {
13614 prsysent_t avar
13615   ;
13616   return 0;
13617 }
13618 _ACEOF
13619 if ac_fn_c_try_compile "$LINENO"; then :
13620   bfd_cv_have_sys_procfs_type_prsysent_t=yes
13621 else
13622   bfd_cv_have_sys_procfs_type_prsysent_t=no
13623
13624 fi
13625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13626 fi
13627
13628  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13629
13630 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13631
13632  fi
13633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13634 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13635
13636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13637 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13638  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13639   $as_echo_n "(cached) " >&6
13640 else
13641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h.  */
13643
13644 #define _SYSCALL32
13645 /* Needed for new procfs interface on sparc-solaris.  */
13646 #define _STRUCTURED_PROC 1
13647 #include <sys/procfs.h>
13648 int
13649 main ()
13650 {
13651 pr_sigset_t avar
13652   ;
13653   return 0;
13654 }
13655 _ACEOF
13656 if ac_fn_c_try_compile "$LINENO"; then :
13657   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13658 else
13659   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13660
13661 fi
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663 fi
13664
13665  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13666
13667 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13668
13669  fi
13670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13671 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13672
13673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13674 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13675  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13676   $as_echo_n "(cached) " >&6
13677 else
13678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h.  */
13680
13681 #define _SYSCALL32
13682 /* Needed for new procfs interface on sparc-solaris.  */
13683 #define _STRUCTURED_PROC 1
13684 #include <sys/procfs.h>
13685 int
13686 main ()
13687 {
13688 pr_sigaction64_t avar
13689   ;
13690   return 0;
13691 }
13692 _ACEOF
13693 if ac_fn_c_try_compile "$LINENO"; then :
13694   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13695 else
13696   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13697
13698 fi
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 fi
13701
13702  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13703
13704 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13705
13706  fi
13707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13708 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13709
13710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13711 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13712  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13713   $as_echo_n "(cached) " >&6
13714 else
13715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h.  */
13717
13718 #define _SYSCALL32
13719 /* Needed for new procfs interface on sparc-solaris.  */
13720 #define _STRUCTURED_PROC 1
13721 #include <sys/procfs.h>
13722 int
13723 main ()
13724 {
13725 pr_siginfo64_t avar
13726   ;
13727   return 0;
13728 }
13729 _ACEOF
13730 if ac_fn_c_try_compile "$LINENO"; then :
13731   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13732 else
13733   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13734
13735 fi
13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737 fi
13738
13739  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13740
13741 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13742
13743  fi
13744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13745 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13746
13747
13748
13749
13750
13751   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13753 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13754     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13755   $as_echo_n "(cached) " >&6
13756 else
13757   if test "$cross_compiling" = yes; then :
13758   gdb_cv_prfpregset_t_broken=yes
13759 else
13760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h.  */
13762 #include <sys/procfs.h>
13763        int main ()
13764        {
13765          if (sizeof (prfpregset_t) == sizeof (void *))
13766            return 1;
13767          return 0;
13768        }
13769 _ACEOF
13770 if ac_fn_c_try_run "$LINENO"; then :
13771   gdb_cv_prfpregset_t_broken=no
13772 else
13773   gdb_cv_prfpregset_t_broken=yes
13774 fi
13775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13776   conftest.$ac_objext conftest.beam conftest.$ac_ext
13777 fi
13778
13779 fi
13780
13781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13782 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13783     if test $gdb_cv_prfpregset_t_broken = yes; then
13784
13785 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13786
13787     fi
13788   fi
13789
13790
13791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13792 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13793   if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13794   $as_echo_n "(cached) " >&6
13795 else
13796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h.  */
13798 #include <unistd.h>
13799 #include <sys/types.h>
13800 #include <sys/procfs.h>
13801
13802 int
13803 main ()
13804 {
13805
13806     int dummy;;
13807     dummy = ioctl(0, PIOCSET, &dummy);
13808
13809   ;
13810   return 0;
13811 }
13812 _ACEOF
13813 if ac_fn_c_try_compile "$LINENO"; then :
13814   gdb_cv_have_procfs_piocset=yes
13815 else
13816   gdb_cv_have_procfs_piocset=no
13817 fi
13818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13819 fi
13820
13821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13822 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13823   if test $gdb_cv_have_procfs_piocset = yes; then
13824
13825 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13826
13827   fi
13828 fi
13829
13830 if test ${host} = ${target} ; then
13831
13832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13833 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13834   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13835   $as_echo_n "(cached) " >&6
13836 else
13837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838 /* end confdefs.h.  */
13839 #include <link.h>
13840 int
13841 main ()
13842 {
13843 struct link_map lm; (void) lm.l_addr;
13844   ;
13845   return 0;
13846 }
13847 _ACEOF
13848 if ac_fn_c_try_compile "$LINENO"; then :
13849   gdb_cv_have_struct_link_map_with_l_members=yes
13850 else
13851   gdb_cv_have_struct_link_map_with_l_members=no
13852 fi
13853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13854 fi
13855
13856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13857 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13858   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13859
13860 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13861
13862   fi
13863
13864
13865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13866 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13867   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13868   $as_echo_n "(cached) " >&6
13869 else
13870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h.  */
13872 #include <sys/types.h>
13873 #include <link.h>
13874 int
13875 main ()
13876 {
13877 struct link_map lm; (void) lm.lm_addr;
13878   ;
13879   return 0;
13880 }
13881 _ACEOF
13882 if ac_fn_c_try_compile "$LINENO"; then :
13883   gdb_cv_have_struct_link_map_with_lm_members=yes
13884 else
13885   gdb_cv_have_struct_link_map_with_lm_members=no
13886 fi
13887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13888 fi
13889
13890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13891 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13892   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13893
13894 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13895
13896   fi
13897
13898
13899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13900 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13901   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13902   $as_echo_n "(cached) " >&6
13903 else
13904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h.  */
13906 #include <sys/types.h>
13907 #ifdef HAVE_NLIST_H
13908 #include <nlist.h>
13909 #endif
13910 #include <link.h>
13911 int
13912 main ()
13913 {
13914 struct so_map lm; (void) lm.som_addr;
13915   ;
13916   return 0;
13917 }
13918 _ACEOF
13919 if ac_fn_c_try_compile "$LINENO"; then :
13920   gdb_cv_have_struct_so_map_with_som_members=yes
13921 else
13922   gdb_cv_have_struct_so_map_with_som_members=no
13923 fi
13924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925 fi
13926
13927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13928 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13929   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13930
13931 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13932
13933   fi
13934
13935
13936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13937 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13938   if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13939   $as_echo_n "(cached) " >&6
13940 else
13941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h.  */
13943 #define _SYSCALL32
13944 #include <sys/link.h>
13945 int
13946 main ()
13947 {
13948 struct link_map32 l;
13949   ;
13950   return 0;
13951 }
13952 _ACEOF
13953 if ac_fn_c_try_compile "$LINENO"; then :
13954   gdb_cv_have_struct_link_map32=yes
13955 else
13956   gdb_cv_have_struct_link_map32=no
13957 fi
13958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13959 fi
13960
13961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13962 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13963   if test $gdb_cv_have_struct_link_map32 = yes; then
13964
13965 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13966
13967
13968 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13969
13970   fi
13971 fi
13972
13973 # Check if the compiler supports the `long long' type.
13974
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13976 $as_echo_n "checking for long long support in compiler... " >&6; }
13977 if test "${gdb_cv_c_long_long+set}" = set; then :
13978   $as_echo_n "(cached) " >&6
13979 else
13980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981 /* end confdefs.h.  */
13982 extern long long foo;
13983 int
13984 main ()
13985 {
13986 switch (foo & 2) { case 0: return 1; }
13987   ;
13988   return 0;
13989 }
13990 _ACEOF
13991 if ac_fn_c_try_compile "$LINENO"; then :
13992   gdb_cv_c_long_long=yes
13993 else
13994   gdb_cv_c_long_long=no
13995 fi
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 fi
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13999 $as_echo "$gdb_cv_c_long_long" >&6; }
14000 if test $gdb_cv_c_long_long = yes; then
14001
14002 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
14003
14004 fi
14005
14006 # Check if the compiler and runtime support printing long longs.
14007
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14009 $as_echo_n "checking for long long support in printf... " >&6; }
14010 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14011   $as_echo_n "(cached) " >&6
14012 else
14013   if test "$cross_compiling" = yes; then :
14014   gdb_cv_printf_has_long_long=no
14015 else
14016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h.  */
14018 $ac_includes_default
14019 int
14020 main ()
14021 {
14022 char buf[32];
14023   long long l = 0;
14024   l = (l << 16) + 0x0123;
14025   l = (l << 16) + 0x4567;
14026   l = (l << 16) + 0x89ab;
14027   l = (l << 16) + 0xcdef;
14028   sprintf (buf, "0x%016llx", l);
14029   return (strcmp ("0x0123456789abcdef", buf));
14030   ;
14031   return 0;
14032 }
14033 _ACEOF
14034 if ac_fn_c_try_run "$LINENO"; then :
14035   gdb_cv_printf_has_long_long=yes
14036 else
14037   gdb_cv_printf_has_long_long=no
14038 fi
14039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14040   conftest.$ac_objext conftest.beam conftest.$ac_ext
14041 fi
14042
14043 fi
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14045 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14046 if test $gdb_cv_printf_has_long_long = yes; then
14047
14048 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14049
14050 fi
14051
14052 # Check if the compiler and runtime support printing decfloats.
14053
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14055 $as_echo_n "checking for decfloat support in printf... " >&6; }
14056 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14057   $as_echo_n "(cached) " >&6
14058 else
14059   if test "$cross_compiling" = yes; then :
14060   gdb_cv_printf_has_decfloat=no
14061 else
14062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h.  */
14064 $ac_includes_default
14065 int
14066 main ()
14067 {
14068 char buf[64];
14069   _Decimal32 d32 = 1.2345df;
14070   _Decimal64 d64 = 1.2345dd;
14071   _Decimal128 d128 = 1.2345dl;
14072   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14073   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14074   ;
14075   return 0;
14076 }
14077 _ACEOF
14078 if ac_fn_c_try_run "$LINENO"; then :
14079   gdb_cv_printf_has_decfloat=yes
14080 else
14081   gdb_cv_printf_has_decfloat=no
14082 fi
14083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14084   conftest.$ac_objext conftest.beam conftest.$ac_ext
14085 fi
14086
14087 fi
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14089 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14090 if test $gdb_cv_printf_has_decfloat = yes; then
14091
14092 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14093
14094 fi
14095
14096 # Check if the compiler supports the `long double' type.  We can't use
14097 # AC_C_LONG_DOUBLE because that one does additional checks on the
14098 # constants defined in <float.h> that fail on some systems,
14099 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14100
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14102 $as_echo_n "checking for long double support in compiler... " >&6; }
14103 if test "${gdb_cv_c_long_double+set}" = set; then :
14104   $as_echo_n "(cached) " >&6
14105 else
14106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h.  */
14108 long double foo;
14109 _ACEOF
14110 if ac_fn_c_try_compile "$LINENO"; then :
14111   gdb_cv_c_long_double=yes
14112 else
14113   gdb_cv_c_long_double=no
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14118 $as_echo "$gdb_cv_c_long_double" >&6; }
14119 if test $gdb_cv_c_long_double = yes; then
14120
14121 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14122
14123 fi
14124
14125 # Check if the compiler and runtime support printing long doubles.
14126
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14128 $as_echo_n "checking for long double support in printf... " >&6; }
14129 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14130   $as_echo_n "(cached) " >&6
14131 else
14132   if test "$cross_compiling" = yes; then :
14133   gdb_cv_printf_has_long_double=no
14134 else
14135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h.  */
14137 $ac_includes_default
14138 int
14139 main ()
14140 {
14141 char buf[16];
14142   long double f = 3.141592653;
14143   sprintf (buf, "%Lg", f);
14144   return (strncmp ("3.14159", buf, 7));
14145   ;
14146   return 0;
14147 }
14148 _ACEOF
14149 if ac_fn_c_try_run "$LINENO"; then :
14150   gdb_cv_printf_has_long_double=yes
14151 else
14152   gdb_cv_printf_has_long_double=no
14153 fi
14154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14155   conftest.$ac_objext conftest.beam conftest.$ac_ext
14156 fi
14157
14158 fi
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14160 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14161 if test $gdb_cv_printf_has_long_double = yes; then
14162
14163 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14164
14165 fi
14166
14167 # Check if the compiler and runtime support scanning long doubles.
14168
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14170 $as_echo_n "checking for long double support in scanf... " >&6; }
14171 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14172   $as_echo_n "(cached) " >&6
14173 else
14174   if test "$cross_compiling" = yes; then :
14175   gdb_cv_scanf_has_long_double=no
14176 else
14177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h.  */
14179 #include <stdio.h>
14180 int
14181 main ()
14182 {
14183 char *buf = "3.141592653";
14184   long double f = 0;
14185   sscanf (buf, "%Lg", &f);
14186   return !(f > 3.14159 && f < 3.14160);
14187   ;
14188   return 0;
14189 }
14190 _ACEOF
14191 if ac_fn_c_try_run "$LINENO"; then :
14192   gdb_cv_scanf_has_long_double=yes
14193 else
14194   gdb_cv_scanf_has_long_double=no
14195 fi
14196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14197   conftest.$ac_objext conftest.beam conftest.$ac_ext
14198 fi
14199
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14202 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14203 if test $gdb_cv_scanf_has_long_double = yes; then
14204
14205 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14206
14207 fi
14208
14209 case ${host_os} in
14210 aix*)
14211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14212 $as_echo_n "checking for -bbigtoc option... " >&6; }
14213 if test "${gdb_cv_bigtoc+set}" = set; then :
14214   $as_echo_n "(cached) " >&6
14215 else
14216
14217     SAVE_LDFLAGS=$LDFLAGS
14218
14219     case $GCC in
14220     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14221     *) gdb_cv_bigtoc=-bbigtoc ;;
14222     esac
14223
14224     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14225     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h.  */
14227
14228 int
14229 main ()
14230 {
14231 int i;
14232   ;
14233   return 0;
14234 }
14235 _ACEOF
14236 if ac_fn_c_try_link "$LINENO"; then :
14237
14238 else
14239   gdb_cv_bigtoc=
14240 fi
14241 rm -f core conftest.err conftest.$ac_objext \
14242     conftest$ac_exeext conftest.$ac_ext
14243     LDFLAGS="${SAVE_LDFLAGS}"
14244
14245 fi
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14247 $as_echo "$gdb_cv_bigtoc" >&6; }
14248   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14249   ;;
14250 esac
14251
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14253 $as_echo_n "checking for the dynamic export flag... " >&6; }
14254 dynamic_list=false
14255 if test "${gdb_native}" = yes; then
14256    # The dynamically loaded libthread_db needs access to symbols in the gdb
14257    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
14258    # may not be supported there.
14259    old_LDFLAGS="$LDFLAGS"
14260    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14261    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14262    LDFLAGS="$LDFLAGS $RDYNAMIC"
14263    if test "${have_libpython}" = no; then
14264      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h.  */
14266
14267 int
14268 main ()
14269 {
14270
14271   ;
14272   return 0;
14273 }
14274 _ACEOF
14275 if ac_fn_c_try_link "$LINENO"; then :
14276   dynamic_list=true
14277 fi
14278 rm -f core conftest.err conftest.$ac_objext \
14279     conftest$ac_exeext conftest.$ac_ext
14280    else
14281      # Workaround http://bugs.python.org/issue4434 where static
14282      # libpythonX.Y.a would get its symbols required for
14283      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14284      # Problem does not happen for the recommended libpythonX.Y.so linkage.
14285      old_CFLAGS="$CFLAGS"
14286      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14287      if test "$cross_compiling" = yes; then :
14288   true
14289 else
14290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291 /* end confdefs.h.  */
14292 #include "${have_libpython}/Python.h"
14293 int
14294 main ()
14295 {
14296 int err;
14297           Py_Initialize ();
14298           err = PyRun_SimpleString ("import itertools\n");
14299           Py_Finalize ();
14300           return err == 0 ? 0 : 1;
14301   ;
14302   return 0;
14303 }
14304 _ACEOF
14305 if ac_fn_c_try_run "$LINENO"; then :
14306   dynamic_list=true
14307 fi
14308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14309   conftest.$ac_objext conftest.beam conftest.$ac_ext
14310 fi
14311
14312      CFLAGS="$old_CFLAGS"
14313    fi
14314    LDFLAGS="$old_LDFLAGS"
14315 fi
14316 if $dynamic_list; then
14317   found="-Wl,--dynamic-list"
14318   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14319 else
14320   found="-rdynamic"
14321   RDYNAMIC="-rdynamic"
14322 fi
14323
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14325 $as_echo "$found" >&6; }
14326
14327
14328 if test ${build} = ${host} -a ${host} = ${target} ; then
14329    case ${host_os} in
14330    solaris*)
14331       # See if thread_db library is around for Solaris thread debugging.
14332       # Note that we must explicitly test for version 1 of the library
14333       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14334       # the same API.
14335       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14336 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14337       if test -f /usr/lib/libthread_db.so.1 ; then
14338          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14339 $as_echo "yes" >&6; }
14340
14341 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14342
14343          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
14344          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
14345          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14346 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14347 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14348   $as_echo_n "(cached) " >&6
14349 else
14350   ac_check_lib_save_LIBS=$LIBS
14351 LIBS="-ldl  $LIBS"
14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h.  */
14354
14355 /* Override any GCC internal prototype to avoid an error.
14356    Use char because int might match the return type of a GCC
14357    builtin and then its argument prototype would still apply.  */
14358 #ifdef __cplusplus
14359 extern "C"
14360 #endif
14361 char dlopen ();
14362 int
14363 main ()
14364 {
14365 return dlopen ();
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 if ac_fn_c_try_link "$LINENO"; then :
14371   ac_cv_lib_dl_dlopen=yes
14372 else
14373   ac_cv_lib_dl_dlopen=no
14374 fi
14375 rm -f core conftest.err conftest.$ac_objext \
14376     conftest$ac_exeext conftest.$ac_ext
14377 LIBS=$ac_check_lib_save_LIBS
14378 fi
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14380 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14381 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14382   cat >>confdefs.h <<_ACEOF
14383 #define HAVE_LIBDL 1
14384 _ACEOF
14385
14386   LIBS="-ldl $LIBS"
14387
14388 fi
14389
14390          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
14391          # Sun randomly tweaked the prototypes in <proc_service.h>
14392          # at one point.
14393          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14394 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14395          if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14396   $as_echo_n "(cached) " >&6
14397 else
14398
14399             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h.  */
14401
14402                 #include <proc_service.h>
14403                 ps_err_e ps_pdwrite
14404                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
14405
14406 int
14407 main ()
14408 {
14409
14410   ;
14411   return 0;
14412 }
14413 _ACEOF
14414 if ac_fn_c_try_compile "$LINENO"; then :
14415   gdb_cv_proc_service_is_old=no
14416 else
14417   gdb_cv_proc_service_is_old=yes
14418 fi
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420
14421 fi
14422
14423          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14424 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14425          if test $gdb_cv_proc_service_is_old = yes; then
14426
14427 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14428
14429          fi
14430       else
14431          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432 $as_echo "no" >&6; }
14433       fi
14434       ;;
14435    aix*)
14436       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14437 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14438       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14439   $as_echo_n "(cached) " >&6
14440 else
14441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h.  */
14443 #include <sys/pthdebug.h>
14444 int
14445 main ()
14446 {
14447 #ifndef PTHDB_VERSION_3
14448                                     #error
14449                                     #endif
14450   ;
14451   return 0;
14452 }
14453 _ACEOF
14454 if ac_fn_c_try_compile "$LINENO"; then :
14455   gdb_cv_have_aix_thread_debug=yes
14456 else
14457   gdb_cv_have_aix_thread_debug=no
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 fi
14461
14462       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14463 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14464       if test $gdb_cv_have_aix_thread_debug = yes; then
14465          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14466          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14467          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14468       fi
14469       ;;
14470    esac
14471
14472 fi
14473
14474 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14475    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14476 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14477 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14478   $as_echo_n "(cached) " >&6
14479 else
14480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h.  */
14482 #include <thread_db.h>
14483 int
14484 main ()
14485 {
14486 int i = TD_NOTALLOC;
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 if ac_fn_c_try_compile "$LINENO"; then :
14492   gdb_cv_thread_db_h_has_td_notalloc=yes
14493 else
14494   gdb_cv_thread_db_h_has_td_notalloc=no
14495
14496 fi
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498
14499 fi
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14501 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14502    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14503 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14504 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14505   $as_echo_n "(cached) " >&6
14506 else
14507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h.  */
14509 #include <thread_db.h>
14510 int
14511 main ()
14512 {
14513 int i = TD_VERSION;
14514   ;
14515   return 0;
14516 }
14517 _ACEOF
14518 if ac_fn_c_try_compile "$LINENO"; then :
14519   gdb_cv_thread_db_h_has_td_version=yes
14520 else
14521   gdb_cv_thread_db_h_has_td_version=no
14522
14523 fi
14524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525
14526 fi
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14528 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14529    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14530 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14531 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14532   $as_echo_n "(cached) " >&6
14533 else
14534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h.  */
14536 #include <thread_db.h>
14537 int
14538 main ()
14539 {
14540 int i = TD_NOTLS;
14541   ;
14542   return 0;
14543 }
14544 _ACEOF
14545 if ac_fn_c_try_compile "$LINENO"; then :
14546   gdb_cv_thread_db_h_has_td_notls=yes
14547 else
14548   gdb_cv_thread_db_h_has_td_notls=no
14549
14550 fi
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552
14553 fi
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14555 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14556 fi
14557 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14558
14559 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14560
14561 fi
14562 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14563
14564 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14565
14566 fi
14567 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14568
14569 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14570
14571 fi
14572
14573 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14574    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14575 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14576 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14577   $as_echo_n "(cached) " >&6
14578 else
14579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h.  */
14581 #include <sys/syscall.h>
14582 int
14583 main ()
14584 {
14585 int i = __NR_tkill;
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 if ac_fn_c_try_compile "$LINENO"; then :
14591   gdb_cv_sys_syscall_h_has_tkill=yes
14592 else
14593   gdb_cv_sys_syscall_h_has_tkill=no
14594
14595 fi
14596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14597
14598 fi
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14600 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14601 fi
14602 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14603
14604 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14605
14606 fi
14607
14608 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14609 "
14610 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14611   ac_have_decl=1
14612 else
14613   ac_have_decl=0
14614 fi
14615
14616 cat >>confdefs.h <<_ACEOF
14617 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14618 _ACEOF
14619
14620
14621 if test "$cross_compiling" = yes; then :
14622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h.  */
14624 #include <sys/personality.h>
14625 int
14626 main ()
14627 {
14628
14629 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
14630 #       define ADDR_NO_RANDOMIZE 0x0040000
14631 #      endif
14632        /* Test the flag could be set and stays set.  */
14633        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14634        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14635            return 1
14636   ;
14637   return 0;
14638 }
14639 _ACEOF
14640 if ac_fn_c_try_link "$LINENO"; then :
14641   have_personality=true
14642 else
14643   have_personality=false
14644 fi
14645 rm -f core conftest.err conftest.$ac_objext \
14646     conftest$ac_exeext conftest.$ac_ext
14647 else
14648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h.  */
14650 #include <sys/personality.h>
14651 int
14652 main ()
14653 {
14654
14655 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
14656 #       define ADDR_NO_RANDOMIZE 0x0040000
14657 #      endif
14658        /* Test the flag could be set and stays set.  */
14659        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14660        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14661            return 1
14662   ;
14663   return 0;
14664 }
14665 _ACEOF
14666 if ac_fn_c_try_run "$LINENO"; then :
14667   have_personality=true
14668 else
14669   have_personality=false
14670 fi
14671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14672   conftest.$ac_objext conftest.beam conftest.$ac_ext
14673 fi
14674
14675 if $have_personality
14676 then
14677
14678 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14679
14680 fi
14681
14682
14683 target_sysroot_reloc=0
14684
14685 # Check whether --with-sysroot was given.
14686 if test "${with_sysroot+set}" = set; then :
14687   withval=$with_sysroot;
14688  case ${with_sysroot} in
14689  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
14690  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14691  esac
14692
14693  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14694
14695  if test "x$prefix" = xNONE; then
14696   test_prefix=/usr/local
14697  else
14698   test_prefix=$prefix
14699  fi
14700  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14701   test_exec_prefix=$test_prefix
14702  else
14703   test_exec_prefix=$exec_prefix
14704  fi
14705  case ${TARGET_SYSTEM_ROOT} in
14706  "${test_prefix}"|"${test_prefix}/"*|\
14707  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14708  '${prefix}'|'${prefix}/'*|\
14709  '${exec_prefix}'|'${exec_prefix}/'*)
14710    target_sysroot_reloc=1
14711    ;;
14712  esac
14713
14714 else
14715
14716  TARGET_SYSTEM_ROOT=
14717  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14718
14719 fi
14720
14721 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14722
14723
14724
14725
14726
14727 # Check whether --with-system-gdbinit was given.
14728 if test "${with_system_gdbinit+set}" = set; then :
14729   withval=$with_system_gdbinit;
14730     SYSTEM_GDBINIT=$withval
14731 else
14732   SYSTEM_GDBINIT=
14733 fi
14734
14735
14736   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14737   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14738   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14739   ac_define_dir=`eval echo $ac_define_dir`
14740
14741 cat >>confdefs.h <<_ACEOF
14742 #define SYSTEM_GDBINIT "$ac_define_dir"
14743 _ACEOF
14744
14745
14746
14747
14748   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14749      if test "x$prefix" = xNONE; then
14750         test_prefix=/usr/local
14751      else
14752         test_prefix=$prefix
14753      fi
14754   else
14755      test_prefix=$exec_prefix
14756   fi
14757   value=0
14758   case ${ac_define_dir} in
14759      "${test_prefix}"|"${test_prefix}/"*|\
14760         '${exec_prefix}'|'${exec_prefix}/'*)
14761      value=1
14762      ;;
14763   esac
14764
14765 cat >>confdefs.h <<_ACEOF
14766 #define SYSTEM_GDBINIT_RELOCATABLE $value
14767 _ACEOF
14768
14769
14770
14771
14772 # Check whether --enable-werror was given.
14773 if test "${enable_werror+set}" = set; then :
14774   enableval=$enable_werror; case "${enableval}" in
14775      yes | y) ERROR_ON_WARNING="yes" ;;
14776      no | n)  ERROR_ON_WARNING="no" ;;
14777      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14778    esac
14779 fi
14780
14781
14782 # Enable -Werror by default when using gcc
14783 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14784     ERROR_ON_WARNING=yes
14785 fi
14786
14787 WERROR_CFLAGS=""
14788 if test "${ERROR_ON_WARNING}" = yes ; then
14789     WERROR_CFLAGS="-Werror"
14790 fi
14791
14792 # The entries after -Wno-pointer-sign are disabled warnings which may
14793 # be enabled in the future, which can not currently be used to build
14794 # GDB.
14795 # NOTE: If you change this list, remember to update
14796 # gdb/doc/gdbint.texinfo.
14797 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14798 -Wformat-nonliteral -Wno-pointer-sign \
14799 -Wno-unused -Wunused-value -Wunused-function \
14800 -Wno-switch -Wno-char-subscripts"
14801
14802 # Enable -Wno-format by default when using gcc on mingw since many
14803 # GCC versions complain about %I64.
14804 case "${host}" in
14805   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14806 esac
14807
14808 # Check whether --enable-build-warnings was given.
14809 if test "${enable_build_warnings+set}" = set; then :
14810   enableval=$enable_build_warnings; case "${enableval}" in
14811   yes)  ;;
14812   no)   build_warnings="-w";;
14813   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14814         build_warnings="${build_warnings} ${t}";;
14815   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14816         build_warnings="${t} ${build_warnings}";;
14817   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14818 esac
14819 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14820   echo "Setting compiler warning flags = $build_warnings" 6>&1
14821 fi
14822 fi
14823 # Check whether --enable-gdb-build-warnings was given.
14824 if test "${enable_gdb_build_warnings+set}" = set; then :
14825   enableval=$enable_gdb_build_warnings; case "${enableval}" in
14826   yes)  ;;
14827   no)   build_warnings="-w";;
14828   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14829         build_warnings="${build_warnings} ${t}";;
14830   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14831         build_warnings="${t} ${build_warnings}";;
14832   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14833 esac
14834 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14835   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14836 fi
14837 fi
14838 WARN_CFLAGS=""
14839 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14840 then
14841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14842 $as_echo_n "checking compiler warning flags... " >&6; }
14843     # Separate out the -Werror flag as some files just cannot be
14844     # compiled with it enabled.
14845     for w in ${build_warnings}; do
14846         case $w in
14847         -Werr*) WERROR_CFLAGS=-Werror ;;
14848         *) # Check that GCC accepts it
14849             saved_CFLAGS="$CFLAGS"
14850             CFLAGS="$CFLAGS $w"
14851             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h.  */
14853
14854 int
14855 main ()
14856 {
14857
14858   ;
14859   return 0;
14860 }
14861 _ACEOF
14862 if ac_fn_c_try_compile "$LINENO"; then :
14863   WARN_CFLAGS="${WARN_CFLAGS} $w"
14864 fi
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14866             CFLAGS="$saved_CFLAGS"
14867         esac
14868     done
14869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14870 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14871 fi
14872
14873
14874
14875 # In the Cygwin environment, we need some additional flags.
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14877 $as_echo_n "checking for cygwin... " >&6; }
14878 if test "${gdb_cv_os_cygwin+set}" = set; then :
14879   $as_echo_n "(cached) " >&6
14880 else
14881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882 /* end confdefs.h.  */
14883
14884 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14885 lose
14886 #endif
14887 _ACEOF
14888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14889   $EGREP "lose" >/dev/null 2>&1; then :
14890   gdb_cv_os_cygwin=yes
14891 else
14892   gdb_cv_os_cygwin=no
14893 fi
14894 rm -f conftest*
14895
14896 fi
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14898 $as_echo "$gdb_cv_os_cygwin" >&6; }
14899
14900
14901 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14902 case ${host} in
14903   *go32* ) SER_HARDWIRE=ser-go32.o ;;
14904   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14905   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14906 esac
14907
14908
14909 # libreadline needs libuser32.a in a cygwin environment
14910 WIN32LIBS=
14911 if test x$gdb_cv_os_cygwin = xyes; then
14912     WIN32LIBS="-luser32"
14913     case "${target}" in
14914         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14915         ;;
14916     esac
14917 fi
14918
14919 # The ser-tcp.c module requires sockets.
14920 case ${host} in
14921   *mingw32*)
14922
14923 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14924
14925     WIN32LIBS="$WIN32LIBS -lws2_32"
14926     ;;
14927 esac
14928
14929
14930 # Add ELF support to GDB, but only if BFD includes ELF support.
14931 OLD_CFLAGS=$CFLAGS
14932 OLD_LDFLAGS=$LDFLAGS
14933 OLD_LIBS=$LIBS
14934 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14935 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
14936 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14937 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14938 if test "$plugins" = "yes"; then
14939   LIBS="-ldl $LIBS"
14940 fi
14941 LIBS="-lbfd -liberty $intl $LIBS"
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14943 $as_echo_n "checking for ELF support in BFD... " >&6; }
14944 if test "${gdb_cv_var_elf+set}" = set; then :
14945   $as_echo_n "(cached) " >&6
14946 else
14947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h.  */
14949 #include <stdlib.h>
14950 #include "bfd.h"
14951 #include "elf-bfd.h"
14952
14953 int
14954 main ()
14955 {
14956 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14957   ;
14958   return 0;
14959 }
14960 _ACEOF
14961 if ac_fn_c_try_link "$LINENO"; then :
14962   gdb_cv_var_elf=yes
14963 else
14964   gdb_cv_var_elf=no
14965 fi
14966 rm -f core conftest.err conftest.$ac_objext \
14967     conftest$ac_exeext conftest.$ac_ext
14968 fi
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14970 $as_echo "$gdb_cv_var_elf" >&6; }
14971 if test $gdb_cv_var_elf = yes; then
14972   CONFIG_OBS="$CONFIG_OBS elfread.o"
14973
14974 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14975
14976   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14977   if test "$plugins" = "yes"; then
14978     OLD_LIBS="-ldl $OLD_LIBS"
14979   fi
14980 fi
14981 CFLAGS=$OLD_CFLAGS
14982 LDFLAGS=$OLD_LDFLAGS
14983 LIBS=$OLD_LIBS
14984
14985 # Add any host-specific objects to GDB.
14986 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14987
14988 LIBGUI="../libgui/src/libgui.a"
14989 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14990
14991
14992
14993 WIN32LDAPP=
14994
14995
14996
14997 case "${host}" in
14998 *-*-cygwin* | *-*-mingw* )
14999     configdir="win"
15000     ;;
15001 *)
15002     configdir="unix"
15003     ;;
15004 esac
15005
15006 GDBTKLIBS=
15007 if test "${enable_gdbtk}" = "yes"; then
15008
15009     # Gdbtk must have an absolute path to srcdir in order to run
15010     # properly when not installed.
15011     here=`pwd`
15012     cd ${srcdir}
15013     GDBTK_SRC_DIR=`pwd`
15014     cd $here
15015
15016
15017     #
15018     # Ok, lets find the tcl configuration
15019     # First, look for one uninstalled.
15020     # the alternative search directory is invoked by --with-tcl
15021     #
15022
15023     if test x"${no_tcl}" = x ; then
15024         # we reset no_tcl in case something fails here
15025         no_tcl=true
15026
15027 # Check whether --with-tcl was given.
15028 if test "${with_tcl+set}" = set; then :
15029   withval=$with_tcl; with_tclconfig=${withval}
15030 fi
15031
15032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15033 $as_echo_n "checking for Tcl configuration... " >&6; }
15034         if test "${ac_cv_c_tclconfig+set}" = set; then :
15035   $as_echo_n "(cached) " >&6
15036 else
15037
15038
15039             # First check to see if --with-tcl was specified.
15040             case "${host}" in
15041                 *-*-cygwin*) platDir="win" ;;
15042                 *) platDir="unix" ;;
15043             esac
15044             if test x"${with_tclconfig}" != x ; then
15045                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15046                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15047                 else
15048                     as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15049                 fi
15050             fi
15051
15052             # then check for a private Tcl installation
15053             if test x"${ac_cv_c_tclconfig}" = x ; then
15054                 for i in \
15055                         ../tcl \
15056                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15057                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15058                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15059                         ../../tcl \
15060                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15061                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15062                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15063                         ../../../tcl \
15064                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15065                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15066                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15067                     if test -f "$i/$platDir/tclConfig.sh" ; then
15068                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15069                         break
15070                     fi
15071                 done
15072             fi
15073
15074             # on Darwin, check in Framework installation locations
15075             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15076                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15077                         `ls -d /Library/Frameworks 2>/dev/null` \
15078                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
15079                         `ls -d /System/Library/Frameworks 2>/dev/null` \
15080                         ; do
15081                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15082                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15083                         break
15084                     fi
15085                 done
15086             fi
15087
15088             # check in a few common install locations
15089             if test x"${ac_cv_c_tclconfig}" = x ; then
15090                 for i in `ls -d ${libdir} 2>/dev/null` \
15091                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
15092                         `ls -d ${prefix}/lib 2>/dev/null` \
15093                         `ls -d /usr/local/lib 2>/dev/null` \
15094                         `ls -d /usr/contrib/lib 2>/dev/null` \
15095                         `ls -d /usr/lib 2>/dev/null` \
15096                         ; do
15097                     if test -f "$i/tclConfig.sh" ; then
15098                         ac_cv_c_tclconfig=`(cd $i; pwd)`
15099                         break
15100                     fi
15101                 done
15102             fi
15103
15104             # check in a few other private locations
15105             if test x"${ac_cv_c_tclconfig}" = x ; then
15106                 for i in \
15107                         ${srcdir}/../tcl \
15108                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15109                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15110                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15111                     if test -f "$i/$platDir/tclConfig.sh" ; then
15112                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15113                     break
15114                 fi
15115                 done
15116             fi
15117
15118 fi
15119
15120
15121         if test x"${ac_cv_c_tclconfig}" = x ; then
15122             TCL_BIN_DIR="# no Tcl configs found"
15123             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15124 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15125         else
15126             no_tcl=
15127             TCL_BIN_DIR=${ac_cv_c_tclconfig}
15128             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15129 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15130         fi
15131     fi
15132
15133
15134     # If $no_tk is nonempty, then we can't do Tk, and there is no
15135     # point to doing Tcl.
15136
15137     #
15138     # Ok, lets find the tk configuration
15139     # First, look for one uninstalled.
15140     # the alternative search directory is invoked by --with-tk
15141     #
15142
15143     if test x"${no_tk}" = x ; then
15144         # we reset no_tk in case something fails here
15145         no_tk=true
15146
15147 # Check whether --with-tk was given.
15148 if test "${with_tk+set}" = set; then :
15149   withval=$with_tk; with_tkconfig=${withval}
15150 fi
15151
15152         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15153 $as_echo_n "checking for Tk configuration... " >&6; }
15154         if test "${ac_cv_c_tkconfig+set}" = set; then :
15155   $as_echo_n "(cached) " >&6
15156 else
15157
15158
15159             # First check to see if --with-tkconfig was specified.
15160             if test x"${with_tkconfig}" != x ; then
15161                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15162                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15163                 else
15164                     as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15165                 fi
15166             fi
15167
15168             # then check for a private Tk library
15169             case "${host}" in
15170                 *-*-cygwin*) platDir="win" ;;
15171                 *) platDir="unix" ;;
15172             esac
15173             if test x"${ac_cv_c_tkconfig}" = x ; then
15174                 for i in \
15175                         ../tk \
15176                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15177                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15178                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15179                         ../../tk \
15180                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15181                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15182                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15183                         ../../../tk \
15184                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15185                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15186                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15187                     if test -f "$i/$platDir/tkConfig.sh" ; then
15188                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15189                         break
15190                     fi
15191                 done
15192             fi
15193
15194             # on Darwin, check in Framework installation locations
15195             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15196                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15197                         `ls -d /Library/Frameworks 2>/dev/null` \
15198                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
15199                         `ls -d /System/Library/Frameworks 2>/dev/null` \
15200                         ; do
15201                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
15202                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15203                         break
15204                     fi
15205                 done
15206             fi
15207
15208             # check in a few common install locations
15209             if test x"${ac_cv_c_tkconfig}" = x ; then
15210                 for i in `ls -d ${libdir} 2>/dev/null` \
15211                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
15212                         `ls -d ${prefix}/lib 2>/dev/null` \
15213                         `ls -d /usr/local/lib 2>/dev/null` \
15214                         `ls -d /usr/contrib/lib 2>/dev/null` \
15215                         `ls -d /usr/lib 2>/dev/null` \
15216                         ; do
15217                     if test -f "$i/tkConfig.sh" ; then
15218                         ac_cv_c_tkconfig=`(cd $i; pwd)`
15219                         break
15220                     fi
15221                 done
15222             fi
15223             # check in a few other private locations
15224             if test x"${ac_cv_c_tkconfig}" = x ; then
15225                 for i in \
15226                         ${srcdir}/../tk \
15227                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15228                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15229                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15230                     if test -f "$i/$platDir/tkConfig.sh" ; then
15231                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15232                         break
15233                     fi
15234                 done
15235             fi
15236
15237 fi
15238
15239
15240         if test x"${ac_cv_c_tkconfig}" = x ; then
15241             TK_BIN_DIR="# no Tk configs found"
15242             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15243 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15244         else
15245             no_tk=
15246             TK_BIN_DIR=${ac_cv_c_tkconfig}
15247             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15248 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15249         fi
15250     fi
15251
15252
15253     if test -z "${no_tcl}" -a -z "${no_tk}"; then
15254
15255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15256 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15257
15258     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15259         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15260 $as_echo "loading" >&6; }
15261         . ${TCL_BIN_DIR}/tclConfig.sh
15262     else
15263         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15264 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15265     fi
15266
15267     # eval is required to do the TCL_DBGX substitution
15268     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15269     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15270
15271     # If the TCL_BIN_DIR is the build directory (not the install directory),
15272     # then set the common variable name to the value of the build variables.
15273     # For example, the variable TCL_LIB_SPEC will be set to the value
15274     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15275     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15276     # installed and uninstalled version of Tcl.
15277     if test -f "${TCL_BIN_DIR}/Makefile" ; then
15278         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15279         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15280         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15281     elif test "`uname -s`" = "Darwin"; then
15282         # If Tcl was built as a framework, attempt to use the libraries
15283         # from the framework at the given location so that linking works
15284         # against Tcl.framework installed in an arbitary location.
15285         case ${TCL_DEFS} in
15286             *TCL_FRAMEWORK*)
15287                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15288                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15289                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15290                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15291                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15292                             break
15293                         fi
15294                     done
15295                 fi
15296                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15297                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15298                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15299                 fi
15300                 ;;
15301         esac
15302     fi
15303
15304     # eval is required to do the TCL_DBGX substitution
15305     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15306     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15307     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15308     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324         # Check for in-tree tcl
15325         here=`pwd`
15326         cd ${srcdir}/..
15327         topdir=`pwd`
15328         cd ${here}
15329
15330         intree="no"
15331         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15332           intree="yes"
15333         fi
15334
15335         # Find Tcl private headers
15336         if test x"${intree}" = xno; then
15337
15338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15339 $as_echo_n "checking for Tcl private headers... " >&6; }
15340   private_dir=""
15341   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15342   if test -f ${dir}/tclInt.h ; then
15343     private_dir=${dir}
15344   fi
15345
15346   if test x"${private_dir}" = x; then
15347     as_fn_error "could not find private Tcl headers" "$LINENO" 5
15348   else
15349     TCL_PRIVATE_INCLUDE="-I${private_dir}"
15350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15351 $as_echo "${private_dir}" >&6; }
15352   fi
15353
15354           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15355           TCL_LIBRARY="${TCL_LIB_SPEC}"
15356           TCL_DEPS=""
15357         else
15358           # If building tcl in the same src tree, private headers
15359           # are not needed, but we need to be sure to use the right
15360           # headers library
15361           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15362           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15363           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15364         fi
15365
15366
15367
15368
15369
15370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15371 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15372
15373     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15375 $as_echo "loading" >&6; }
15376         . ${TK_BIN_DIR}/tkConfig.sh
15377     else
15378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15379 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15380     fi
15381
15382     # eval is required to do the TK_DBGX substitution
15383     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15384     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15385
15386     # If the TK_BIN_DIR is the build directory (not the install directory),
15387     # then set the common variable name to the value of the build variables.
15388     # For example, the variable TK_LIB_SPEC will be set to the value
15389     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15390     # instead of TK_BUILD_LIB_SPEC since it will work with both an
15391     # installed and uninstalled version of Tcl.
15392     if test -f "${TK_BIN_DIR}/Makefile" ; then
15393         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15394         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15395         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15396     elif test "`uname -s`" = "Darwin"; then
15397         # If Tk was built as a framework, attempt to use the libraries
15398         # from the framework at the given location so that linking works
15399         # against Tk.framework installed in an arbitary location.
15400         case ${TK_DEFS} in
15401             *TK_FRAMEWORK*)
15402                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15403                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
15404                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15405                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15406                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15407                             break
15408                         fi
15409                     done
15410                 fi
15411                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15412                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15413                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15414                 fi
15415                 ;;
15416         esac
15417     fi
15418
15419     # eval is required to do the TK_DBGX substitution
15420     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15421     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15422     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15423     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438         # Check for in-tree Tk
15439         intree="no"
15440         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15441           intree="yes"
15442         fi
15443
15444         # Find Tk private headers
15445         if test x"${intree}" = xno; then
15446
15447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15448 $as_echo_n "checking for Tk private headers... " >&6; }
15449   private_dir=""
15450   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15451   if test -f ${dir}/tkInt.h; then
15452     private_dir=${dir}
15453   fi
15454
15455   if test x"${private_dir}" = x; then
15456     as_fn_error "could not find Tk private headers" "$LINENO" 5
15457   else
15458     TK_PRIVATE_INCLUDE="-I${private_dir}"
15459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15460 $as_echo "${private_dir}" >&6; }
15461   fi
15462
15463           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15464           TK_LIBRARY=${TK_LIB_SPEC}
15465           TK_DEPS=""
15466         else
15467           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15468           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15469           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15470         fi
15471
15472
15473
15474
15475
15476         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15477
15478         # Include some libraries that Tcl and Tk want.
15479         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15480         # Yes, the ordering seems wrong here.  But it isn't.
15481         # TK_LIBS is the list of libraries that need to be linked
15482         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
15483         # were in LIBS then any link tests after this point would
15484         # try to include things like `$(LIBGUI)', which wouldn't work.
15485         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15486
15487         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15488         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15489         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15490         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15491         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15492         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15493         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15494
15495         if test x$gdb_cv_os_cygwin = xyes; then
15496           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15497           WIN32LDAPP="-Wl,--subsystem,console"
15498           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15499         fi
15500
15501         subdirs="$subdirs gdbtk"
15502
15503     fi
15504 fi
15505
15506
15507
15508
15509
15510
15511
15512
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15514 $as_echo_n "checking for X... " >&6; }
15515
15516
15517 # Check whether --with-x was given.
15518 if test "${with_x+set}" = set; then :
15519   withval=$with_x;
15520 fi
15521
15522 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15523 if test "x$with_x" = xno; then
15524   # The user explicitly disabled X.
15525   have_x=disabled
15526 else
15527   case $x_includes,$x_libraries in #(
15528     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15529     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15530   $as_echo_n "(cached) " >&6
15531 else
15532   # One or both of the vars are not set, and there is no cached value.
15533 ac_x_includes=no ac_x_libraries=no
15534 rm -f -r conftest.dir
15535 if mkdir conftest.dir; then
15536   cd conftest.dir
15537   cat >Imakefile <<'_ACEOF'
15538 incroot:
15539         @echo incroot='${INCROOT}'
15540 usrlibdir:
15541         @echo usrlibdir='${USRLIBDIR}'
15542 libdir:
15543         @echo libdir='${LIBDIR}'
15544 _ACEOF
15545   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15546     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15547     for ac_var in incroot usrlibdir libdir; do
15548       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15549     done
15550     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15551     for ac_extension in a so sl dylib la dll; do
15552       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15553          test -f "$ac_im_libdir/libX11.$ac_extension"; then
15554         ac_im_usrlibdir=$ac_im_libdir; break
15555       fi
15556     done
15557     # Screen out bogus values from the imake configuration.  They are
15558     # bogus both because they are the default anyway, and because
15559     # using them would break gcc on systems where it needs fixed includes.
15560     case $ac_im_incroot in
15561         /usr/include) ac_x_includes= ;;
15562         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15563     esac
15564     case $ac_im_usrlibdir in
15565         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15566         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15567     esac
15568   fi
15569   cd ..
15570   rm -f -r conftest.dir
15571 fi
15572
15573 # Standard set of common directories for X headers.
15574 # Check X11 before X11Rn because it is often a symlink to the current release.
15575 ac_x_header_dirs='
15576 /usr/X11/include
15577 /usr/X11R7/include
15578 /usr/X11R6/include
15579 /usr/X11R5/include
15580 /usr/X11R4/include
15581
15582 /usr/include/X11
15583 /usr/include/X11R7
15584 /usr/include/X11R6
15585 /usr/include/X11R5
15586 /usr/include/X11R4
15587
15588 /usr/local/X11/include
15589 /usr/local/X11R7/include
15590 /usr/local/X11R6/include
15591 /usr/local/X11R5/include
15592 /usr/local/X11R4/include
15593
15594 /usr/local/include/X11
15595 /usr/local/include/X11R7
15596 /usr/local/include/X11R6
15597 /usr/local/include/X11R5
15598 /usr/local/include/X11R4
15599
15600 /usr/X386/include
15601 /usr/x386/include
15602 /usr/XFree86/include/X11
15603
15604 /usr/include
15605 /usr/local/include
15606 /usr/unsupported/include
15607 /usr/athena/include
15608 /usr/local/x11r5/include
15609 /usr/lpp/Xamples/include
15610
15611 /usr/openwin/include
15612 /usr/openwin/share/include'
15613
15614 if test "$ac_x_includes" = no; then
15615   # Guess where to find include files, by looking for Xlib.h.
15616   # First, try using that file with no special directory specified.
15617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618 /* end confdefs.h.  */
15619 #include <X11/Xlib.h>
15620 _ACEOF
15621 if ac_fn_c_try_cpp "$LINENO"; then :
15622   # We can compile using X headers with no special include directory.
15623 ac_x_includes=
15624 else
15625   for ac_dir in $ac_x_header_dirs; do
15626   if test -r "$ac_dir/X11/Xlib.h"; then
15627     ac_x_includes=$ac_dir
15628     break
15629   fi
15630 done
15631 fi
15632 rm -f conftest.err conftest.$ac_ext
15633 fi # $ac_x_includes = no
15634
15635 if test "$ac_x_libraries" = no; then
15636   # Check for the libraries.
15637   # See if we find them without any special options.
15638   # Don't add to $LIBS permanently.
15639   ac_save_LIBS=$LIBS
15640   LIBS="-lX11 $LIBS"
15641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h.  */
15643 #include <X11/Xlib.h>
15644 int
15645 main ()
15646 {
15647 XrmInitialize ()
15648   ;
15649   return 0;
15650 }
15651 _ACEOF
15652 if ac_fn_c_try_link "$LINENO"; then :
15653   LIBS=$ac_save_LIBS
15654 # We can link X programs with no special library path.
15655 ac_x_libraries=
15656 else
15657   LIBS=$ac_save_LIBS
15658 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15659 do
15660   # Don't even attempt the hair of trying to link an X program!
15661   for ac_extension in a so sl dylib la dll; do
15662     if test -r "$ac_dir/libX11.$ac_extension"; then
15663       ac_x_libraries=$ac_dir
15664       break 2
15665     fi
15666   done
15667 done
15668 fi
15669 rm -f core conftest.err conftest.$ac_objext \
15670     conftest$ac_exeext conftest.$ac_ext
15671 fi # $ac_x_libraries = no
15672
15673 case $ac_x_includes,$ac_x_libraries in #(
15674   no,* | *,no | *\'*)
15675     # Didn't find X, or a directory has "'" in its name.
15676     ac_cv_have_x="have_x=no";; #(
15677   *)
15678     # Record where we found X for the cache.
15679     ac_cv_have_x="have_x=yes\
15680         ac_x_includes='$ac_x_includes'\
15681         ac_x_libraries='$ac_x_libraries'"
15682 esac
15683 fi
15684 ;; #(
15685     *) have_x=yes;;
15686   esac
15687   eval "$ac_cv_have_x"
15688 fi # $with_x != no
15689
15690 if test "$have_x" != yes; then
15691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15692 $as_echo "$have_x" >&6; }
15693   no_x=yes
15694 else
15695   # If each of the values was on the command line, it overrides each guess.
15696   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15697   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15698   # Update the cache value to reflect the command line values.
15699   ac_cv_have_x="have_x=yes\
15700         ac_x_includes='$x_includes'\
15701         ac_x_libraries='$x_libraries'"
15702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15703 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15704 fi
15705
15706
15707 # Unlike the sim directory, whether a simulator is linked is controlled by
15708 # presence of a gdb_sim definition in the target configure.tgt entry.
15709 # This code just checks for a few cases where we'd like to ignore those
15710 # definitions, even when they're present in the '.mt' file.  These cases
15711 # are when --disable-sim is specified, or if the simulator directory is
15712 # not part of the source tree.
15713 #
15714 # Check whether --enable-sim was given.
15715 if test "${enable_sim+set}" = set; then :
15716   enableval=$enable_sim; echo "enable_sim = $enable_sim";
15717  echo "enableval = ${enableval}";
15718  case "${enableval}" in
15719   yes) ignore_sim=false ;;
15720   no)  ignore_sim=true ;;
15721   *)   ignore_sim=false ;;
15722  esac
15723 else
15724   ignore_sim=false
15725 fi
15726
15727
15728 if test ! -d "${srcdir}/../sim"; then
15729   ignore_sim=true
15730 fi
15731
15732 SIM=
15733 SIM_OBS=
15734 if test "${ignore_sim}" = "false"; then
15735   if test x"${gdb_sim}" != x ; then
15736     SIM="${gdb_sim}"
15737     SIM_OBS="remote-sim.o"
15738
15739 $as_echo "#define WITH_SIM 1" >>confdefs.h
15740
15741   fi
15742 fi
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757 # List of host floatformats.
15758
15759 cat >>confdefs.h <<_ACEOF
15760 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15761 _ACEOF
15762
15763
15764 cat >>confdefs.h <<_ACEOF
15765 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15766 _ACEOF
15767
15768
15769 cat >>confdefs.h <<_ACEOF
15770 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15771 _ACEOF
15772
15773
15774 # target_subdir is used by the testsuite to find the target libraries.
15775 target_subdir=
15776 if test "${host}" != "${target}"; then
15777     target_subdir="${target_alias}/"
15778 fi
15779
15780
15781 frags=
15782 if test "${gdb_native}" = "yes"; then
15783   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15784   if test ! -f ${host_makefile_frag}; then
15785     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15786   fi
15787   frags="$frags $host_makefile_frag"
15788 else
15789   host_makefile_frag=/dev/null
15790 fi
15791
15792
15793
15794
15795 if test "${gdb_native}" = "yes"; then
15796 # We pick this up from the host configuration file (.mh) because we
15797 # do not have a native configuration Makefile fragment.
15798 nativefile=`sed -n '
15799 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
15800 ' ${host_makefile_frag}`
15801 fi
15802
15803
15804 if test x"${gdb_osabi}" != x ; then
15805
15806 cat >>confdefs.h <<_ACEOF
15807 #define GDB_OSABI_DEFAULT $gdb_osabi
15808 _ACEOF
15809
15810 fi
15811
15812 # Enable multi-ice-gdb-server.
15813 # Check whether --enable-multi-ice was given.
15814 if test "${enable_multi_ice+set}" = set; then :
15815   enableval=$enable_multi_ice; case $enableval in
15816     yes | no)
15817       ;;
15818     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15819   esac
15820 fi
15821
15822 if test "x$enable_multi_ice" = xyes; then
15823    subdirs="$subdirs multi-ice"
15824
15825 fi
15826
15827 # Check whether --enable-gdbserver was given.
15828 if test "${enable_gdbserver+set}" = set; then :
15829   enableval=$enable_gdbserver; case "${enableval}" in
15830   yes| no|auto) ;;
15831   *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15832 esac
15833 else
15834   enable_gdbserver=auto
15835 fi
15836
15837
15838 # We only build gdbserver automatically in a native configuration, and
15839 # only if the user did not explicitly disable its build.
15840 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15842 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15843   if test "x$build_gdbserver" = xyes; then
15844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15845 $as_echo "yes" >&6; }
15846     subdirs="$subdirs gdbserver"
15847
15848     gdbserver_build_enabled=yes
15849   else
15850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15851 $as_echo "no" >&6; }
15852   fi
15853 fi
15854
15855 # If the user explicitly request the gdbserver to be built, verify that
15856 # we were in fact able to enable it.
15857 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15858   as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15859 fi
15860
15861 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15862 # to an empty version.
15863
15864 files=
15865 links=
15866
15867 rm -f nm.h
15868 if test "${nativefile}" != ""; then
15869     case "${nativefile}" in
15870       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15871       * ) GDB_NM_FILE="${nativefile}"
15872     esac
15873     files="${files} ${GDB_NM_FILE}"
15874     links="${links} nm.h"
15875
15876 cat >>confdefs.h <<_ACEOF
15877 #define GDB_NM_FILE "${GDB_NM_FILE}"
15878 _ACEOF
15879
15880 fi
15881
15882
15883 ac_sources="$files"
15884 ac_dests="$links"
15885 while test -n "$ac_sources"; do
15886   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15887   set $ac_sources; ac_source=$1; shift; ac_sources=$*
15888   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15889 done
15890 ac_config_links="$ac_config_links $ac_config_links_1"
15891
15892
15893
15894
15895
15896 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15897
15898
15899 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile"
15900
15901 ac_config_commands="$ac_config_commands default"
15902
15903 cat >confcache <<\_ACEOF
15904 # This file is a shell script that caches the results of configure
15905 # tests run on this system so they can be shared between configure
15906 # scripts and configure runs, see configure's option --config-cache.
15907 # It is not useful on other systems.  If it contains results you don't
15908 # want to keep, you may remove or edit it.
15909 #
15910 # config.status only pays attention to the cache file if you give it
15911 # the --recheck option to rerun configure.
15912 #
15913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15915 # following values.
15916
15917 _ACEOF
15918
15919 # The following way of writing the cache mishandles newlines in values,
15920 # but we know of no workaround that is simple, portable, and efficient.
15921 # So, we kill variables containing newlines.
15922 # Ultrix sh set writes to stderr and can't be redirected directly,
15923 # and sets the high bit in the cache file unless we assign to the vars.
15924 (
15925   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15926     eval ac_val=\$$ac_var
15927     case $ac_val in #(
15928     *${as_nl}*)
15929       case $ac_var in #(
15930       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15932       esac
15933       case $ac_var in #(
15934       _ | IFS | as_nl) ;; #(
15935       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15936       *) { eval $ac_var=; unset $ac_var;} ;;
15937       esac ;;
15938     esac
15939   done
15940
15941   (set) 2>&1 |
15942     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15943     *${as_nl}ac_space=\ *)
15944       # `set' does not quote correctly, so add quotes: double-quote
15945       # substitution turns \\\\ into \\, and sed turns \\ into \.
15946       sed -n \
15947         "s/'/'\\\\''/g;
15948           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15949       ;; #(
15950     *)
15951       # `set' quotes correctly as required by POSIX, so do not add quotes.
15952       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15953       ;;
15954     esac |
15955     sort
15956 ) |
15957   sed '
15958      /^ac_cv_env_/b end
15959      t clear
15960      :clear
15961      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15962      t end
15963      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15964      :end' >>confcache
15965 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15966   if test -w "$cache_file"; then
15967     test "x$cache_file" != "x/dev/null" &&
15968       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15969 $as_echo "$as_me: updating cache $cache_file" >&6;}
15970     cat confcache >$cache_file
15971   else
15972     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15973 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15974   fi
15975 fi
15976 rm -f confcache
15977
15978 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15979 # Let make expand exec_prefix.
15980 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15981
15982 DEFS=-DHAVE_CONFIG_H
15983
15984 ac_libobjs=
15985 ac_ltlibobjs=
15986 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15987   # 1. Remove the extension, and $U if already installed.
15988   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15989   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15990   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15991   #    will be set to the directory where LIBOBJS objects are built.
15992   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15993   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15994 done
15995 LIBOBJS=$ac_libobjs
15996
15997 LTLIBOBJS=$ac_ltlibobjs
15998
15999
16000 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16001   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16003 fi
16004 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16005   as_fn_error "conditional \"GMAKE\" was never defined.
16006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16007 fi
16008 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16009   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16011 fi
16012
16013     gl_libobjs=
16014     gl_ltlibobjs=
16015     if test -n "$gl_LIBOBJS"; then
16016       # Remove the extension.
16017       sed_drop_objext='s/\.o$//;s/\.obj$//'
16018       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16019         gl_libobjs="$gl_libobjs $i.$ac_objext"
16020         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16021       done
16022     fi
16023     gl_LIBOBJS=$gl_libobjs
16024
16025     gl_LTLIBOBJS=$gl_ltlibobjs
16026
16027
16028
16029     gltests_libobjs=
16030     gltests_ltlibobjs=
16031     if test -n "$gltests_LIBOBJS"; then
16032       # Remove the extension.
16033       sed_drop_objext='s/\.o$//;s/\.obj$//'
16034       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16035         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16036         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16037       done
16038     fi
16039     gltests_LIBOBJS=$gltests_libobjs
16040
16041     gltests_LTLIBOBJS=$gltests_ltlibobjs
16042
16043
16044 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16045   as_fn_error "conditional \"AMDEP\" was never defined.
16046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16047 fi
16048 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16049   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16051 fi
16052  if test -n "$EXEEXT"; then
16053   am__EXEEXT_TRUE=
16054   am__EXEEXT_FALSE='#'
16055 else
16056   am__EXEEXT_TRUE='#'
16057   am__EXEEXT_FALSE=
16058 fi
16059
16060
16061
16062 : ${CONFIG_STATUS=./config.status}
16063 ac_write_fail=0
16064 ac_clean_files_save=$ac_clean_files
16065 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16067 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16068 as_write_fail=0
16069 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16070 #! $SHELL
16071 # Generated by $as_me.
16072 # Run this file to recreate the current configuration.
16073 # Compiler output produced by configure, useful for debugging
16074 # configure, is in config.log if it exists.
16075
16076 debug=false
16077 ac_cs_recheck=false
16078 ac_cs_silent=false
16079
16080 SHELL=\${CONFIG_SHELL-$SHELL}
16081 export SHELL
16082 _ASEOF
16083 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16084 ## -------------------- ##
16085 ## M4sh Initialization. ##
16086 ## -------------------- ##
16087
16088 # Be more Bourne compatible
16089 DUALCASE=1; export DUALCASE # for MKS sh
16090 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16091   emulate sh
16092   NULLCMD=:
16093   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16094   # is contrary to our usage.  Disable this feature.
16095   alias -g '${1+"$@"}'='"$@"'
16096   setopt NO_GLOB_SUBST
16097 else
16098   case `(set -o) 2>/dev/null` in #(
16099   *posix*) :
16100     set -o posix ;; #(
16101   *) :
16102      ;;
16103 esac
16104 fi
16105
16106
16107 as_nl='
16108 '
16109 export as_nl
16110 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16111 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16112 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16113 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16114 # Prefer a ksh shell builtin over an external printf program on Solaris,
16115 # but without wasting forks for bash or zsh.
16116 if test -z "$BASH_VERSION$ZSH_VERSION" \
16117     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16118   as_echo='print -r --'
16119   as_echo_n='print -rn --'
16120 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16121   as_echo='printf %s\n'
16122   as_echo_n='printf %s'
16123 else
16124   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16125     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16126     as_echo_n='/usr/ucb/echo -n'
16127   else
16128     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16129     as_echo_n_body='eval
16130       arg=$1;
16131       case $arg in #(
16132       *"$as_nl"*)
16133         expr "X$arg" : "X\\(.*\\)$as_nl";
16134         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16135       esac;
16136       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16137     '
16138     export as_echo_n_body
16139     as_echo_n='sh -c $as_echo_n_body as_echo'
16140   fi
16141   export as_echo_body
16142   as_echo='sh -c $as_echo_body as_echo'
16143 fi
16144
16145 # The user is always right.
16146 if test "${PATH_SEPARATOR+set}" != set; then
16147   PATH_SEPARATOR=:
16148   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16149     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16150       PATH_SEPARATOR=';'
16151   }
16152 fi
16153
16154
16155 # IFS
16156 # We need space, tab and new line, in precisely that order.  Quoting is
16157 # there to prevent editors from complaining about space-tab.
16158 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16159 # splitting by setting IFS to empty value.)
16160 IFS=" ""        $as_nl"
16161
16162 # Find who we are.  Look in the path if we contain no directory separator.
16163 case $0 in #((
16164   *[\\/]* ) as_myself=$0 ;;
16165   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16166 for as_dir in $PATH
16167 do
16168   IFS=$as_save_IFS
16169   test -z "$as_dir" && as_dir=.
16170     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16171   done
16172 IFS=$as_save_IFS
16173
16174      ;;
16175 esac
16176 # We did not find ourselves, most probably we were run as `sh COMMAND'
16177 # in which case we are not to be found in the path.
16178 if test "x$as_myself" = x; then
16179   as_myself=$0
16180 fi
16181 if test ! -f "$as_myself"; then
16182   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16183   exit 1
16184 fi
16185
16186 # Unset variables that we do not need and which cause bugs (e.g. in
16187 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16188 # suppresses any "Segmentation fault" message there.  '((' could
16189 # trigger a bug in pdksh 5.2.14.
16190 for as_var in BASH_ENV ENV MAIL MAILPATH
16191 do eval test x\${$as_var+set} = xset \
16192   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16193 done
16194 PS1='$ '
16195 PS2='> '
16196 PS4='+ '
16197
16198 # NLS nuisances.
16199 LC_ALL=C
16200 export LC_ALL
16201 LANGUAGE=C
16202 export LANGUAGE
16203
16204 # CDPATH.
16205 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16206
16207
16208 # as_fn_error ERROR [LINENO LOG_FD]
16209 # ---------------------------------
16210 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16211 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16212 # script with status $?, using 1 if that was 0.
16213 as_fn_error ()
16214 {
16215   as_status=$?; test $as_status -eq 0 && as_status=1
16216   if test "$3"; then
16217     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16218     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16219   fi
16220   $as_echo "$as_me: error: $1" >&2
16221   as_fn_exit $as_status
16222 } # as_fn_error
16223
16224
16225 # as_fn_set_status STATUS
16226 # -----------------------
16227 # Set $? to STATUS, without forking.
16228 as_fn_set_status ()
16229 {
16230   return $1
16231 } # as_fn_set_status
16232
16233 # as_fn_exit STATUS
16234 # -----------------
16235 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16236 as_fn_exit ()
16237 {
16238   set +e
16239   as_fn_set_status $1
16240   exit $1
16241 } # as_fn_exit
16242
16243 # as_fn_unset VAR
16244 # ---------------
16245 # Portably unset VAR.
16246 as_fn_unset ()
16247 {
16248   { eval $1=; unset $1;}
16249 }
16250 as_unset=as_fn_unset
16251 # as_fn_append VAR VALUE
16252 # ----------------------
16253 # Append the text in VALUE to the end of the definition contained in VAR. Take
16254 # advantage of any shell optimizations that allow amortized linear growth over
16255 # repeated appends, instead of the typical quadratic growth present in naive
16256 # implementations.
16257 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16258   eval 'as_fn_append ()
16259   {
16260     eval $1+=\$2
16261   }'
16262 else
16263   as_fn_append ()
16264   {
16265     eval $1=\$$1\$2
16266   }
16267 fi # as_fn_append
16268
16269 # as_fn_arith ARG...
16270 # ------------------
16271 # Perform arithmetic evaluation on the ARGs, and store the result in the
16272 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16273 # must be portable across $(()) and expr.
16274 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16275   eval 'as_fn_arith ()
16276   {
16277     as_val=$(( $* ))
16278   }'
16279 else
16280   as_fn_arith ()
16281   {
16282     as_val=`expr "$@" || test $? -eq 1`
16283   }
16284 fi # as_fn_arith
16285
16286
16287 if expr a : '\(a\)' >/dev/null 2>&1 &&
16288    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16289   as_expr=expr
16290 else
16291   as_expr=false
16292 fi
16293
16294 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16295   as_basename=basename
16296 else
16297   as_basename=false
16298 fi
16299
16300 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16301   as_dirname=dirname
16302 else
16303   as_dirname=false
16304 fi
16305
16306 as_me=`$as_basename -- "$0" ||
16307 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16308          X"$0" : 'X\(//\)$' \| \
16309          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16310 $as_echo X/"$0" |
16311     sed '/^.*\/\([^/][^/]*\)\/*$/{
16312             s//\1/
16313             q
16314           }
16315           /^X\/\(\/\/\)$/{
16316             s//\1/
16317             q
16318           }
16319           /^X\/\(\/\).*/{
16320             s//\1/
16321             q
16322           }
16323           s/.*/./; q'`
16324
16325 # Avoid depending upon Character Ranges.
16326 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16327 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16328 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16329 as_cr_digits='0123456789'
16330 as_cr_alnum=$as_cr_Letters$as_cr_digits
16331
16332 ECHO_C= ECHO_N= ECHO_T=
16333 case `echo -n x` in #(((((
16334 -n*)
16335   case `echo 'xy\c'` in
16336   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16337   xy)  ECHO_C='\c';;
16338   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16339        ECHO_T=' ';;
16340   esac;;
16341 *)
16342   ECHO_N='-n';;
16343 esac
16344
16345 rm -f conf$$ conf$$.exe conf$$.file
16346 if test -d conf$$.dir; then
16347   rm -f conf$$.dir/conf$$.file
16348 else
16349   rm -f conf$$.dir
16350   mkdir conf$$.dir 2>/dev/null
16351 fi
16352 if (echo >conf$$.file) 2>/dev/null; then
16353   if ln -s conf$$.file conf$$ 2>/dev/null; then
16354     as_ln_s='ln -s'
16355     # ... but there are two gotchas:
16356     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16357     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16358     # In both cases, we have to default to `cp -p'.
16359     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16360       as_ln_s='cp -p'
16361   elif ln conf$$.file conf$$ 2>/dev/null; then
16362     as_ln_s=ln
16363   else
16364     as_ln_s='cp -p'
16365   fi
16366 else
16367   as_ln_s='cp -p'
16368 fi
16369 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16370 rmdir conf$$.dir 2>/dev/null
16371
16372
16373 # as_fn_mkdir_p
16374 # -------------
16375 # Create "$as_dir" as a directory, including parents if necessary.
16376 as_fn_mkdir_p ()
16377 {
16378
16379   case $as_dir in #(
16380   -*) as_dir=./$as_dir;;
16381   esac
16382   test -d "$as_dir" || eval $as_mkdir_p || {
16383     as_dirs=
16384     while :; do
16385       case $as_dir in #(
16386       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16387       *) as_qdir=$as_dir;;
16388       esac
16389       as_dirs="'$as_qdir' $as_dirs"
16390       as_dir=`$as_dirname -- "$as_dir" ||
16391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16392          X"$as_dir" : 'X\(//\)[^/]' \| \
16393          X"$as_dir" : 'X\(//\)$' \| \
16394          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16395 $as_echo X"$as_dir" |
16396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16397             s//\1/
16398             q
16399           }
16400           /^X\(\/\/\)[^/].*/{
16401             s//\1/
16402             q
16403           }
16404           /^X\(\/\/\)$/{
16405             s//\1/
16406             q
16407           }
16408           /^X\(\/\).*/{
16409             s//\1/
16410             q
16411           }
16412           s/.*/./; q'`
16413       test -d "$as_dir" && break
16414     done
16415     test -z "$as_dirs" || eval "mkdir $as_dirs"
16416   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16417
16418
16419 } # as_fn_mkdir_p
16420 if mkdir -p . 2>/dev/null; then
16421   as_mkdir_p='mkdir -p "$as_dir"'
16422 else
16423   test -d ./-p && rmdir ./-p
16424   as_mkdir_p=false
16425 fi
16426
16427 if test -x / >/dev/null 2>&1; then
16428   as_test_x='test -x'
16429 else
16430   if ls -dL / >/dev/null 2>&1; then
16431     as_ls_L_option=L
16432   else
16433     as_ls_L_option=
16434   fi
16435   as_test_x='
16436     eval sh -c '\''
16437       if test -d "$1"; then
16438         test -d "$1/.";
16439       else
16440         case $1 in #(
16441         -*)set "./$1";;
16442         esac;
16443         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16444         ???[sx]*):;;*)false;;esac;fi
16445     '\'' sh
16446   '
16447 fi
16448 as_executable_p=$as_test_x
16449
16450 # Sed expression to map a string onto a valid CPP name.
16451 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16452
16453 # Sed expression to map a string onto a valid variable name.
16454 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16455
16456
16457 exec 6>&1
16458 ## ----------------------------------- ##
16459 ## Main body of $CONFIG_STATUS script. ##
16460 ## ----------------------------------- ##
16461 _ASEOF
16462 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16463
16464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16465 # Save the log message, to keep $0 and so on meaningful, and to
16466 # report actual input values of CONFIG_FILES etc. instead of their
16467 # values after options handling.
16468 ac_log="
16469 This file was extended by $as_me, which was
16470 generated by GNU Autoconf 2.64.  Invocation command line was
16471
16472   CONFIG_FILES    = $CONFIG_FILES
16473   CONFIG_HEADERS  = $CONFIG_HEADERS
16474   CONFIG_LINKS    = $CONFIG_LINKS
16475   CONFIG_COMMANDS = $CONFIG_COMMANDS
16476   $ $0 $@
16477
16478 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16479 "
16480
16481 _ACEOF
16482
16483 case $ac_config_files in *"
16484 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16485 esac
16486
16487 case $ac_config_headers in *"
16488 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16489 esac
16490
16491
16492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16493 # Files that config.status was made for.
16494 config_files="$ac_config_files"
16495 config_headers="$ac_config_headers"
16496 config_links="$ac_config_links"
16497 config_commands="$ac_config_commands"
16498
16499 _ACEOF
16500
16501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16502 ac_cs_usage="\
16503 \`$as_me' instantiates files and other configuration actions
16504 from templates according to the current configuration.  Unless the files
16505 and actions are specified as TAGs, all are instantiated by default.
16506
16507 Usage: $0 [OPTION]... [TAG]...
16508
16509   -h, --help       print this help, then exit
16510   -V, --version    print version number and configuration settings, then exit
16511   -q, --quiet, --silent
16512                    do not print progress messages
16513   -d, --debug      don't remove temporary files
16514       --recheck    update $as_me by reconfiguring in the same conditions
16515       --file=FILE[:TEMPLATE]
16516                    instantiate the configuration file FILE
16517       --header=FILE[:TEMPLATE]
16518                    instantiate the configuration header FILE
16519
16520 Configuration files:
16521 $config_files
16522
16523 Configuration headers:
16524 $config_headers
16525
16526 Configuration links:
16527 $config_links
16528
16529 Configuration commands:
16530 $config_commands
16531
16532 Report bugs to the package provider."
16533
16534 _ACEOF
16535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16536 ac_cs_version="\\
16537 config.status
16538 configured by $0, generated by GNU Autoconf 2.64,
16539   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16540
16541 Copyright (C) 2009 Free Software Foundation, Inc.
16542 This config.status script is free software; the Free Software Foundation
16543 gives unlimited permission to copy, distribute and modify it."
16544
16545 ac_pwd='$ac_pwd'
16546 srcdir='$srcdir'
16547 INSTALL='$INSTALL'
16548 MKDIR_P='$MKDIR_P'
16549 AWK='$AWK'
16550 test -n "\$AWK" || AWK=awk
16551 _ACEOF
16552
16553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16554 # The default lists apply if the user does not specify any file.
16555 ac_need_defaults=:
16556 while test $# != 0
16557 do
16558   case $1 in
16559   --*=*)
16560     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16561     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16562     ac_shift=:
16563     ;;
16564   *)
16565     ac_option=$1
16566     ac_optarg=$2
16567     ac_shift=shift
16568     ;;
16569   esac
16570
16571   case $ac_option in
16572   # Handling of the options.
16573   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16574     ac_cs_recheck=: ;;
16575   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16576     $as_echo "$ac_cs_version"; exit ;;
16577   --debug | --debu | --deb | --de | --d | -d )
16578     debug=: ;;
16579   --file | --fil | --fi | --f )
16580     $ac_shift
16581     case $ac_optarg in
16582     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16583     esac
16584     as_fn_append CONFIG_FILES " '$ac_optarg'"
16585     ac_need_defaults=false;;
16586   --header | --heade | --head | --hea )
16587     $ac_shift
16588     case $ac_optarg in
16589     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16590     esac
16591     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16592     ac_need_defaults=false;;
16593   --he | --h)
16594     # Conflict between --help and --header
16595     as_fn_error "ambiguous option: \`$1'
16596 Try \`$0 --help' for more information.";;
16597   --help | --hel | -h )
16598     $as_echo "$ac_cs_usage"; exit ;;
16599   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16600   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16601     ac_cs_silent=: ;;
16602
16603   # This is an error.
16604   -*) as_fn_error "unrecognized option: \`$1'
16605 Try \`$0 --help' for more information." ;;
16606
16607   *) as_fn_append ac_config_targets " $1"
16608      ac_need_defaults=false ;;
16609
16610   esac
16611   shift
16612 done
16613
16614 ac_configure_extra_args=
16615
16616 if $ac_cs_silent; then
16617   exec 6>/dev/null
16618   ac_configure_extra_args="$ac_configure_extra_args --silent"
16619 fi
16620
16621 _ACEOF
16622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16623 if \$ac_cs_recheck; then
16624   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16625   shift
16626   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16627   CONFIG_SHELL='$SHELL'
16628   export CONFIG_SHELL
16629   exec "\$@"
16630 fi
16631
16632 _ACEOF
16633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16634 exec 5>>config.log
16635 {
16636   echo
16637   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16638 ## Running $as_me. ##
16639 _ASBOX
16640   $as_echo "$ac_log"
16641 } >&5
16642
16643 _ACEOF
16644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16645 #
16646 # INIT-COMMANDS
16647 #
16648 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16649 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16650
16651 _ACEOF
16652
16653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16654
16655 # Handling of arguments.
16656 for ac_config_target in $ac_config_targets
16657 do
16658   case $ac_config_target in
16659     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16660     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16661     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16662     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16663     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16664     ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16665     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16666     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
16667     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
16668     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16669
16670   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16671   esac
16672 done
16673
16674
16675 # If the user did not use the arguments to specify the items to instantiate,
16676 # then the envvar interface is used.  Set only those that are not.
16677 # We use the long form for the default assignment because of an extremely
16678 # bizarre bug on SunOS 4.1.3.
16679 if $ac_need_defaults; then
16680   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16681   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16682   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16683   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16684 fi
16685
16686 # Have a temporary directory for convenience.  Make it in the build tree
16687 # simply because there is no reason against having it here, and in addition,
16688 # creating and moving files from /tmp can sometimes cause problems.
16689 # Hook for its removal unless debugging.
16690 # Note that there is a small window in which the directory will not be cleaned:
16691 # after its creation but before its name has been assigned to `$tmp'.
16692 $debug ||
16693 {
16694   tmp=
16695   trap 'exit_status=$?
16696   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16697 ' 0
16698   trap 'as_fn_exit 1' 1 2 13 15
16699 }
16700 # Create a (secure) tmp directory for tmp files.
16701
16702 {
16703   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16704   test -n "$tmp" && test -d "$tmp"
16705 }  ||
16706 {
16707   tmp=./conf$$-$RANDOM
16708   (umask 077 && mkdir "$tmp")
16709 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16710
16711 # Set up the scripts for CONFIG_FILES section.
16712 # No need to generate them if there are no CONFIG_FILES.
16713 # This happens for instance with `./config.status config.h'.
16714 if test -n "$CONFIG_FILES"; then
16715
16716 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16717   ac_cs_awk_getline=:
16718   ac_cs_awk_pipe_init=
16719   ac_cs_awk_read_file='
16720       while ((getline aline < (F[key])) > 0)
16721         print(aline)
16722       close(F[key])'
16723   ac_cs_awk_pipe_fini=
16724 else
16725   ac_cs_awk_getline=false
16726   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16727   ac_cs_awk_read_file='
16728       print "|#_!!_#|"
16729       print "cat " F[key] " &&"
16730       '$ac_cs_awk_pipe_init
16731   # The final `:' finishes the AND list.
16732   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16733 fi
16734 ac_cr=`echo X | tr X '\015'`
16735 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16736 # But we know of no other shell where ac_cr would be empty at this
16737 # point, so we can use a bashism as a fallback.
16738 if test "x$ac_cr" = x; then
16739   eval ac_cr=\$\'\\r\'
16740 fi
16741 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16742 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16743   ac_cs_awk_cr='\r'
16744 else
16745   ac_cs_awk_cr=$ac_cr
16746 fi
16747
16748 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16749 _ACEOF
16750
16751 # Create commands to substitute file output variables.
16752 {
16753   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16754   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16755   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16756   echo "_ACAWK" &&
16757   echo "_ACEOF"
16758 } >conf$$files.sh &&
16759 . ./conf$$files.sh ||
16760   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16761 rm -f conf$$files.sh
16762
16763 {
16764   echo "cat >conf$$subs.awk <<_ACEOF" &&
16765   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16766   echo "_ACEOF"
16767 } >conf$$subs.sh ||
16768   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16769 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16770 ac_delim='%!_!# '
16771 for ac_last_try in false false false false false :; do
16772   . ./conf$$subs.sh ||
16773     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16774
16775   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16776   if test $ac_delim_n = $ac_delim_num; then
16777     break
16778   elif $ac_last_try; then
16779     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16780   else
16781     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16782   fi
16783 done
16784 rm -f conf$$subs.sh
16785
16786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16787 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16788 _ACEOF
16789 sed -n '
16790 h
16791 s/^/S["/; s/!.*/"]=/
16792 p
16793 g
16794 s/^[^!]*!//
16795 :repl
16796 t repl
16797 s/'"$ac_delim"'$//
16798 t delim
16799 :nl
16800 h
16801 s/\(.\{148\}\).*/\1/
16802 t more1
16803 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16804 p
16805 n
16806 b repl
16807 :more1
16808 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16809 p
16810 g
16811 s/.\{148\}//
16812 t nl
16813 :delim
16814 h
16815 s/\(.\{148\}\).*/\1/
16816 t more2
16817 s/["\\]/\\&/g; s/^/"/; s/$/"/
16818 p
16819 b
16820 :more2
16821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16822 p
16823 g
16824 s/.\{148\}//
16825 t delim
16826 ' <conf$$subs.awk | sed '
16827 /^[^""]/{
16828   N
16829   s/\n//
16830 }
16831 ' >>$CONFIG_STATUS || ac_write_fail=1
16832 rm -f conf$$subs.awk
16833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16834 _ACAWK
16835 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16836   for (key in S) S_is_set[key] = 1
16837   FS = "\a"
16838   \$ac_cs_awk_pipe_init
16839 }
16840 {
16841   line = $ 0
16842   nfields = split(line, field, "@")
16843   substed = 0
16844   len = length(field[1])
16845   for (i = 2; i < nfields; i++) {
16846     key = field[i]
16847     keylen = length(key)
16848     if (S_is_set[key]) {
16849       value = S[key]
16850       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16851       len += length(value) + length(field[++i])
16852       substed = 1
16853     } else
16854       len += 1 + keylen
16855   }
16856   if (nfields == 3 && !substed) {
16857     key = field[2]
16858     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16859       \$ac_cs_awk_read_file
16860       next
16861     }
16862   }
16863   print line
16864 }
16865 \$ac_cs_awk_pipe_fini
16866 _ACAWK
16867 _ACEOF
16868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16869 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16870   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16871 else
16872   cat
16873 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16874   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16875 _ACEOF
16876
16877 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16878 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16879 # trailing colons and then remove the whole line if VPATH becomes empty
16880 # (actually we leave an empty line to preserve line numbers).
16881 if test "x$srcdir" = x.; then
16882   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16883 s/:*\$(srcdir):*/:/
16884 s/:*\${srcdir}:*/:/
16885 s/:*@srcdir@:*/:/
16886 s/^\([^=]*=[     ]*\):*/\1/
16887 s/:*$//
16888 s/^[^=]*=[       ]*$//
16889 }'
16890 fi
16891
16892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16893 fi # test -n "$CONFIG_FILES"
16894
16895 # Set up the scripts for CONFIG_HEADERS section.
16896 # No need to generate them if there are no CONFIG_HEADERS.
16897 # This happens for instance with `./config.status Makefile'.
16898 if test -n "$CONFIG_HEADERS"; then
16899 cat >"$tmp/defines.awk" <<\_ACAWK ||
16900 BEGIN {
16901 _ACEOF
16902
16903 # Transform confdefs.h into an awk script `defines.awk', embedded as
16904 # here-document in config.status, that substitutes the proper values into
16905 # config.h.in to produce config.h.
16906
16907 # Create a delimiter string that does not exist in confdefs.h, to ease
16908 # handling of long lines.
16909 ac_delim='%!_!# '
16910 for ac_last_try in false false :; do
16911   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16912   if test -z "$ac_t"; then
16913     break
16914   elif $ac_last_try; then
16915     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16916   else
16917     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16918   fi
16919 done
16920
16921 # For the awk script, D is an array of macro values keyed by name,
16922 # likewise P contains macro parameters if any.  Preserve backslash
16923 # newline sequences.
16924
16925 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16926 sed -n '
16927 s/.\{148\}/&'"$ac_delim"'/g
16928 t rset
16929 :rset
16930 s/^[     ]*#[    ]*define[       ][      ]*/ /
16931 t def
16932 d
16933 :def
16934 s/\\$//
16935 t bsnl
16936 s/["\\]/\\&/g
16937 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16938 D["\1"]=" \3"/p
16939 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16940 d
16941 :bsnl
16942 s/["\\]/\\&/g
16943 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16944 D["\1"]=" \3\\\\\\n"\\/p
16945 t cont
16946 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16947 t cont
16948 d
16949 :cont
16950 n
16951 s/.\{148\}/&'"$ac_delim"'/g
16952 t clear
16953 :clear
16954 s/\\$//
16955 t bsnlc
16956 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16957 d
16958 :bsnlc
16959 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16960 b cont
16961 ' <confdefs.h | sed '
16962 s/'"$ac_delim"'/"\\\
16963 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16964
16965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16966   for (key in D) D_is_set[key] = 1
16967   FS = "\a"
16968 }
16969 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16970   line = \$ 0
16971   split(line, arg, " ")
16972   if (arg[1] == "#") {
16973     defundef = arg[2]
16974     mac1 = arg[3]
16975   } else {
16976     defundef = substr(arg[1], 2)
16977     mac1 = arg[2]
16978   }
16979   split(mac1, mac2, "(") #)
16980   macro = mac2[1]
16981   prefix = substr(line, 1, index(line, defundef) - 1)
16982   if (D_is_set[macro]) {
16983     # Preserve the white space surrounding the "#".
16984     print prefix "define", macro P[macro] D[macro]
16985     next
16986   } else {
16987     # Replace #undef with comments.  This is necessary, for example,
16988     # in the case of _POSIX_SOURCE, which is predefined and required
16989     # on some systems where configure will not decide to define it.
16990     if (defundef == "undef") {
16991       print "/*", prefix defundef, macro, "*/"
16992       next
16993     }
16994   }
16995 }
16996 { print }
16997 _ACAWK
16998 _ACEOF
16999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17000   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17001 fi # test -n "$CONFIG_HEADERS"
17002
17003
17004 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
17005 shift
17006 for ac_tag
17007 do
17008   case $ac_tag in
17009   :[FHLC]) ac_mode=$ac_tag; continue;;
17010   esac
17011   case $ac_mode$ac_tag in
17012   :[FHL]*:*);;
17013   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17014   :[FH]-) ac_tag=-:-;;
17015   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17016   esac
17017   ac_save_IFS=$IFS
17018   IFS=:
17019   set x $ac_tag
17020   IFS=$ac_save_IFS
17021   shift
17022   ac_file=$1
17023   shift
17024
17025   case $ac_mode in
17026   :L) ac_source=$1;;
17027   :[FH])
17028     ac_file_inputs=
17029     for ac_f
17030     do
17031       case $ac_f in
17032       -) ac_f="$tmp/stdin";;
17033       *) # Look for the file first in the build tree, then in the source tree
17034          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17035          # because $ac_f cannot contain `:'.
17036          test -f "$ac_f" ||
17037            case $ac_f in
17038            [\\/$]*) false;;
17039            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17040            esac ||
17041            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17042       esac
17043       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17044       as_fn_append ac_file_inputs " '$ac_f'"
17045     done
17046
17047     # Let's still pretend it is `configure' which instantiates (i.e., don't
17048     # use $as_me), people would be surprised to read:
17049     #    /* config.h.  Generated by config.status.  */
17050     configure_input='Generated from '`
17051           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17052         `' by configure.'
17053     if test x"$ac_file" != x-; then
17054       configure_input="$ac_file.  $configure_input"
17055       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17056 $as_echo "$as_me: creating $ac_file" >&6;}
17057     fi
17058     # Neutralize special characters interpreted by sed in replacement strings.
17059     case $configure_input in #(
17060     *\&* | *\|* | *\\* )
17061        ac_sed_conf_input=`$as_echo "$configure_input" |
17062        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17063     *) ac_sed_conf_input=$configure_input;;
17064     esac
17065
17066     case $ac_tag in
17067     *:-:* | *:-) cat >"$tmp/stdin" \
17068       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17069     esac
17070     ;;
17071   esac
17072
17073   ac_dir=`$as_dirname -- "$ac_file" ||
17074 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17075          X"$ac_file" : 'X\(//\)[^/]' \| \
17076          X"$ac_file" : 'X\(//\)$' \| \
17077          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17078 $as_echo X"$ac_file" |
17079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17080             s//\1/
17081             q
17082           }
17083           /^X\(\/\/\)[^/].*/{
17084             s//\1/
17085             q
17086           }
17087           /^X\(\/\/\)$/{
17088             s//\1/
17089             q
17090           }
17091           /^X\(\/\).*/{
17092             s//\1/
17093             q
17094           }
17095           s/.*/./; q'`
17096   as_dir="$ac_dir"; as_fn_mkdir_p
17097   ac_builddir=.
17098
17099 case "$ac_dir" in
17100 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17101 *)
17102   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17103   # A ".." for each directory in $ac_dir_suffix.
17104   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17105   case $ac_top_builddir_sub in
17106   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17107   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17108   esac ;;
17109 esac
17110 ac_abs_top_builddir=$ac_pwd
17111 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17112 # for backward compatibility:
17113 ac_top_builddir=$ac_top_build_prefix
17114
17115 case $srcdir in
17116   .)  # We are building in place.
17117     ac_srcdir=.
17118     ac_top_srcdir=$ac_top_builddir_sub
17119     ac_abs_top_srcdir=$ac_pwd ;;
17120   [\\/]* | ?:[\\/]* )  # Absolute name.
17121     ac_srcdir=$srcdir$ac_dir_suffix;
17122     ac_top_srcdir=$srcdir
17123     ac_abs_top_srcdir=$srcdir ;;
17124   *) # Relative name.
17125     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17126     ac_top_srcdir=$ac_top_build_prefix$srcdir
17127     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17128 esac
17129 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17130
17131
17132   case $ac_mode in
17133   :F)
17134   #
17135   # CONFIG_FILE
17136   #
17137
17138   case $INSTALL in
17139   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17140   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17141   esac
17142   ac_MKDIR_P=$MKDIR_P
17143   case $MKDIR_P in
17144   [\\/$]* | ?:[\\/]* ) ;;
17145   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17146   esac
17147 _ACEOF
17148
17149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17150 # If the template does not know about datarootdir, expand it.
17151 # FIXME: This hack should be removed a few years after 2.60.
17152 ac_datarootdir_hack=; ac_datarootdir_seen=
17153 ac_sed_dataroot='
17154 /datarootdir/ {
17155   p
17156   q
17157 }
17158 /@datadir@/p
17159 /@docdir@/p
17160 /@infodir@/p
17161 /@localedir@/p
17162 /@mandir@/p'
17163 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17164 *datarootdir*) ac_datarootdir_seen=yes;;
17165 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17166   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17167 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17168 _ACEOF
17169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17170   ac_datarootdir_hack='
17171   s&@datadir@&$datadir&g
17172   s&@docdir@&$docdir&g
17173   s&@infodir@&$infodir&g
17174   s&@localedir@&$localedir&g
17175   s&@mandir@&$mandir&g
17176   s&\\\${datarootdir}&$datarootdir&g' ;;
17177 esac
17178 _ACEOF
17179
17180 # Neutralize VPATH when `$srcdir' = `.'.
17181 # Shell code in configure.ac might set extrasub.
17182 # FIXME: do we really want to maintain this feature?
17183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17184 ac_sed_extra="$ac_vpsub
17185 $extrasub
17186 _ACEOF
17187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17188 :t
17189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17190 s|@configure_input@|$ac_sed_conf_input|;t t
17191 s&@top_builddir@&$ac_top_builddir_sub&;t t
17192 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17193 s&@srcdir@&$ac_srcdir&;t t
17194 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17195 s&@top_srcdir@&$ac_top_srcdir&;t t
17196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17197 s&@builddir@&$ac_builddir&;t t
17198 s&@abs_builddir@&$ac_abs_builddir&;t t
17199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17200 s&@INSTALL@&$ac_INSTALL&;t t
17201 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17202 $ac_datarootdir_hack
17203 "
17204 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17205 if $ac_cs_awk_getline; then
17206   $AWK -f "$tmp/subs.awk"
17207 else
17208   $AWK -f "$tmp/subs.awk" | $SHELL
17209 fi >$tmp/out \
17210   || as_fn_error "could not create $ac_file" "$LINENO" 5
17211
17212 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17213   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17214   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17215   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17216 which seems to be undefined.  Please make sure it is defined." >&5
17217 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17218 which seems to be undefined.  Please make sure it is defined." >&2;}
17219
17220   rm -f "$tmp/stdin"
17221   case $ac_file in
17222   -) cat "$tmp/out" && rm -f "$tmp/out";;
17223   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17224   esac \
17225   || as_fn_error "could not create $ac_file" "$LINENO" 5
17226  ;;
17227   :H)
17228   #
17229   # CONFIG_HEADER
17230   #
17231   if test x"$ac_file" != x-; then
17232     {
17233       $as_echo "/* $configure_input  */" \
17234       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17235     } >"$tmp/config.h" \
17236       || as_fn_error "could not create $ac_file" "$LINENO" 5
17237     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17238       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17239 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17240     else
17241       rm -f "$ac_file"
17242       mv "$tmp/config.h" "$ac_file" \
17243         || as_fn_error "could not create $ac_file" "$LINENO" 5
17244     fi
17245   else
17246     $as_echo "/* $configure_input  */" \
17247       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17248       || as_fn_error "could not create -" "$LINENO" 5
17249   fi
17250 # Compute "$ac_file"'s index in $config_headers.
17251 _am_arg="$ac_file"
17252 _am_stamp_count=1
17253 for _am_header in $config_headers :; do
17254   case $_am_header in
17255     $_am_arg | $_am_arg:* )
17256       break ;;
17257     * )
17258       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17259   esac
17260 done
17261 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17262 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17263          X"$_am_arg" : 'X\(//\)[^/]' \| \
17264          X"$_am_arg" : 'X\(//\)$' \| \
17265          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17266 $as_echo X"$_am_arg" |
17267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17268             s//\1/
17269             q
17270           }
17271           /^X\(\/\/\)[^/].*/{
17272             s//\1/
17273             q
17274           }
17275           /^X\(\/\/\)$/{
17276             s//\1/
17277             q
17278           }
17279           /^X\(\/\).*/{
17280             s//\1/
17281             q
17282           }
17283           s/.*/./; q'`/stamp-h$_am_stamp_count
17284  ;;
17285   :L)
17286   #
17287   # CONFIG_LINK
17288   #
17289
17290   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17291     :
17292   else
17293     # Prefer the file from the source tree if names are identical.
17294     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17295       ac_source=$srcdir/$ac_source
17296     fi
17297
17298     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17299 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17300
17301     if test ! -r "$ac_source"; then
17302       as_fn_error "$ac_source: file not found" "$LINENO" 5
17303     fi
17304     rm -f "$ac_file"
17305
17306     # Try a relative symlink, then a hard link, then a copy.
17307     case $srcdir in
17308     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17309         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17310     esac
17311     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17312       ln "$ac_source" "$ac_file" 2>/dev/null ||
17313       cp -p "$ac_source" "$ac_file" ||
17314       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17315   fi
17316  ;;
17317   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17318 $as_echo "$as_me: executing $ac_file commands" >&6;}
17319  ;;
17320   esac
17321
17322
17323   case $ac_file$ac_mode in
17324     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17325     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17326   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17327   # are listed without --file.  Let's play safe and only enable the eval
17328   # if we detect the quoting.
17329   case $CONFIG_FILES in
17330   *\'*) eval set x "$CONFIG_FILES" ;;
17331   *)   set x $CONFIG_FILES ;;
17332   esac
17333   shift
17334   for mf
17335   do
17336     # Strip MF so we end up with the name of the file.
17337     mf=`echo "$mf" | sed -e 's/:.*$//'`
17338     # Check whether this is an Automake generated Makefile or not.
17339     # We used to match only the files named `Makefile.in', but
17340     # some people rename them; so instead we look at the file content.
17341     # Grep'ing the first line is not enough: some people post-process
17342     # each Makefile.in and add a new line on top of each file to say so.
17343     # Grep'ing the whole file is not good either: AIX grep has a line
17344     # limit of 2048, but all sed's we know have understand at least 4000.
17345     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17346       dirpart=`$as_dirname -- "$mf" ||
17347 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17348          X"$mf" : 'X\(//\)[^/]' \| \
17349          X"$mf" : 'X\(//\)$' \| \
17350          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17351 $as_echo X"$mf" |
17352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17353             s//\1/
17354             q
17355           }
17356           /^X\(\/\/\)[^/].*/{
17357             s//\1/
17358             q
17359           }
17360           /^X\(\/\/\)$/{
17361             s//\1/
17362             q
17363           }
17364           /^X\(\/\).*/{
17365             s//\1/
17366             q
17367           }
17368           s/.*/./; q'`
17369     else
17370       continue
17371     fi
17372     # Extract the definition of DEPDIR, am__include, and am__quote
17373     # from the Makefile without running `make'.
17374     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17375     test -z "$DEPDIR" && continue
17376     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17377     test -z "am__include" && continue
17378     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17379     # When using ansi2knr, U may be empty or an underscore; expand it
17380     U=`sed -n 's/^U = //p' < "$mf"`
17381     # Find all dependency output files, they are included files with
17382     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17383     # simplest approach to changing $(DEPDIR) to its actual value in the
17384     # expansion.
17385     for file in `sed -n "
17386       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17387          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17388       # Make sure the directory exists.
17389       test -f "$dirpart/$file" && continue
17390       fdir=`$as_dirname -- "$file" ||
17391 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17392          X"$file" : 'X\(//\)[^/]' \| \
17393          X"$file" : 'X\(//\)$' \| \
17394          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17395 $as_echo X"$file" |
17396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17397             s//\1/
17398             q
17399           }
17400           /^X\(\/\/\)[^/].*/{
17401             s//\1/
17402             q
17403           }
17404           /^X\(\/\/\)$/{
17405             s//\1/
17406             q
17407           }
17408           /^X\(\/\).*/{
17409             s//\1/
17410             q
17411           }
17412           s/.*/./; q'`
17413       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17414       # echo "creating $dirpart/$file"
17415       echo '# dummy' > "$dirpart/$file"
17416     done
17417   done
17418 }
17419  ;;
17420     "default":C)
17421 case x$CONFIG_HEADERS in
17422 xconfig.h:config.in)
17423 echo > stamp-h ;;
17424 esac
17425  ;;
17426
17427   esac
17428 done # for ac_tag
17429
17430
17431 as_fn_exit 0
17432 _ACEOF
17433 ac_clean_files=$ac_clean_files_save
17434
17435 test $ac_write_fail = 0 ||
17436   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17437
17438
17439 # configure is writing to config.log, and then calls config.status.
17440 # config.status does its own redirection, appending to config.log.
17441 # Unfortunately, on DOS this fails, as config.log is still kept open
17442 # by configure, so config.status won't be able to write to it; its
17443 # output is simply discarded.  So we exec the FD to /dev/null,
17444 # effectively closing config.log, so it can be properly (re)opened and
17445 # appended to by config.status.  When coming back to configure, we
17446 # need to make the FD available again.
17447 if test "$no_create" != yes; then
17448   ac_cs_success=:
17449   ac_config_status_args=
17450   test "$silent" = yes &&
17451     ac_config_status_args="$ac_config_status_args --quiet"
17452   exec 5>/dev/null
17453   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17454   exec 5>>config.log
17455   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17456   # would make configure fail if this is the last instruction.
17457   $ac_cs_success || as_fn_exit $?
17458 fi
17459
17460 #
17461 # CONFIG_SUBDIRS section.
17462 #
17463 if test "$no_recursion" != yes; then
17464
17465   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17466   # so they do not pile up.
17467   ac_sub_configure_args=
17468   ac_prev=
17469   eval "set x $ac_configure_args"
17470   shift
17471   for ac_arg
17472   do
17473     if test -n "$ac_prev"; then
17474       ac_prev=
17475       continue
17476     fi
17477     case $ac_arg in
17478     -cache-file | --cache-file | --cache-fil | --cache-fi \
17479     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17480       ac_prev=cache_file ;;
17481     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17482     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17483     | --c=*)
17484       ;;
17485     --config-cache | -C)
17486       ;;
17487     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17488       ac_prev=srcdir ;;
17489     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17490       ;;
17491     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17492       ac_prev=prefix ;;
17493     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17494       ;;
17495     --disable-option-checking)
17496       ;;
17497     *)
17498       case $ac_arg in
17499       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17500       esac
17501       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17502     esac
17503   done
17504
17505   # Always prepend --prefix to ensure using the same prefix
17506   # in subdir configurations.
17507   ac_arg="--prefix=$prefix"
17508   case $ac_arg in
17509   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17510   esac
17511   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17512
17513   # Pass --silent
17514   if test "$silent" = yes; then
17515     ac_sub_configure_args="--silent $ac_sub_configure_args"
17516   fi
17517
17518   # Always prepend --disable-option-checking to silence warnings, since
17519   # different subdirs can have different --enable and --with options.
17520   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17521
17522   ac_popdir=`pwd`
17523   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17524
17525     # Do not complain, so a configure script can configure whichever
17526     # parts of a large source tree are present.
17527     test -d "$srcdir/$ac_dir" || continue
17528
17529     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17530     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17531     $as_echo "$ac_msg" >&6
17532     as_dir="$ac_dir"; as_fn_mkdir_p
17533     ac_builddir=.
17534
17535 case "$ac_dir" in
17536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17537 *)
17538   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17539   # A ".." for each directory in $ac_dir_suffix.
17540   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17541   case $ac_top_builddir_sub in
17542   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17543   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17544   esac ;;
17545 esac
17546 ac_abs_top_builddir=$ac_pwd
17547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17548 # for backward compatibility:
17549 ac_top_builddir=$ac_top_build_prefix
17550
17551 case $srcdir in
17552   .)  # We are building in place.
17553     ac_srcdir=.
17554     ac_top_srcdir=$ac_top_builddir_sub
17555     ac_abs_top_srcdir=$ac_pwd ;;
17556   [\\/]* | ?:[\\/]* )  # Absolute name.
17557     ac_srcdir=$srcdir$ac_dir_suffix;
17558     ac_top_srcdir=$srcdir
17559     ac_abs_top_srcdir=$srcdir ;;
17560   *) # Relative name.
17561     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17562     ac_top_srcdir=$ac_top_build_prefix$srcdir
17563     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17564 esac
17565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17566
17567
17568     cd "$ac_dir"
17569
17570     # Check for guested configure; otherwise get Cygnus style configure.
17571     if test -f "$ac_srcdir/configure.gnu"; then
17572       ac_sub_configure=$ac_srcdir/configure.gnu
17573     elif test -f "$ac_srcdir/configure"; then
17574       ac_sub_configure=$ac_srcdir/configure
17575     elif test -f "$ac_srcdir/configure.in"; then
17576       # This should be Cygnus configure.
17577       ac_sub_configure=$ac_aux_dir/configure
17578     else
17579       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17580 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17581       ac_sub_configure=
17582     fi
17583
17584     # The recursion is here.
17585     if test -n "$ac_sub_configure"; then
17586       # Make the cache file name correct relative to the subdirectory.
17587       case $cache_file in
17588       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17589       *) # Relative name.
17590         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17591       esac
17592
17593       { $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
17594 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17595       # The eval makes quoting arguments work.
17596       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17597            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17598         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17599     fi
17600
17601     cd "$ac_popdir"
17602   done
17603 fi
17604 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17605   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17606 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17607 fi
17608
17609
17610 exit 0