gdb/
[platform/upstream/binutils.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 #  include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 #  include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 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_CFLAGS
663 python_prog_path
664 LTLIBEXPAT
665 LIBEXPAT
666 HAVE_LIBEXPAT
667 READLINE_CFLAGS
668 READLINE_DEPS
669 READLINE
670 MIG
671 WINDRES
672 DLLTOOL
673 AR
674 YFLAGS
675 YACC
676 LN_S
677 REPORT_BUGS_TEXI
678 REPORT_BUGS_TO
679 PKGVERSION
680 TARGET_OBS
681 subdirs
682 GDB_DATADIR
683 DEBUGDIR
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 am__untar
692 am__tar
693 AMTAR
694 AWK
695 mkdir_p
696 MKDIR_P
697 INSTALL_STRIP_PROGRAM
698 STRIP
699 install_sh
700 MAKEINFO
701 AUTOHEADER
702 AUTOMAKE
703 AUTOCONF
704 ACLOCAL
705 VERSION
706 CYGPATH_W
707 am__isrc
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 PACKAGE
712 GNULIB_STDINT_H
713 LIBGNU_LTLIBDEPS
714 LIBGNU_LIBDEPS
715 gltests_WITNESS
716 HAVE_WINT_T
717 HAVE_WCHAR_H
718 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
719 NEXT_WCHAR_H
720 REPLACE_WCWIDTH
721 REPLACE_WCSNRTOMBS
722 REPLACE_WCSRTOMBS
723 REPLACE_WCRTOMB
724 REPLACE_MBSNRTOWCS
725 REPLACE_MBSRTOWCS
726 REPLACE_MBRLEN
727 REPLACE_MBRTOWC
728 REPLACE_MBSINIT
729 REPLACE_WCTOB
730 REPLACE_BTOWC
731 REPLACE_MBSTATE_T
732 HAVE_DECL_WCWIDTH
733 HAVE_DECL_WCTOB
734 HAVE_WCSNRTOMBS
735 HAVE_WCSRTOMBS
736 HAVE_WCRTOMB
737 HAVE_MBSNRTOWCS
738 HAVE_MBSRTOWCS
739 HAVE_MBRLEN
740 HAVE_MBRTOWC
741 HAVE_MBSINIT
742 HAVE_BTOWC
743 GNULIB_WCWIDTH
744 GNULIB_WCSNRTOMBS
745 GNULIB_WCSRTOMBS
746 GNULIB_WCRTOMB
747 GNULIB_MBSNRTOWCS
748 GNULIB_MBSRTOWCS
749 GNULIB_MBRLEN
750 GNULIB_MBRTOWC
751 GNULIB_MBSINIT
752 GNULIB_WCTOB
753 GNULIB_BTOWC
754 NEXT_AS_FIRST_DIRECTIVE_STRING_H
755 NEXT_STRING_H
756 STDINT_H
757 WINT_T_SUFFIX
758 WCHAR_T_SUFFIX
759 SIG_ATOMIC_T_SUFFIX
760 SIZE_T_SUFFIX
761 PTRDIFF_T_SUFFIX
762 HAVE_SIGNED_WINT_T
763 HAVE_SIGNED_WCHAR_T
764 HAVE_SIGNED_SIG_ATOMIC_T
765 BITSIZEOF_WINT_T
766 BITSIZEOF_WCHAR_T
767 BITSIZEOF_SIG_ATOMIC_T
768 BITSIZEOF_SIZE_T
769 BITSIZEOF_PTRDIFF_T
770 HAVE_SYS_BITYPES_H
771 HAVE_SYS_INTTYPES_H
772 HAVE_STDINT_H
773 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
774 NEXT_STDINT_H
775 HAVE_SYS_TYPES_H
776 HAVE_INTTYPES_H
777 HAVE_UNSIGNED_LONG_LONG_INT
778 HAVE_LONG_LONG_INT
779 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
780 NEXT_STDDEF_H
781 PRAGMA_SYSTEM_HEADER
782 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
783 INCLUDE_NEXT
784 STDDEF_H
785 HAVE_WCHAR_T
786 REPLACE_NULL
787 APPLE_UNIVERSAL_BUILD
788 UNDEFINE_STRTOK_R
789 REPLACE_STRTOK_R
790 REPLACE_STRSIGNAL
791 REPLACE_STRNLEN
792 REPLACE_STRNDUP
793 REPLACE_STRNCAT
794 REPLACE_STRERROR
795 REPLACE_STRCASESTR
796 REPLACE_STRSTR
797 REPLACE_STRDUP
798 REPLACE_STPNCPY
799 REPLACE_MEMMEM
800 REPLACE_MEMCHR
801 HAVE_STRVERSCMP
802 HAVE_DECL_STRSIGNAL
803 HAVE_DECL_STRTOK_R
804 HAVE_STRCASESTR
805 HAVE_STRSEP
806 HAVE_STRPBRK
807 HAVE_DECL_STRNLEN
808 HAVE_DECL_STRNDUP
809 HAVE_DECL_STRDUP
810 HAVE_STRCHRNUL
811 HAVE_STPNCPY
812 HAVE_STPCPY
813 HAVE_RAWMEMCHR
814 HAVE_DECL_MEMRCHR
815 HAVE_MEMPCPY
816 HAVE_DECL_MEMMEM
817 HAVE_MEMCHR
818 HAVE_MBSLEN
819 GNULIB_STRVERSCMP
820 GNULIB_STRSIGNAL
821 GNULIB_STRERROR
822 GNULIB_MBSTOK_R
823 GNULIB_MBSSEP
824 GNULIB_MBSSPN
825 GNULIB_MBSPBRK
826 GNULIB_MBSCSPN
827 GNULIB_MBSCASESTR
828 GNULIB_MBSPCASECMP
829 GNULIB_MBSNCASECMP
830 GNULIB_MBSCASECMP
831 GNULIB_MBSSTR
832 GNULIB_MBSRCHR
833 GNULIB_MBSCHR
834 GNULIB_MBSNLEN
835 GNULIB_MBSLEN
836 GNULIB_STRTOK_R
837 GNULIB_STRCASESTR
838 GNULIB_STRSTR
839 GNULIB_STRSEP
840 GNULIB_STRPBRK
841 GNULIB_STRNLEN
842 GNULIB_STRNDUP
843 GNULIB_STRNCAT
844 GNULIB_STRDUP
845 GNULIB_STRCHRNUL
846 GNULIB_STPNCPY
847 GNULIB_STPCPY
848 GNULIB_RAWMEMCHR
849 GNULIB_MEMRCHR
850 GNULIB_MEMPCPY
851 GNULIB_MEMMEM
852 GNULIB_MEMCHR
853 GL_COND_LIBTOOL_FALSE
854 GL_COND_LIBTOOL_TRUE
855 CATOBJEXT
856 GENCAT
857 INSTOBJEXT
858 DATADIRNAME
859 CATALOGS
860 POSUB
861 GMSGFMT
862 XGETTEXT
863 INCINTL
864 LIBINTL_DEP
865 LIBINTL
866 USE_NLS
867 SET_MAKE
868 GMAKE_FALSE
869 GMAKE_TRUE
870 MAKE
871 CCDEPMODE
872 DEPDIR
873 am__leading_dot
874 target_os
875 target_vendor
876 target_cpu
877 target
878 RANLIB
879 EGREP
880 GREP
881 CPP
882 host_os
883 host_vendor
884 host_cpu
885 host
886 build_os
887 build_vendor
888 build_cpu
889 build
890 OBJEXT
891 EXEEXT
892 ac_ct_CC
893 CPPFLAGS
894 LDFLAGS
895 CFLAGS
896 CC
897 MAINT
898 MAINTAINER_MODE_FALSE
899 MAINTAINER_MODE_TRUE
900 target_alias
901 host_alias
902 build_alias
903 LIBS
904 ECHO_T
905 ECHO_N
906 ECHO_C
907 DEFS
908 mandir
909 localedir
910 libdir
911 psdir
912 pdfdir
913 dvidir
914 htmldir
915 infodir
916 docdir
917 oldincludedir
918 includedir
919 localstatedir
920 sharedstatedir
921 sysconfdir
922 datadir
923 datarootdir
924 libexecdir
925 sbindir
926 bindir
927 program_transform_name
928 prefix
929 exec_prefix
930 PACKAGE_URL
931 PACKAGE_BUGREPORT
932 PACKAGE_STRING
933 PACKAGE_VERSION
934 PACKAGE_TARNAME
935 PACKAGE_NAME
936 PATH_SEPARATOR
937 SHELL'
938 ac_subst_files='host_makefile_frag'
939 ac_user_opts='
940 enable_option_checking
941 enable_maintainer_mode
942 enable_plugins
943 enable_largefile
944 enable_dependency_tracking
945 with_separate_debug_dir
946 with_gdb_datadir
947 with_relocated_sources
948 enable_targets
949 enable_64_bit_bfd
950 enable_gdbcli
951 enable_gdbmi
952 enable_tui
953 enable_gdbtk
954 with_libunwind
955 with_curses
956 enable_profiling
957 with_pkgversion
958 with_bugurl
959 with_zlib
960 with_libiconv_prefix
961 with_system_readline
962 with_expat
963 with_gnu_ld
964 enable_rpath
965 with_libexpat_prefix
966 with_python
967 with_included_regex
968 with_sysroot
969 with_system_gdbinit
970 enable_werror
971 enable_build_warnings
972 enable_gdb_build_warnings
973 with_tcl
974 with_tk
975 with_x
976 enable_sim
977 enable_multi_ice
978 '
979       ac_precious_vars='build_alias
980 host_alias
981 target_alias
982 CC
983 CFLAGS
984 LDFLAGS
985 LIBS
986 CPPFLAGS
987 CPP
988 YACC
989 YFLAGS
990 XMKMF'
991 ac_subdirs_all='doc testsuite
992 gdbtk
993 multi-ice
994 gdbserver'
995
996 # Initialize some variables set by options.
997 ac_init_help=
998 ac_init_version=false
999 ac_unrecognized_opts=
1000 ac_unrecognized_sep=
1001 # The variables have the same names as the options, with
1002 # dashes changed to underlines.
1003 cache_file=/dev/null
1004 exec_prefix=NONE
1005 no_create=
1006 no_recursion=
1007 prefix=NONE
1008 program_prefix=NONE
1009 program_suffix=NONE
1010 program_transform_name=s,x,x,
1011 silent=
1012 site=
1013 srcdir=
1014 verbose=
1015 x_includes=NONE
1016 x_libraries=NONE
1017
1018 # Installation directory options.
1019 # These are left unexpanded so users can "make install exec_prefix=/foo"
1020 # and all the variables that are supposed to be based on exec_prefix
1021 # by default will actually change.
1022 # Use braces instead of parens because sh, perl, etc. also accept them.
1023 # (The list follows the same order as the GNU Coding Standards.)
1024 bindir='${exec_prefix}/bin'
1025 sbindir='${exec_prefix}/sbin'
1026 libexecdir='${exec_prefix}/libexec'
1027 datarootdir='${prefix}/share'
1028 datadir='${datarootdir}'
1029 sysconfdir='${prefix}/etc'
1030 sharedstatedir='${prefix}/com'
1031 localstatedir='${prefix}/var'
1032 includedir='${prefix}/include'
1033 oldincludedir='/usr/include'
1034 docdir='${datarootdir}/doc/${PACKAGE}'
1035 infodir='${datarootdir}/info'
1036 htmldir='${docdir}'
1037 dvidir='${docdir}'
1038 pdfdir='${docdir}'
1039 psdir='${docdir}'
1040 libdir='${exec_prefix}/lib'
1041 localedir='${datarootdir}/locale'
1042 mandir='${datarootdir}/man'
1043
1044 ac_prev=
1045 ac_dashdash=
1046 for ac_option
1047 do
1048   # If the previous option needs an argument, assign it.
1049   if test -n "$ac_prev"; then
1050     eval $ac_prev=\$ac_option
1051     ac_prev=
1052     continue
1053   fi
1054
1055   case $ac_option in
1056   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1057   *)    ac_optarg=yes ;;
1058   esac
1059
1060   # Accept the important Cygnus configure options, so we can diagnose typos.
1061
1062   case $ac_dashdash$ac_option in
1063   --)
1064     ac_dashdash=yes ;;
1065
1066   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1067     ac_prev=bindir ;;
1068   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1069     bindir=$ac_optarg ;;
1070
1071   -build | --build | --buil | --bui | --bu)
1072     ac_prev=build_alias ;;
1073   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1074     build_alias=$ac_optarg ;;
1075
1076   -cache-file | --cache-file | --cache-fil | --cache-fi \
1077   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1078     ac_prev=cache_file ;;
1079   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1080   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1081     cache_file=$ac_optarg ;;
1082
1083   --config-cache | -C)
1084     cache_file=config.cache ;;
1085
1086   -datadir | --datadir | --datadi | --datad)
1087     ac_prev=datadir ;;
1088   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1089     datadir=$ac_optarg ;;
1090
1091   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1092   | --dataroo | --dataro | --datar)
1093     ac_prev=datarootdir ;;
1094   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1095   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1096     datarootdir=$ac_optarg ;;
1097
1098   -disable-* | --disable-*)
1099     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1100     # Reject names that are not valid shell variable names.
1101     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102       as_fn_error "invalid feature name: $ac_useropt"
1103     ac_useropt_orig=$ac_useropt
1104     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105     case $ac_user_opts in
1106       *"
1107 "enable_$ac_useropt"
1108 "*) ;;
1109       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1110          ac_unrecognized_sep=', ';;
1111     esac
1112     eval enable_$ac_useropt=no ;;
1113
1114   -docdir | --docdir | --docdi | --doc | --do)
1115     ac_prev=docdir ;;
1116   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1117     docdir=$ac_optarg ;;
1118
1119   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1120     ac_prev=dvidir ;;
1121   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1122     dvidir=$ac_optarg ;;
1123
1124   -enable-* | --enable-*)
1125     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1126     # Reject names that are not valid shell variable names.
1127     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128       as_fn_error "invalid feature name: $ac_useropt"
1129     ac_useropt_orig=$ac_useropt
1130     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131     case $ac_user_opts in
1132       *"
1133 "enable_$ac_useropt"
1134 "*) ;;
1135       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1136          ac_unrecognized_sep=', ';;
1137     esac
1138     eval enable_$ac_useropt=\$ac_optarg ;;
1139
1140   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1141   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1142   | --exec | --exe | --ex)
1143     ac_prev=exec_prefix ;;
1144   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1145   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1146   | --exec=* | --exe=* | --ex=*)
1147     exec_prefix=$ac_optarg ;;
1148
1149   -gas | --gas | --ga | --g)
1150     # Obsolete; use --with-gas.
1151     with_gas=yes ;;
1152
1153   -help | --help | --hel | --he | -h)
1154     ac_init_help=long ;;
1155   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1156     ac_init_help=recursive ;;
1157   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1158     ac_init_help=short ;;
1159
1160   -host | --host | --hos | --ho)
1161     ac_prev=host_alias ;;
1162   -host=* | --host=* | --hos=* | --ho=*)
1163     host_alias=$ac_optarg ;;
1164
1165   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1166     ac_prev=htmldir ;;
1167   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1168   | --ht=*)
1169     htmldir=$ac_optarg ;;
1170
1171   -includedir | --includedir | --includedi | --included | --include \
1172   | --includ | --inclu | --incl | --inc)
1173     ac_prev=includedir ;;
1174   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1175   | --includ=* | --inclu=* | --incl=* | --inc=*)
1176     includedir=$ac_optarg ;;
1177
1178   -infodir | --infodir | --infodi | --infod | --info | --inf)
1179     ac_prev=infodir ;;
1180   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1181     infodir=$ac_optarg ;;
1182
1183   -libdir | --libdir | --libdi | --libd)
1184     ac_prev=libdir ;;
1185   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1186     libdir=$ac_optarg ;;
1187
1188   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1189   | --libexe | --libex | --libe)
1190     ac_prev=libexecdir ;;
1191   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1192   | --libexe=* | --libex=* | --libe=*)
1193     libexecdir=$ac_optarg ;;
1194
1195   -localedir | --localedir | --localedi | --localed | --locale)
1196     ac_prev=localedir ;;
1197   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1198     localedir=$ac_optarg ;;
1199
1200   -localstatedir | --localstatedir | --localstatedi | --localstated \
1201   | --localstate | --localstat | --localsta | --localst | --locals)
1202     ac_prev=localstatedir ;;
1203   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1204   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1205     localstatedir=$ac_optarg ;;
1206
1207   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1208     ac_prev=mandir ;;
1209   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1210     mandir=$ac_optarg ;;
1211
1212   -nfp | --nfp | --nf)
1213     # Obsolete; use --without-fp.
1214     with_fp=no ;;
1215
1216   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1217   | --no-cr | --no-c | -n)
1218     no_create=yes ;;
1219
1220   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1221   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1222     no_recursion=yes ;;
1223
1224   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1225   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1226   | --oldin | --oldi | --old | --ol | --o)
1227     ac_prev=oldincludedir ;;
1228   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1229   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1230   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1231     oldincludedir=$ac_optarg ;;
1232
1233   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1234     ac_prev=prefix ;;
1235   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1236     prefix=$ac_optarg ;;
1237
1238   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1239   | --program-pre | --program-pr | --program-p)
1240     ac_prev=program_prefix ;;
1241   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1242   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1243     program_prefix=$ac_optarg ;;
1244
1245   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1246   | --program-suf | --program-su | --program-s)
1247     ac_prev=program_suffix ;;
1248   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1249   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1250     program_suffix=$ac_optarg ;;
1251
1252   -program-transform-name | --program-transform-name \
1253   | --program-transform-nam | --program-transform-na \
1254   | --program-transform-n | --program-transform- \
1255   | --program-transform | --program-transfor \
1256   | --program-transfo | --program-transf \
1257   | --program-trans | --program-tran \
1258   | --progr-tra | --program-tr | --program-t)
1259     ac_prev=program_transform_name ;;
1260   -program-transform-name=* | --program-transform-name=* \
1261   | --program-transform-nam=* | --program-transform-na=* \
1262   | --program-transform-n=* | --program-transform-=* \
1263   | --program-transform=* | --program-transfor=* \
1264   | --program-transfo=* | --program-transf=* \
1265   | --program-trans=* | --program-tran=* \
1266   | --progr-tra=* | --program-tr=* | --program-t=*)
1267     program_transform_name=$ac_optarg ;;
1268
1269   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1270     ac_prev=pdfdir ;;
1271   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1272     pdfdir=$ac_optarg ;;
1273
1274   -psdir | --psdir | --psdi | --psd | --ps)
1275     ac_prev=psdir ;;
1276   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1277     psdir=$ac_optarg ;;
1278
1279   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280   | -silent | --silent | --silen | --sile | --sil)
1281     silent=yes ;;
1282
1283   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1284     ac_prev=sbindir ;;
1285   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1286   | --sbi=* | --sb=*)
1287     sbindir=$ac_optarg ;;
1288
1289   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1290   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1291   | --sharedst | --shareds | --shared | --share | --shar \
1292   | --sha | --sh)
1293     ac_prev=sharedstatedir ;;
1294   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1295   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1296   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1297   | --sha=* | --sh=*)
1298     sharedstatedir=$ac_optarg ;;
1299
1300   -site | --site | --sit)
1301     ac_prev=site ;;
1302   -site=* | --site=* | --sit=*)
1303     site=$ac_optarg ;;
1304
1305   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1306     ac_prev=srcdir ;;
1307   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1308     srcdir=$ac_optarg ;;
1309
1310   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1311   | --syscon | --sysco | --sysc | --sys | --sy)
1312     ac_prev=sysconfdir ;;
1313   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1314   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1315     sysconfdir=$ac_optarg ;;
1316
1317   -target | --target | --targe | --targ | --tar | --ta | --t)
1318     ac_prev=target_alias ;;
1319   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1320     target_alias=$ac_optarg ;;
1321
1322   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1323     verbose=yes ;;
1324
1325   -version | --version | --versio | --versi | --vers | -V)
1326     ac_init_version=: ;;
1327
1328   -with-* | --with-*)
1329     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1330     # Reject names that are not valid shell variable names.
1331     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332       as_fn_error "invalid package name: $ac_useropt"
1333     ac_useropt_orig=$ac_useropt
1334     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335     case $ac_user_opts in
1336       *"
1337 "with_$ac_useropt"
1338 "*) ;;
1339       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1340          ac_unrecognized_sep=', ';;
1341     esac
1342     eval with_$ac_useropt=\$ac_optarg ;;
1343
1344   -without-* | --without-*)
1345     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1346     # Reject names that are not valid shell variable names.
1347     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348       as_fn_error "invalid package name: $ac_useropt"
1349     ac_useropt_orig=$ac_useropt
1350     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351     case $ac_user_opts in
1352       *"
1353 "with_$ac_useropt"
1354 "*) ;;
1355       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1356          ac_unrecognized_sep=', ';;
1357     esac
1358     eval with_$ac_useropt=no ;;
1359
1360   --x)
1361     # Obsolete; use --with-x.
1362     with_x=yes ;;
1363
1364   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1365   | --x-incl | --x-inc | --x-in | --x-i)
1366     ac_prev=x_includes ;;
1367   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1368   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1369     x_includes=$ac_optarg ;;
1370
1371   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1372   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1373     ac_prev=x_libraries ;;
1374   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1375   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1376     x_libraries=$ac_optarg ;;
1377
1378   -*) as_fn_error "unrecognized option: \`$ac_option'
1379 Try \`$0 --help' for more information."
1380     ;;
1381
1382   *=*)
1383     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1384     # Reject names that are not valid shell variable names.
1385     case $ac_envvar in #(
1386       '' | [0-9]* | *[!_$as_cr_alnum]* )
1387       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1388     esac
1389     eval $ac_envvar=\$ac_optarg
1390     export $ac_envvar ;;
1391
1392   *)
1393     # FIXME: should be removed in autoconf 3.0.
1394     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1395     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1397     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1398     ;;
1399
1400   esac
1401 done
1402
1403 if test -n "$ac_prev"; then
1404   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1405   as_fn_error "missing argument to $ac_option"
1406 fi
1407
1408 if test -n "$ac_unrecognized_opts"; then
1409   case $enable_option_checking in
1410     no) ;;
1411     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1412     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1413   esac
1414 fi
1415
1416 # Check all directory arguments for consistency.
1417 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1418                 datadir sysconfdir sharedstatedir localstatedir includedir \
1419                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1420                 libdir localedir mandir
1421 do
1422   eval ac_val=\$$ac_var
1423   # Remove trailing slashes.
1424   case $ac_val in
1425     */ )
1426       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1427       eval $ac_var=\$ac_val;;
1428   esac
1429   # Be sure to have absolute directory names.
1430   case $ac_val in
1431     [\\/$]* | ?:[\\/]* )  continue;;
1432     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1433   esac
1434   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1435 done
1436
1437 # There might be people who depend on the old broken behavior: `$host'
1438 # used to hold the argument of --host etc.
1439 # FIXME: To remove some day.
1440 build=$build_alias
1441 host=$host_alias
1442 target=$target_alias
1443
1444 # FIXME: To remove some day.
1445 if test "x$host_alias" != x; then
1446   if test "x$build_alias" = x; then
1447     cross_compiling=maybe
1448     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1449     If a cross compiler is detected then cross compile mode will be used." >&2
1450   elif test "x$build_alias" != "x$host_alias"; then
1451     cross_compiling=yes
1452   fi
1453 fi
1454
1455 ac_tool_prefix=
1456 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1457
1458 test "$silent" = yes && exec 6>/dev/null
1459
1460
1461 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1462 ac_ls_di=`ls -di .` &&
1463 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1464   as_fn_error "working directory cannot be determined"
1465 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466   as_fn_error "pwd does not report name of working directory"
1467
1468
1469 # Find the source files, if location was not specified.
1470 if test -z "$srcdir"; then
1471   ac_srcdir_defaulted=yes
1472   # Try the directory containing this script, then the parent directory.
1473   ac_confdir=`$as_dirname -- "$as_myself" ||
1474 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1475          X"$as_myself" : 'X\(//\)[^/]' \| \
1476          X"$as_myself" : 'X\(//\)$' \| \
1477          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1478 $as_echo X"$as_myself" |
1479     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1480             s//\1/
1481             q
1482           }
1483           /^X\(\/\/\)[^/].*/{
1484             s//\1/
1485             q
1486           }
1487           /^X\(\/\/\)$/{
1488             s//\1/
1489             q
1490           }
1491           /^X\(\/\).*/{
1492             s//\1/
1493             q
1494           }
1495           s/.*/./; q'`
1496   srcdir=$ac_confdir
1497   if test ! -r "$srcdir/$ac_unique_file"; then
1498     srcdir=..
1499   fi
1500 else
1501   ac_srcdir_defaulted=no
1502 fi
1503 if test ! -r "$srcdir/$ac_unique_file"; then
1504   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1505   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1506 fi
1507 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1508 ac_abs_confdir=`(
1509         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1510         pwd)`
1511 # When building in place, set srcdir=.
1512 if test "$ac_abs_confdir" = "$ac_pwd"; then
1513   srcdir=.
1514 fi
1515 # Remove unnecessary trailing slashes from srcdir.
1516 # Double slashes in file names in object file debugging info
1517 # mess up M-x gdb in Emacs.
1518 case $srcdir in
1519 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1520 esac
1521 for ac_var in $ac_precious_vars; do
1522   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1523   eval ac_env_${ac_var}_value=\$${ac_var}
1524   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1525   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1526 done
1527
1528 #
1529 # Report the --help message.
1530 #
1531 if test "$ac_init_help" = "long"; then
1532   # Omit some internal or obsolete options to make the list less imposing.
1533   # This message is too long to be a string in the A/UX 3.1 sh.
1534   cat <<_ACEOF
1535 \`configure' configures this package to adapt to many kinds of systems.
1536
1537 Usage: $0 [OPTION]... [VAR=VALUE]...
1538
1539 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1540 VAR=VALUE.  See below for descriptions of some of the useful variables.
1541
1542 Defaults for the options are specified in brackets.
1543
1544 Configuration:
1545   -h, --help              display this help and exit
1546       --help=short        display options specific to this package
1547       --help=recursive    display the short help of all the included packages
1548   -V, --version           display version information and exit
1549   -q, --quiet, --silent   do not print \`checking...' messages
1550       --cache-file=FILE   cache test results in FILE [disabled]
1551   -C, --config-cache      alias for \`--cache-file=config.cache'
1552   -n, --no-create         do not create output files
1553       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1554
1555 Installation directories:
1556   --prefix=PREFIX         install architecture-independent files in PREFIX
1557                           [$ac_default_prefix]
1558   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1559                           [PREFIX]
1560
1561 By default, \`make install' will install all the files in
1562 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1563 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1564 for instance \`--prefix=\$HOME'.
1565
1566 For better control, use the options below.
1567
1568 Fine tuning of the installation directories:
1569   --bindir=DIR            user executables [EPREFIX/bin]
1570   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1571   --libexecdir=DIR        program executables [EPREFIX/libexec]
1572   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1573   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1574   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1575   --libdir=DIR            object code libraries [EPREFIX/lib]
1576   --includedir=DIR        C header files [PREFIX/include]
1577   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1578   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1579   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1580   --infodir=DIR           info documentation [DATAROOTDIR/info]
1581   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1582   --mandir=DIR            man documentation [DATAROOTDIR/man]
1583   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1584   --htmldir=DIR           html documentation [DOCDIR]
1585   --dvidir=DIR            dvi documentation [DOCDIR]
1586   --pdfdir=DIR            pdf documentation [DOCDIR]
1587   --psdir=DIR             ps documentation [DOCDIR]
1588 _ACEOF
1589
1590   cat <<\_ACEOF
1591
1592 Program names:
1593   --program-prefix=PREFIX            prepend PREFIX to installed program names
1594   --program-suffix=SUFFIX            append SUFFIX to installed program names
1595   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1596
1597 X features:
1598   --x-includes=DIR    X include files are in DIR
1599   --x-libraries=DIR   X library files are in DIR
1600
1601 System types:
1602   --build=BUILD     configure for building on BUILD [guessed]
1603   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1604   --target=TARGET   configure for building compilers for TARGET [HOST]
1605 _ACEOF
1606 fi
1607
1608 if test -n "$ac_init_help"; then
1609
1610   cat <<\_ACEOF
1611
1612 Optional Features:
1613   --disable-option-checking  ignore unrecognized --enable/--with options
1614   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1615   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1616   --enable-maintainer-mode  enable make rules and dependencies not useful
1617                           (and sometimes confusing) to the casual installer
1618   --enable-plugins        Enable support for plugins (defaults no)
1619   --disable-largefile     omit support for large files
1620   --disable-dependency-tracking  speeds up one-time build
1621   --enable-dependency-tracking   do not reject slow dependency extractors
1622   --enable-targets=TARGETS
1623                           alternative target configurations
1624   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1625   --disable-gdbcli        disable command-line interface (CLI)
1626   --disable-gdbmi         disable machine-interface (MI)
1627   --enable-tui            enable full-screen terminal user interface (TUI)
1628   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1629   --enable-profiling      enable profiling of GDB
1630   --disable-rpath         do not hardcode runtime library paths
1631   --enable-werror         treat compile warnings as errors
1632   --enable-build-warnings enable build-time compiler warnings if gcc is used
1633   --enable-gdb-build-warnings
1634                           enable GDB specific build-time compiler warnings if
1635                           gcc is used
1636   --enable-sim            link gdb with simulator
1637   --enable-multi-ice      build the multi-ice-gdb-server
1638
1639 Optional Packages:
1640   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1641   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1642   --with-separate-debug-dir=PATH
1643                           look for global separate debug info in this path
1644                           [LIBDIR/debug]
1645   --with-gdb-datadir=PATH look for global separate data files in this path
1646                           [DATADIR/gdb]
1647   --with-relocated-sources=PATH
1648                           automatically relocate this path for source files
1649   --with-libunwind        use libunwind frame unwinding support
1650   --with-curses           use the curses library instead of the termcap
1651                           library
1652   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1653   --with-bugurl=URL       Direct users to URL to report a bug
1654   --with-zlib             include zlib support (auto/yes/no) default=auto
1655   --with-libiconv-prefix=DIR
1656                           search for libiconv in DIR/include and DIR/lib
1657   --with-system-readline  use installed readline library
1658   --with-expat            include expat support (auto/yes/no)
1659   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1660   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1661   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1662   --with-python[=PYTHON]  include python support
1663                           (auto/yes/no/<python-program>)
1664   --without-included-regex
1665                           don't use included regex; this is the default on
1666                           systems with version 2 of the GNU C library (use
1667                           with caution on other system)
1668   --with-sysroot[=DIR]    search for usr/lib et al within DIR
1669   --with-system-gdbinit=PATH
1670                           automatically load a system-wide gdbinit file
1671   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1672   --with-tk               directory containing tk configuration (tkConfig.sh)
1673   --with-x                use the X Window System
1674
1675 Some influential environment variables:
1676   CC          C compiler command
1677   CFLAGS      C compiler flags
1678   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1679               nonstandard directory <lib dir>
1680   LIBS        libraries to pass to the linker, e.g. -l<library>
1681   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682               you have headers in a nonstandard directory <include dir>
1683   CPP         C preprocessor
1684   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1685               the first program found out of: `bison -y', `byacc', `yacc'.
1686   YFLAGS      The list of arguments that will be passed by default to $YACC.
1687               This script will default YFLAGS to the empty string to avoid a
1688               default value of `-d' given by some make applications.
1689   XMKMF       Path to xmkmf, Makefile generator for X Window System
1690
1691 Use these variables to override the choices made by `configure' or to help
1692 it to find libraries and programs with nonstandard names/locations.
1693
1694 Report bugs to the package provider.
1695 _ACEOF
1696 ac_status=$?
1697 fi
1698
1699 if test "$ac_init_help" = "recursive"; then
1700   # If there are subdirs, report their specific --help.
1701   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1702     test -d "$ac_dir" ||
1703       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1704       continue
1705     ac_builddir=.
1706
1707 case "$ac_dir" in
1708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *)
1710   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711   # A ".." for each directory in $ac_dir_suffix.
1712   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713   case $ac_top_builddir_sub in
1714   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716   esac ;;
1717 esac
1718 ac_abs_top_builddir=$ac_pwd
1719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720 # for backward compatibility:
1721 ac_top_builddir=$ac_top_build_prefix
1722
1723 case $srcdir in
1724   .)  # We are building in place.
1725     ac_srcdir=.
1726     ac_top_srcdir=$ac_top_builddir_sub
1727     ac_abs_top_srcdir=$ac_pwd ;;
1728   [\\/]* | ?:[\\/]* )  # Absolute name.
1729     ac_srcdir=$srcdir$ac_dir_suffix;
1730     ac_top_srcdir=$srcdir
1731     ac_abs_top_srcdir=$srcdir ;;
1732   *) # Relative name.
1733     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734     ac_top_srcdir=$ac_top_build_prefix$srcdir
1735     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1736 esac
1737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1738
1739     cd "$ac_dir" || { ac_status=$?; continue; }
1740     # Check for guested configure.
1741     if test -f "$ac_srcdir/configure.gnu"; then
1742       echo &&
1743       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744     elif test -f "$ac_srcdir/configure"; then
1745       echo &&
1746       $SHELL "$ac_srcdir/configure" --help=recursive
1747     else
1748       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1749     fi || ac_status=$?
1750     cd "$ac_pwd" || { ac_status=$?; break; }
1751   done
1752 fi
1753
1754 test -n "$ac_init_help" && exit $ac_status
1755 if $ac_init_version; then
1756   cat <<\_ACEOF
1757 configure
1758 generated by GNU Autoconf 2.64
1759
1760 Copyright (C) 2009 Free Software Foundation, Inc.
1761 This configure script is free software; the Free Software Foundation
1762 gives unlimited permission to copy, distribute and modify it.
1763 _ACEOF
1764   exit
1765 fi
1766
1767 ## ------------------------ ##
1768 ## Autoconf initialization. ##
1769 ## ------------------------ ##
1770
1771 # ac_fn_c_try_compile LINENO
1772 # --------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_compile ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   rm -f conftest.$ac_objext
1778   if { { ac_try="$ac_compile"
1779 case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785   (eval "$ac_compile") 2>conftest.err
1786   ac_status=$?
1787   if test -s conftest.err; then
1788     grep -v '^ *+' conftest.err >conftest.er1
1789     cat conftest.er1 >&5
1790     mv -f conftest.er1 conftest.err
1791   fi
1792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793   test $ac_status = 0; } && {
1794          test -z "$ac_c_werror_flag" ||
1795          test ! -s conftest.err
1796        } && test -s conftest.$ac_objext; then :
1797   ac_retval=0
1798 else
1799   $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802         ac_retval=1
1803 fi
1804   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805   return $ac_retval
1806
1807 } # ac_fn_c_try_compile
1808
1809 # ac_fn_c_try_cpp LINENO
1810 # ----------------------
1811 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_cpp ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   if { { ac_try="$ac_cpp conftest.$ac_ext"
1816 case "(($ac_try" in
1817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818   *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1823   ac_status=$?
1824   if test -s conftest.err; then
1825     grep -v '^ *+' conftest.err >conftest.er1
1826     cat conftest.er1 >&5
1827     mv -f conftest.er1 conftest.err
1828   fi
1829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830   test $ac_status = 0; } >/dev/null && {
1831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832          test ! -s conftest.err
1833        }; then :
1834   ac_retval=0
1835 else
1836   $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1838
1839     ac_retval=1
1840 fi
1841   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842   return $ac_retval
1843
1844 } # ac_fn_c_try_cpp
1845
1846 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1849 # the include files in INCLUDES and setting the cache variable VAR
1850 # accordingly.
1851 ac_fn_c_check_header_mongrel ()
1852 {
1853   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858   $as_echo_n "(cached) " >&6
1859 fi
1860 eval ac_res=\$$3
1861                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 else
1864   # Is the header compilable?
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1866 $as_echo_n "checking $2 usability... " >&6; }
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h.  */
1869 $4
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"; then :
1873   ac_header_compiler=yes
1874 else
1875   ac_header_compiler=no
1876 fi
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1879 $as_echo "$ac_header_compiler" >&6; }
1880
1881 # Is the header present?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1883 $as_echo_n "checking $2 presence... " >&6; }
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h.  */
1886 #include <$2>
1887 _ACEOF
1888 if ac_fn_c_try_cpp "$LINENO"; then :
1889   ac_header_preproc=yes
1890 else
1891   ac_header_preproc=no
1892 fi
1893 rm -f conftest.err conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1895 $as_echo "$ac_header_preproc" >&6; }
1896
1897 # So?  What about this header?
1898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1899   yes:no: )
1900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1901 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904     ;;
1905   no:yes:* )
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1907 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1909 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1910     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1911 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1912     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1913 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1914     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916     ;;
1917 esac
1918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921   $as_echo_n "(cached) " >&6
1922 else
1923   eval "$3=\$ac_header_compiler"
1924 fi
1925 eval ac_res=\$$3
1926                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 fi
1929   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930
1931 } # ac_fn_c_check_header_mongrel
1932
1933 # ac_fn_c_try_run LINENO
1934 # ----------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936 # that executables *can* be run.
1937 ac_fn_c_try_run ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   if { { ac_try="$ac_link"
1941 case "(($ac_try" in
1942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943   *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947   (eval "$ac_link") 2>&5
1948   ac_status=$?
1949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1951   { { case "(($ac_try" in
1952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953   *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957   (eval "$ac_try") 2>&5
1958   ac_status=$?
1959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960   test $ac_status = 0; }; }; then :
1961   ac_retval=0
1962 else
1963   $as_echo "$as_me: program exited with status $ac_status" >&5
1964        $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1966
1967        ac_retval=$ac_status
1968 fi
1969   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971   return $ac_retval
1972
1973 } # ac_fn_c_try_run
1974
1975 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists and can be compiled using the include files in
1978 # INCLUDES, setting the cache variable VAR accordingly.
1979 ac_fn_c_check_header_compile ()
1980 {
1981   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1985   $as_echo_n "(cached) " >&6
1986 else
1987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993   eval "$3=yes"
1994 else
1995   eval "$3=no"
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 fi
1999 eval ac_res=\$$3
2000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003
2004 } # ac_fn_c_check_header_compile
2005
2006 # ac_fn_c_try_link LINENO
2007 # -----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded.
2009 ac_fn_c_try_link ()
2010 {
2011   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012   rm -f conftest.$ac_objext conftest$ac_exeext
2013   if { { ac_try="$ac_link"
2014 case "(($ac_try" in
2015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016   *) ac_try_echo=$ac_try;;
2017 esac
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020   (eval "$ac_link") 2>conftest.err
2021   ac_status=$?
2022   if test -s conftest.err; then
2023     grep -v '^ *+' conftest.err >conftest.er1
2024     cat conftest.er1 >&5
2025     mv -f conftest.er1 conftest.err
2026   fi
2027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028   test $ac_status = 0; } && {
2029          test -z "$ac_c_werror_flag" ||
2030          test ! -s conftest.err
2031        } && test -s conftest$ac_exeext && {
2032          test "$cross_compiling" = yes ||
2033          $as_test_x conftest$ac_exeext
2034        }; then :
2035   ac_retval=0
2036 else
2037   $as_echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2039
2040         ac_retval=1
2041 fi
2042   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2043   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2044   # interfere with the next link command; also delete a directory that is
2045   # left behind by Apple's compiler.  We do this before executing the actions.
2046   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048   return $ac_retval
2049
2050 } # ac_fn_c_try_link
2051
2052 # ac_fn_c_check_func LINENO FUNC VAR
2053 # ----------------------------------
2054 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2055 ac_fn_c_check_func ()
2056 {
2057   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2061   $as_echo_n "(cached) " >&6
2062 else
2063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h.  */
2065 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2067 #define $2 innocuous_$2
2068
2069 /* System header to define __stub macros and hopefully few prototypes,
2070     which can conflict with char $2 (); below.
2071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2072     <limits.h> exists even on freestanding compilers.  */
2073
2074 #ifdef __STDC__
2075 # include <limits.h>
2076 #else
2077 # include <assert.h>
2078 #endif
2079
2080 #undef $2
2081
2082 /* Override any GCC internal prototype to avoid an error.
2083    Use char because int might match the return type of a GCC
2084    builtin and then its argument prototype would still apply.  */
2085 #ifdef __cplusplus
2086 extern "C"
2087 #endif
2088 char $2 ();
2089 /* The GNU C library defines this for functions which it implements
2090     to always fail with ENOSYS.  Some functions are actually named
2091     something starting with __ and the normal name is an alias.  */
2092 #if defined __stub_$2 || defined __stub___$2
2093 choke me
2094 #endif
2095
2096 int
2097 main ()
2098 {
2099 return $2 ();
2100   ;
2101   return 0;
2102 }
2103 _ACEOF
2104 if ac_fn_c_try_link "$LINENO"; then :
2105   eval "$3=yes"
2106 else
2107   eval "$3=no"
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext \
2110     conftest$ac_exeext conftest.$ac_ext
2111 fi
2112 eval ac_res=\$$3
2113                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116
2117 } # ac_fn_c_check_func
2118
2119 # ac_fn_c_check_decl LINENO SYMBOL VAR
2120 # ------------------------------------
2121 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2122 ac_fn_c_check_decl ()
2123 {
2124   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2126 $as_echo_n "checking whether $2 is declared... " >&6; }
2127 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2128   $as_echo_n "(cached) " >&6
2129 else
2130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h.  */
2132 $4
2133 int
2134 main ()
2135 {
2136 #ifndef $2
2137   (void) $2;
2138 #endif
2139
2140   ;
2141   return 0;
2142 }
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145   eval "$3=yes"
2146 else
2147   eval "$3=no"
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 fi
2151 eval ac_res=\$$3
2152                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2155
2156 } # ac_fn_c_check_decl
2157
2158 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2159 # --------------------------------------------
2160 # Tries to find the compile-time value of EXPR in a program that includes
2161 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2162 # computed
2163 ac_fn_c_compute_int ()
2164 {
2165   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166   if test "$cross_compiling" = yes; then
2167     # Depending upon the size, compute the lo and hi bounds.
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h.  */
2170 $4
2171 int
2172 main ()
2173 {
2174 static int test_array [1 - 2 * !(($2) >= 0)];
2175 test_array [0] = 0
2176
2177   ;
2178   return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182   ac_lo=0 ac_mid=0
2183   while :; do
2184     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h.  */
2186 $4
2187 int
2188 main ()
2189 {
2190 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2191 test_array [0] = 0
2192
2193   ;
2194   return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198   ac_hi=$ac_mid; break
2199 else
2200   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2201                         if test $ac_lo -le $ac_mid; then
2202                           ac_lo= ac_hi=
2203                           break
2204                         fi
2205                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208   done
2209 else
2210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h.  */
2212 $4
2213 int
2214 main ()
2215 {
2216 static int test_array [1 - 2 * !(($2) < 0)];
2217 test_array [0] = 0
2218
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 if ac_fn_c_try_compile "$LINENO"; then :
2224   ac_hi=-1 ac_mid=-1
2225   while :; do
2226     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h.  */
2228 $4
2229 int
2230 main ()
2231 {
2232 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2233 test_array [0] = 0
2234
2235   ;
2236   return 0;
2237 }
2238 _ACEOF
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240   ac_lo=$ac_mid; break
2241 else
2242   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2243                         if test $ac_mid -le $ac_hi; then
2244                           ac_lo= ac_hi=
2245                           break
2246                         fi
2247                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250   done
2251 else
2252   ac_lo= ac_hi=
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 # Binary search between lo and hi bounds.
2258 while test "x$ac_lo" != "x$ac_hi"; do
2259   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h.  */
2262 $4
2263 int
2264 main ()
2265 {
2266 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2267 test_array [0] = 0
2268
2269   ;
2270   return 0;
2271 }
2272 _ACEOF
2273 if ac_fn_c_try_compile "$LINENO"; then :
2274   ac_hi=$ac_mid
2275 else
2276   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2277 fi
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 done
2280 case $ac_lo in #((
2281 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2282 '') ac_retval=1 ;;
2283 esac
2284   else
2285     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h.  */
2287 $4
2288 static long int longval () { return $2; }
2289 static unsigned long int ulongval () { return $2; }
2290 #include <stdio.h>
2291 #include <stdlib.h>
2292 int
2293 main ()
2294 {
2295
2296   FILE *f = fopen ("conftest.val", "w");
2297   if (! f)
2298     return 1;
2299   if (($2) < 0)
2300     {
2301       long int i = longval ();
2302       if (i != ($2))
2303         return 1;
2304       fprintf (f, "%ld", i);
2305     }
2306   else
2307     {
2308       unsigned long int i = ulongval ();
2309       if (i != ($2))
2310         return 1;
2311       fprintf (f, "%lu", i);
2312     }
2313   /* Do not output a trailing newline, as this causes \r\n confusion
2314      on some platforms.  */
2315   return ferror (f) || fclose (f) != 0;
2316
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_c_try_run "$LINENO"; then :
2322   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2323 else
2324   ac_retval=1
2325 fi
2326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2327   conftest.$ac_objext conftest.beam conftest.$ac_ext
2328 rm -f conftest.val
2329
2330   fi
2331   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332   return $ac_retval
2333
2334 } # ac_fn_c_compute_int
2335
2336 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2337 # ----------------------------------------------------
2338 # Tries to find if the field MEMBER exists in type AGGR, after including
2339 # INCLUDES, setting cache variable VAR accordingly.
2340 ac_fn_c_check_member ()
2341 {
2342   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2344 $as_echo_n "checking for $2.$3... " >&6; }
2345 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2346   $as_echo_n "(cached) " >&6
2347 else
2348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h.  */
2350 $5
2351 int
2352 main ()
2353 {
2354 static $2 ac_aggr;
2355 if (ac_aggr.$3)
2356 return 0;
2357   ;
2358   return 0;
2359 }
2360 _ACEOF
2361 if ac_fn_c_try_compile "$LINENO"; then :
2362   eval "$4=yes"
2363 else
2364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h.  */
2366 $5
2367 int
2368 main ()
2369 {
2370 static $2 ac_aggr;
2371 if (sizeof ac_aggr.$3)
2372 return 0;
2373   ;
2374   return 0;
2375 }
2376 _ACEOF
2377 if ac_fn_c_try_compile "$LINENO"; then :
2378   eval "$4=yes"
2379 else
2380   eval "$4=no"
2381 fi
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 fi
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 fi
2386 eval ac_res=\$$4
2387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2390
2391 } # ac_fn_c_check_member
2392
2393 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2394 # -------------------------------------------
2395 # Tests whether TYPE exists after having included INCLUDES, setting cache
2396 # variable VAR accordingly.
2397 ac_fn_c_check_type ()
2398 {
2399   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2401 $as_echo_n "checking for $2... " >&6; }
2402 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2403   $as_echo_n "(cached) " >&6
2404 else
2405   eval "$3=no"
2406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h.  */
2408 $4
2409 int
2410 main ()
2411 {
2412 if (sizeof ($2))
2413          return 0;
2414   ;
2415   return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h.  */
2421 $4
2422 int
2423 main ()
2424 {
2425 if (sizeof (($2)))
2426             return 0;
2427   ;
2428   return 0;
2429 }
2430 _ACEOF
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432
2433 else
2434   eval "$3=yes"
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 fi
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 fi
2440 eval ac_res=\$$3
2441                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444
2445 } # ac_fn_c_check_type
2446 cat >config.log <<_ACEOF
2447 This file contains any messages produced by compilers while
2448 running configure, to aid debugging if configure makes a mistake.
2449
2450 It was created by $as_me, which was
2451 generated by GNU Autoconf 2.64.  Invocation command line was
2452
2453   $ $0 $@
2454
2455 _ACEOF
2456 exec 5>>config.log
2457 {
2458 cat <<_ASUNAME
2459 ## --------- ##
2460 ## Platform. ##
2461 ## --------- ##
2462
2463 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2464 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2465 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2466 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2467 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2468
2469 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2470 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2471
2472 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2473 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2474 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2475 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2476 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2477 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2478 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2479
2480 _ASUNAME
2481
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487     $as_echo "PATH: $as_dir"
2488   done
2489 IFS=$as_save_IFS
2490
2491 } >&5
2492
2493 cat >&5 <<_ACEOF
2494
2495
2496 ## ----------- ##
2497 ## Core tests. ##
2498 ## ----------- ##
2499
2500 _ACEOF
2501
2502
2503 # Keep a trace of the command line.
2504 # Strip out --no-create and --no-recursion so they do not pile up.
2505 # Strip out --silent because we don't want to record it for future runs.
2506 # Also quote any args containing shell meta-characters.
2507 # Make two passes to allow for proper duplicate-argument suppression.
2508 ac_configure_args=
2509 ac_configure_args0=
2510 ac_configure_args1=
2511 ac_must_keep_next=false
2512 for ac_pass in 1 2
2513 do
2514   for ac_arg
2515   do
2516     case $ac_arg in
2517     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2518     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2519     | -silent | --silent | --silen | --sile | --sil)
2520       continue ;;
2521     *\'*)
2522       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2523     esac
2524     case $ac_pass in
2525     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2526     2)
2527       as_fn_append ac_configure_args1 " '$ac_arg'"
2528       if test $ac_must_keep_next = true; then
2529         ac_must_keep_next=false # Got value, back to normal.
2530       else
2531         case $ac_arg in
2532           *=* | --config-cache | -C | -disable-* | --disable-* \
2533           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2534           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2535           | -with-* | --with-* | -without-* | --without-* | --x)
2536             case "$ac_configure_args0 " in
2537               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2538             esac
2539             ;;
2540           -* ) ac_must_keep_next=true ;;
2541         esac
2542       fi
2543       as_fn_append ac_configure_args " '$ac_arg'"
2544       ;;
2545     esac
2546   done
2547 done
2548 { ac_configure_args0=; unset ac_configure_args0;}
2549 { ac_configure_args1=; unset ac_configure_args1;}
2550
2551 # When interrupted or exit'd, cleanup temporary files, and complete
2552 # config.log.  We remove comments because anyway the quotes in there
2553 # would cause problems or look ugly.
2554 # WARNING: Use '\'' to represent an apostrophe within the trap.
2555 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2556 trap 'exit_status=$?
2557   # Save into config.log some information that might help in debugging.
2558   {
2559     echo
2560
2561     cat <<\_ASBOX
2562 ## ---------------- ##
2563 ## Cache variables. ##
2564 ## ---------------- ##
2565 _ASBOX
2566     echo
2567     # The following way of writing the cache mishandles newlines in values,
2568 (
2569   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2570     eval ac_val=\$$ac_var
2571     case $ac_val in #(
2572     *${as_nl}*)
2573       case $ac_var in #(
2574       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2576       esac
2577       case $ac_var in #(
2578       _ | IFS | as_nl) ;; #(
2579       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2580       *) { eval $ac_var=; unset $ac_var;} ;;
2581       esac ;;
2582     esac
2583   done
2584   (set) 2>&1 |
2585     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2586     *${as_nl}ac_space=\ *)
2587       sed -n \
2588         "s/'\''/'\''\\\\'\'''\''/g;
2589           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2590       ;; #(
2591     *)
2592       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2593       ;;
2594     esac |
2595     sort
2596 )
2597     echo
2598
2599     cat <<\_ASBOX
2600 ## ----------------- ##
2601 ## Output variables. ##
2602 ## ----------------- ##
2603 _ASBOX
2604     echo
2605     for ac_var in $ac_subst_vars
2606     do
2607       eval ac_val=\$$ac_var
2608       case $ac_val in
2609       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2610       esac
2611       $as_echo "$ac_var='\''$ac_val'\''"
2612     done | sort
2613     echo
2614
2615     if test -n "$ac_subst_files"; then
2616       cat <<\_ASBOX
2617 ## ------------------- ##
2618 ## File substitutions. ##
2619 ## ------------------- ##
2620 _ASBOX
2621       echo
2622       for ac_var in $ac_subst_files
2623       do
2624         eval ac_val=\$$ac_var
2625         case $ac_val in
2626         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2627         esac
2628         $as_echo "$ac_var='\''$ac_val'\''"
2629       done | sort
2630       echo
2631     fi
2632
2633     if test -s confdefs.h; then
2634       cat <<\_ASBOX
2635 ## ----------- ##
2636 ## confdefs.h. ##
2637 ## ----------- ##
2638 _ASBOX
2639       echo
2640       cat confdefs.h
2641       echo
2642     fi
2643     test "$ac_signal" != 0 &&
2644       $as_echo "$as_me: caught signal $ac_signal"
2645     $as_echo "$as_me: exit $exit_status"
2646   } >&5
2647   rm -f core *.core core.conftest.* &&
2648     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2649     exit $exit_status
2650 ' 0
2651 for ac_signal in 1 2 13 15; do
2652   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2653 done
2654 ac_signal=0
2655
2656 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2657 rm -f -r conftest* confdefs.h
2658
2659 $as_echo "/* confdefs.h */" > confdefs.h
2660
2661 # Predefined preprocessor variables.
2662
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE_NAME "$PACKAGE_NAME"
2665 _ACEOF
2666
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2669 _ACEOF
2670
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2673 _ACEOF
2674
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_STRING "$PACKAGE_STRING"
2677 _ACEOF
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2681 _ACEOF
2682
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_URL "$PACKAGE_URL"
2685 _ACEOF
2686
2687
2688 # Let the site file select an alternate cache file if it wants to.
2689 # Prefer an explicitly selected file to automatically selected ones.
2690 ac_site_file1=NONE
2691 ac_site_file2=NONE
2692 if test -n "$CONFIG_SITE"; then
2693   ac_site_file1=$CONFIG_SITE
2694 elif test "x$prefix" != xNONE; then
2695   ac_site_file1=$prefix/share/config.site
2696   ac_site_file2=$prefix/etc/config.site
2697 else
2698   ac_site_file1=$ac_default_prefix/share/config.site
2699   ac_site_file2=$ac_default_prefix/etc/config.site
2700 fi
2701 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2702 do
2703   test "x$ac_site_file" = xNONE && continue
2704   if test -r "$ac_site_file"; then
2705     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2706 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2707     sed 's/^/| /' "$ac_site_file" >&5
2708     . "$ac_site_file"
2709   fi
2710 done
2711
2712 if test -r "$cache_file"; then
2713   # Some versions of bash will fail to source /dev/null (special
2714   # files actually), so we avoid doing that.
2715   if test -f "$cache_file"; then
2716     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2717 $as_echo "$as_me: loading cache $cache_file" >&6;}
2718     case $cache_file in
2719       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2720       *)                      . "./$cache_file";;
2721     esac
2722   fi
2723 else
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2725 $as_echo "$as_me: creating cache $cache_file" >&6;}
2726   >$cache_file
2727 fi
2728
2729 gl_header_list="$gl_header_list sys/mman.h"
2730 gl_func_list="$gl_func_list mprotect"
2731 gl_func_list="$gl_func_list memchr"
2732 gl_header_list="$gl_header_list stddef.h"
2733 gl_header_list="$gl_header_list stdint.h"
2734 gl_header_list="$gl_header_list wchar.h"
2735 gl_header_list="$gl_header_list string.h"
2736 # Check that the precious variables saved in the cache have kept the same
2737 # value.
2738 ac_cache_corrupted=false
2739 for ac_var in $ac_precious_vars; do
2740   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2741   eval ac_new_set=\$ac_env_${ac_var}_set
2742   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2743   eval ac_new_val=\$ac_env_${ac_var}_value
2744   case $ac_old_set,$ac_new_set in
2745     set,)
2746       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2747 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2748       ac_cache_corrupted=: ;;
2749     ,set)
2750       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2751 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2752       ac_cache_corrupted=: ;;
2753     ,);;
2754     *)
2755       if test "x$ac_old_val" != "x$ac_new_val"; then
2756         # differences in whitespace do not lead to failure.
2757         ac_old_val_w=`echo x $ac_old_val`
2758         ac_new_val_w=`echo x $ac_new_val`
2759         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2760           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2761 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2762           ac_cache_corrupted=:
2763         else
2764           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2765 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2766           eval $ac_var=\$ac_old_val
2767         fi
2768         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2769 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2770         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2771 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2772       fi;;
2773   esac
2774   # Pass precious variables to config.status.
2775   if test "$ac_new_set" = set; then
2776     case $ac_new_val in
2777     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2778     *) ac_arg=$ac_var=$ac_new_val ;;
2779     esac
2780     case " $ac_configure_args " in
2781       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2782       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2783     esac
2784   fi
2785 done
2786 if $ac_cache_corrupted; then
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2790 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2791   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2792 fi
2793 ## -------------------- ##
2794 ## Main body of script. ##
2795 ## -------------------- ##
2796
2797 ac_ext=c
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802
2803
2804
2805
2806
2807 ac_config_headers="$ac_config_headers config.h:config.in"
2808
2809
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2811 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2812     # Check whether --enable-maintainer-mode was given.
2813 if test "${enable_maintainer_mode+set}" = set; then :
2814   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2815 else
2816   USE_MAINTAINER_MODE=no
2817 fi
2818
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2820 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2821    if test $USE_MAINTAINER_MODE = yes; then
2822   MAINTAINER_MODE_TRUE=
2823   MAINTAINER_MODE_FALSE='#'
2824 else
2825   MAINTAINER_MODE_TRUE='#'
2826   MAINTAINER_MODE_FALSE=
2827 fi
2828
2829   MAINT=$MAINTAINER_MODE_TRUE
2830
2831
2832
2833 ac_ext=c
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838 if test -n "$ac_tool_prefix"; then
2839   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if test "${ac_cv_prog_CC+set}" = set; then :
2844   $as_echo_n "(cached) " >&6
2845 else
2846   if test -n "$CC"; then
2847   ac_cv_prog_CC="$CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854     for ac_exec_ext in '' $ac_executable_extensions; do
2855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861   done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 CC=$ac_cv_prog_CC
2867 if test -n "$CC"; then
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2870 else
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 fi
2874
2875
2876 fi
2877 if test -z "$ac_cv_prog_CC"; then
2878   ac_ct_CC=$CC
2879   # Extract the first word of "gcc", so it can be a program name with args.
2880 set dummy gcc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2884   $as_echo_n "(cached) " >&6
2885 else
2886   if test -n "$ac_ct_CC"; then
2887   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892   IFS=$as_save_IFS
2893   test -z "$as_dir" && as_dir=.
2894     for ac_exec_ext in '' $ac_executable_extensions; do
2895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896     ac_cv_prog_ac_ct_CC="gcc"
2897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898     break 2
2899   fi
2900 done
2901   done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907 if test -n "$ac_ct_CC"; then
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909 $as_echo "$ac_ct_CC" >&6; }
2910 else
2911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 fi
2914
2915   if test "x$ac_ct_CC" = x; then
2916     CC=""
2917   else
2918     case $cross_compiling:$ac_tool_warned in
2919 yes:)
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned=yes ;;
2923 esac
2924     CC=$ac_ct_CC
2925   fi
2926 else
2927   CC="$ac_cv_prog_CC"
2928 fi
2929
2930 if test -z "$CC"; then
2931           if test -n "$ac_tool_prefix"; then
2932     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}cc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then :
2937   $as_echo_n "(cached) " >&6
2938 else
2939   if test -n "$CC"; then
2940   ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947     for ac_exec_ext in '' $ac_executable_extensions; do
2948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949     ac_cv_prog_CC="${ac_tool_prefix}cc"
2950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951     break 2
2952   fi
2953 done
2954   done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2963 else
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969   fi
2970 fi
2971 if test -z "$CC"; then
2972   # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if test "${ac_cv_prog_CC+set}" = set; then :
2977   $as_echo_n "(cached) " >&6
2978 else
2979   if test -n "$CC"; then
2980   ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982   ac_prog_rejected=no
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     for ac_exec_ext in '' $ac_executable_extensions; do
2989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991        ac_prog_rejected=yes
2992        continue
2993      fi
2994     ac_cv_prog_CC="cc"
2995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996     break 2
2997   fi
2998 done
2999   done
3000 IFS=$as_save_IFS
3001
3002 if test $ac_prog_rejected = yes; then
3003   # We found a bogon in the path, so make sure we never use it.
3004   set dummy $ac_cv_prog_CC
3005   shift
3006   if test $# != 0; then
3007     # We chose a different compiler from the bogus one.
3008     # However, it has the same basename, so the bogon will be chosen
3009     # first if we set CC to just the basename; use the full file name.
3010     shift
3011     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3012   fi
3013 fi
3014 fi
3015 fi
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 $as_echo "$CC" >&6; }
3020 else
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 fi
3024
3025
3026 fi
3027 if test -z "$CC"; then
3028   if test -n "$ac_tool_prefix"; then
3029   for ac_prog in cl.exe
3030   do
3031     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then :
3036   $as_echo_n "(cached) " >&6
3037 else
3038   if test -n "$CC"; then
3039   ac_cv_prog_CC="$CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044   IFS=$as_save_IFS
3045   test -z "$as_dir" && as_dir=.
3046     for ac_exec_ext in '' $ac_executable_extensions; do
3047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050     break 2
3051   fi
3052 done
3053   done
3054 IFS=$as_save_IFS
3055
3056 fi
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3062 else
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 fi
3066
3067
3068     test -n "$CC" && break
3069   done
3070 fi
3071 if test -z "$CC"; then
3072   ac_ct_CC=$CC
3073   for ac_prog in cl.exe
3074 do
3075   # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3080   $as_echo_n "(cached) " >&6
3081 else
3082   if test -n "$ac_ct_CC"; then
3083   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090     for ac_exec_ext in '' $ac_executable_extensions; do
3091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092     ac_cv_prog_ac_ct_CC="$ac_prog"
3093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097   done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105 $as_echo "$ac_ct_CC" >&6; }
3106 else
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112   test -n "$ac_ct_CC" && break
3113 done
3114
3115   if test "x$ac_ct_CC" = x; then
3116     CC=""
3117   else
3118     case $cross_compiling:$ac_tool_warned in
3119 yes:)
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122 ac_tool_warned=yes ;;
3123 esac
3124     CC=$ac_ct_CC
3125   fi
3126 fi
3127
3128 fi
3129
3130
3131 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error "no acceptable C compiler found in \$PATH
3134 See \`config.log' for more details." "$LINENO" 5; }
3135
3136 # Provide some information about the compiler.
3137 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3138 set X $ac_compile
3139 ac_compiler=$2
3140 for ac_option in --version -v -V -qversion; do
3141   { { ac_try="$ac_compiler $ac_option >&5"
3142 case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3149   ac_status=$?
3150   if test -s conftest.err; then
3151     sed '10a\
3152 ... rest of stderr output deleted ...
3153          10q' conftest.err >conftest.er1
3154     cat conftest.er1 >&5
3155     rm -f conftest.er1 conftest.err
3156   fi
3157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158   test $ac_status = 0; }
3159 done
3160
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 ac_clean_files_save=$ac_clean_files
3173 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3174 # Try to create an executable without -o first, disregard a.out.
3175 # It will help us diagnose broken compilers, and finding out an intuition
3176 # of exeext.
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3178 $as_echo_n "checking for C compiler default output file name... " >&6; }
3179 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3180
3181 # The possible output files:
3182 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3183
3184 ac_rmfiles=
3185 for ac_file in $ac_files
3186 do
3187   case $ac_file in
3188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3189     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3190   esac
3191 done
3192 rm -f $ac_rmfiles
3193
3194 if { { ac_try="$ac_link_default"
3195 case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201   (eval "$ac_link_default") 2>&5
3202   ac_status=$?
3203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204   test $ac_status = 0; }; then :
3205   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3207 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3208 # so that the user can short-circuit this test for compilers unknown to
3209 # Autoconf.
3210 for ac_file in $ac_files ''
3211 do
3212   test -f "$ac_file" || continue
3213   case $ac_file in
3214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3215         ;;
3216     [ab].out )
3217         # We found the default executable, but exeext='' is most
3218         # certainly right.
3219         break;;
3220     *.* )
3221         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3222         then :; else
3223            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224         fi
3225         # We set ac_cv_exeext here because the later test for it is not
3226         # safe: cross compilers may not add the suffix if given an `-o'
3227         # argument, so we may need to know it at that point already.
3228         # Even if this section looks crufty: it has the advantage of
3229         # actually working.
3230         break;;
3231     * )
3232         break;;
3233   esac
3234 done
3235 test "$ac_cv_exeext" = no && ac_cv_exeext=
3236
3237 else
3238   ac_file=''
3239 fi
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3241 $as_echo "$ac_file" >&6; }
3242 if test -z "$ac_file"; then :
3243   $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 { as_fn_set_status 77
3249 as_fn_error "C compiler cannot create executables
3250 See \`config.log' for more details." "$LINENO" 5; }; }
3251 fi
3252 ac_exeext=$ac_cv_exeext
3253
3254 # Check that the compiler produces executables we can run.  If not, either
3255 # the compiler is broken, or we cross compile.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3257 $as_echo_n "checking whether the C compiler works... " >&6; }
3258 # If not cross compiling, check that we can run a simple program.
3259 if test "$cross_compiling" != yes; then
3260   if { ac_try='./$ac_file'
3261   { { case "(($ac_try" in
3262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263   *) ac_try_echo=$ac_try;;
3264 esac
3265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 $as_echo "$ac_try_echo"; } >&5
3267   (eval "$ac_try") 2>&5
3268   ac_status=$?
3269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270   test $ac_status = 0; }; }; then
3271     cross_compiling=no
3272   else
3273     if test "$cross_compiling" = maybe; then
3274         cross_compiling=yes
3275     else
3276         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error "cannot run C compiled programs.
3279 If you meant to cross compile, use \`--host'.
3280 See \`config.log' for more details." "$LINENO" 5; }
3281     fi
3282   fi
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3285 $as_echo "yes" >&6; }
3286
3287 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3288 ac_clean_files=$ac_clean_files_save
3289 # Check that the compiler produces executables we can run.  If not, either
3290 # the compiler is broken, or we cross compile.
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3292 $as_echo_n "checking whether we are cross compiling... " >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3294 $as_echo "$cross_compiling" >&6; }
3295
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3297 $as_echo_n "checking for suffix of executables... " >&6; }
3298 if { { ac_try="$ac_link"
3299 case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304 $as_echo "$ac_try_echo"; } >&5
3305   (eval "$ac_link") 2>&5
3306   ac_status=$?
3307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308   test $ac_status = 0; }; then :
3309   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3310 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3311 # work properly (i.e., refer to `conftest.exe'), while it won't with
3312 # `rm'.
3313 for ac_file in conftest.exe conftest conftest.*; do
3314   test -f "$ac_file" || continue
3315   case $ac_file in
3316     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3318           break;;
3319     * ) break;;
3320   esac
3321 done
3322 else
3323   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error "cannot compute suffix of executables: cannot compile and link
3326 See \`config.log' for more details." "$LINENO" 5; }
3327 fi
3328 rm -f conftest$ac_cv_exeext
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3330 $as_echo "$ac_cv_exeext" >&6; }
3331
3332 rm -f conftest.$ac_ext
3333 EXEEXT=$ac_cv_exeext
3334 ac_exeext=$EXEEXT
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3336 $as_echo_n "checking for suffix of object files... " >&6; }
3337 if test "${ac_cv_objext+set}" = set; then :
3338   $as_echo_n "(cached) " >&6
3339 else
3340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h.  */
3342
3343 int
3344 main ()
3345 {
3346
3347   ;
3348   return 0;
3349 }
3350 _ACEOF
3351 rm -f conftest.o conftest.obj
3352 if { { ac_try="$ac_compile"
3353 case "(($ac_try" in
3354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355   *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359   (eval "$ac_compile") 2>&5
3360   ac_status=$?
3361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362   test $ac_status = 0; }; then :
3363   for ac_file in conftest.o conftest.obj conftest.*; do
3364   test -f "$ac_file" || continue;
3365   case $ac_file in
3366     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3367     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3368        break;;
3369   esac
3370 done
3371 else
3372   $as_echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 as_fn_error "cannot compute suffix of object files: cannot compile
3378 See \`config.log' for more details." "$LINENO" 5; }
3379 fi
3380 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3381 fi
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3383 $as_echo "$ac_cv_objext" >&6; }
3384 OBJEXT=$ac_cv_objext
3385 ac_objext=$OBJEXT
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3387 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3388 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3389   $as_echo_n "(cached) " >&6
3390 else
3391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h.  */
3393
3394 int
3395 main ()
3396 {
3397 #ifndef __GNUC__
3398        choke me
3399 #endif
3400
3401   ;
3402   return 0;
3403 }
3404 _ACEOF
3405 if ac_fn_c_try_compile "$LINENO"; then :
3406   ac_compiler_gnu=yes
3407 else
3408   ac_compiler_gnu=no
3409 fi
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3412
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3415 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3416 if test $ac_compiler_gnu = yes; then
3417   GCC=yes
3418 else
3419   GCC=
3420 fi
3421 ac_test_CFLAGS=${CFLAGS+set}
3422 ac_save_CFLAGS=$CFLAGS
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3424 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3425 if test "${ac_cv_prog_cc_g+set}" = set; then :
3426   $as_echo_n "(cached) " >&6
3427 else
3428   ac_save_c_werror_flag=$ac_c_werror_flag
3429    ac_c_werror_flag=yes
3430    ac_cv_prog_cc_g=no
3431    CFLAGS="-g"
3432    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 if ac_fn_c_try_compile "$LINENO"; then :
3444   ac_cv_prog_cc_g=yes
3445 else
3446   CFLAGS=""
3447       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h.  */
3449
3450 int
3451 main ()
3452 {
3453
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 if ac_fn_c_try_compile "$LINENO"; then :
3459
3460 else
3461   ac_c_werror_flag=$ac_save_c_werror_flag
3462          CFLAGS="-g"
3463          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475   ac_cv_prog_cc_g=yes
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 fi
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 fi
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482    ac_c_werror_flag=$ac_save_c_werror_flag
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3485 $as_echo "$ac_cv_prog_cc_g" >&6; }
3486 if test "$ac_test_CFLAGS" = set; then
3487   CFLAGS=$ac_save_CFLAGS
3488 elif test $ac_cv_prog_cc_g = yes; then
3489   if test "$GCC" = yes; then
3490     CFLAGS="-g -O2"
3491   else
3492     CFLAGS="-g"
3493   fi
3494 else
3495   if test "$GCC" = yes; then
3496     CFLAGS="-O2"
3497   else
3498     CFLAGS=
3499   fi
3500 fi
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3502 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3503 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   ac_cv_prog_cc_c89=no
3507 ac_save_CC=$CC
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h.  */
3510 #include <stdarg.h>
3511 #include <stdio.h>
3512 #include <sys/types.h>
3513 #include <sys/stat.h>
3514 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3515 struct buf { int x; };
3516 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3517 static char *e (p, i)
3518      char **p;
3519      int i;
3520 {
3521   return p[i];
3522 }
3523 static char *f (char * (*g) (char **, int), char **p, ...)
3524 {
3525   char *s;
3526   va_list v;
3527   va_start (v,p);
3528   s = g (p, va_arg (v,int));
3529   va_end (v);
3530   return s;
3531 }
3532
3533 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3534    function prototypes and stuff, but not '\xHH' hex character constants.
3535    These don't provoke an error unfortunately, instead are silently treated
3536    as 'x'.  The following induces an error, until -std is added to get
3537    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3538    array size at least.  It's necessary to write '\x00'==0 to get something
3539    that's true only with -std.  */
3540 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3541
3542 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3543    inside strings and character constants.  */
3544 #define FOO(x) 'x'
3545 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3546
3547 int test (int i, double x);
3548 struct s1 {int (*f) (int a);};
3549 struct s2 {int (*f) (double a);};
3550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3551 int argc;
3552 char **argv;
3553 int
3554 main ()
3555 {
3556 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3557   ;
3558   return 0;
3559 }
3560 _ACEOF
3561 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3562         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3563 do
3564   CC="$ac_save_CC $ac_arg"
3565   if ac_fn_c_try_compile "$LINENO"; then :
3566   ac_cv_prog_cc_c89=$ac_arg
3567 fi
3568 rm -f core conftest.err conftest.$ac_objext
3569   test "x$ac_cv_prog_cc_c89" != "xno" && break
3570 done
3571 rm -f conftest.$ac_ext
3572 CC=$ac_save_CC
3573
3574 fi
3575 # AC_CACHE_VAL
3576 case "x$ac_cv_prog_cc_c89" in
3577   x)
3578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3579 $as_echo "none needed" >&6; } ;;
3580   xno)
3581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3582 $as_echo "unsupported" >&6; } ;;
3583   *)
3584     CC="$CC $ac_cv_prog_cc_c89"
3585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3586 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3587 esac
3588 if test "x$ac_cv_prog_cc_c89" != xno; then :
3589
3590 fi
3591
3592 ac_ext=c
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597
3598 ac_aux_dir=
3599 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3600   for ac_t in install-sh install.sh shtool; do
3601     if test -f "$ac_dir/$ac_t"; then
3602       ac_aux_dir=$ac_dir
3603       ac_install_sh="$ac_aux_dir/$ac_t -c"
3604       break 2
3605     fi
3606   done
3607 done
3608 if test -z "$ac_aux_dir"; then
3609   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3610 fi
3611
3612 # These three variables are undocumented and unsupported,
3613 # and are intended to be withdrawn in a future Autoconf release.
3614 # They can cause serious problems if a builder's source tree is in a directory
3615 # whose full name contains unusual characters.
3616 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3617 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3618 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3619
3620
3621 # Make sure we can run config.sub.
3622 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3623   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3624
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3626 $as_echo_n "checking build system type... " >&6; }
3627 if test "${ac_cv_build+set}" = set; then :
3628   $as_echo_n "(cached) " >&6
3629 else
3630   ac_build_alias=$build_alias
3631 test "x$ac_build_alias" = x &&
3632   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3633 test "x$ac_build_alias" = x &&
3634   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3635 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3636   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3637
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3640 $as_echo "$ac_cv_build" >&6; }
3641 case $ac_cv_build in
3642 *-*-*) ;;
3643 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3644 esac
3645 build=$ac_cv_build
3646 ac_save_IFS=$IFS; IFS='-'
3647 set x $ac_cv_build
3648 shift
3649 build_cpu=$1
3650 build_vendor=$2
3651 shift; shift
3652 # Remember, the first character of IFS is used to create $*,
3653 # except with old shells:
3654 build_os=$*
3655 IFS=$ac_save_IFS
3656 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3657
3658
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3660 $as_echo_n "checking host system type... " >&6; }
3661 if test "${ac_cv_host+set}" = set; then :
3662   $as_echo_n "(cached) " >&6
3663 else
3664   if test "x$host_alias" = x; then
3665   ac_cv_host=$ac_cv_build
3666 else
3667   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3668     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3669 fi
3670
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3673 $as_echo "$ac_cv_host" >&6; }
3674 case $ac_cv_host in
3675 *-*-*) ;;
3676 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3677 esac
3678 host=$ac_cv_host
3679 ac_save_IFS=$IFS; IFS='-'
3680 set x $ac_cv_host
3681 shift
3682 host_cpu=$1
3683 host_vendor=$2
3684 shift; shift
3685 # Remember, the first character of IFS is used to create $*,
3686 # except with old shells:
3687 host_os=$*
3688 IFS=$ac_save_IFS
3689 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3690
3691
3692
3693 ac_ext=c
3694 ac_cpp='$CPP $CPPFLAGS'
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3699 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3700 # On Suns, sometimes $CPP names a directory.
3701 if test -n "$CPP" && test -d "$CPP"; then
3702   CPP=
3703 fi
3704 if test -z "$CPP"; then
3705   if test "${ac_cv_prog_CPP+set}" = set; then :
3706   $as_echo_n "(cached) " >&6
3707 else
3708       # Double quotes because CPP needs to be expanded
3709     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3710     do
3711       ac_preproc_ok=false
3712 for ac_c_preproc_warn_flag in '' yes
3713 do
3714   # Use a header file that comes with gcc, so configuring glibc
3715   # with a fresh cross-compiler works.
3716   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3717   # <limits.h> exists even on freestanding compilers.
3718   # On the NeXT, cc -E runs the code through the compiler's parser,
3719   # not just through cpp. "Syntax error" is here to catch this case.
3720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h.  */
3722 #ifdef __STDC__
3723 # include <limits.h>
3724 #else
3725 # include <assert.h>
3726 #endif
3727                      Syntax error
3728 _ACEOF
3729 if ac_fn_c_try_cpp "$LINENO"; then :
3730
3731 else
3732   # Broken: fails on valid input.
3733 continue
3734 fi
3735 rm -f conftest.err conftest.$ac_ext
3736
3737   # OK, works on sane cases.  Now check whether nonexistent headers
3738   # can be detected and how.
3739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h.  */
3741 #include <ac_nonexistent.h>
3742 _ACEOF
3743 if ac_fn_c_try_cpp "$LINENO"; then :
3744   # Broken: success on invalid input.
3745 continue
3746 else
3747   # Passes both tests.
3748 ac_preproc_ok=:
3749 break
3750 fi
3751 rm -f conftest.err conftest.$ac_ext
3752
3753 done
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.$ac_ext
3756 if $ac_preproc_ok; then :
3757   break
3758 fi
3759
3760     done
3761     ac_cv_prog_CPP=$CPP
3762
3763 fi
3764   CPP=$ac_cv_prog_CPP
3765 else
3766   ac_cv_prog_CPP=$CPP
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3769 $as_echo "$CPP" >&6; }
3770 ac_preproc_ok=false
3771 for ac_c_preproc_warn_flag in '' yes
3772 do
3773   # Use a header file that comes with gcc, so configuring glibc
3774   # with a fresh cross-compiler works.
3775   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3776   # <limits.h> exists even on freestanding compilers.
3777   # On the NeXT, cc -E runs the code through the compiler's parser,
3778   # not just through cpp. "Syntax error" is here to catch this case.
3779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h.  */
3781 #ifdef __STDC__
3782 # include <limits.h>
3783 #else
3784 # include <assert.h>
3785 #endif
3786                      Syntax error
3787 _ACEOF
3788 if ac_fn_c_try_cpp "$LINENO"; then :
3789
3790 else
3791   # Broken: fails on valid input.
3792 continue
3793 fi
3794 rm -f conftest.err conftest.$ac_ext
3795
3796   # OK, works on sane cases.  Now check whether nonexistent headers
3797   # can be detected and how.
3798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h.  */
3800 #include <ac_nonexistent.h>
3801 _ACEOF
3802 if ac_fn_c_try_cpp "$LINENO"; then :
3803   # Broken: success on invalid input.
3804 continue
3805 else
3806   # Passes both tests.
3807 ac_preproc_ok=:
3808 break
3809 fi
3810 rm -f conftest.err conftest.$ac_ext
3811
3812 done
3813 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3814 rm -f conftest.err conftest.$ac_ext
3815 if $ac_preproc_ok; then :
3816
3817 else
3818   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3821 See \`config.log' for more details." "$LINENO" 5; }
3822 fi
3823
3824 ac_ext=c
3825 ac_cpp='$CPP $CPPFLAGS'
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829
3830
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3832 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3833 if test "${ac_cv_path_GREP+set}" = set; then :
3834   $as_echo_n "(cached) " >&6
3835 else
3836   if test -z "$GREP"; then
3837   ac_path_GREP_found=false
3838   # Loop through the user's path and test for each of PROGNAME-LIST
3839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3841 do
3842   IFS=$as_save_IFS
3843   test -z "$as_dir" && as_dir=.
3844     for ac_prog in grep ggrep; do
3845     for ac_exec_ext in '' $ac_executable_extensions; do
3846       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3847       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3848 # Check for GNU ac_path_GREP and select it if it is found.
3849   # Check for GNU $ac_path_GREP
3850 case `"$ac_path_GREP" --version 2>&1` in
3851 *GNU*)
3852   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3853 *)
3854   ac_count=0
3855   $as_echo_n 0123456789 >"conftest.in"
3856   while :
3857   do
3858     cat "conftest.in" "conftest.in" >"conftest.tmp"
3859     mv "conftest.tmp" "conftest.in"
3860     cp "conftest.in" "conftest.nl"
3861     $as_echo 'GREP' >> "conftest.nl"
3862     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3863     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3864     as_fn_arith $ac_count + 1 && ac_count=$as_val
3865     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3866       # Best one so far, save it but keep looking for a better one
3867       ac_cv_path_GREP="$ac_path_GREP"
3868       ac_path_GREP_max=$ac_count
3869     fi
3870     # 10*(2^10) chars as input seems more than enough
3871     test $ac_count -gt 10 && break
3872   done
3873   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3874 esac
3875
3876       $ac_path_GREP_found && break 3
3877     done
3878   done
3879   done
3880 IFS=$as_save_IFS
3881   if test -z "$ac_cv_path_GREP"; then
3882     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3883   fi
3884 else
3885   ac_cv_path_GREP=$GREP
3886 fi
3887
3888 fi
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3890 $as_echo "$ac_cv_path_GREP" >&6; }
3891  GREP="$ac_cv_path_GREP"
3892
3893
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3895 $as_echo_n "checking for egrep... " >&6; }
3896 if test "${ac_cv_path_EGREP+set}" = set; then :
3897   $as_echo_n "(cached) " >&6
3898 else
3899   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3900    then ac_cv_path_EGREP="$GREP -E"
3901    else
3902      if test -z "$EGREP"; then
3903   ac_path_EGREP_found=false
3904   # Loop through the user's path and test for each of PROGNAME-LIST
3905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3907 do
3908   IFS=$as_save_IFS
3909   test -z "$as_dir" && as_dir=.
3910     for ac_prog in egrep; do
3911     for ac_exec_ext in '' $ac_executable_extensions; do
3912       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3913       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3914 # Check for GNU ac_path_EGREP and select it if it is found.
3915   # Check for GNU $ac_path_EGREP
3916 case `"$ac_path_EGREP" --version 2>&1` in
3917 *GNU*)
3918   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3919 *)
3920   ac_count=0
3921   $as_echo_n 0123456789 >"conftest.in"
3922   while :
3923   do
3924     cat "conftest.in" "conftest.in" >"conftest.tmp"
3925     mv "conftest.tmp" "conftest.in"
3926     cp "conftest.in" "conftest.nl"
3927     $as_echo 'EGREP' >> "conftest.nl"
3928     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3929     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3930     as_fn_arith $ac_count + 1 && ac_count=$as_val
3931     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3932       # Best one so far, save it but keep looking for a better one
3933       ac_cv_path_EGREP="$ac_path_EGREP"
3934       ac_path_EGREP_max=$ac_count
3935     fi
3936     # 10*(2^10) chars as input seems more than enough
3937     test $ac_count -gt 10 && break
3938   done
3939   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3940 esac
3941
3942       $ac_path_EGREP_found && break 3
3943     done
3944   done
3945   done
3946 IFS=$as_save_IFS
3947   if test -z "$ac_cv_path_EGREP"; then
3948     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3949   fi
3950 else
3951   ac_cv_path_EGREP=$EGREP
3952 fi
3953
3954    fi
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3957 $as_echo "$ac_cv_path_EGREP" >&6; }
3958  EGREP="$ac_cv_path_EGREP"
3959
3960
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3962 $as_echo_n "checking for ANSI C header files... " >&6; }
3963 if test "${ac_cv_header_stdc+set}" = set; then :
3964   $as_echo_n "(cached) " >&6
3965 else
3966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h.  */
3968 #include <stdlib.h>
3969 #include <stdarg.h>
3970 #include <string.h>
3971 #include <float.h>
3972
3973 int
3974 main ()
3975 {
3976
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 if ac_fn_c_try_compile "$LINENO"; then :
3982   ac_cv_header_stdc=yes
3983 else
3984   ac_cv_header_stdc=no
3985 fi
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987
3988 if test $ac_cv_header_stdc = yes; then
3989   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h.  */
3992 #include <string.h>
3993
3994 _ACEOF
3995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3996   $EGREP "memchr" >/dev/null 2>&1; then :
3997
3998 else
3999   ac_cv_header_stdc=no
4000 fi
4001 rm -f conftest*
4002
4003 fi
4004
4005 if test $ac_cv_header_stdc = yes; then
4006   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h.  */
4009 #include <stdlib.h>
4010
4011 _ACEOF
4012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4013   $EGREP "free" >/dev/null 2>&1; then :
4014
4015 else
4016   ac_cv_header_stdc=no
4017 fi
4018 rm -f conftest*
4019
4020 fi
4021
4022 if test $ac_cv_header_stdc = yes; then
4023   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4024   if test "$cross_compiling" = yes; then :
4025   :
4026 else
4027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h.  */
4029 #include <ctype.h>
4030 #include <stdlib.h>
4031 #if ((' ' & 0x0FF) == 0x020)
4032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4034 #else
4035 # define ISLOWER(c) \
4036                    (('a' <= (c) && (c) <= 'i') \
4037                      || ('j' <= (c) && (c) <= 'r') \
4038                      || ('s' <= (c) && (c) <= 'z'))
4039 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4040 #endif
4041
4042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4043 int
4044 main ()
4045 {
4046   int i;
4047   for (i = 0; i < 256; i++)
4048     if (XOR (islower (i), ISLOWER (i))
4049         || toupper (i) != TOUPPER (i))
4050       return 2;
4051   return 0;
4052 }
4053 _ACEOF
4054 if ac_fn_c_try_run "$LINENO"; then :
4055
4056 else
4057   ac_cv_header_stdc=no
4058 fi
4059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4060   conftest.$ac_objext conftest.beam conftest.$ac_ext
4061 fi
4062
4063 fi
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4066 $as_echo "$ac_cv_header_stdc" >&6; }
4067 if test $ac_cv_header_stdc = yes; then
4068
4069 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4070
4071 fi
4072
4073 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4074 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4075                   inttypes.h stdint.h unistd.h
4076 do :
4077   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4078 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4079 "
4080 eval as_val=\$$as_ac_Header
4081    if test "x$as_val" = x""yes; then :
4082   cat >>confdefs.h <<_ACEOF
4083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 _ACEOF
4085
4086 fi
4087
4088 done
4089
4090
4091
4092
4093
4094   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4095 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4096   MINIX=yes
4097 else
4098   MINIX=
4099 fi
4100
4101
4102   if test "$MINIX" = yes; then
4103
4104 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4105
4106
4107 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4108
4109
4110 $as_echo "#define _MINIX 1" >>confdefs.h
4111
4112   fi
4113
4114         case "$host_os" in
4115     hpux*)
4116
4117 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4118
4119       ;;
4120   esac
4121
4122
4123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4124 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4125 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h.  */
4130
4131 #         define __EXTENSIONS__ 1
4132           $ac_includes_default
4133 int
4134 main ()
4135 {
4136
4137   ;
4138   return 0;
4139 }
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142   ac_cv_safe_to_define___extensions__=yes
4143 else
4144   ac_cv_safe_to_define___extensions__=no
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4149 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4150   test $ac_cv_safe_to_define___extensions__ = yes &&
4151     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4152
4153   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4154
4155   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4156
4157   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4158
4159   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4160
4161
4162 if test -n "$ac_tool_prefix"; then
4163   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4164 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4168   $as_echo_n "(cached) " >&6
4169 else
4170   if test -n "$RANLIB"; then
4171   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178     for ac_exec_ext in '' $ac_executable_extensions; do
4179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4180     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185   done
4186 IFS=$as_save_IFS
4187
4188 fi
4189 fi
4190 RANLIB=$ac_cv_prog_RANLIB
4191 if test -n "$RANLIB"; then
4192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4193 $as_echo "$RANLIB" >&6; }
4194 else
4195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4197 fi
4198
4199
4200 fi
4201 if test -z "$ac_cv_prog_RANLIB"; then
4202   ac_ct_RANLIB=$RANLIB
4203   # Extract the first word of "ranlib", so it can be a program name with args.
4204 set dummy ranlib; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4208   $as_echo_n "(cached) " >&6
4209 else
4210   if test -n "$ac_ct_RANLIB"; then
4211   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218     for ac_exec_ext in '' $ac_executable_extensions; do
4219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220     ac_cv_prog_ac_ct_RANLIB="ranlib"
4221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222     break 2
4223   fi
4224 done
4225   done
4226 IFS=$as_save_IFS
4227
4228 fi
4229 fi
4230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4231 if test -n "$ac_ct_RANLIB"; then
4232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4233 $as_echo "$ac_ct_RANLIB" >&6; }
4234 else
4235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4237 fi
4238
4239   if test "x$ac_ct_RANLIB" = x; then
4240     RANLIB=":"
4241   else
4242     case $cross_compiling:$ac_tool_warned in
4243 yes:)
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4246 ac_tool_warned=yes ;;
4247 esac
4248     RANLIB=$ac_ct_RANLIB
4249   fi
4250 else
4251   RANLIB="$ac_cv_prog_RANLIB"
4252 fi
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262   # Code from module arg-nonnull:
4263   # Code from module c++defs:
4264   # Code from module extensions:
4265
4266   # Code from module include_next:
4267   # Code from module memchr:
4268   # Code from module memmem:
4269   # Code from module memmem-simple:
4270   # Code from module multiarch:
4271   # Code from module stddef:
4272   # Code from module stdint:
4273   # Code from module string:
4274   # Code from module warn-on-use:
4275   # Code from module wchar:
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4278 $as_echo_n "checking target system type... " >&6; }
4279 if test "${ac_cv_target+set}" = set; then :
4280   $as_echo_n "(cached) " >&6
4281 else
4282   if test "x$target_alias" = x; then
4283   ac_cv_target=$ac_cv_host
4284 else
4285   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4286     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4287 fi
4288
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4291 $as_echo "$ac_cv_target" >&6; }
4292 case $ac_cv_target in
4293 *-*-*) ;;
4294 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4295 esac
4296 target=$ac_cv_target
4297 ac_save_IFS=$IFS; IFS='-'
4298 set x $ac_cv_target
4299 shift
4300 target_cpu=$1
4301 target_vendor=$2
4302 shift; shift
4303 # Remember, the first character of IFS is used to create $*,
4304 # except with old shells:
4305 target_os=$*
4306 IFS=$ac_save_IFS
4307 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4308
4309
4310 # The aliases save the names the user supplied, while $host etc.
4311 # will get canonicalized.
4312 test -n "$target_alias" &&
4313   test "$program_prefix$program_suffix$program_transform_name" = \
4314     NONENONEs,x,x, &&
4315   program_prefix=${target_alias}-
4316
4317 # The tests for host and target for $enable_largefile require
4318 # canonical names.
4319
4320
4321
4322 # As the $enable_largefile decision depends on --enable-plugins we must set it
4323 # even in directories otherwise not depending on the $plugins option.
4324
4325
4326 # Check whether --enable-plugins was given.
4327 if test "${enable_plugins+set}" = set; then :
4328   enableval=$enable_plugins; case "${enableval}" in
4329   yes | "") plugins=yes ;;
4330   no) plugins=no ;;
4331   *) plugins=yes ;;
4332  esac
4333 else
4334   plugins=no
4335 fi
4336
4337
4338
4339 case "${host}" in
4340   sparc-*-solaris*|i[3-7]86-*-solaris*)
4341     # On native 32bit sparc and ia32 solaris, large-file and procfs support
4342     # are mutually exclusive; and without procfs support, the bfd/ elf module
4343     # cannot provide certain routines such as elfcore_write_prpsinfo
4344     # or elfcore_write_prstatus.  So unless the user explicitly requested
4345     # large-file support through the --enable-largefile switch, disable
4346     # large-file support in favor of procfs support.
4347     test "${target}" = "${host}" -a "x$plugins" = xno \
4348       && : ${enable_largefile="no"}
4349     ;;
4350 esac
4351
4352 # Check whether --enable-largefile was given.
4353 if test "${enable_largefile+set}" = set; then :
4354   enableval=$enable_largefile;
4355 fi
4356
4357 if test "$enable_largefile" != no; then
4358
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4360 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4361 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4362   $as_echo_n "(cached) " >&6
4363 else
4364   ac_cv_sys_largefile_CC=no
4365      if test "$GCC" != yes; then
4366        ac_save_CC=$CC
4367        while :; do
4368          # IRIX 6.2 and later do not support large files by default,
4369          # so use the C compiler's -n32 option if that helps.
4370          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h.  */
4372 #include <sys/types.h>
4373  /* Check that off_t can represent 2**63 - 1 correctly.
4374     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4375     since some C++ compilers masquerading as C compilers
4376     incorrectly reject 9223372036854775807.  */
4377 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4378   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4379                        && LARGE_OFF_T % 2147483647 == 1)
4380                       ? 1 : -1];
4381 int
4382 main ()
4383 {
4384
4385   ;
4386   return 0;
4387 }
4388 _ACEOF
4389          if ac_fn_c_try_compile "$LINENO"; then :
4390   break
4391 fi
4392 rm -f core conftest.err conftest.$ac_objext
4393          CC="$CC -n32"
4394          if ac_fn_c_try_compile "$LINENO"; then :
4395   ac_cv_sys_largefile_CC=' -n32'; break
4396 fi
4397 rm -f core conftest.err conftest.$ac_objext
4398          break
4399        done
4400        CC=$ac_save_CC
4401        rm -f conftest.$ac_ext
4402     fi
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4405 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4406   if test "$ac_cv_sys_largefile_CC" != no; then
4407     CC=$CC$ac_cv_sys_largefile_CC
4408   fi
4409
4410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4411 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4412 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4413   $as_echo_n "(cached) " >&6
4414 else
4415   while :; do
4416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h.  */
4418 #include <sys/types.h>
4419  /* Check that off_t can represent 2**63 - 1 correctly.
4420     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4421     since some C++ compilers masquerading as C compilers
4422     incorrectly reject 9223372036854775807.  */
4423 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4424   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4425                        && LARGE_OFF_T % 2147483647 == 1)
4426                       ? 1 : -1];
4427 int
4428 main ()
4429 {
4430
4431   ;
4432   return 0;
4433 }
4434 _ACEOF
4435 if ac_fn_c_try_compile "$LINENO"; then :
4436   ac_cv_sys_file_offset_bits=no; break
4437 fi
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h.  */
4441 #define _FILE_OFFSET_BITS 64
4442 #include <sys/types.h>
4443  /* Check that off_t can represent 2**63 - 1 correctly.
4444     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4445     since some C++ compilers masquerading as C compilers
4446     incorrectly reject 9223372036854775807.  */
4447 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4448   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4449                        && LARGE_OFF_T % 2147483647 == 1)
4450                       ? 1 : -1];
4451 int
4452 main ()
4453 {
4454
4455   ;
4456   return 0;
4457 }
4458 _ACEOF
4459 if ac_fn_c_try_compile "$LINENO"; then :
4460   ac_cv_sys_file_offset_bits=64; break
4461 fi
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463   ac_cv_sys_file_offset_bits=unknown
4464   break
4465 done
4466 fi
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4468 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4469 case $ac_cv_sys_file_offset_bits in #(
4470   no | unknown) ;;
4471   *)
4472 cat >>confdefs.h <<_ACEOF
4473 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4474 _ACEOF
4475 ;;
4476 esac
4477 rm -rf conftest*
4478   if test $ac_cv_sys_file_offset_bits = unknown; then
4479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4480 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4481 if test "${ac_cv_sys_large_files+set}" = set; then :
4482   $as_echo_n "(cached) " >&6
4483 else
4484   while :; do
4485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h.  */
4487 #include <sys/types.h>
4488  /* Check that off_t can represent 2**63 - 1 correctly.
4489     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4490     since some C++ compilers masquerading as C compilers
4491     incorrectly reject 9223372036854775807.  */
4492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4493   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4494                        && LARGE_OFF_T % 2147483647 == 1)
4495                       ? 1 : -1];
4496 int
4497 main ()
4498 {
4499
4500   ;
4501   return 0;
4502 }
4503 _ACEOF
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505   ac_cv_sys_large_files=no; break
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h.  */
4510 #define _LARGE_FILES 1
4511 #include <sys/types.h>
4512  /* Check that off_t can represent 2**63 - 1 correctly.
4513     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4514     since some C++ compilers masquerading as C compilers
4515     incorrectly reject 9223372036854775807.  */
4516 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4517   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4518                        && LARGE_OFF_T % 2147483647 == 1)
4519                       ? 1 : -1];
4520 int
4521 main ()
4522 {
4523
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 if ac_fn_c_try_compile "$LINENO"; then :
4529   ac_cv_sys_large_files=1; break
4530 fi
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532   ac_cv_sys_large_files=unknown
4533   break
4534 done
4535 fi
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4537 $as_echo "$ac_cv_sys_large_files" >&6; }
4538 case $ac_cv_sys_large_files in #(
4539   no | unknown) ;;
4540   *)
4541 cat >>confdefs.h <<_ACEOF
4542 #define _LARGE_FILES $ac_cv_sys_large_files
4543 _ACEOF
4544 ;;
4545 esac
4546 rm -rf conftest*
4547   fi
4548 fi
4549
4550
4551
4552
4553
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4555 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4556 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4557   $as_echo_n "(cached) " >&6
4558 else
4559   am_cv_prog_cc_stdc=no
4560 ac_save_CC="$CC"
4561 # Don't try gcc -ansi; that turns off useful extensions and
4562 # breaks some systems' header files.
4563 # AIX                   -qlanglvl=ansi
4564 # Ultrix and OSF/1      -std1
4565 # HP-UX 10.20 and later -Ae
4566 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4567 # SVR4                  -Xc -D__EXTENSIONS__
4568 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4569 do
4570   CC="$ac_save_CC $ac_arg"
4571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h.  */
4573 #include <stdarg.h>
4574 #include <stdio.h>
4575 #include <sys/types.h>
4576 #include <sys/stat.h>
4577 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4578 struct buf { int x; };
4579 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4580 static char *e (p, i)
4581      char **p;
4582      int i;
4583 {
4584   return p[i];
4585 }
4586 static char *f (char * (*g) (char **, int), char **p, ...)
4587 {
4588   char *s;
4589   va_list v;
4590   va_start (v,p);
4591   s = g (p, va_arg (v,int));
4592   va_end (v);
4593   return s;
4594 }
4595 int test (int i, double x);
4596 struct s1 {int (*f) (int a);};
4597 struct s2 {int (*f) (double a);};
4598 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4599 int argc;
4600 char **argv;
4601
4602 int
4603 main ()
4604 {
4605
4606 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4607
4608   ;
4609   return 0;
4610 }
4611 _ACEOF
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613   am_cv_prog_cc_stdc="$ac_arg"; break
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 done
4617 CC="$ac_save_CC"
4618
4619 fi
4620
4621 if test -z "$am_cv_prog_cc_stdc"; then
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4623 $as_echo "none needed" >&6; }
4624 else
4625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4626 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4627 fi
4628 case "x$am_cv_prog_cc_stdc" in
4629   x|xno) ;;
4630   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4631 esac
4632
4633
4634 ac_aux_dir=
4635 for ac_dir in .. "$srcdir"/..; do
4636   for ac_t in install-sh install.sh shtool; do
4637     if test -f "$ac_dir/$ac_t"; then
4638       ac_aux_dir=$ac_dir
4639       ac_install_sh="$ac_aux_dir/$ac_t -c"
4640       break 2
4641     fi
4642   done
4643 done
4644 if test -z "$ac_aux_dir"; then
4645   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4646 fi
4647
4648 # These three variables are undocumented and unsupported,
4649 # and are intended to be withdrawn in a future Autoconf release.
4650 # They can cause serious problems if a builder's source tree is in a directory
4651 # whose full name contains unusual characters.
4652 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4653 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4654 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4655
4656
4657
4658
4659 # Dependency checking.
4660 rm -rf .tst 2>/dev/null
4661 mkdir .tst 2>/dev/null
4662 if test -d .tst; then
4663   am__leading_dot=.
4664 else
4665   am__leading_dot=_
4666 fi
4667 rmdir .tst 2>/dev/null
4668
4669 DEPDIR="${am__leading_dot}deps"
4670
4671 ac_config_commands="$ac_config_commands depdir"
4672
4673
4674 depcc="$CC"   am_compiler_list=
4675
4676 am_depcomp=$ac_aux_dir/depcomp
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4678 $as_echo_n "checking dependency style of $depcc... " >&6; }
4679 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4680   $as_echo_n "(cached) " >&6
4681 else
4682   if test -f "$am_depcomp"; then
4683   # We make a subdir and do the tests there.  Otherwise we can end up
4684   # making bogus files that we don't know about and never remove.  For
4685   # instance it was reported that on HP-UX the gcc test will end up
4686   # making a dummy file named `D' -- because `-MD' means `put the output
4687   # in D'.
4688   mkdir conftest.dir
4689   # Copy depcomp to subdir because otherwise we won't find it if we're
4690   # using a relative directory.
4691   cp "$am_depcomp" conftest.dir
4692   cd conftest.dir
4693   # We will build objects and dependencies in a subdirectory because
4694   # it helps to detect inapplicable dependency modes.  For instance
4695   # both Tru64's cc and ICC support -MD to output dependencies as a
4696   # side effect of compilation, but ICC will put the dependencies in
4697   # the current directory while Tru64 will put them in the object
4698   # directory.
4699   mkdir sub
4700
4701   am_cv_CC_dependencies_compiler_type=none
4702   if test "$am_compiler_list" = ""; then
4703      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4704   fi
4705   for depmode in $am_compiler_list; do
4706     if test $depmode = none; then break; fi
4707
4708     $as_echo "$as_me:$LINENO: trying $depmode" >&5
4709     # Setup a source with many dependencies, because some compilers
4710     # like to wrap large dependency lists on column 80 (with \), and
4711     # we should not choose a depcomp mode which is confused by this.
4712     #
4713     # We need to recreate these files for each test, as the compiler may
4714     # overwrite some of them when testing with obscure command lines.
4715     # This happens at least with the AIX C compiler.
4716     : > sub/conftest.c
4717     for i in 1 2 3 4 5 6; do
4718       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4719       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4720       # Solaris 8's {/usr,}/bin/sh.
4721       touch sub/conftst$i.h
4722     done
4723     echo "include sub/conftest.Po" > confmf
4724
4725     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4726     # mode.  It turns out that the SunPro C++ compiler does not properly
4727     # handle `-M -o', and we need to detect this.
4728     depcmd="depmode=$depmode \
4729        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4730        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4731        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4732     echo "| $depcmd" | sed -e 's/  */ /g' >&5
4733     if env $depcmd > conftest.err 2>&1 &&
4734        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4735        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4736        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4737       # icc doesn't choke on unknown options, it will just issue warnings
4738       # or remarks (even with -Werror).  So we grep stderr for any message
4739       # that says an option was ignored or not supported.
4740       # When given -MP, icc 7.0 and 7.1 complain thusly:
4741       #   icc: Command line warning: ignoring option '-M'; no argument required
4742       # The diagnosis changed in icc 8.0:
4743       #   icc: Command line remark: option '-MP' not supported
4744       if (grep 'ignoring option' conftest.err ||
4745           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4746         am_cv_CC_dependencies_compiler_type=$depmode
4747         $as_echo "$as_me:$LINENO: success" >&5
4748         break
4749       fi
4750     fi
4751     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4752     sed -e 's/^/| /' < conftest.err >&5
4753   done
4754
4755   cd ..
4756   rm -rf conftest.dir
4757 else
4758   am_cv_CC_dependencies_compiler_type=none
4759 fi
4760
4761 fi
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4763 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4764 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4765 then as_fn_error "no usable dependency style found" "$LINENO" 5
4766 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4767
4768 fi
4769
4770
4771 # Check for the 'make' the user wants to use.
4772 for ac_prog in make
4773 do
4774   # Extract the first word of "$ac_prog", so it can be a program name with args.
4775 set dummy $ac_prog; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_MAKE+set}" = set; then :
4779   $as_echo_n "(cached) " >&6
4780 else
4781   if test -n "$MAKE"; then
4782   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787   IFS=$as_save_IFS
4788   test -z "$as_dir" && as_dir=.
4789     for ac_exec_ext in '' $ac_executable_extensions; do
4790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791     ac_cv_prog_MAKE="$ac_prog"
4792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793     break 2
4794   fi
4795 done
4796   done
4797 IFS=$as_save_IFS
4798
4799 fi
4800 fi
4801 MAKE=$ac_cv_prog_MAKE
4802 if test -n "$MAKE"; then
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4804 $as_echo "$MAKE" >&6; }
4805 else
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810
4811   test -n "$MAKE" && break
4812 done
4813
4814 MAKE_IS_GNU=
4815 case "`$MAKE --version 2>&1 | sed 1q`" in
4816   *GNU*)
4817     MAKE_IS_GNU=yes
4818     ;;
4819 esac
4820  if test "$MAKE_IS_GNU" = yes; then
4821   GMAKE_TRUE=
4822   GMAKE_FALSE='#'
4823 else
4824   GMAKE_TRUE='#'
4825   GMAKE_FALSE=
4826 fi
4827
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4829 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4830 set x ${MAKE-make}
4831 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4832 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4833   $as_echo_n "(cached) " >&6
4834 else
4835   cat >conftest.make <<\_ACEOF
4836 SHELL = /bin/sh
4837 all:
4838         @echo '@@@%%%=$(MAKE)=@@@%%%'
4839 _ACEOF
4840 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4841 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4842   *@@@%%%=?*=@@@%%%*)
4843     eval ac_cv_prog_make_${ac_make}_set=yes;;
4844   *)
4845     eval ac_cv_prog_make_${ac_make}_set=no;;
4846 esac
4847 rm -f conftest.make
4848 fi
4849 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4851 $as_echo "yes" >&6; }
4852   SET_MAKE=
4853 else
4854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4856   SET_MAKE="MAKE=${MAKE-make}"
4857 fi
4858
4859
4860
4861 CONFIG_OBS=
4862 CONFIG_DEPS=
4863 CONFIG_SRCS=
4864 ENABLE_CFLAGS=
4865
4866 CONFIG_ALL=
4867 CONFIG_CLEAN=
4868 CONFIG_INSTALL=
4869 CONFIG_UNINSTALL=
4870
4871 # If we haven't got the data from the intl directory,
4872 # assume NLS is disabled.
4873 USE_NLS=no
4874 LIBINTL=
4875 LIBINTL_DEP=
4876 INCINTL=
4877 XGETTEXT=
4878 GMSGFMT=
4879 POSUB=
4880
4881 if test -f  ../intl/config.intl; then
4882   .  ../intl/config.intl
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4885 $as_echo_n "checking whether NLS is requested... " >&6; }
4886 if test x"$USE_NLS" != xyes; then
4887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4889 else
4890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4891 $as_echo "yes" >&6; }
4892
4893 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4894
4895
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4897 $as_echo_n "checking for catalogs to be installed... " >&6; }
4898   # Look for .po and .gmo files in the source directory.
4899   CATALOGS=
4900   XLINGUAS=
4901   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4902     # If there aren't any .gmo files the shell will give us the
4903     # literal string "../path/to/srcdir/po/*.gmo" which has to be
4904     # weeded out.
4905     case "$cat" in *\**)
4906       continue;;
4907     esac
4908     # The quadruple backslash is collapsed to a double backslash
4909     # by the backticks, then collapsed again by the double quotes,
4910     # leaving us with one backslash in the sed expression (right
4911     # before the dot that mustn't act as a wildcard).
4912     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4913     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4914     # The user is allowed to set LINGUAS to a list of languages to
4915     # install catalogs for.  If it's empty that means "all of them."
4916     if test "x$LINGUAS" = x; then
4917       CATALOGS="$CATALOGS $cat"
4918       XLINGUAS="$XLINGUAS $lang"
4919     else
4920       case "$LINGUAS" in *$lang*)
4921         CATALOGS="$CATALOGS $cat"
4922         XLINGUAS="$XLINGUAS $lang"
4923         ;;
4924       esac
4925     fi
4926   done
4927   LINGUAS="$XLINGUAS"
4928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4929 $as_echo "$LINGUAS" >&6; }
4930
4931
4932     DATADIRNAME=share
4933
4934   INSTOBJEXT=.mo
4935
4936   GENCAT=gencat
4937
4938   CATOBJEXT=.gmo
4939
4940 fi
4941
4942 localedir='${datadir}/locale'
4943
4944
4945 if test x"$USE_NLS" = xyes; then
4946    CONFIG_ALL="$CONFIG_ALL all-po"
4947    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4948    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4949    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4950 fi
4951
4952
4953
4954
4955
4956           LIBC_FATAL_STDERR_=1
4957   export LIBC_FATAL_STDERR_
4958
4959
4960
4961
4962
4963   for ac_header in $gl_header_list
4964 do :
4965   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4966 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4967 eval as_val=\$$as_ac_Header
4968    if test "x$as_val" = x""yes; then :
4969   cat >>confdefs.h <<_ACEOF
4970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4971 _ACEOF
4972
4973 fi
4974
4975 done
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985   for ac_func in $gl_func_list
4986 do :
4987   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4988 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4989 eval as_val=\$$as_ac_var
4990    if test "x$as_val" = x""yes; then :
4991   cat >>confdefs.h <<_ACEOF
4992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4993 _ACEOF
4994
4995 fi
4996 done
4997
4998
4999
5000
5001
5002
5003   GNULIB_MEMCHR=0;
5004   GNULIB_MEMMEM=0;
5005   GNULIB_MEMPCPY=0;
5006   GNULIB_MEMRCHR=0;
5007   GNULIB_RAWMEMCHR=0;
5008   GNULIB_STPCPY=0;
5009   GNULIB_STPNCPY=0;
5010   GNULIB_STRCHRNUL=0;
5011   GNULIB_STRDUP=0;
5012   GNULIB_STRNCAT=0;
5013   GNULIB_STRNDUP=0;
5014   GNULIB_STRNLEN=0;
5015   GNULIB_STRPBRK=0;
5016   GNULIB_STRSEP=0;
5017   GNULIB_STRSTR=0;
5018   GNULIB_STRCASESTR=0;
5019   GNULIB_STRTOK_R=0;
5020   GNULIB_MBSLEN=0;
5021   GNULIB_MBSNLEN=0;
5022   GNULIB_MBSCHR=0;
5023   GNULIB_MBSRCHR=0;
5024   GNULIB_MBSSTR=0;
5025   GNULIB_MBSCASECMP=0;
5026   GNULIB_MBSNCASECMP=0;
5027   GNULIB_MBSPCASECMP=0;
5028   GNULIB_MBSCASESTR=0;
5029   GNULIB_MBSCSPN=0;
5030   GNULIB_MBSPBRK=0;
5031   GNULIB_MBSSPN=0;
5032   GNULIB_MBSSEP=0;
5033   GNULIB_MBSTOK_R=0;
5034   GNULIB_STRERROR=0;
5035   GNULIB_STRSIGNAL=0;
5036   GNULIB_STRVERSCMP=0;
5037   HAVE_MBSLEN=0;
5038     HAVE_MEMCHR=1;
5039   HAVE_DECL_MEMMEM=1;
5040   HAVE_MEMPCPY=1;
5041   HAVE_DECL_MEMRCHR=1;
5042   HAVE_RAWMEMCHR=1;
5043   HAVE_STPCPY=1;
5044   HAVE_STPNCPY=1;
5045   HAVE_STRCHRNUL=1;
5046   HAVE_DECL_STRDUP=1;
5047   HAVE_DECL_STRNDUP=1;
5048   HAVE_DECL_STRNLEN=1;
5049   HAVE_STRPBRK=1;
5050   HAVE_STRSEP=1;
5051   HAVE_STRCASESTR=1;
5052   HAVE_DECL_STRTOK_R=1;
5053   HAVE_DECL_STRSIGNAL=1;
5054   HAVE_STRVERSCMP=1;
5055   REPLACE_MEMCHR=0;
5056   REPLACE_MEMMEM=0;
5057   REPLACE_STPNCPY=0;
5058   REPLACE_STRDUP=0;
5059   REPLACE_STRSTR=0;
5060   REPLACE_STRCASESTR=0;
5061   REPLACE_STRERROR=0;
5062   REPLACE_STRNCAT=0;
5063   REPLACE_STRNDUP=0;
5064   REPLACE_STRNLEN=0;
5065   REPLACE_STRSIGNAL=0;
5066   REPLACE_STRTOK_R=0;
5067   UNDEFINE_STRTOK_R=0;
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5082   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5083   # irrelevant for anonymous mappings.
5084   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5085 if test "x$ac_cv_func_mmap" = x""yes; then :
5086   gl_have_mmap=yes
5087 else
5088   gl_have_mmap=no
5089 fi
5090
5091
5092   # Try to allow MAP_ANONYMOUS.
5093   gl_have_mmap_anonymous=no
5094   if test $gl_have_mmap = yes; then
5095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5096 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5097     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h.  */
5099
5100 #include <sys/mman.h>
5101 #ifdef MAP_ANONYMOUS
5102     I cant identify this map.
5103 #endif
5104
5105 _ACEOF
5106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5107   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5108   gl_have_mmap_anonymous=yes
5109 fi
5110 rm -f conftest*
5111
5112     if test $gl_have_mmap_anonymous != yes; then
5113       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h.  */
5115
5116 #include <sys/mman.h>
5117 #ifdef MAP_ANON
5118     I cant identify this map.
5119 #endif
5120
5121 _ACEOF
5122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5123   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5124
5125 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5126
5127          gl_have_mmap_anonymous=yes
5128 fi
5129 rm -f conftest*
5130
5131     fi
5132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5133 $as_echo "$gl_have_mmap_anonymous" >&6; }
5134     if test $gl_have_mmap_anonymous = yes; then
5135
5136 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5137
5138     fi
5139   fi
5140
5141
5142   :
5143
5144
5145
5146
5147
5148
5149   :
5150
5151
5152
5153
5154
5155
5156
5157
5158   :
5159
5160
5161
5162
5163
5164   if test $ac_cv_func_memchr = yes; then
5165     # Detect platform-specific bugs in some versions of glibc:
5166     # memchr should not dereference anything with length 0
5167     #   http://bugzilla.redhat.com/499689
5168     # memchr should not dereference overestimated length after a match
5169     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5170     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5171     # Assume that memchr works on platforms that lack mprotect.
5172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5173 $as_echo_n "checking whether memchr works... " >&6; }
5174 if test "${gl_cv_func_memchr_works+set}" = set; then :
5175   $as_echo_n "(cached) " >&6
5176 else
5177   if test "$cross_compiling" = yes; then :
5178          gl_cv_func_memchr_works="guessing no"
5179 else
5180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h.  */
5182
5183 #include <string.h>
5184 #if HAVE_SYS_MMAN_H
5185 # include <fcntl.h>
5186 # include <unistd.h>
5187 # include <sys/types.h>
5188 # include <sys/mman.h>
5189 # ifndef MAP_FILE
5190 #  define MAP_FILE 0
5191 # endif
5192 #endif
5193
5194 int
5195 main ()
5196 {
5197
5198   char *fence = NULL;
5199 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5200 # if HAVE_MAP_ANONYMOUS
5201   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5202   const int fd = -1;
5203 # else /* !HAVE_MAP_ANONYMOUS */
5204   const int flags = MAP_FILE | MAP_PRIVATE;
5205   int fd = open ("/dev/zero", O_RDONLY, 0666);
5206   if (fd >= 0)
5207 # endif
5208     {
5209       int pagesize = getpagesize ();
5210       char *two_pages =
5211         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5212                        flags, fd, 0);
5213       if (two_pages != (char *)(-1)
5214           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5215         fence = two_pages + pagesize;
5216     }
5217 #endif
5218   if (fence)
5219     {
5220       if (memchr (fence, 0, 0))
5221         return 1;
5222       strcpy (fence - 9, "12345678");
5223       if (memchr (fence - 9, 0, 79) != fence - 1)
5224         return 2;
5225     }
5226   return 0;
5227
5228   ;
5229   return 0;
5230 }
5231 _ACEOF
5232 if ac_fn_c_try_run "$LINENO"; then :
5233   gl_cv_func_memchr_works=yes
5234 else
5235   gl_cv_func_memchr_works=no
5236 fi
5237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5238   conftest.$ac_objext conftest.beam conftest.$ac_ext
5239 fi
5240
5241 fi
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5243 $as_echo "$gl_cv_func_memchr_works" >&6; }
5244     if test "$gl_cv_func_memchr_works" != yes; then
5245       REPLACE_MEMCHR=1
5246     fi
5247   else
5248     HAVE_MEMCHR=0
5249   fi
5250   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5251
5252
5253
5254
5255
5256
5257
5258
5259   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5260
5261
5262   for ac_header in bp-sym.h
5263 do :
5264   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5265 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5266   cat >>confdefs.h <<_ACEOF
5267 #define HAVE_BP_SYM_H 1
5268 _ACEOF
5269
5270 fi
5271
5272 done
5273
5274
5275   fi
5276
5277
5278       ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5279 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5280   ac_have_decl=1
5281 else
5282   ac_have_decl=0
5283 fi
5284
5285 cat >>confdefs.h <<_ACEOF
5286 #define HAVE_DECL_MEMMEM $ac_have_decl
5287 _ACEOF
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302   for ac_func in memmem
5303 do :
5304   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5305 if test "x$ac_cv_func_memmem" = x""yes; then :
5306   cat >>confdefs.h <<_ACEOF
5307 #define HAVE_MEMMEM 1
5308 _ACEOF
5309
5310 else
5311
5312     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5313
5314 fi
5315 done
5316
5317
5318
5319   :
5320
5321
5322
5323
5324
5325   if test $ac_cv_have_decl_memmem = no; then
5326     HAVE_DECL_MEMMEM=0
5327   fi
5328   :
5329
5330
5331     gl_cv_c_multiarch=no
5332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h.  */
5334 #ifndef __APPLE_CC__
5335          not a universal capable compiler
5336         #endif
5337         typedef int dummy;
5338
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341
5342                arch=
5343      prev=
5344      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5345        if test -n "$prev"; then
5346          case $word in
5347            i?86 | x86_64 | ppc | ppc64)
5348              if test -z "$arch" || test "$arch" = "$word"; then
5349                arch="$word"
5350              else
5351                gl_cv_c_multiarch=yes
5352              fi
5353              ;;
5354          esac
5355          prev=
5356        else
5357          if test "x$word" = "x-arch"; then
5358            prev=arch
5359          fi
5360        fi
5361      done
5362
5363 fi
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365   if test $gl_cv_c_multiarch = yes; then
5366
5367 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5368
5369     APPLE_UNIVERSAL_BUILD=1
5370   else
5371     APPLE_UNIVERSAL_BUILD=0
5372   fi
5373
5374
5375
5376     REPLACE_NULL=0;
5377   HAVE_WCHAR_T=1;
5378   STDDEF_H='';
5379
5380
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5382 $as_echo_n "checking for wchar_t... " >&6; }
5383 if test "${gt_cv_c_wchar_t+set}" = set; then :
5384   $as_echo_n "(cached) " >&6
5385 else
5386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h.  */
5388 #include <stddef.h>
5389        wchar_t foo = (wchar_t)'\0';
5390 int
5391 main ()
5392 {
5393
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"; then :
5399   gt_cv_c_wchar_t=yes
5400 else
5401   gt_cv_c_wchar_t=no
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5406 $as_echo "$gt_cv_c_wchar_t" >&6; }
5407   if test $gt_cv_c_wchar_t = yes; then
5408
5409 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5410
5411   fi
5412
5413
5414
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5416 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5417 if test "${gl_cv_have_include_next+set}" = set; then :
5418   $as_echo_n "(cached) " >&6
5419 else
5420   rm -rf conftestd1a conftestd1b conftestd2
5421      mkdir conftestd1a conftestd1b conftestd2
5422                                                   cat <<EOF > conftestd1a/conftest.h
5423 #define DEFINED_IN_CONFTESTD1
5424 #include_next <conftest.h>
5425 #ifdef DEFINED_IN_CONFTESTD2
5426 int foo;
5427 #else
5428 #error "include_next doesn't work"
5429 #endif
5430 EOF
5431      cat <<EOF > conftestd1b/conftest.h
5432 #define DEFINED_IN_CONFTESTD1
5433 #include <stdio.h>
5434 #include_next <conftest.h>
5435 #ifdef DEFINED_IN_CONFTESTD2
5436 int foo;
5437 #else
5438 #error "include_next doesn't work"
5439 #endif
5440 EOF
5441      cat <<EOF > conftestd2/conftest.h
5442 #ifndef DEFINED_IN_CONFTESTD1
5443 #error "include_next test doesn't work"
5444 #endif
5445 #define DEFINED_IN_CONFTESTD2
5446 EOF
5447      gl_save_CPPFLAGS="$CPPFLAGS"
5448      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5449      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h.  */
5451 #include <conftest.h>
5452 _ACEOF
5453 if ac_fn_c_try_compile "$LINENO"; then :
5454   gl_cv_have_include_next=yes
5455 else
5456   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5457         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h.  */
5459 #include <conftest.h>
5460 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"; then :
5462   gl_cv_have_include_next=buggy
5463 else
5464   gl_cv_have_include_next=no
5465 fi
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467
5468 fi
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470      CPPFLAGS="$gl_save_CPPFLAGS"
5471      rm -rf conftestd1a conftestd1b conftestd2
5472
5473 fi
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5475 $as_echo "$gl_cv_have_include_next" >&6; }
5476   PRAGMA_SYSTEM_HEADER=
5477   if test $gl_cv_have_include_next = yes; then
5478     INCLUDE_NEXT=include_next
5479     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5480     if test -n "$GCC"; then
5481       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5482     fi
5483   else
5484     if test $gl_cv_have_include_next = buggy; then
5485       INCLUDE_NEXT=include
5486       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5487     else
5488       INCLUDE_NEXT=include
5489       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5490     fi
5491   fi
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5503 $as_echo_n "checking for long long int... " >&6; }
5504 if test "${ac_cv_type_long_long_int+set}" = set; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h.  */
5509
5510   /* For now, do not test the preprocessor; as of 2007 there are too many
5511          implementations with broken preprocessors.  Perhaps this can
5512          be revisited in 2012.  In the meantime, code should not expect
5513          #if to work with literals wider than 32 bits.  */
5514       /* Test literals.  */
5515       long long int ll = 9223372036854775807ll;
5516       long long int nll = -9223372036854775807LL;
5517       unsigned long long int ull = 18446744073709551615ULL;
5518       /* Test constant expressions.   */
5519       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5520                      ? 1 : -1)];
5521       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5522                      ? 1 : -1)];
5523       int i = 63;
5524 int
5525 main ()
5526 {
5527 /* Test availability of runtime routines for shift and division.  */
5528       long long int llmax = 9223372036854775807ll;
5529       unsigned long long int ullmax = 18446744073709551615ull;
5530       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5531               | (llmax / ll) | (llmax % ll)
5532               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5533               | (ullmax / ull) | (ullmax % ull));
5534   ;
5535   return 0;
5536 }
5537
5538 _ACEOF
5539 if ac_fn_c_try_link "$LINENO"; then :
5540                           if test "$cross_compiling" = yes; then :
5541   ac_cv_type_long_long_int=yes
5542 else
5543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h.  */
5545 #include <limits.h>
5546                #ifndef LLONG_MAX
5547                # define HALF \
5548                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5549                # define LLONG_MAX (HALF - 1 + HALF)
5550                #endif
5551 int
5552 main ()
5553 {
5554 long long int n = 1;
5555                int i;
5556                for (i = 0; ; i++)
5557                  {
5558                    long long int m = n << i;
5559                    if (m >> i != n)
5560                      return 1;
5561                    if (LLONG_MAX / 2 < m)
5562                      break;
5563                  }
5564                return 0;
5565   ;
5566   return 0;
5567 }
5568 _ACEOF
5569 if ac_fn_c_try_run "$LINENO"; then :
5570   ac_cv_type_long_long_int=yes
5571 else
5572   ac_cv_type_long_long_int=no
5573 fi
5574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5575   conftest.$ac_objext conftest.beam conftest.$ac_ext
5576 fi
5577
5578 else
5579   ac_cv_type_long_long_int=no
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext \
5582     conftest$ac_exeext conftest.$ac_ext
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5585 $as_echo "$ac_cv_type_long_long_int" >&6; }
5586   if test $ac_cv_type_long_long_int = yes; then
5587
5588 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5589
5590   fi
5591
5592
5593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5594 $as_echo_n "checking for unsigned long long int... " >&6; }
5595 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5596   $as_echo_n "(cached) " >&6
5597 else
5598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h.  */
5600
5601   /* For now, do not test the preprocessor; as of 2007 there are too many
5602          implementations with broken preprocessors.  Perhaps this can
5603          be revisited in 2012.  In the meantime, code should not expect
5604          #if to work with literals wider than 32 bits.  */
5605       /* Test literals.  */
5606       long long int ll = 9223372036854775807ll;
5607       long long int nll = -9223372036854775807LL;
5608       unsigned long long int ull = 18446744073709551615ULL;
5609       /* Test constant expressions.   */
5610       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5611                      ? 1 : -1)];
5612       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5613                      ? 1 : -1)];
5614       int i = 63;
5615 int
5616 main ()
5617 {
5618 /* Test availability of runtime routines for shift and division.  */
5619       long long int llmax = 9223372036854775807ll;
5620       unsigned long long int ullmax = 18446744073709551615ull;
5621       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5622               | (llmax / ll) | (llmax % ll)
5623               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5624               | (ullmax / ull) | (ullmax % ull));
5625   ;
5626   return 0;
5627 }
5628
5629 _ACEOF
5630 if ac_fn_c_try_link "$LINENO"; then :
5631   ac_cv_type_unsigned_long_long_int=yes
5632 else
5633   ac_cv_type_unsigned_long_long_int=no
5634 fi
5635 rm -f core conftest.err conftest.$ac_objext \
5636     conftest$ac_exeext conftest.$ac_ext
5637 fi
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5639 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5640   if test $ac_cv_type_unsigned_long_long_int = yes; then
5641
5642 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5643
5644   fi
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5657 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5658 if test "${ac_cv_c_restrict+set}" = set; then :
5659   $as_echo_n "(cached) " >&6
5660 else
5661   ac_cv_c_restrict=no
5662    # The order here caters to the fact that C++ does not require restrict.
5663    for ac_kw in __restrict __restrict__ _Restrict restrict; do
5664      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h.  */
5666 typedef int * int_ptr;
5667         int foo (int_ptr $ac_kw ip) {
5668         return ip[0];
5669        }
5670 int
5671 main ()
5672 {
5673 int s[1];
5674         int * $ac_kw t = s;
5675         t[0] = 0;
5676         return foo(t)
5677   ;
5678   return 0;
5679 }
5680 _ACEOF
5681 if ac_fn_c_try_compile "$LINENO"; then :
5682   ac_cv_c_restrict=$ac_kw
5683 fi
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685      test "$ac_cv_c_restrict" != no && break
5686    done
5687
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5690 $as_echo "$ac_cv_c_restrict" >&6; }
5691
5692  case $ac_cv_c_restrict in
5693    restrict) ;;
5694    no) $as_echo "#define restrict /**/" >>confdefs.h
5695  ;;
5696    *)  cat >>confdefs.h <<_ACEOF
5697 #define restrict $ac_cv_c_restrict
5698 _ACEOF
5699  ;;
5700  esac
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714   :
5715
5716
5717
5718
5719
5720
5721
5722      if test $gl_cv_have_include_next = yes; then
5723        gl_cv_next_string_h='<'string.h'>'
5724      else
5725        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5726 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5727 if test "${gl_cv_next_string_h+set}" = set; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730
5731           if test $ac_cv_header_string_h = yes; then
5732             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h.  */
5734 #include <string.h>
5735
5736 _ACEOF
5737                                                                                                 case "$host_os" in
5738               aix*) gl_absname_cpp="$ac_cpp -C" ;;
5739               *)    gl_absname_cpp="$ac_cpp" ;;
5740             esac
5741                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5742                sed -n '\#/string.h#{
5743                  s#.*"\(.*/string.h\)".*#\1#
5744                  s#^/[^/]#//&#
5745                  p
5746                  q
5747                }'`'"'
5748           else
5749             gl_cv_next_string_h='<'string.h'>'
5750           fi
5751
5752 fi
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5754 $as_echo "$gl_cv_next_string_h" >&6; }
5755      fi
5756      NEXT_STRING_H=$gl_cv_next_string_h
5757
5758      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5759        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5760        gl_next_as_first_directive='<'string.h'>'
5761      else
5762        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5763        gl_next_as_first_directive=$gl_cv_next_string_h
5764      fi
5765      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5766
5767
5768
5769
5770
5771     for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
5772     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5774 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5775 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5776   $as_echo_n "(cached) " >&6
5777 else
5778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h.  */
5780 #include <string.h>
5781
5782 int
5783 main ()
5784 {
5785 #undef $gl_func
5786   (void) $gl_func;
5787   ;
5788   return 0;
5789 }
5790 _ACEOF
5791 if ac_fn_c_try_compile "$LINENO"; then :
5792   eval "$as_gl_Symbol=yes"
5793 else
5794   eval "$as_gl_Symbol=no"
5795 fi
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797 fi
5798 eval ac_res=\$$as_gl_Symbol
5799                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5800 $as_echo "$ac_res" >&6; }
5801      eval as_val=\$$as_gl_Symbol
5802    if test "x$as_val" = x""yes; then :
5803   cat >>confdefs.h <<_ACEOF
5804 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5805 _ACEOF
5806
5807                      eval ac_cv_have_decl_$gl_func=yes
5808 fi
5809       done
5810
5811
5812
5813   GNULIB_BTOWC=0;
5814   GNULIB_WCTOB=0;
5815   GNULIB_MBSINIT=0;
5816   GNULIB_MBRTOWC=0;
5817   GNULIB_MBRLEN=0;
5818   GNULIB_MBSRTOWCS=0;
5819   GNULIB_MBSNRTOWCS=0;
5820   GNULIB_WCRTOMB=0;
5821   GNULIB_WCSRTOMBS=0;
5822   GNULIB_WCSNRTOMBS=0;
5823   GNULIB_WCWIDTH=0;
5824     HAVE_BTOWC=1;
5825   HAVE_MBSINIT=1;
5826   HAVE_MBRTOWC=1;
5827   HAVE_MBRLEN=1;
5828   HAVE_MBSRTOWCS=1;
5829   HAVE_MBSNRTOWCS=1;
5830   HAVE_WCRTOMB=1;
5831   HAVE_WCSRTOMBS=1;
5832   HAVE_WCSNRTOMBS=1;
5833   HAVE_DECL_WCTOB=1;
5834   HAVE_DECL_WCWIDTH=1;
5835   REPLACE_MBSTATE_T=0;
5836   REPLACE_BTOWC=0;
5837   REPLACE_WCTOB=0;
5838   REPLACE_MBSINIT=0;
5839   REPLACE_MBRTOWC=0;
5840   REPLACE_MBRLEN=0;
5841   REPLACE_MBSRTOWCS=0;
5842   REPLACE_MBSNRTOWCS=0;
5843   REPLACE_WCRTOMB=0;
5844   REPLACE_WCSRTOMBS=0;
5845   REPLACE_WCSNRTOMBS=0;
5846   REPLACE_WCWIDTH=0;
5847
5848
5849             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5850 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5851 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5852   $as_echo_n "(cached) " >&6
5853 else
5854   gl_cv_header_wchar_h_correct_inline=yes
5855      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h.  */
5857
5858        #define wcstod renamed_wcstod
5859 #include <wchar.h>
5860 extern int zero (void);
5861 int main () { return zero(); }
5862
5863 _ACEOF
5864      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5865   (eval $ac_compile) 2>&5
5866   ac_status=$?
5867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5868   test $ac_status = 0; }; then
5869        mv conftest.$ac_objext conftest1.$ac_objext
5870        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h.  */
5872
5873          #define wcstod renamed_wcstod
5874 #include <wchar.h>
5875 int zero (void) { return 0; }
5876
5877 _ACEOF
5878        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5879   (eval $ac_compile) 2>&5
5880   ac_status=$?
5881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5882   test $ac_status = 0; }; then
5883          mv conftest.$ac_objext conftest2.$ac_objext
5884          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5885            :
5886          else
5887            gl_cv_header_wchar_h_correct_inline=no
5888          fi
5889        fi
5890      fi
5891      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5892
5893 fi
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5895 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5896   if test $gl_cv_header_wchar_h_correct_inline = no; then
5897     as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5898 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5899 C99 mode. You have four options:
5900   - Add the flag -fgnu89-inline to CC and reconfigure, or
5901   - Fix your include files, using parts of
5902     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5903   - Use a gcc version older than 4.3, or
5904   - Don't use the flags -std=c99 or -std=gnu99.
5905 Configuration aborted." "$LINENO" 5
5906   fi
5907
5908
5909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5910 $as_echo_n "checking for wint_t... " >&6; }
5911 if test "${gt_cv_c_wint_t+set}" = set; then :
5912   $as_echo_n "(cached) " >&6
5913 else
5914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h.  */
5916
5917 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5918    <wchar.h>.
5919    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5920    before <wchar.h>.  */
5921 #include <stddef.h>
5922 #include <stdio.h>
5923 #include <time.h>
5924 #include <wchar.h>
5925        wint_t foo = (wchar_t)'\0';
5926 int
5927 main ()
5928 {
5929
5930   ;
5931   return 0;
5932 }
5933 _ACEOF
5934 if ac_fn_c_try_compile "$LINENO"; then :
5935   gt_cv_c_wint_t=yes
5936 else
5937   gt_cv_c_wint_t=no
5938 fi
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 fi
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5942 $as_echo "$gt_cv_c_wint_t" >&6; }
5943   if test $gt_cv_c_wint_t = yes; then
5944
5945 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5946
5947   fi
5948
5949
5950    if false; then
5951   GL_COND_LIBTOOL_TRUE=
5952   GL_COND_LIBTOOL_FALSE='#'
5953 else
5954   GL_COND_LIBTOOL_TRUE='#'
5955   GL_COND_LIBTOOL_FALSE=
5956 fi
5957
5958   gl_cond_libtool=false
5959   gl_libdeps=
5960   gl_ltlibdeps=
5961   gl_m4_base='gnulib/m4'
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971   gl_source_base='gnulib'
5972   # Code from module arg-nonnull:
5973   # Code from module c++defs:
5974   # Code from module extensions:
5975   # Code from module include_next:
5976   # Code from module memchr:
5977
5978
5979
5980
5981   GNULIB_MEMCHR=1
5982
5983
5984
5985 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
5986
5987
5988
5989   # Code from module memmem:
5990
5991
5992   if test $ac_cv_have_decl_memmem = yes; then
5993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5994 $as_echo_n "checking whether memmem works in linear time... " >&6; }
5995 if test "${gl_cv_func_memmem_works+set}" = set; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998   if test "$cross_compiling" = yes; then :
5999                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h.  */
6001
6002 #include <features.h>
6003 #ifdef __GNU_LIBRARY__
6004  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6005   Lucky user
6006  #endif
6007 #endif
6008 #ifdef __CYGWIN__
6009  #include <cygwin/version.h>
6010  #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6011   Lucky user
6012  #endif
6013 #endif
6014
6015 _ACEOF
6016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6017   $EGREP "Lucky user" >/dev/null 2>&1; then :
6018   gl_cv_func_memmem_works=yes
6019 else
6020   gl_cv_func_memmem_works="guessing no"
6021 fi
6022 rm -f conftest*
6023
6024
6025 else
6026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h.  */
6028
6029 #include <signal.h> /* for signal */
6030 #include <string.h> /* for memmem */
6031 #include <stdlib.h> /* for malloc */
6032 #include <unistd.h> /* for alarm */
6033
6034 int
6035 main ()
6036 {
6037 size_t m = 1000000;
6038     char *haystack = (char *) malloc (2 * m + 1);
6039     char *needle = (char *) malloc (m + 1);
6040     void *result = 0;
6041     /* Failure to compile this test due to missing alarm is okay,
6042        since all such platforms (mingw) also lack memmem.  */
6043     signal (SIGALRM, SIG_DFL);
6044     alarm (5);
6045     /* Check for quadratic performance.  */
6046     if (haystack && needle)
6047       {
6048         memset (haystack, 'A', 2 * m);
6049         haystack[2 * m] = 'B';
6050         memset (needle, 'A', m);
6051         needle[m] = 'B';
6052         result = memmem (haystack, 2 * m + 1, needle, m + 1);
6053       }
6054     /* Check for empty needle behavior.  */
6055     return !result || !memmem ("a", 1, 0, 0);
6056   ;
6057   return 0;
6058 }
6059 _ACEOF
6060 if ac_fn_c_try_run "$LINENO"; then :
6061   gl_cv_func_memmem_works=yes
6062 else
6063   gl_cv_func_memmem_works=no
6064 fi
6065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6066   conftest.$ac_objext conftest.beam conftest.$ac_ext
6067 fi
6068
6069
6070 fi
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6072 $as_echo "$gl_cv_func_memmem_works" >&6; }
6073     if test "$gl_cv_func_memmem_works" != yes; then
6074       REPLACE_MEMMEM=1
6075
6076
6077
6078
6079
6080
6081
6082
6083   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6084
6085     fi
6086   fi
6087
6088   # Code from module memmem-simple:
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101   for ac_func in memmem
6102 do :
6103   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6104 if test "x$ac_cv_func_memmem" = x""yes; then :
6105   cat >>confdefs.h <<_ACEOF
6106 #define HAVE_MEMMEM 1
6107 _ACEOF
6108
6109 else
6110
6111     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6112
6113 fi
6114 done
6115
6116
6117
6118   :
6119
6120
6121
6122
6123
6124   if test $ac_cv_have_decl_memmem = no; then
6125     HAVE_DECL_MEMMEM=0
6126   fi
6127   :
6128
6129
6130
6131
6132   GNULIB_MEMMEM=1
6133
6134
6135
6136 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6137
6138
6139
6140   # Code from module multiarch:
6141
6142   # Code from module stddef:
6143
6144
6145
6146   if test $gt_cv_c_wchar_t = no; then
6147     HAVE_WCHAR_T=0
6148     STDDEF_H=stddef.h
6149   fi
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6151 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6152 if test "${gl_cv_decl_null_works+set}" = set; then :
6153   $as_echo_n "(cached) " >&6
6154 else
6155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h.  */
6157 #include <stddef.h>
6158       int test[2 * (sizeof NULL == sizeof (void *)) -1];
6159
6160 int
6161 main ()
6162 {
6163
6164   ;
6165   return 0;
6166 }
6167 _ACEOF
6168 if ac_fn_c_try_compile "$LINENO"; then :
6169   gl_cv_decl_null_works=yes
6170 else
6171   gl_cv_decl_null_works=no
6172 fi
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 fi
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6176 $as_echo "$gl_cv_decl_null_works" >&6; }
6177   if test $gl_cv_decl_null_works = no; then
6178     REPLACE_NULL=1
6179     STDDEF_H=stddef.h
6180   fi
6181   if test -n "$STDDEF_H"; then
6182
6183
6184
6185
6186   :
6187
6188
6189
6190
6191
6192
6193
6194      if test $gl_cv_have_include_next = yes; then
6195        gl_cv_next_stddef_h='<'stddef.h'>'
6196      else
6197        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6198 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6199 if test "${gl_cv_next_stddef_h+set}" = set; then :
6200   $as_echo_n "(cached) " >&6
6201 else
6202
6203           if test $ac_cv_header_stddef_h = yes; then
6204             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h.  */
6206 #include <stddef.h>
6207
6208 _ACEOF
6209                                                                                                 case "$host_os" in
6210               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6211               *)    gl_absname_cpp="$ac_cpp" ;;
6212             esac
6213                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6214                sed -n '\#/stddef.h#{
6215                  s#.*"\(.*/stddef.h\)".*#\1#
6216                  s#^/[^/]#//&#
6217                  p
6218                  q
6219                }'`'"'
6220           else
6221             gl_cv_next_stddef_h='<'stddef.h'>'
6222           fi
6223
6224 fi
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6226 $as_echo "$gl_cv_next_stddef_h" >&6; }
6227      fi
6228      NEXT_STDDEF_H=$gl_cv_next_stddef_h
6229
6230      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6231        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6232        gl_next_as_first_directive='<'stddef.h'>'
6233      else
6234        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6235        gl_next_as_first_directive=$gl_cv_next_stddef_h
6236      fi
6237      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6238
6239
6240
6241   fi
6242
6243   # Code from module stdint:
6244
6245
6246
6247   if test $ac_cv_type_long_long_int = yes; then
6248     HAVE_LONG_LONG_INT=1
6249   else
6250     HAVE_LONG_LONG_INT=0
6251   fi
6252
6253
6254   if test $ac_cv_type_unsigned_long_long_int = yes; then
6255     HAVE_UNSIGNED_LONG_LONG_INT=1
6256   else
6257     HAVE_UNSIGNED_LONG_LONG_INT=0
6258   fi
6259
6260
6261       if test $ac_cv_header_inttypes_h = yes; then
6262     HAVE_INTTYPES_H=1
6263   else
6264     HAVE_INTTYPES_H=0
6265   fi
6266
6267
6268       if test $ac_cv_header_sys_types_h = yes; then
6269     HAVE_SYS_TYPES_H=1
6270   else
6271     HAVE_SYS_TYPES_H=0
6272   fi
6273
6274
6275
6276
6277
6278
6279   :
6280
6281
6282
6283
6284
6285
6286
6287      if test $gl_cv_have_include_next = yes; then
6288        gl_cv_next_stdint_h='<'stdint.h'>'
6289      else
6290        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6291 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6292 if test "${gl_cv_next_stdint_h+set}" = set; then :
6293   $as_echo_n "(cached) " >&6
6294 else
6295
6296           if test $ac_cv_header_stdint_h = yes; then
6297             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h.  */
6299 #include <stdint.h>
6300
6301 _ACEOF
6302                                                                                                 case "$host_os" in
6303               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6304               *)    gl_absname_cpp="$ac_cpp" ;;
6305             esac
6306                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6307                sed -n '\#/stdint.h#{
6308                  s#.*"\(.*/stdint.h\)".*#\1#
6309                  s#^/[^/]#//&#
6310                  p
6311                  q
6312                }'`'"'
6313           else
6314             gl_cv_next_stdint_h='<'stdint.h'>'
6315           fi
6316
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6319 $as_echo "$gl_cv_next_stdint_h" >&6; }
6320      fi
6321      NEXT_STDINT_H=$gl_cv_next_stdint_h
6322
6323      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6324        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6325        gl_next_as_first_directive='<'stdint.h'>'
6326      else
6327        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6328        gl_next_as_first_directive=$gl_cv_next_stdint_h
6329      fi
6330      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6331
6332
6333
6334   if test $ac_cv_header_stdint_h = yes; then
6335     HAVE_STDINT_H=1
6336   else
6337     HAVE_STDINT_H=0
6338   fi
6339
6340
6341     if test $ac_cv_header_stdint_h = yes; then
6342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6343 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6344 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347   gl_cv_header_working_stdint_h=no
6348        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h.  */
6350
6351
6352 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6353 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6354 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6355 #include <stdint.h>
6356 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
6357 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6358 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6359 #endif
6360
6361
6362   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6363      included before <wchar.h>.  */
6364   #include <stddef.h>
6365   #include <signal.h>
6366   #if HAVE_WCHAR_H
6367   # include <stdio.h>
6368   # include <time.h>
6369   # include <wchar.h>
6370   #endif
6371
6372
6373 #ifdef INT8_MAX
6374 int8_t a1 = INT8_MAX;
6375 int8_t a1min = INT8_MIN;
6376 #endif
6377 #ifdef INT16_MAX
6378 int16_t a2 = INT16_MAX;
6379 int16_t a2min = INT16_MIN;
6380 #endif
6381 #ifdef INT32_MAX
6382 int32_t a3 = INT32_MAX;
6383 int32_t a3min = INT32_MIN;
6384 #endif
6385 #ifdef INT64_MAX
6386 int64_t a4 = INT64_MAX;
6387 int64_t a4min = INT64_MIN;
6388 #endif
6389 #ifdef UINT8_MAX
6390 uint8_t b1 = UINT8_MAX;
6391 #else
6392 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6393 #endif
6394 #ifdef UINT16_MAX
6395 uint16_t b2 = UINT16_MAX;
6396 #endif
6397 #ifdef UINT32_MAX
6398 uint32_t b3 = UINT32_MAX;
6399 #endif
6400 #ifdef UINT64_MAX
6401 uint64_t b4 = UINT64_MAX;
6402 #endif
6403 int_least8_t c1 = INT8_C (0x7f);
6404 int_least8_t c1max = INT_LEAST8_MAX;
6405 int_least8_t c1min = INT_LEAST8_MIN;
6406 int_least16_t c2 = INT16_C (0x7fff);
6407 int_least16_t c2max = INT_LEAST16_MAX;
6408 int_least16_t c2min = INT_LEAST16_MIN;
6409 int_least32_t c3 = INT32_C (0x7fffffff);
6410 int_least32_t c3max = INT_LEAST32_MAX;
6411 int_least32_t c3min = INT_LEAST32_MIN;
6412 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6413 int_least64_t c4max = INT_LEAST64_MAX;
6414 int_least64_t c4min = INT_LEAST64_MIN;
6415 uint_least8_t d1 = UINT8_C (0xff);
6416 uint_least8_t d1max = UINT_LEAST8_MAX;
6417 uint_least16_t d2 = UINT16_C (0xffff);
6418 uint_least16_t d2max = UINT_LEAST16_MAX;
6419 uint_least32_t d3 = UINT32_C (0xffffffff);
6420 uint_least32_t d3max = UINT_LEAST32_MAX;
6421 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6422 uint_least64_t d4max = UINT_LEAST64_MAX;
6423 int_fast8_t e1 = INT_FAST8_MAX;
6424 int_fast8_t e1min = INT_FAST8_MIN;
6425 int_fast16_t e2 = INT_FAST16_MAX;
6426 int_fast16_t e2min = INT_FAST16_MIN;
6427 int_fast32_t e3 = INT_FAST32_MAX;
6428 int_fast32_t e3min = INT_FAST32_MIN;
6429 int_fast64_t e4 = INT_FAST64_MAX;
6430 int_fast64_t e4min = INT_FAST64_MIN;
6431 uint_fast8_t f1 = UINT_FAST8_MAX;
6432 uint_fast16_t f2 = UINT_FAST16_MAX;
6433 uint_fast32_t f3 = UINT_FAST32_MAX;
6434 uint_fast64_t f4 = UINT_FAST64_MAX;
6435 #ifdef INTPTR_MAX
6436 intptr_t g = INTPTR_MAX;
6437 intptr_t gmin = INTPTR_MIN;
6438 #endif
6439 #ifdef UINTPTR_MAX
6440 uintptr_t h = UINTPTR_MAX;
6441 #endif
6442 intmax_t i = INTMAX_MAX;
6443 uintmax_t j = UINTMAX_MAX;
6444
6445 #include <limits.h> /* for CHAR_BIT */
6446 #define TYPE_MINIMUM(t) \
6447   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6448 #define TYPE_MAXIMUM(t) \
6449   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6450 struct s {
6451   int check_PTRDIFF:
6452       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6453       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6454       ? 1 : -1;
6455   /* Detect bug in FreeBSD 6.0 / ia64.  */
6456   int check_SIG_ATOMIC:
6457       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6458       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6459       ? 1 : -1;
6460   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6461   int check_WCHAR:
6462       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6463       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6464       ? 1 : -1;
6465   /* Detect bug in mingw.  */
6466   int check_WINT:
6467       WINT_MIN == TYPE_MINIMUM (wint_t)
6468       && WINT_MAX == TYPE_MAXIMUM (wint_t)
6469       ? 1 : -1;
6470
6471   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
6472   int check_UINT8_C:
6473         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6474   int check_UINT16_C:
6475         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6476
6477   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
6478 #ifdef UINT8_MAX
6479   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6480 #endif
6481 #ifdef UINT16_MAX
6482   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6483 #endif
6484 #ifdef UINT32_MAX
6485   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6486 #endif
6487 #ifdef UINT64_MAX
6488   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6489 #endif
6490   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6491   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6492   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6493   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6494   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6495   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6496   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6497   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6498   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6499   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6500   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6501 };
6502
6503 int
6504 main ()
6505 {
6506
6507   ;
6508   return 0;
6509 }
6510 _ACEOF
6511 if ac_fn_c_try_compile "$LINENO"; then :
6512                                                     if test "$cross_compiling" = yes; then :
6513                  gl_cv_header_working_stdint_h=yes
6514
6515 else
6516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h.  */
6518
6519
6520 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6521 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6522 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6523 #include <stdint.h>
6524
6525
6526   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6527      included before <wchar.h>.  */
6528   #include <stddef.h>
6529   #include <signal.h>
6530   #if HAVE_WCHAR_H
6531   # include <stdio.h>
6532   # include <time.h>
6533   # include <wchar.h>
6534   #endif
6535
6536
6537 #include <stdio.h>
6538 #include <string.h>
6539 #define MVAL(macro) MVAL1(macro)
6540 #define MVAL1(expression) #expression
6541 static const char *macro_values[] =
6542   {
6543 #ifdef INT8_MAX
6544     MVAL (INT8_MAX),
6545 #endif
6546 #ifdef INT16_MAX
6547     MVAL (INT16_MAX),
6548 #endif
6549 #ifdef INT32_MAX
6550     MVAL (INT32_MAX),
6551 #endif
6552 #ifdef INT64_MAX
6553     MVAL (INT64_MAX),
6554 #endif
6555 #ifdef UINT8_MAX
6556     MVAL (UINT8_MAX),
6557 #endif
6558 #ifdef UINT16_MAX
6559     MVAL (UINT16_MAX),
6560 #endif
6561 #ifdef UINT32_MAX
6562     MVAL (UINT32_MAX),
6563 #endif
6564 #ifdef UINT64_MAX
6565     MVAL (UINT64_MAX),
6566 #endif
6567     NULL
6568   };
6569
6570 int
6571 main ()
6572 {
6573
6574   const char **mv;
6575   for (mv = macro_values; *mv != NULL; mv++)
6576     {
6577       const char *value = *mv;
6578       /* Test whether it looks like a cast expression.  */
6579       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6580           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6581           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6582           || strncmp (value, "((int)"/*)*/, 6) == 0
6583           || strncmp (value, "((signed short)"/*)*/, 15) == 0
6584           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6585         return 1;
6586     }
6587   return 0;
6588
6589   ;
6590   return 0;
6591 }
6592 _ACEOF
6593 if ac_fn_c_try_run "$LINENO"; then :
6594   gl_cv_header_working_stdint_h=yes
6595 fi
6596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6597   conftest.$ac_objext conftest.beam conftest.$ac_ext
6598 fi
6599
6600
6601 fi
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603
6604 fi
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6606 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6607   fi
6608   if test "$gl_cv_header_working_stdint_h" = yes; then
6609     STDINT_H=
6610   else
6611             for ac_header in sys/inttypes.h sys/bitypes.h
6612 do :
6613   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6614 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6615 eval as_val=\$$as_ac_Header
6616    if test "x$as_val" = x""yes; then :
6617   cat >>confdefs.h <<_ACEOF
6618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6619 _ACEOF
6620
6621 fi
6622
6623 done
6624
6625     if test $ac_cv_header_sys_inttypes_h = yes; then
6626       HAVE_SYS_INTTYPES_H=1
6627     else
6628       HAVE_SYS_INTTYPES_H=0
6629     fi
6630
6631     if test $ac_cv_header_sys_bitypes_h = yes; then
6632       HAVE_SYS_BITYPES_H=1
6633     else
6634       HAVE_SYS_BITYPES_H=0
6635     fi
6636
6637
6638
6639   :
6640
6641
6642
6643
6644
6645
6646
6647
6648   if test $APPLE_UNIVERSAL_BUILD = 0; then
6649
6650
6651   for gltype in ptrdiff_t size_t ; do
6652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6653 $as_echo_n "checking for bit size of $gltype... " >&6; }
6654 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6655   $as_echo_n "(cached) " >&6
6656 else
6657   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
6658   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6659      included before <wchar.h>.  */
6660   #include <stddef.h>
6661   #include <signal.h>
6662   #if HAVE_WCHAR_H
6663   # include <stdio.h>
6664   # include <time.h>
6665   # include <wchar.h>
6666   #endif
6667
6668 #include <limits.h>"; then :
6669
6670 else
6671   result=unknown
6672 fi
6673
6674        eval gl_cv_bitsizeof_${gltype}=\$result
6675
6676 fi
6677 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6678                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6679 $as_echo "$ac_res" >&6; }
6680     eval result=\$gl_cv_bitsizeof_${gltype}
6681     if test $result = unknown; then
6682                                                 result=0
6683     fi
6684     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6685     cat >>confdefs.h <<_ACEOF
6686 #define BITSIZEOF_${GLTYPE} $result
6687 _ACEOF
6688
6689     eval BITSIZEOF_${GLTYPE}=\$result
6690   done
6691
6692
6693   fi
6694
6695
6696   for gltype in sig_atomic_t wchar_t wint_t ; do
6697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6698 $as_echo_n "checking for bit size of $gltype... " >&6; }
6699 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6700   $as_echo_n "(cached) " >&6
6701 else
6702   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
6703   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6704      included before <wchar.h>.  */
6705   #include <stddef.h>
6706   #include <signal.h>
6707   #if HAVE_WCHAR_H
6708   # include <stdio.h>
6709   # include <time.h>
6710   # include <wchar.h>
6711   #endif
6712
6713 #include <limits.h>"; then :
6714
6715 else
6716   result=unknown
6717 fi
6718
6719        eval gl_cv_bitsizeof_${gltype}=\$result
6720
6721 fi
6722 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6723                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6724 $as_echo "$ac_res" >&6; }
6725     eval result=\$gl_cv_bitsizeof_${gltype}
6726     if test $result = unknown; then
6727                                                 result=0
6728     fi
6729     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6730     cat >>confdefs.h <<_ACEOF
6731 #define BITSIZEOF_${GLTYPE} $result
6732 _ACEOF
6733
6734     eval BITSIZEOF_${GLTYPE}=\$result
6735   done
6736
6737
6738
6739
6740   for gltype in sig_atomic_t wchar_t wint_t ; do
6741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6742 $as_echo_n "checking whether $gltype is signed... " >&6; }
6743 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6744   $as_echo_n "(cached) " >&6
6745 else
6746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h.  */
6748
6749   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6750      included before <wchar.h>.  */
6751   #include <stddef.h>
6752   #include <signal.h>
6753   #if HAVE_WCHAR_H
6754   # include <stdio.h>
6755   # include <time.h>
6756   # include <wchar.h>
6757   #endif
6758
6759             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6760 int
6761 main ()
6762 {
6763
6764   ;
6765   return 0;
6766 }
6767 _ACEOF
6768 if ac_fn_c_try_compile "$LINENO"; then :
6769   result=yes
6770 else
6771   result=no
6772 fi
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774        eval gl_cv_type_${gltype}_signed=\$result
6775
6776 fi
6777 eval ac_res=\$gl_cv_type_${gltype}_signed
6778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6779 $as_echo "$ac_res" >&6; }
6780     eval result=\$gl_cv_type_${gltype}_signed
6781     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6782     if test "$result" = yes; then
6783       cat >>confdefs.h <<_ACEOF
6784 #define HAVE_SIGNED_${GLTYPE} 1
6785 _ACEOF
6786
6787       eval HAVE_SIGNED_${GLTYPE}=1
6788     else
6789       eval HAVE_SIGNED_${GLTYPE}=0
6790     fi
6791   done
6792
6793
6794   gl_cv_type_ptrdiff_t_signed=yes
6795   gl_cv_type_size_t_signed=no
6796   if test $APPLE_UNIVERSAL_BUILD = 0; then
6797
6798
6799   for gltype in ptrdiff_t size_t ; do
6800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6801 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6802 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   eval gl_cv_type_${gltype}_suffix=no
6806        eval result=\$gl_cv_type_${gltype}_signed
6807        if test "$result" = yes; then
6808          glsufu=
6809        else
6810          glsufu=u
6811        fi
6812        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6813          case $glsuf in
6814            '')  gltype1='int';;
6815            l)   gltype1='long int';;
6816            ll)  gltype1='long long int';;
6817            i64) gltype1='__int64';;
6818            u)   gltype1='unsigned int';;
6819            ul)  gltype1='unsigned long int';;
6820            ull) gltype1='unsigned long long int';;
6821            ui64)gltype1='unsigned __int64';;
6822          esac
6823          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h.  */
6825
6826   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6827      included before <wchar.h>.  */
6828   #include <stddef.h>
6829   #include <signal.h>
6830   #if HAVE_WCHAR_H
6831   # include <stdio.h>
6832   # include <time.h>
6833   # include <wchar.h>
6834   #endif
6835
6836               extern $gltype foo;
6837               extern $gltype1 foo;
6838 int
6839 main ()
6840 {
6841
6842   ;
6843   return 0;
6844 }
6845 _ACEOF
6846 if ac_fn_c_try_compile "$LINENO"; then :
6847   eval gl_cv_type_${gltype}_suffix=\$glsuf
6848 fi
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850          eval result=\$gl_cv_type_${gltype}_suffix
6851          test "$result" != no && break
6852        done
6853 fi
6854 eval ac_res=\$gl_cv_type_${gltype}_suffix
6855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6856 $as_echo "$ac_res" >&6; }
6857     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6858     eval result=\$gl_cv_type_${gltype}_suffix
6859     test "$result" = no && result=
6860     eval ${GLTYPE}_SUFFIX=\$result
6861     cat >>confdefs.h <<_ACEOF
6862 #define ${GLTYPE}_SUFFIX $result
6863 _ACEOF
6864
6865   done
6866
6867
6868   fi
6869
6870
6871   for gltype in sig_atomic_t wchar_t wint_t ; do
6872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6873 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6874 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6875   $as_echo_n "(cached) " >&6
6876 else
6877   eval gl_cv_type_${gltype}_suffix=no
6878        eval result=\$gl_cv_type_${gltype}_signed
6879        if test "$result" = yes; then
6880          glsufu=
6881        else
6882          glsufu=u
6883        fi
6884        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6885          case $glsuf in
6886            '')  gltype1='int';;
6887            l)   gltype1='long int';;
6888            ll)  gltype1='long long int';;
6889            i64) gltype1='__int64';;
6890            u)   gltype1='unsigned int';;
6891            ul)  gltype1='unsigned long int';;
6892            ull) gltype1='unsigned long long int';;
6893            ui64)gltype1='unsigned __int64';;
6894          esac
6895          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h.  */
6897
6898   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6899      included before <wchar.h>.  */
6900   #include <stddef.h>
6901   #include <signal.h>
6902   #if HAVE_WCHAR_H
6903   # include <stdio.h>
6904   # include <time.h>
6905   # include <wchar.h>
6906   #endif
6907
6908               extern $gltype foo;
6909               extern $gltype1 foo;
6910 int
6911 main ()
6912 {
6913
6914   ;
6915   return 0;
6916 }
6917 _ACEOF
6918 if ac_fn_c_try_compile "$LINENO"; then :
6919   eval gl_cv_type_${gltype}_suffix=\$glsuf
6920 fi
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922          eval result=\$gl_cv_type_${gltype}_suffix
6923          test "$result" != no && break
6924        done
6925 fi
6926 eval ac_res=\$gl_cv_type_${gltype}_suffix
6927                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6928 $as_echo "$ac_res" >&6; }
6929     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6930     eval result=\$gl_cv_type_${gltype}_suffix
6931     test "$result" = no && result=
6932     eval ${GLTYPE}_SUFFIX=\$result
6933     cat >>confdefs.h <<_ACEOF
6934 #define ${GLTYPE}_SUFFIX $result
6935 _ACEOF
6936
6937   done
6938
6939
6940
6941     STDINT_H=stdint.h
6942   fi
6943
6944
6945   # Code from module string:
6946
6947
6948
6949   # Code from module warn-on-use:
6950   # Code from module wchar:
6951
6952
6953
6954
6955   :
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965   :
6966
6967
6968
6969
6970
6971
6972
6973      if test $gl_cv_have_include_next = yes; then
6974        gl_cv_next_wchar_h='<'wchar.h'>'
6975      else
6976        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6977 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6978 if test "${gl_cv_next_wchar_h+set}" = set; then :
6979   $as_echo_n "(cached) " >&6
6980 else
6981
6982           if test $ac_cv_header_wchar_h = yes; then
6983             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h.  */
6985 #include <wchar.h>
6986
6987 _ACEOF
6988                                                                                                 case "$host_os" in
6989               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6990               *)    gl_absname_cpp="$ac_cpp" ;;
6991             esac
6992                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6993                sed -n '\#/wchar.h#{
6994                  s#.*"\(.*/wchar.h\)".*#\1#
6995                  s#^/[^/]#//&#
6996                  p
6997                  q
6998                }'`'"'
6999           else
7000             gl_cv_next_wchar_h='<'wchar.h'>'
7001           fi
7002
7003 fi
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7005 $as_echo "$gl_cv_next_wchar_h" >&6; }
7006      fi
7007      NEXT_WCHAR_H=$gl_cv_next_wchar_h
7008
7009      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7010        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7011        gl_next_as_first_directive='<'wchar.h'>'
7012      else
7013        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7014        gl_next_as_first_directive=$gl_cv_next_wchar_h
7015      fi
7016      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7017
7018
7019
7020   if test $ac_cv_header_wchar_h = yes; then
7021     HAVE_WCHAR_H=1
7022   else
7023     HAVE_WCHAR_H=0
7024   fi
7025
7026
7027
7028   if test $gt_cv_c_wint_t = yes; then
7029     HAVE_WINT_T=1
7030   else
7031     HAVE_WINT_T=0
7032   fi
7033
7034
7035
7036     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
7037     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7039 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7040 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7041   $as_echo_n "(cached) " >&6
7042 else
7043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h.  */
7045
7046 /* Some systems require additional headers.  */
7047 #ifndef __GLIBC__
7048 # include <stddef.h>
7049 # include <stdio.h>
7050 # include <time.h>
7051 #endif
7052 #include <wchar.h>
7053
7054 int
7055 main ()
7056 {
7057 #undef $gl_func
7058   (void) $gl_func;
7059   ;
7060   return 0;
7061 }
7062 _ACEOF
7063 if ac_fn_c_try_compile "$LINENO"; then :
7064   eval "$as_gl_Symbol=yes"
7065 else
7066   eval "$as_gl_Symbol=no"
7067 fi
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069 fi
7070 eval ac_res=\$$as_gl_Symbol
7071                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7072 $as_echo "$ac_res" >&6; }
7073      eval as_val=\$$as_gl_Symbol
7074    if test "x$as_val" = x""yes; then :
7075   cat >>confdefs.h <<_ACEOF
7076 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7077 _ACEOF
7078
7079                      eval ac_cv_have_decl_$gl_func=yes
7080 fi
7081       done
7082
7083
7084   # Code from module dummy:
7085   # End of code from modules
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095   gltests_libdeps=
7096   gltests_ltlibdeps=
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106   gl_source_base='tests'
7107   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
7108
7109   gl_module_indicator_condition=$gltests_WITNESS
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119   LIBGNU_LIBDEPS="$gl_libdeps"
7120
7121   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7122
7123
7124
7125 # For Makefile dependencies.
7126 GNULIB_STDINT_H=
7127 if test x"$STDINT_H" != x; then
7128   GNULIB_STDINT_H=gnulib/$STDINT_H
7129 fi
7130
7131
7132 PACKAGE=gdb
7133
7134 cat >>confdefs.h <<_ACEOF
7135 #define PACKAGE "$PACKAGE"
7136 _ACEOF
7137
7138
7139
7140 # GDB does not use automake, but gnulib does.  This line lets us
7141 # generate its Makefile.in.
7142 am__api_version='1.11'
7143
7144 # Find a good install program.  We prefer a C program (faster),
7145 # so one script is as good as another.  But avoid the broken or
7146 # incompatible versions:
7147 # SysV /etc/install, /usr/sbin/install
7148 # SunOS /usr/etc/install
7149 # IRIX /sbin/install
7150 # AIX /bin/install
7151 # AmigaOS /C/install, which installs bootblocks on floppy discs
7152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7155 # OS/2's system install, which has a completely different semantic
7156 # ./install, which can be erroneously created by make from ./install.sh.
7157 # Reject install programs that cannot install multiple files.
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7159 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7160 if test -z "$INSTALL"; then
7161 if test "${ac_cv_path_install+set}" = set; then :
7162   $as_echo_n "(cached) " >&6
7163 else
7164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169     # Account for people who put trailing slashes in PATH elements.
7170 case $as_dir/ in #((
7171   ./ | .// | /[cC]/* | \
7172   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7173   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7174   /usr/ucb/* ) ;;
7175   *)
7176     # OSF1 and SCO ODT 3.0 have their own names for install.
7177     # Don't use installbsd from OSF since it installs stuff as root
7178     # by default.
7179     for ac_prog in ginstall scoinst install; do
7180       for ac_exec_ext in '' $ac_executable_extensions; do
7181         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7182           if test $ac_prog = install &&
7183             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7184             # AIX install.  It has an incompatible calling convention.
7185             :
7186           elif test $ac_prog = install &&
7187             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7188             # program-specific install script used by HP pwplus--don't use.
7189             :
7190           else
7191             rm -rf conftest.one conftest.two conftest.dir
7192             echo one > conftest.one
7193             echo two > conftest.two
7194             mkdir conftest.dir
7195             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7196               test -s conftest.one && test -s conftest.two &&
7197               test -s conftest.dir/conftest.one &&
7198               test -s conftest.dir/conftest.two
7199             then
7200               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7201               break 3
7202             fi
7203           fi
7204         fi
7205       done
7206     done
7207     ;;
7208 esac
7209
7210   done
7211 IFS=$as_save_IFS
7212
7213 rm -rf conftest.one conftest.two conftest.dir
7214
7215 fi
7216   if test "${ac_cv_path_install+set}" = set; then
7217     INSTALL=$ac_cv_path_install
7218   else
7219     # As a last resort, use the slow shell script.  Don't cache a
7220     # value for INSTALL within a source directory, because that will
7221     # break other packages using the cache if that directory is
7222     # removed, or if the value is a relative name.
7223     INSTALL=$ac_install_sh
7224   fi
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7227 $as_echo "$INSTALL" >&6; }
7228
7229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7230 # It thinks the first close brace ends the variable substitution.
7231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7232
7233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7234
7235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7238 $as_echo_n "checking whether build environment is sane... " >&6; }
7239 # Just in case
7240 sleep 1
7241 echo timestamp > conftest.file
7242 # Reject unsafe characters in $srcdir or the absolute working directory
7243 # name.  Accept space and tab only in the latter.
7244 am_lf='
7245 '
7246 case `pwd` in
7247   *[\\\"\#\$\&\'\`$am_lf]*)
7248     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7249 esac
7250 case $srcdir in
7251   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
7252     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7253 esac
7254
7255 # Do `set' in a subshell so we don't clobber the current shell's
7256 # arguments.  Must try -L first in case configure is actually a
7257 # symlink; some systems play weird games with the mod time of symlinks
7258 # (eg FreeBSD returns the mod time of the symlink's containing
7259 # directory).
7260 if (
7261    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7262    if test "$*" = "X"; then
7263       # -L didn't work.
7264       set X `ls -t "$srcdir/configure" conftest.file`
7265    fi
7266    rm -f conftest.file
7267    if test "$*" != "X $srcdir/configure conftest.file" \
7268       && test "$*" != "X conftest.file $srcdir/configure"; then
7269
7270       # If neither matched, then we have a broken ls.  This can happen
7271       # if, for instance, CONFIG_SHELL is bash and it inherits a
7272       # broken ls alias from the environment.  This has actually
7273       # happened.  Such a system could not be considered "sane".
7274       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
7275 alias in your environment" "$LINENO" 5
7276    fi
7277
7278    test "$2" = conftest.file
7279    )
7280 then
7281    # Ok.
7282    :
7283 else
7284    as_fn_error "newly created file is older than distributed files!
7285 Check your system clock" "$LINENO" 5
7286 fi
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7288 $as_echo "yes" >&6; }
7289 test "$program_prefix" != NONE &&
7290   program_transform_name="s&^&$program_prefix&;$program_transform_name"
7291 # Use a double $ so make ignores it.
7292 test "$program_suffix" != NONE &&
7293   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7294 # Double any \ or $.
7295 # By default was `s,x,x', remove it if useless.
7296 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7297 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7298
7299 # expand $ac_aux_dir to an absolute path
7300 am_aux_dir=`cd $ac_aux_dir && pwd`
7301
7302 if test x"${MISSING+set}" != xset; then
7303   case $am_aux_dir in
7304   *\ * | *\     *)
7305     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7306   *)
7307     MISSING="\${SHELL} $am_aux_dir/missing" ;;
7308   esac
7309 fi
7310 # Use eval to expand $SHELL
7311 if eval "$MISSING --run true"; then
7312   am_missing_run="$MISSING --run "
7313 else
7314   am_missing_run=
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7316 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7317 fi
7318
7319 if test x"${install_sh}" != xset; then
7320   case $am_aux_dir in
7321   *\ * | *\     *)
7322     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7323   *)
7324     install_sh="\${SHELL} $am_aux_dir/install-sh"
7325   esac
7326 fi
7327
7328 # Installed binaries are usually stripped using `strip' when the user
7329 # run `make install-strip'.  However `strip' might not be the right
7330 # tool to use in cross-compilation environments, therefore Automake
7331 # will honor the `STRIP' environment variable to overrule this program.
7332 if test "$cross_compiling" != no; then
7333   if test -n "$ac_tool_prefix"; then
7334   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}strip; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_STRIP+set}" = set; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341   if test -n "$STRIP"; then
7342   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_exec_ext in '' $ac_executable_extensions; do
7350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356   done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 STRIP=$ac_cv_prog_STRIP
7362 if test -n "$STRIP"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7364 $as_echo "$STRIP" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371 fi
7372 if test -z "$ac_cv_prog_STRIP"; then
7373   ac_ct_STRIP=$STRIP
7374   # Extract the first word of "strip", so it can be a program name with args.
7375 set dummy strip; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7379   $as_echo_n "(cached) " >&6
7380 else
7381   if test -n "$ac_ct_STRIP"; then
7382   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387   IFS=$as_save_IFS
7388   test -z "$as_dir" && as_dir=.
7389     for ac_exec_ext in '' $ac_executable_extensions; do
7390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391     ac_cv_prog_ac_ct_STRIP="strip"
7392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393     break 2
7394   fi
7395 done
7396   done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7402 if test -n "$ac_ct_STRIP"; then
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7404 $as_echo "$ac_ct_STRIP" >&6; }
7405 else
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410   if test "x$ac_ct_STRIP" = x; then
7411     STRIP=":"
7412   else
7413     case $cross_compiling:$ac_tool_warned in
7414 yes:)
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7418 esac
7419     STRIP=$ac_ct_STRIP
7420   fi
7421 else
7422   STRIP="$ac_cv_prog_STRIP"
7423 fi
7424
7425 fi
7426 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7427
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7429 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7430 if test -z "$MKDIR_P"; then
7431   if test "${ac_cv_path_mkdir+set}" = set; then :
7432   $as_echo_n "(cached) " >&6
7433 else
7434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7436 do
7437   IFS=$as_save_IFS
7438   test -z "$as_dir" && as_dir=.
7439     for ac_prog in mkdir gmkdir; do
7440          for ac_exec_ext in '' $ac_executable_extensions; do
7441            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7442            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7443              'mkdir (GNU coreutils) '* | \
7444              'mkdir (coreutils) '* | \
7445              'mkdir (fileutils) '4.1*)
7446                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7447                break 3;;
7448            esac
7449          done
7450        done
7451   done
7452 IFS=$as_save_IFS
7453
7454 fi
7455
7456   if test "${ac_cv_path_mkdir+set}" = set; then
7457     MKDIR_P="$ac_cv_path_mkdir -p"
7458   else
7459     # As a last resort, use the slow shell script.  Don't cache a
7460     # value for MKDIR_P within a source directory, because that will
7461     # break other packages using the cache if that directory is
7462     # removed, or if the value is a relative name.
7463     test -d ./--version && rmdir ./--version
7464     MKDIR_P="$ac_install_sh -d"
7465   fi
7466 fi
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7468 $as_echo "$MKDIR_P" >&6; }
7469
7470
7471 mkdir_p="$MKDIR_P"
7472 case $mkdir_p in
7473   [\\/$]* | ?:[\\/]*) ;;
7474   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7475 esac
7476
7477 for ac_prog in gawk mawk nawk awk
7478 do
7479   # Extract the first word of "$ac_prog", so it can be a program name with args.
7480 set dummy $ac_prog; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if test "${ac_cv_prog_AWK+set}" = set; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486   if test -n "$AWK"; then
7487   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7488 else
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7491 do
7492   IFS=$as_save_IFS
7493   test -z "$as_dir" && as_dir=.
7494     for ac_exec_ext in '' $ac_executable_extensions; do
7495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496     ac_cv_prog_AWK="$ac_prog"
7497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498     break 2
7499   fi
7500 done
7501   done
7502 IFS=$as_save_IFS
7503
7504 fi
7505 fi
7506 AWK=$ac_cv_prog_AWK
7507 if test -n "$AWK"; then
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7509 $as_echo "$AWK" >&6; }
7510 else
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7513 fi
7514
7515
7516   test -n "$AWK" && break
7517 done
7518
7519 ac_config_commands="$ac_config_commands depfiles"
7520
7521
7522 am_make=${MAKE-make}
7523 cat > confinc << 'END'
7524 am__doit:
7525         @echo this is the am__doit target
7526 .PHONY: am__doit
7527 END
7528 # If we don't find an include directive, just comment out the code.
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7530 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7531 am__include="#"
7532 am__quote=
7533 _am_result=none
7534 # First try GNU make style include.
7535 echo "include confinc" > confmf
7536 # Ignore all kinds of additional output from `make'.
7537 case `$am_make -s -f confmf 2> /dev/null` in #(
7538 *the\ am__doit\ target*)
7539   am__include=include
7540   am__quote=
7541   _am_result=GNU
7542   ;;
7543 esac
7544 # Now try BSD make style include.
7545 if test "$am__include" = "#"; then
7546    echo '.include "confinc"' > confmf
7547    case `$am_make -s -f confmf 2> /dev/null` in #(
7548    *the\ am__doit\ target*)
7549      am__include=.include
7550      am__quote="\""
7551      _am_result=BSD
7552      ;;
7553    esac
7554 fi
7555
7556
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7558 $as_echo "$_am_result" >&6; }
7559 rm -f confinc confmf
7560
7561 # Check whether --enable-dependency-tracking was given.
7562 if test "${enable_dependency_tracking+set}" = set; then :
7563   enableval=$enable_dependency_tracking;
7564 fi
7565
7566 if test "x$enable_dependency_tracking" != xno; then
7567   am_depcomp="$ac_aux_dir/depcomp"
7568   AMDEPBACKSLASH='\'
7569 fi
7570  if test "x$enable_dependency_tracking" != xno; then
7571   AMDEP_TRUE=
7572   AMDEP_FALSE='#'
7573 else
7574   AMDEP_TRUE='#'
7575   AMDEP_FALSE=
7576 fi
7577
7578
7579 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7580   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7581   # is not polluted with repeated "-I."
7582   am__isrc=' -I$(srcdir)'
7583   # test to see if srcdir already configured
7584   if test -f $srcdir/config.status; then
7585     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7586   fi
7587 fi
7588
7589 # test whether we have cygpath
7590 if test -z "$CYGPATH_W"; then
7591   if (cygpath --version) >/dev/null 2>/dev/null; then
7592     CYGPATH_W='cygpath -w'
7593   else
7594     CYGPATH_W=echo
7595   fi
7596 fi
7597
7598
7599 # Define the identity of the package.
7600  PACKAGE=gdb
7601  VERSION=UNUSED-VERSION
7602
7603
7604 # Some tools Automake needs.
7605
7606 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7607
7608
7609 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7610
7611
7612 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7613
7614
7615 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7616
7617
7618 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7619
7620 # We need awk for the "check" target.  The system "awk" is bad on
7621 # some platforms.
7622 # Always define AMTAR for backward compatibility.
7623
7624 AMTAR=${AMTAR-"${am_missing_run}tar"}
7625
7626 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7627
7628
7629
7630
7631 depcc="$CC"   am_compiler_list=
7632
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7634 $as_echo_n "checking dependency style of $depcc... " >&6; }
7635 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7636   $as_echo_n "(cached) " >&6
7637 else
7638   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7639   # We make a subdir and do the tests there.  Otherwise we can end up
7640   # making bogus files that we don't know about and never remove.  For
7641   # instance it was reported that on HP-UX the gcc test will end up
7642   # making a dummy file named `D' -- because `-MD' means `put the output
7643   # in D'.
7644   mkdir conftest.dir
7645   # Copy depcomp to subdir because otherwise we won't find it if we're
7646   # using a relative directory.
7647   cp "$am_depcomp" conftest.dir
7648   cd conftest.dir
7649   # We will build objects and dependencies in a subdirectory because
7650   # it helps to detect inapplicable dependency modes.  For instance
7651   # both Tru64's cc and ICC support -MD to output dependencies as a
7652   # side effect of compilation, but ICC will put the dependencies in
7653   # the current directory while Tru64 will put them in the object
7654   # directory.
7655   mkdir sub
7656
7657   am_cv_CC_dependencies_compiler_type=none
7658   if test "$am_compiler_list" = ""; then
7659      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7660   fi
7661   am__universal=false
7662   case " $depcc " in #(
7663      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7664      esac
7665
7666   for depmode in $am_compiler_list; do
7667     # Setup a source with many dependencies, because some compilers
7668     # like to wrap large dependency lists on column 80 (with \), and
7669     # we should not choose a depcomp mode which is confused by this.
7670     #
7671     # We need to recreate these files for each test, as the compiler may
7672     # overwrite some of them when testing with obscure command lines.
7673     # This happens at least with the AIX C compiler.
7674     : > sub/conftest.c
7675     for i in 1 2 3 4 5 6; do
7676       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7677       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7678       # Solaris 8's {/usr,}/bin/sh.
7679       touch sub/conftst$i.h
7680     done
7681     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7682
7683     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7684     # mode.  It turns out that the SunPro C++ compiler does not properly
7685     # handle `-M -o', and we need to detect this.  Also, some Intel
7686     # versions had trouble with output in subdirs
7687     am__obj=sub/conftest.${OBJEXT-o}
7688     am__minus_obj="-o $am__obj"
7689     case $depmode in
7690     gcc)
7691       # This depmode causes a compiler race in universal mode.
7692       test "$am__universal" = false || continue
7693       ;;
7694     nosideeffect)
7695       # after this tag, mechanisms are not by side-effect, so they'll
7696       # only be used when explicitly requested
7697       if test "x$enable_dependency_tracking" = xyes; then
7698         continue
7699       else
7700         break
7701       fi
7702       ;;
7703     msvisualcpp | msvcmsys)
7704       # This compiler won't grok `-c -o', but also, the minuso test has
7705       # not run yet.  These depmodes are late enough in the game, and
7706       # so weak that their functioning should not be impacted.
7707       am__obj=conftest.${OBJEXT-o}
7708       am__minus_obj=
7709       ;;
7710     none) break ;;
7711     esac
7712     if depmode=$depmode \
7713        source=sub/conftest.c object=$am__obj \
7714        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7715        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7716          >/dev/null 2>conftest.err &&
7717        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7718        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7719        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7720        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7721       # icc doesn't choke on unknown options, it will just issue warnings
7722       # or remarks (even with -Werror).  So we grep stderr for any message
7723       # that says an option was ignored or not supported.
7724       # When given -MP, icc 7.0 and 7.1 complain thusly:
7725       #   icc: Command line warning: ignoring option '-M'; no argument required
7726       # The diagnosis changed in icc 8.0:
7727       #   icc: Command line remark: option '-MP' not supported
7728       if (grep 'ignoring option' conftest.err ||
7729           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7730         am_cv_CC_dependencies_compiler_type=$depmode
7731         break
7732       fi
7733     fi
7734   done
7735
7736   cd ..
7737   rm -rf conftest.dir
7738 else
7739   am_cv_CC_dependencies_compiler_type=none
7740 fi
7741
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7744 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7745 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7746
7747  if
7748   test "x$enable_dependency_tracking" != xno \
7749   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7750   am__fastdepCC_TRUE=
7751   am__fastdepCC_FALSE='#'
7752 else
7753   am__fastdepCC_TRUE='#'
7754   am__fastdepCC_FALSE=
7755 fi
7756
7757
7758
7759
7760
7761
7762 # Check whether --with-separate-debug-dir was given.
7763 if test "${with_separate_debug_dir+set}" = set; then :
7764   withval=$with_separate_debug_dir;
7765     DEBUGDIR=$withval
7766 else
7767   DEBUGDIR=${libdir}/debug
7768 fi
7769
7770
7771   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7772   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7773   ac_define_dir=`eval echo $DEBUGDIR`
7774   ac_define_dir=`eval echo $ac_define_dir`
7775
7776 cat >>confdefs.h <<_ACEOF
7777 #define DEBUGDIR "$ac_define_dir"
7778 _ACEOF
7779
7780
7781
7782
7783   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7784      if test "x$prefix" = xNONE; then
7785         test_prefix=/usr/local
7786      else
7787         test_prefix=$prefix
7788      fi
7789   else
7790      test_prefix=$exec_prefix
7791   fi
7792   value=0
7793   case ${ac_define_dir} in
7794      "${test_prefix}"|"${test_prefix}/"*|\
7795         '${exec_prefix}'|'${exec_prefix}/'*)
7796      value=1
7797      ;;
7798   esac
7799
7800 cat >>confdefs.h <<_ACEOF
7801 #define DEBUGDIR_RELOCATABLE $value
7802 _ACEOF
7803
7804
7805
7806
7807 # GDB's datadir relocation
7808
7809
7810
7811 # Check whether --with-gdb-datadir was given.
7812 if test "${with_gdb_datadir+set}" = set; then :
7813   withval=$with_gdb_datadir;
7814     GDB_DATADIR=$withval
7815 else
7816   GDB_DATADIR=${datadir}/gdb
7817 fi
7818
7819
7820   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7821   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7822   ac_define_dir=`eval echo $GDB_DATADIR`
7823   ac_define_dir=`eval echo $ac_define_dir`
7824
7825 cat >>confdefs.h <<_ACEOF
7826 #define GDB_DATADIR "$ac_define_dir"
7827 _ACEOF
7828
7829
7830
7831
7832   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7833      if test "x$prefix" = xNONE; then
7834         test_prefix=/usr/local
7835      else
7836         test_prefix=$prefix
7837      fi
7838   else
7839      test_prefix=$exec_prefix
7840   fi
7841   value=0
7842   case ${ac_define_dir} in
7843      "${test_prefix}"|"${test_prefix}/"*|\
7844         '${exec_prefix}'|'${exec_prefix}/'*)
7845      value=1
7846      ;;
7847   esac
7848
7849 cat >>confdefs.h <<_ACEOF
7850 #define GDB_DATADIR_RELOCATABLE $value
7851 _ACEOF
7852
7853
7854
7855
7856
7857 # Check whether --with-relocated-sources was given.
7858 if test "${with_relocated_sources+set}" = set; then :
7859   withval=$with_relocated_sources; reloc_srcdir="${withval}"
7860
7861   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7862   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7863   ac_define_dir=`eval echo $reloc_srcdir`
7864   ac_define_dir=`eval echo $ac_define_dir`
7865
7866 cat >>confdefs.h <<_ACEOF
7867 #define RELOC_SRCDIR "$ac_define_dir"
7868 _ACEOF
7869
7870
7871
7872 fi
7873
7874
7875
7876
7877 subdirs="$subdirs doc testsuite"
7878
7879
7880 # Check whether to support alternative target configurations
7881 # Check whether --enable-targets was given.
7882 if test "${enable_targets+set}" = set; then :
7883   enableval=$enable_targets; case "${enableval}" in
7884   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7885             ;;
7886   no)       enable_targets= ;;
7887   *)        enable_targets=$enableval ;;
7888 esac
7889 fi
7890
7891
7892 # Check whether to enable 64-bit support on 32-bit hosts
7893 # Check whether --enable-64-bit-bfd was given.
7894 if test "${enable_64_bit_bfd+set}" = set; then :
7895   enableval=$enable_64_bit_bfd; case "${enableval}" in
7896   yes)  want64=true  ;;
7897   no)   want64=false ;;
7898   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7899 esac
7900 else
7901   want64=false
7902 fi
7903
7904 # Provide defaults for some variables set by the per-host and per-target
7905 # configuration.
7906 gdb_host_obs=posix-hdep.o
7907
7908 if test "${target}" = "${host}"; then
7909   gdb_native=yes
7910 else
7911   gdb_native=no
7912 fi
7913
7914 . $srcdir/configure.host
7915
7916 # Accumulate some settings from configure.tgt over all enabled targets
7917
7918 TARGET_OBS=
7919 all_targets=
7920
7921 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7922 do
7923   if test "$targ_alias" = "all"; then
7924     all_targets=true
7925   else
7926     # Canonicalize the secondary target names.
7927     result=`$ac_config_sub $targ_alias 2>/dev/null`
7928     if test -n "$result"; then
7929         targ=$result
7930     else
7931         targ=$targ_alias
7932     fi
7933
7934     . ${srcdir}/configure.tgt
7935
7936     if test -z "${gdb_target_obs}"; then :
7937   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
7938 fi
7939
7940     # Target-specific object files
7941     for i in ${gdb_target_obs}; do
7942         case " $TARGET_OBS " in
7943         *" ${i} "*) ;;
7944         *)
7945           TARGET_OBS="$TARGET_OBS ${i}"
7946           ;;
7947         esac
7948     done
7949
7950     # Check whether this target needs 64-bit CORE_ADDR
7951     if test x${want64} = xfalse; then
7952       . ${srcdir}/../bfd/config.bfd
7953     fi
7954   fi
7955 done
7956
7957 if test x${all_targets} = xtrue; then
7958
7959   # We want all 64-bit targets if we either:
7960   #  - run on a 64-bit host  or
7961   #  - already require 64-bit support for some other target  or
7962   #  - the --enable-64-bit-bfd option was supplied
7963   # Otherwise we only support all 32-bit targets.
7964   #
7965   # NOTE: This test must be in sync with the corresponding
7966   #       tests in BFD!
7967
7968   if test x${want64} = xfalse; then
7969     # The cast to long int works around a bug in the HP C Compiler
7970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7972 # This bug is HP SR number 8606223364.
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7974 $as_echo_n "checking size of long... " >&6; }
7975 if test "${ac_cv_sizeof_long+set}" = set; then :
7976   $as_echo_n "(cached) " >&6
7977 else
7978   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
7979
7980 else
7981   if test "$ac_cv_type_long" = yes; then
7982      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7984 { as_fn_set_status 77
7985 as_fn_error "cannot compute sizeof (long)
7986 See \`config.log' for more details." "$LINENO" 5; }; }
7987    else
7988      ac_cv_sizeof_long=0
7989    fi
7990 fi
7991
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7994 $as_echo "$ac_cv_sizeof_long" >&6; }
7995
7996
7997
7998 cat >>confdefs.h <<_ACEOF
7999 #define SIZEOF_LONG $ac_cv_sizeof_long
8000 _ACEOF
8001
8002
8003     if test "x${ac_cv_sizeof_long}" = "x8"; then
8004       want64=true
8005     fi
8006   fi
8007   if test x${want64} = xtrue; then
8008     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8009   else
8010     TARGET_OBS='$(ALL_TARGET_OBS)'
8011   fi
8012 fi
8013
8014
8015
8016 # For other settings, only the main target counts.
8017 gdb_sim=
8018 gdb_osabi=
8019 build_gdbserver=
8020 targ=$target; . ${srcdir}/configure.tgt
8021
8022 # Fetch the default architecture and default target vector from BFD.
8023 targ=$target; . $srcdir/../bfd/config.bfd
8024
8025 # We only want the first architecture, so strip off the others if
8026 # there is more than one.
8027 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8028
8029 if test "x$targ_archs" != x; then
8030
8031 cat >>confdefs.h <<_ACEOF
8032 #define DEFAULT_BFD_ARCH $targ_archs
8033 _ACEOF
8034
8035 fi
8036 if test "x$targ_defvec" != x; then
8037
8038 cat >>confdefs.h <<_ACEOF
8039 #define DEFAULT_BFD_VEC $targ_defvec
8040 _ACEOF
8041
8042 fi
8043
8044 # The CLI cannot be disabled yet, but may be in the future.
8045
8046 # Enable CLI.
8047 # Check whether --enable-gdbcli was given.
8048 if test "${enable_gdbcli+set}" = set; then :
8049   enableval=$enable_gdbcli; case $enableval in
8050     yes)
8051       ;;
8052     no)
8053       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8054     *)
8055       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8056   esac
8057 else
8058   enable_gdbcli=yes
8059 fi
8060
8061 if test x"$enable_gdbcli" = xyes; then
8062   if test -d $srcdir/cli; then
8063     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8064     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8065     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8066     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8067   fi
8068 fi
8069
8070 # Enable MI.
8071 # Check whether --enable-gdbmi was given.
8072 if test "${enable_gdbmi+set}" = set; then :
8073   enableval=$enable_gdbmi; case $enableval in
8074     yes | no)
8075       ;;
8076     *)
8077       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8078   esac
8079 else
8080   enable_gdbmi=yes
8081 fi
8082
8083 if test x"$enable_gdbmi" = xyes; then
8084   if test -d $srcdir/mi; then
8085     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8086     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8087     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8088     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8089   fi
8090 fi
8091
8092 # Enable TUI.
8093 # Check whether --enable-tui was given.
8094 if test "${enable_tui+set}" = set; then :
8095   enableval=$enable_tui; case $enableval in
8096     yes | no | auto)
8097       ;;
8098     *)
8099       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8100   esac
8101 else
8102   enable_tui=auto
8103 fi
8104
8105
8106 # Enable gdbtk.
8107 # Check whether --enable-gdbtk was given.
8108 if test "${enable_gdbtk+set}" = set; then :
8109   enableval=$enable_gdbtk; case $enableval in
8110     yes | no)
8111       ;;
8112     *)
8113       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8114   esac
8115 else
8116   if test -d $srcdir/gdbtk; then
8117     enable_gdbtk=yes
8118   else
8119     enable_gdbtk=no
8120   fi
8121 fi
8122
8123 # We unconditionally disable gdbtk tests on selected platforms.
8124 case $host_os in
8125   go32* | windows*)
8126     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8127 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8128     enable_gdbtk=no ;;
8129 esac
8130
8131 # Libunwind support.
8132
8133 # Check whether --with-libunwind was given.
8134 if test "${with_libunwind+set}" = set; then :
8135   withval=$with_libunwind; case "${withval}" in
8136   yes)  enable_libunwind=yes ;;
8137   no)   enable_libunwind=no ;;
8138   *)    as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8139 esac
8140 else
8141
8142   for ac_header in libunwind.h libunwind-ia64.h
8143 do :
8144   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8145 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8146 eval as_val=\$$as_ac_Header
8147    if test "x$as_val" = x""yes; then :
8148   cat >>confdefs.h <<_ACEOF
8149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8150 _ACEOF
8151
8152 fi
8153
8154 done
8155
8156   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8157     enable_libunwind=yes;
8158   fi
8159
8160 fi
8161
8162
8163 if test x"$enable_libunwind" = xyes; then
8164   for ac_header in libunwind.h libunwind-ia64.h
8165 do :
8166   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8167 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8168 eval as_val=\$$as_ac_Header
8169    if test "x$as_val" = x""yes; then :
8170   cat >>confdefs.h <<_ACEOF
8171 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8172 _ACEOF
8173
8174 fi
8175
8176 done
8177
8178
8179 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8180
8181   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8182   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8183   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8184 fi
8185
8186 opt_curses=no
8187
8188 # Check whether --with-curses was given.
8189 if test "${with_curses+set}" = set; then :
8190   withval=$with_curses; opt_curses=$withval
8191 fi
8192
8193
8194 prefer_curses=no
8195 if test "$opt_curses" = "yes"; then
8196   prefer_curses=yes
8197 fi
8198
8199 # Profiling support.
8200 # Check whether --enable-profiling was given.
8201 if test "${enable_profiling+set}" = set; then :
8202   enableval=$enable_profiling; case $enableval in
8203     yes | no)
8204       ;;
8205     *)
8206       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8207   esac
8208 else
8209   enable_profiling=no
8210 fi
8211
8212
8213 for ac_func in monstartup _mcleanup
8214 do :
8215   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8216 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8217 eval as_val=\$$as_ac_var
8218    if test "x$as_val" = x""yes; then :
8219   cat >>confdefs.h <<_ACEOF
8220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8221 _ACEOF
8222
8223 fi
8224 done
8225
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8227 $as_echo_n "checking for _etext... " >&6; }
8228 if test "${ac_cv_var__etext+set}" = set; then :
8229   $as_echo_n "(cached) " >&6
8230 else
8231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h.  */
8233 #include <stdlib.h>
8234 extern char _etext;
8235
8236 int
8237 main ()
8238 {
8239 free (&_etext);
8240   ;
8241   return 0;
8242 }
8243 _ACEOF
8244 if ac_fn_c_try_link "$LINENO"; then :
8245   ac_cv_var__etext=yes
8246 else
8247   ac_cv_var__etext=no
8248 fi
8249 rm -f core conftest.err conftest.$ac_objext \
8250     conftest$ac_exeext conftest.$ac_ext
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8253 $as_echo "$ac_cv_var__etext" >&6; }
8254 if test $ac_cv_var__etext = yes; then
8255
8256 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8257
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8260 $as_echo_n "checking for etext... " >&6; }
8261 if test "${ac_cv_var_etext+set}" = set; then :
8262   $as_echo_n "(cached) " >&6
8263 else
8264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h.  */
8266 #include <stdlib.h>
8267 extern char etext;
8268
8269 int
8270 main ()
8271 {
8272 free (&etext);
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 if ac_fn_c_try_link "$LINENO"; then :
8278   ac_cv_var_etext=yes
8279 else
8280   ac_cv_var_etext=no
8281 fi
8282 rm -f core conftest.err conftest.$ac_objext \
8283     conftest$ac_exeext conftest.$ac_ext
8284 fi
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8286 $as_echo "$ac_cv_var_etext" >&6; }
8287 if test $ac_cv_var_etext = yes; then
8288
8289 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8290
8291 fi
8292 if test "$enable_profiling" = yes ; then
8293   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8294     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8295   fi
8296   PROFILE_CFLAGS=-pg
8297   OLD_CFLAGS="$CFLAGS"
8298   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8299
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8301 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8302 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8303   $as_echo_n "(cached) " >&6
8304 else
8305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h.  */
8307
8308 int
8309 main ()
8310 {
8311 int x;
8312   ;
8313   return 0;
8314 }
8315 _ACEOF
8316 if ac_fn_c_try_compile "$LINENO"; then :
8317   ac_cv_cc_supports_pg=yes
8318 else
8319   ac_cv_cc_supports_pg=no
8320 fi
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8324 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8325
8326   if test $ac_cv_cc_supports_pg = no; then
8327     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8328   fi
8329
8330   CFLAGS="$OLD_CFLAGS"
8331 fi
8332
8333
8334
8335 # Check whether --with-pkgversion was given.
8336 if test "${with_pkgversion+set}" = set; then :
8337   withval=$with_pkgversion; case "$withval" in
8338       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8339       no)  PKGVERSION= ;;
8340       *)   PKGVERSION="($withval) " ;;
8341      esac
8342 else
8343   PKGVERSION="(GDB) "
8344
8345 fi
8346
8347
8348
8349
8350
8351 # Check whether --with-bugurl was given.
8352 if test "${with_bugurl+set}" = set; then :
8353   withval=$with_bugurl; case "$withval" in
8354       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8355       no)  BUGURL=
8356            ;;
8357       *)   BUGURL="$withval"
8358            ;;
8359      esac
8360 else
8361   BUGURL="http://www.gnu.org/software/gdb/bugs/"
8362
8363 fi
8364
8365   case ${BUGURL} in
8366   "")
8367     REPORT_BUGS_TO=
8368     REPORT_BUGS_TEXI=
8369     ;;
8370   *)
8371     REPORT_BUGS_TO="<$BUGURL>"
8372     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8373     ;;
8374   esac;
8375
8376
8377
8378
8379 cat >>confdefs.h <<_ACEOF
8380 #define PKGVERSION "$PKGVERSION"
8381 _ACEOF
8382
8383
8384 cat >>confdefs.h <<_ACEOF
8385 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8386 _ACEOF
8387
8388
8389 # --------------------- #
8390 # Checks for programs.  #
8391 # --------------------- #
8392
8393 for ac_prog in gawk mawk nawk awk
8394 do
8395   # Extract the first word of "$ac_prog", so it can be a program name with args.
8396 set dummy $ac_prog; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if test "${ac_cv_prog_AWK+set}" = set; then :
8400   $as_echo_n "(cached) " >&6
8401 else
8402   if test -n "$AWK"; then
8403   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8407 do
8408   IFS=$as_save_IFS
8409   test -z "$as_dir" && as_dir=.
8410     for ac_exec_ext in '' $ac_executable_extensions; do
8411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8412     ac_cv_prog_AWK="$ac_prog"
8413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414     break 2
8415   fi
8416 done
8417   done
8418 IFS=$as_save_IFS
8419
8420 fi
8421 fi
8422 AWK=$ac_cv_prog_AWK
8423 if test -n "$AWK"; then
8424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8425 $as_echo "$AWK" >&6; }
8426 else
8427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429 fi
8430
8431
8432   test -n "$AWK" && break
8433 done
8434
8435
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8437 $as_echo_n "checking whether ln -s works... " >&6; }
8438 LN_S=$as_ln_s
8439 if test "$LN_S" = "ln -s"; then
8440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8441 $as_echo "yes" >&6; }
8442 else
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8444 $as_echo "no, using $LN_S" >&6; }
8445 fi
8446
8447 if test -n "$ac_tool_prefix"; then
8448   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8449 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451 $as_echo_n "checking for $ac_word... " >&6; }
8452 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8453   $as_echo_n "(cached) " >&6
8454 else
8455   if test -n "$RANLIB"; then
8456   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8457 else
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in $PATH
8460 do
8461   IFS=$as_save_IFS
8462   test -z "$as_dir" && as_dir=.
8463     for ac_exec_ext in '' $ac_executable_extensions; do
8464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8465     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467     break 2
8468   fi
8469 done
8470   done
8471 IFS=$as_save_IFS
8472
8473 fi
8474 fi
8475 RANLIB=$ac_cv_prog_RANLIB
8476 if test -n "$RANLIB"; then
8477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8478 $as_echo "$RANLIB" >&6; }
8479 else
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8482 fi
8483
8484
8485 fi
8486 if test -z "$ac_cv_prog_RANLIB"; then
8487   ac_ct_RANLIB=$RANLIB
8488   # Extract the first word of "ranlib", so it can be a program name with args.
8489 set dummy ranlib; ac_word=$2
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491 $as_echo_n "checking for $ac_word... " >&6; }
8492 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8493   $as_echo_n "(cached) " >&6
8494 else
8495   if test -n "$ac_ct_RANLIB"; then
8496   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8497 else
8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 for as_dir in $PATH
8500 do
8501   IFS=$as_save_IFS
8502   test -z "$as_dir" && as_dir=.
8503     for ac_exec_ext in '' $ac_executable_extensions; do
8504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8505     ac_cv_prog_ac_ct_RANLIB="ranlib"
8506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8507     break 2
8508   fi
8509 done
8510   done
8511 IFS=$as_save_IFS
8512
8513 fi
8514 fi
8515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8516 if test -n "$ac_ct_RANLIB"; then
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8518 $as_echo "$ac_ct_RANLIB" >&6; }
8519 else
8520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8522 fi
8523
8524   if test "x$ac_ct_RANLIB" = x; then
8525     RANLIB=":"
8526   else
8527     case $cross_compiling:$ac_tool_warned in
8528 yes:)
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8531 ac_tool_warned=yes ;;
8532 esac
8533     RANLIB=$ac_ct_RANLIB
8534   fi
8535 else
8536   RANLIB="$ac_cv_prog_RANLIB"
8537 fi
8538
8539 for ac_prog in 'bison -y' byacc
8540 do
8541   # Extract the first word of "$ac_prog", so it can be a program name with args.
8542 set dummy $ac_prog; ac_word=$2
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 $as_echo_n "checking for $ac_word... " >&6; }
8545 if test "${ac_cv_prog_YACC+set}" = set; then :
8546   $as_echo_n "(cached) " >&6
8547 else
8548   if test -n "$YACC"; then
8549   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8550 else
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 for as_dir in $PATH
8553 do
8554   IFS=$as_save_IFS
8555   test -z "$as_dir" && as_dir=.
8556     for ac_exec_ext in '' $ac_executable_extensions; do
8557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8558     ac_cv_prog_YACC="$ac_prog"
8559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560     break 2
8561   fi
8562 done
8563   done
8564 IFS=$as_save_IFS
8565
8566 fi
8567 fi
8568 YACC=$ac_cv_prog_YACC
8569 if test -n "$YACC"; then
8570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8571 $as_echo "$YACC" >&6; }
8572 else
8573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8575 fi
8576
8577
8578   test -n "$YACC" && break
8579 done
8580 test -n "$YACC" || YACC="yacc"
8581
8582
8583 if test -n "$ac_tool_prefix"; then
8584   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8585 set dummy ${ac_tool_prefix}ar; ac_word=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if test "${ac_cv_prog_AR+set}" = set; then :
8589   $as_echo_n "(cached) " >&6
8590 else
8591   if test -n "$AR"; then
8592   ac_cv_prog_AR="$AR" # Let the user override the test.
8593 else
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8596 do
8597   IFS=$as_save_IFS
8598   test -z "$as_dir" && as_dir=.
8599     for ac_exec_ext in '' $ac_executable_extensions; do
8600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8601     ac_cv_prog_AR="${ac_tool_prefix}ar"
8602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603     break 2
8604   fi
8605 done
8606   done
8607 IFS=$as_save_IFS
8608
8609 fi
8610 fi
8611 AR=$ac_cv_prog_AR
8612 if test -n "$AR"; then
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8614 $as_echo "$AR" >&6; }
8615 else
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8618 fi
8619
8620
8621 fi
8622 if test -z "$ac_cv_prog_AR"; then
8623   ac_ct_AR=$AR
8624   # Extract the first word of "ar", so it can be a program name with args.
8625 set dummy ar; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8629   $as_echo_n "(cached) " >&6
8630 else
8631   if test -n "$ac_ct_AR"; then
8632   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8633 else
8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 for as_dir in $PATH
8636 do
8637   IFS=$as_save_IFS
8638   test -z "$as_dir" && as_dir=.
8639     for ac_exec_ext in '' $ac_executable_extensions; do
8640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8641     ac_cv_prog_ac_ct_AR="ar"
8642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643     break 2
8644   fi
8645 done
8646   done
8647 IFS=$as_save_IFS
8648
8649 fi
8650 fi
8651 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8652 if test -n "$ac_ct_AR"; then
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8654 $as_echo "$ac_ct_AR" >&6; }
8655 else
8656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8658 fi
8659
8660   if test "x$ac_ct_AR" = x; then
8661     AR=""
8662   else
8663     case $cross_compiling:$ac_tool_warned in
8664 yes:)
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8667 ac_tool_warned=yes ;;
8668 esac
8669     AR=$ac_ct_AR
8670   fi
8671 else
8672   AR="$ac_cv_prog_AR"
8673 fi
8674
8675 if test -n "$ac_tool_prefix"; then
8676   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8677 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8681   $as_echo_n "(cached) " >&6
8682 else
8683   if test -n "$DLLTOOL"; then
8684   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8688 do
8689   IFS=$as_save_IFS
8690   test -z "$as_dir" && as_dir=.
8691     for ac_exec_ext in '' $ac_executable_extensions; do
8692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695     break 2
8696   fi
8697 done
8698   done
8699 IFS=$as_save_IFS
8700
8701 fi
8702 fi
8703 DLLTOOL=$ac_cv_prog_DLLTOOL
8704 if test -n "$DLLTOOL"; then
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8706 $as_echo "$DLLTOOL" >&6; }
8707 else
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710 fi
8711
8712
8713 fi
8714 if test -z "$ac_cv_prog_DLLTOOL"; then
8715   ac_ct_DLLTOOL=$DLLTOOL
8716   # Extract the first word of "dlltool", so it can be a program name with args.
8717 set dummy dlltool; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8721   $as_echo_n "(cached) " >&6
8722 else
8723   if test -n "$ac_ct_DLLTOOL"; then
8724   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729   IFS=$as_save_IFS
8730   test -z "$as_dir" && as_dir=.
8731     for ac_exec_ext in '' $ac_executable_extensions; do
8732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8733     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8735     break 2
8736   fi
8737 done
8738   done
8739 IFS=$as_save_IFS
8740
8741 fi
8742 fi
8743 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8744 if test -n "$ac_ct_DLLTOOL"; then
8745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8746 $as_echo "$ac_ct_DLLTOOL" >&6; }
8747 else
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8750 fi
8751
8752   if test "x$ac_ct_DLLTOOL" = x; then
8753     DLLTOOL=""
8754   else
8755     case $cross_compiling:$ac_tool_warned in
8756 yes:)
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8759 ac_tool_warned=yes ;;
8760 esac
8761     DLLTOOL=$ac_ct_DLLTOOL
8762   fi
8763 else
8764   DLLTOOL="$ac_cv_prog_DLLTOOL"
8765 fi
8766
8767 if test -n "$ac_tool_prefix"; then
8768   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8769 set dummy ${ac_tool_prefix}windres; ac_word=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8773   $as_echo_n "(cached) " >&6
8774 else
8775   if test -n "$WINDRES"; then
8776   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8777 else
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 for as_dir in $PATH
8780 do
8781   IFS=$as_save_IFS
8782   test -z "$as_dir" && as_dir=.
8783     for ac_exec_ext in '' $ac_executable_extensions; do
8784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8785     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8787     break 2
8788   fi
8789 done
8790   done
8791 IFS=$as_save_IFS
8792
8793 fi
8794 fi
8795 WINDRES=$ac_cv_prog_WINDRES
8796 if test -n "$WINDRES"; then
8797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8798 $as_echo "$WINDRES" >&6; }
8799 else
8800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8802 fi
8803
8804
8805 fi
8806 if test -z "$ac_cv_prog_WINDRES"; then
8807   ac_ct_WINDRES=$WINDRES
8808   # Extract the first word of "windres", so it can be a program name with args.
8809 set dummy windres; ac_word=$2
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 $as_echo_n "checking for $ac_word... " >&6; }
8812 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8813   $as_echo_n "(cached) " >&6
8814 else
8815   if test -n "$ac_ct_WINDRES"; then
8816   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8817 else
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 for as_dir in $PATH
8820 do
8821   IFS=$as_save_IFS
8822   test -z "$as_dir" && as_dir=.
8823     for ac_exec_ext in '' $ac_executable_extensions; do
8824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8825     ac_cv_prog_ac_ct_WINDRES="windres"
8826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827     break 2
8828   fi
8829 done
8830   done
8831 IFS=$as_save_IFS
8832
8833 fi
8834 fi
8835 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8836 if test -n "$ac_ct_WINDRES"; then
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8838 $as_echo "$ac_ct_WINDRES" >&6; }
8839 else
8840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8842 fi
8843
8844   if test "x$ac_ct_WINDRES" = x; then
8845     WINDRES=""
8846   else
8847     case $cross_compiling:$ac_tool_warned in
8848 yes:)
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8851 ac_tool_warned=yes ;;
8852 esac
8853     WINDRES=$ac_ct_WINDRES
8854   fi
8855 else
8856   WINDRES="$ac_cv_prog_WINDRES"
8857 fi
8858
8859
8860 # Needed for GNU/Hurd.
8861 if test -n "$ac_tool_prefix"; then
8862   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8863 set dummy ${ac_tool_prefix}mig; ac_word=$2
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865 $as_echo_n "checking for $ac_word... " >&6; }
8866 if test "${ac_cv_prog_MIG+set}" = set; then :
8867   $as_echo_n "(cached) " >&6
8868 else
8869   if test -n "$MIG"; then
8870   ac_cv_prog_MIG="$MIG" # Let the user override the test.
8871 else
8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 for as_dir in $PATH
8874 do
8875   IFS=$as_save_IFS
8876   test -z "$as_dir" && as_dir=.
8877     for ac_exec_ext in '' $ac_executable_extensions; do
8878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8879     ac_cv_prog_MIG="${ac_tool_prefix}mig"
8880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881     break 2
8882   fi
8883 done
8884   done
8885 IFS=$as_save_IFS
8886
8887 fi
8888 fi
8889 MIG=$ac_cv_prog_MIG
8890 if test -n "$MIG"; then
8891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8892 $as_echo "$MIG" >&6; }
8893 else
8894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8896 fi
8897
8898
8899 fi
8900 if test -z "$ac_cv_prog_MIG"; then
8901   ac_ct_MIG=$MIG
8902   # Extract the first word of "mig", so it can be a program name with args.
8903 set dummy mig; ac_word=$2
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905 $as_echo_n "checking for $ac_word... " >&6; }
8906 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8907   $as_echo_n "(cached) " >&6
8908 else
8909   if test -n "$ac_ct_MIG"; then
8910   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8911 else
8912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913 for as_dir in $PATH
8914 do
8915   IFS=$as_save_IFS
8916   test -z "$as_dir" && as_dir=.
8917     for ac_exec_ext in '' $ac_executable_extensions; do
8918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8919     ac_cv_prog_ac_ct_MIG="mig"
8920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8921     break 2
8922   fi
8923 done
8924   done
8925 IFS=$as_save_IFS
8926
8927 fi
8928 fi
8929 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8930 if test -n "$ac_ct_MIG"; then
8931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8932 $as_echo "$ac_ct_MIG" >&6; }
8933 else
8934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8936 fi
8937
8938   if test "x$ac_ct_MIG" = x; then
8939     MIG=""
8940   else
8941     case $cross_compiling:$ac_tool_warned in
8942 yes:)
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8945 ac_tool_warned=yes ;;
8946 esac
8947     MIG=$ac_ct_MIG
8948   fi
8949 else
8950   MIG="$ac_cv_prog_MIG"
8951 fi
8952
8953
8954 # ---------------------- #
8955 # Checks for libraries.  #
8956 # ---------------------- #
8957
8958 # We might need to link with -lm; most simulators need it.
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8960 $as_echo_n "checking for main in -lm... " >&6; }
8961 if test "${ac_cv_lib_m_main+set}" = set; then :
8962   $as_echo_n "(cached) " >&6
8963 else
8964   ac_check_lib_save_LIBS=$LIBS
8965 LIBS="-lm  $LIBS"
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h.  */
8968
8969
8970 int
8971 main ()
8972 {
8973 return main ();
8974   ;
8975   return 0;
8976 }
8977 _ACEOF
8978 if ac_fn_c_try_link "$LINENO"; then :
8979   ac_cv_lib_m_main=yes
8980 else
8981   ac_cv_lib_m_main=no
8982 fi
8983 rm -f core conftest.err conftest.$ac_objext \
8984     conftest$ac_exeext conftest.$ac_ext
8985 LIBS=$ac_check_lib_save_LIBS
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8988 $as_echo "$ac_cv_lib_m_main" >&6; }
8989 if test "x$ac_cv_lib_m_main" = x""yes; then :
8990   cat >>confdefs.h <<_ACEOF
8991 #define HAVE_LIBM 1
8992 _ACEOF
8993
8994   LIBS="-lm $LIBS"
8995
8996 fi
8997
8998
8999 # We need to link with -lw to get `wctype' on Solaris before Solaris
9000 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
9001 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9002 # is known to have this problem).  Therefore we avoid libw if we can.
9003 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9004 if test "x$ac_cv_func_wctype" = x""yes; then :
9005
9006 else
9007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9008 $as_echo_n "checking for wctype in -lw... " >&6; }
9009 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9010   $as_echo_n "(cached) " >&6
9011 else
9012   ac_check_lib_save_LIBS=$LIBS
9013 LIBS="-lw  $LIBS"
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h.  */
9016
9017 /* Override any GCC internal prototype to avoid an error.
9018    Use char because int might match the return type of a GCC
9019    builtin and then its argument prototype would still apply.  */
9020 #ifdef __cplusplus
9021 extern "C"
9022 #endif
9023 char wctype ();
9024 int
9025 main ()
9026 {
9027 return wctype ();
9028   ;
9029   return 0;
9030 }
9031 _ACEOF
9032 if ac_fn_c_try_link "$LINENO"; then :
9033   ac_cv_lib_w_wctype=yes
9034 else
9035   ac_cv_lib_w_wctype=no
9036 fi
9037 rm -f core conftest.err conftest.$ac_objext \
9038     conftest$ac_exeext conftest.$ac_ext
9039 LIBS=$ac_check_lib_save_LIBS
9040 fi
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9042 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9043 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9044   cat >>confdefs.h <<_ACEOF
9045 #define HAVE_LIBW 1
9046 _ACEOF
9047
9048   LIBS="-lw $LIBS"
9049
9050 fi
9051
9052 fi
9053
9054
9055 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9057 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9058 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9059   $as_echo_n "(cached) " >&6
9060 else
9061   ac_func_search_save_LIBS=$LIBS
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h.  */
9064
9065 /* Override any GCC internal prototype to avoid an error.
9066    Use char because int might match the return type of a GCC
9067    builtin and then its argument prototype would still apply.  */
9068 #ifdef __cplusplus
9069 extern "C"
9070 #endif
9071 char gethostbyname ();
9072 int
9073 main ()
9074 {
9075 return gethostbyname ();
9076   ;
9077   return 0;
9078 }
9079 _ACEOF
9080 for ac_lib in '' nsl; do
9081   if test -z "$ac_lib"; then
9082     ac_res="none required"
9083   else
9084     ac_res=-l$ac_lib
9085     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9086   fi
9087   if ac_fn_c_try_link "$LINENO"; then :
9088   ac_cv_search_gethostbyname=$ac_res
9089 fi
9090 rm -f core conftest.err conftest.$ac_objext \
9091     conftest$ac_exeext
9092   if test "${ac_cv_search_gethostbyname+set}" = set; then :
9093   break
9094 fi
9095 done
9096 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9097
9098 else
9099   ac_cv_search_gethostbyname=no
9100 fi
9101 rm conftest.$ac_ext
9102 LIBS=$ac_func_search_save_LIBS
9103 fi
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9105 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9106 ac_res=$ac_cv_search_gethostbyname
9107 if test "$ac_res" != no; then :
9108   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9109
9110 fi
9111
9112
9113 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9115 $as_echo_n "checking for library containing socketpair... " >&6; }
9116 if test "${ac_cv_search_socketpair+set}" = set; then :
9117   $as_echo_n "(cached) " >&6
9118 else
9119   ac_func_search_save_LIBS=$LIBS
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h.  */
9122
9123 /* Override any GCC internal prototype to avoid an error.
9124    Use char because int might match the return type of a GCC
9125    builtin and then its argument prototype would still apply.  */
9126 #ifdef __cplusplus
9127 extern "C"
9128 #endif
9129 char socketpair ();
9130 int
9131 main ()
9132 {
9133 return socketpair ();
9134   ;
9135   return 0;
9136 }
9137 _ACEOF
9138 for ac_lib in '' socket; do
9139   if test -z "$ac_lib"; then
9140     ac_res="none required"
9141   else
9142     ac_res=-l$ac_lib
9143     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9144   fi
9145   if ac_fn_c_try_link "$LINENO"; then :
9146   ac_cv_search_socketpair=$ac_res
9147 fi
9148 rm -f core conftest.err conftest.$ac_objext \
9149     conftest$ac_exeext
9150   if test "${ac_cv_search_socketpair+set}" = set; then :
9151   break
9152 fi
9153 done
9154 if test "${ac_cv_search_socketpair+set}" = set; then :
9155
9156 else
9157   ac_cv_search_socketpair=no
9158 fi
9159 rm conftest.$ac_ext
9160 LIBS=$ac_func_search_save_LIBS
9161 fi
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9163 $as_echo "$ac_cv_search_socketpair" >&6; }
9164 ac_res=$ac_cv_search_socketpair
9165 if test "$ac_res" != no; then :
9166   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9167
9168 fi
9169
9170
9171 # Link in zlib if we can.  This allows us to read compressed debug sections.
9172
9173   # See if the user specified whether he wants zlib support or not.
9174
9175 # Check whether --with-zlib was given.
9176 if test "${with_zlib+set}" = set; then :
9177   withval=$with_zlib;
9178 else
9179   with_zlib=auto
9180 fi
9181
9182
9183   if test "$with_zlib" != "no"; then
9184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9185 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9186 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9187   $as_echo_n "(cached) " >&6
9188 else
9189   ac_func_search_save_LIBS=$LIBS
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h.  */
9192
9193 /* Override any GCC internal prototype to avoid an error.
9194    Use char because int might match the return type of a GCC
9195    builtin and then its argument prototype would still apply.  */
9196 #ifdef __cplusplus
9197 extern "C"
9198 #endif
9199 char zlibVersion ();
9200 int
9201 main ()
9202 {
9203 return zlibVersion ();
9204   ;
9205   return 0;
9206 }
9207 _ACEOF
9208 for ac_lib in '' z; do
9209   if test -z "$ac_lib"; then
9210     ac_res="none required"
9211   else
9212     ac_res=-l$ac_lib
9213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9214   fi
9215   if ac_fn_c_try_link "$LINENO"; then :
9216   ac_cv_search_zlibVersion=$ac_res
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext \
9219     conftest$ac_exeext
9220   if test "${ac_cv_search_zlibVersion+set}" = set; then :
9221   break
9222 fi
9223 done
9224 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9225
9226 else
9227   ac_cv_search_zlibVersion=no
9228 fi
9229 rm conftest.$ac_ext
9230 LIBS=$ac_func_search_save_LIBS
9231 fi
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9233 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9234 ac_res=$ac_cv_search_zlibVersion
9235 if test "$ac_res" != no; then :
9236   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9237   for ac_header in zlib.h
9238 do :
9239   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9240 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9241   cat >>confdefs.h <<_ACEOF
9242 #define HAVE_ZLIB_H 1
9243 _ACEOF
9244
9245 fi
9246
9247 done
9248
9249 fi
9250
9251     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9252       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9253     fi
9254   fi
9255
9256
9257 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9259 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9260 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9261   $as_echo_n "(cached) " >&6
9262 else
9263   ac_func_search_save_LIBS=$LIBS
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h.  */
9266
9267 /* Override any GCC internal prototype to avoid an error.
9268    Use char because int might match the return type of a GCC
9269    builtin and then its argument prototype would still apply.  */
9270 #ifdef __cplusplus
9271 extern "C"
9272 #endif
9273 char dlgetmodinfo ();
9274 int
9275 main ()
9276 {
9277 return dlgetmodinfo ();
9278   ;
9279   return 0;
9280 }
9281 _ACEOF
9282 for ac_lib in '' dl xpdl; do
9283   if test -z "$ac_lib"; then
9284     ac_res="none required"
9285   else
9286     ac_res=-l$ac_lib
9287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9288   fi
9289   if ac_fn_c_try_link "$LINENO"; then :
9290   ac_cv_search_dlgetmodinfo=$ac_res
9291 fi
9292 rm -f core conftest.err conftest.$ac_objext \
9293     conftest$ac_exeext
9294   if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9295   break
9296 fi
9297 done
9298 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9299
9300 else
9301   ac_cv_search_dlgetmodinfo=no
9302 fi
9303 rm conftest.$ac_ext
9304 LIBS=$ac_func_search_save_LIBS
9305 fi
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9307 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9308 ac_res=$ac_cv_search_dlgetmodinfo
9309 if test "$ac_res" != no; then :
9310   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9311
9312 fi
9313
9314
9315
9316
9317
9318 # Check whether --with-libiconv-prefix was given.
9319 if test "${with_libiconv_prefix+set}" = set; then :
9320   withval=$with_libiconv_prefix;
9321     for dir in `echo "$withval" | tr : ' '`; do
9322       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9323       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9324     done
9325
9326 fi
9327
9328
9329   BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9330   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9331
9332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9333 $as_echo_n "checking for iconv... " >&6; }
9334 if test "${am_cv_func_iconv+set}" = set; then :
9335   $as_echo_n "(cached) " >&6
9336 else
9337
9338     am_cv_func_iconv="no, consider installing GNU libiconv"
9339     am_cv_lib_iconv=no
9340     am_cv_use_build_libiconv=no
9341     am_cv_build_libiconv_path=
9342
9343     # If libiconv is part of the build tree, then try using it over
9344     # any system iconv.
9345     if test -d ../libiconv; then
9346       for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9347         am_save_LIBS="$LIBS"
9348         am_save_CPPFLAGS="$CPPFLAGS"
9349         LIBS="$LIBS $lib_dir/libiconv.a"
9350         CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9351         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h.  */
9353 #include <stdlib.h>
9354 #include <iconv.h>
9355 int
9356 main ()
9357 {
9358 iconv_t cd = iconv_open("","");
9359            iconv(cd,NULL,NULL,NULL,NULL);
9360            iconv_close(cd);
9361   ;
9362   return 0;
9363 }
9364 _ACEOF
9365 if ac_fn_c_try_link "$LINENO"; then :
9366   am_cv_use_build_libiconv=yes
9367           am_cv_build_libiconv_path=$lib_dir/libiconv.a
9368           am_cv_lib_iconv=yes
9369           am_cv_func_iconv=yes
9370 fi
9371 rm -f core conftest.err conftest.$ac_objext \
9372     conftest$ac_exeext conftest.$ac_ext
9373         LIBS="$am_save_LIBS"
9374         CPPFLAGS="$am_save_CPPFLAGS"
9375         if test "$am_cv_use_build_libiconv" = "yes"; then
9376           break
9377         fi
9378       done
9379     fi
9380
9381     # Next, try to find iconv in libc.
9382     if test "$am_cv_func_iconv" != yes; then
9383       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h.  */
9385 #include <stdlib.h>
9386 #include <iconv.h>
9387 int
9388 main ()
9389 {
9390 iconv_t cd = iconv_open("","");
9391          iconv(cd,NULL,NULL,NULL,NULL);
9392          iconv_close(cd);
9393   ;
9394   return 0;
9395 }
9396 _ACEOF
9397 if ac_fn_c_try_link "$LINENO"; then :
9398   am_cv_func_iconv=yes
9399 fi
9400 rm -f core conftest.err conftest.$ac_objext \
9401     conftest$ac_exeext conftest.$ac_ext
9402     fi
9403
9404     # If iconv was not in libc, try -liconv.  In this case, arrange to
9405     # look in the libiconv prefix, if it was specified by the user.
9406     if test "$am_cv_func_iconv" != yes; then
9407       am_save_CPPFLAGS="$CPPFLAGS"
9408       am_save_LIBS="$LIBS"
9409       if test -n "$LIBICONV_INCLUDE"; then
9410         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9411         LIBS="$LIBS $LIBICONV_LIBDIR"
9412       fi
9413       LIBS="$LIBS -liconv"
9414       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h.  */
9416 #include <stdlib.h>
9417 #include <iconv.h>
9418 int
9419 main ()
9420 {
9421 iconv_t cd = iconv_open("","");
9422          iconv(cd,NULL,NULL,NULL,NULL);
9423          iconv_close(cd);
9424   ;
9425   return 0;
9426 }
9427 _ACEOF
9428 if ac_fn_c_try_link "$LINENO"; then :
9429   am_cv_lib_iconv=yes
9430         am_cv_func_iconv=yes
9431 fi
9432 rm -f core conftest.err conftest.$ac_objext \
9433     conftest$ac_exeext conftest.$ac_ext
9434       LIBS="$am_save_LIBS"
9435       CPPFLAGS="$am_save_CPPFLAGS"
9436     fi
9437
9438 fi
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9440 $as_echo "$am_cv_func_iconv" >&6; }
9441
9442   # Set the various flags based on the cache variables.  We can't rely
9443   # on the flags to remain set from the above code, due to caching.
9444   LIBICONV=
9445   if test "$am_cv_lib_iconv" = yes; then
9446     LIBICONV="-liconv"
9447   else
9448     LIBICONV_LIBDIR=
9449     LIBICONV_INCLUDE=
9450   fi
9451   if test "$am_cv_use_build_libiconv" = yes; then
9452     LIBICONV="$am_cv_build_libiconv_path"
9453     LIBICONV_LIBDIR=""
9454     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9455   fi
9456   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9457   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9458
9459   if test "$am_cv_func_iconv" = yes; then
9460
9461 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9462
9463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9464 $as_echo_n "checking for iconv declaration... " >&6; }
9465     if test "${am_cv_proto_iconv+set}" = set; then :
9466   $as_echo_n "(cached) " >&6
9467 else
9468
9469       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h.  */
9471
9472 #include <stdlib.h>
9473 #include <iconv.h>
9474 extern
9475 #ifdef __cplusplus
9476 "C"
9477 #endif
9478 #if defined(__STDC__) || defined(__cplusplus)
9479 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9480 #else
9481 size_t iconv();
9482 #endif
9483
9484 int
9485 main ()
9486 {
9487
9488   ;
9489   return 0;
9490 }
9491 _ACEOF
9492 if ac_fn_c_try_compile "$LINENO"; then :
9493   am_cv_proto_iconv_arg1=""
9494 else
9495   am_cv_proto_iconv_arg1="const"
9496 fi
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498       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);"
9499 fi
9500
9501     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9503          }$am_cv_proto_iconv" >&5
9504 $as_echo "${ac_t:-
9505          }$am_cv_proto_iconv" >&6; }
9506
9507 cat >>confdefs.h <<_ACEOF
9508 #define ICONV_CONST $am_cv_proto_iconv_arg1
9509 _ACEOF
9510
9511   fi
9512
9513
9514 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9515 # There is a very specific comment in /usr/include/curses.h explaining that
9516 # termcap routines built into libcurses must not be used.
9517 #
9518 # The symptoms we observed so far is GDB unexpectedly changing
9519 # the terminal settings when tgetent is called - this is particularly
9520 # visible as the output is missing carriage returns, and so rapidly
9521 # becomes very hard to read.
9522 #
9523 # The readline configure script has already decided that libtermcap
9524 # was enough for its purposes, and so decided to build readline using
9525 # libtermcap.  Since the TUI mode requires curses, building GDB with
9526 # TUI enabled results in both libraries to be used at the same time,
9527 # which is not allowed.  This basically means that GDB with TUI is
9528 # broken on alpha-osf.
9529
9530 case $host_os in
9531   osf* )
9532     if test x"$enable_tui" = xyes; then
9533       as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9534     fi
9535     if test x"$enable_tui" = xauto; then
9536       enable_tui=no
9537     fi
9538     ;;
9539 esac
9540
9541 # For the TUI, we need enhanced curses functionality.
9542 if test x"$enable_tui" != xno; then
9543   prefer_curses=yes
9544 fi
9545
9546 curses_found=no
9547 if test x"$prefer_curses" = xyes; then
9548   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9549   # curses library because the latter might not provide all the
9550   # functionality we need.  However, this leads to problems on systems
9551   # where the linker searches /usr/local/lib, but the compiler doesn't
9552   # search /usr/local/include, if ncurses is installed in /usr/local.  A
9553   # default installation of ncurses on alpha*-dec-osf* will lead to such
9554   # a situation.
9555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9556 $as_echo_n "checking for library containing waddstr... " >&6; }
9557 if test "${ac_cv_search_waddstr+set}" = set; then :
9558   $as_echo_n "(cached) " >&6
9559 else
9560   ac_func_search_save_LIBS=$LIBS
9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h.  */
9563
9564 /* Override any GCC internal prototype to avoid an error.
9565    Use char because int might match the return type of a GCC
9566    builtin and then its argument prototype would still apply.  */
9567 #ifdef __cplusplus
9568 extern "C"
9569 #endif
9570 char waddstr ();
9571 int
9572 main ()
9573 {
9574 return waddstr ();
9575   ;
9576   return 0;
9577 }
9578 _ACEOF
9579 for ac_lib in '' ncurses cursesX curses; do
9580   if test -z "$ac_lib"; then
9581     ac_res="none required"
9582   else
9583     ac_res=-l$ac_lib
9584     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9585   fi
9586   if ac_fn_c_try_link "$LINENO"; then :
9587   ac_cv_search_waddstr=$ac_res
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext \
9590     conftest$ac_exeext
9591   if test "${ac_cv_search_waddstr+set}" = set; then :
9592   break
9593 fi
9594 done
9595 if test "${ac_cv_search_waddstr+set}" = set; then :
9596
9597 else
9598   ac_cv_search_waddstr=no
9599 fi
9600 rm conftest.$ac_ext
9601 LIBS=$ac_func_search_save_LIBS
9602 fi
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9604 $as_echo "$ac_cv_search_waddstr" >&6; }
9605 ac_res=$ac_cv_search_waddstr
9606 if test "$ac_res" != no; then :
9607   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9608
9609 fi
9610
9611
9612   if test "$ac_cv_search_waddstr" != no; then
9613     curses_found=yes
9614   fi
9615 fi
9616
9617 # Check whether we should enable the TUI, but only do so if we really
9618 # can.
9619 if test x"$enable_tui" != xno; then
9620   if test -d $srcdir/tui; then
9621     if test "$curses_found" != no; then
9622       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9623       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9624       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9625       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9626       CONFIG_ALL="${CONFIG_ALL} all-tui"
9627       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9628       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9629       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9630     else
9631       if test x"$enable_tui" = xyes; then
9632         as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9633       else
9634         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9635 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9636       fi
9637     fi
9638   fi
9639 fi
9640
9641 # Since GDB uses Readline, we need termcap functionality.  In many
9642 # cases this will be provided by the curses library, but some systems
9643 # have a seperate termcap library, or no curses library at all.
9644
9645 case $host_os in
9646   cygwin*)
9647     if test -d $srcdir/libtermcap; then
9648       LIBS="../libtermcap/libtermcap.a $LIBS"
9649       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9650     fi ;;
9651   go32* | *djgpp*)
9652     ac_cv_search_tgetent="none required"
9653     ;;
9654   *mingw32*)
9655     ac_cv_search_tgetent="none required"
9656     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9657     ;;
9658 esac
9659
9660 # These are the libraries checked by Readline.
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9662 $as_echo_n "checking for library containing tgetent... " >&6; }
9663 if test "${ac_cv_search_tgetent+set}" = set; then :
9664   $as_echo_n "(cached) " >&6
9665 else
9666   ac_func_search_save_LIBS=$LIBS
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h.  */
9669
9670 /* Override any GCC internal prototype to avoid an error.
9671    Use char because int might match the return type of a GCC
9672    builtin and then its argument prototype would still apply.  */
9673 #ifdef __cplusplus
9674 extern "C"
9675 #endif
9676 char tgetent ();
9677 int
9678 main ()
9679 {
9680 return tgetent ();
9681   ;
9682   return 0;
9683 }
9684 _ACEOF
9685 for ac_lib in '' termcap tinfo curses ncurses; do
9686   if test -z "$ac_lib"; then
9687     ac_res="none required"
9688   else
9689     ac_res=-l$ac_lib
9690     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9691   fi
9692   if ac_fn_c_try_link "$LINENO"; then :
9693   ac_cv_search_tgetent=$ac_res
9694 fi
9695 rm -f core conftest.err conftest.$ac_objext \
9696     conftest$ac_exeext
9697   if test "${ac_cv_search_tgetent+set}" = set; then :
9698   break
9699 fi
9700 done
9701 if test "${ac_cv_search_tgetent+set}" = set; then :
9702
9703 else
9704   ac_cv_search_tgetent=no
9705 fi
9706 rm conftest.$ac_ext
9707 LIBS=$ac_func_search_save_LIBS
9708 fi
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9710 $as_echo "$ac_cv_search_tgetent" >&6; }
9711 ac_res=$ac_cv_search_tgetent
9712 if test "$ac_res" != no; then :
9713   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9714
9715 fi
9716
9717
9718 if test "$ac_cv_search_tgetent" = no; then
9719   as_fn_error "no termcap library found" "$LINENO" 5
9720 fi
9721
9722
9723 # Check whether --with-system-readline was given.
9724 if test "${with_system_readline+set}" = set; then :
9725   withval=$with_system_readline;
9726 fi
9727
9728
9729 if test "$with_system_readline" = yes; then
9730   READLINE=-lreadline
9731   READLINE_DEPS=
9732   READLINE_CFLAGS=
9733
9734   # readline-6.0 started to use the name `_rl_echoing_p'.
9735   # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9736
9737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9738 $as_echo_n "checking for readline_echoing_p... " >&6; }
9739   save_LIBS=$LIBS
9740   LIBS="$LIBS $READLINE"
9741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h.  */
9743
9744 int
9745 main ()
9746 {
9747 extern int readline_echoing_p;
9748                                     return readline_echoing_p;
9749   ;
9750   return 0;
9751 }
9752 _ACEOF
9753 if ac_fn_c_try_link "$LINENO"; then :
9754   READLINE_ECHOING_P=yes
9755 else
9756   READLINE_ECHOING_P=no
9757
9758 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9759
9760 fi
9761 rm -f core conftest.err conftest.$ac_objext \
9762     conftest$ac_exeext conftest.$ac_ext
9763   LIBS="$save_LIBS"
9764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9765 $as_echo "$READLINE_ECHOING_P" >&6; }
9766 else
9767   READLINE='$(READLINE_DIR)/libreadline.a'
9768   READLINE_DEPS='$(READLINE)'
9769   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9770 fi
9771
9772
9773
9774
9775
9776 # Check whether --with-expat was given.
9777 if test "${with_expat+set}" = set; then :
9778   withval=$with_expat;
9779 else
9780   with_expat=auto
9781 fi
9782
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9784 $as_echo_n "checking whether to use expat... " >&6; }
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9786 $as_echo "$with_expat" >&6; }
9787
9788 if test "${with_expat}" = no; then
9789   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9790 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9791   HAVE_LIBEXPAT=no
9792 else
9793
9794       if test "X$prefix" = "XNONE"; then
9795     acl_final_prefix="$ac_default_prefix"
9796   else
9797     acl_final_prefix="$prefix"
9798   fi
9799   if test "X$exec_prefix" = "XNONE"; then
9800     acl_final_exec_prefix='${prefix}'
9801   else
9802     acl_final_exec_prefix="$exec_prefix"
9803   fi
9804   acl_save_prefix="$prefix"
9805   prefix="$acl_final_prefix"
9806   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9807   prefix="$acl_save_prefix"
9808
9809
9810 # Check whether --with-gnu-ld was given.
9811 if test "${with_gnu_ld+set}" = set; then :
9812   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9813 else
9814   with_gnu_ld=no
9815 fi
9816
9817 # Prepare PATH_SEPARATOR.
9818 # The user is always right.
9819 if test "${PATH_SEPARATOR+set}" != set; then
9820   echo "#! /bin/sh" >conf$$.sh
9821   echo  "exit 0"   >>conf$$.sh
9822   chmod +x conf$$.sh
9823   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9824     PATH_SEPARATOR=';'
9825   else
9826     PATH_SEPARATOR=:
9827   fi
9828   rm -f conf$$.sh
9829 fi
9830 ac_prog=ld
9831 if test "$GCC" = yes; then
9832   # Check if gcc -print-prog-name=ld gives a path.
9833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9834 $as_echo_n "checking for ld used by GCC... " >&6; }
9835   case $host in
9836   *-*-mingw*)
9837     # gcc leaves a trailing carriage return which upsets mingw
9838     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9839   *)
9840     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9841   esac
9842   case $ac_prog in
9843     # Accept absolute paths.
9844     [\\/]* | [A-Za-z]:[\\/]*)
9845       re_direlt='/[^/][^/]*/\.\./'
9846       # Canonicalize the path of ld
9847       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9848       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9849         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9850       done
9851       test -z "$LD" && LD="$ac_prog"
9852       ;;
9853   "")
9854     # If it fails, then pretend we aren't using GCC.
9855     ac_prog=ld
9856     ;;
9857   *)
9858     # If it is relative, then search for the first ld in PATH.
9859     with_gnu_ld=unknown
9860     ;;
9861   esac
9862 elif test "$with_gnu_ld" = yes; then
9863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9864 $as_echo_n "checking for GNU ld... " >&6; }
9865 else
9866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9867 $as_echo_n "checking for non-GNU ld... " >&6; }
9868 fi
9869 if test "${acl_cv_path_LD+set}" = set; then :
9870   $as_echo_n "(cached) " >&6
9871 else
9872   if test -z "$LD"; then
9873   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9874   for ac_dir in $PATH; do
9875     test -z "$ac_dir" && ac_dir=.
9876     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9877       acl_cv_path_LD="$ac_dir/$ac_prog"
9878       # Check to see if the program is GNU ld.  I'd rather use --version,
9879       # but apparently some GNU ld's only accept -v.
9880       # Break only if it was the GNU/non-GNU ld that we prefer.
9881       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9882         test "$with_gnu_ld" != no && break
9883       else
9884         test "$with_gnu_ld" != yes && break
9885       fi
9886     fi
9887   done
9888   IFS="$ac_save_ifs"
9889 else
9890   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9891 fi
9892 fi
9893
9894 LD="$acl_cv_path_LD"
9895 if test -n "$LD"; then
9896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9897 $as_echo "$LD" >&6; }
9898 else
9899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9901 fi
9902 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9904 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9905 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9906   $as_echo_n "(cached) " >&6
9907 else
9908   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9909 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9910   acl_cv_prog_gnu_ld=yes
9911 else
9912   acl_cv_prog_gnu_ld=no
9913 fi
9914 fi
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9916 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9917 with_gnu_ld=$acl_cv_prog_gnu_ld
9918
9919
9920
9921                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9922 $as_echo_n "checking for shared library run path origin... " >&6; }
9923 if test "${acl_cv_rpath+set}" = set; then :
9924   $as_echo_n "(cached) " >&6
9925 else
9926
9927     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9928     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9929     . ./conftest.sh
9930     rm -f ./conftest.sh
9931     acl_cv_rpath=done
9932
9933 fi
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9935 $as_echo "$acl_cv_rpath" >&6; }
9936   wl="$acl_cv_wl"
9937   libext="$acl_cv_libext"
9938   shlibext="$acl_cv_shlibext"
9939   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9940   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9941   hardcode_direct="$acl_cv_hardcode_direct"
9942   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9943     # Check whether --enable-rpath was given.
9944 if test "${enable_rpath+set}" = set; then :
9945   enableval=$enable_rpath; :
9946 else
9947   enable_rpath=yes
9948 fi
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959     use_additional=yes
9960
9961   acl_save_prefix="$prefix"
9962   prefix="$acl_final_prefix"
9963   acl_save_exec_prefix="$exec_prefix"
9964   exec_prefix="$acl_final_exec_prefix"
9965
9966     eval additional_includedir=\"$includedir\"
9967     eval additional_libdir=\"$libdir\"
9968
9969   exec_prefix="$acl_save_exec_prefix"
9970   prefix="$acl_save_prefix"
9971
9972
9973 # Check whether --with-libexpat-prefix was given.
9974 if test "${with_libexpat_prefix+set}" = set; then :
9975   withval=$with_libexpat_prefix;
9976     if test "X$withval" = "Xno"; then
9977       use_additional=no
9978     else
9979       if test "X$withval" = "X"; then
9980
9981   acl_save_prefix="$prefix"
9982   prefix="$acl_final_prefix"
9983   acl_save_exec_prefix="$exec_prefix"
9984   exec_prefix="$acl_final_exec_prefix"
9985
9986           eval additional_includedir=\"$includedir\"
9987           eval additional_libdir=\"$libdir\"
9988
9989   exec_prefix="$acl_save_exec_prefix"
9990   prefix="$acl_save_prefix"
9991
9992       else
9993         additional_includedir="$withval/include"
9994         additional_libdir="$withval/lib"
9995       fi
9996     fi
9997
9998 fi
9999
10000       LIBEXPAT=
10001   LTLIBEXPAT=
10002   INCEXPAT=
10003   rpathdirs=
10004   ltrpathdirs=
10005   names_already_handled=
10006   names_next_round='expat '
10007   while test -n "$names_next_round"; do
10008     names_this_round="$names_next_round"
10009     names_next_round=
10010     for name in $names_this_round; do
10011       already_handled=
10012       for n in $names_already_handled; do
10013         if test "$n" = "$name"; then
10014           already_handled=yes
10015           break
10016         fi
10017       done
10018       if test -z "$already_handled"; then
10019         names_already_handled="$names_already_handled $name"
10020                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10021         eval value=\"\$HAVE_LIB$uppername\"
10022         if test -n "$value"; then
10023           if test "$value" = yes; then
10024             eval value=\"\$LIB$uppername\"
10025             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10026             eval value=\"\$LTLIB$uppername\"
10027             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10028           else
10029                                     :
10030           fi
10031         else
10032                               found_dir=
10033           found_la=
10034           found_so=
10035           found_a=
10036           if test $use_additional = yes; then
10037             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10038               found_dir="$additional_libdir"
10039               found_so="$additional_libdir/lib$name.$shlibext"
10040               if test -f "$additional_libdir/lib$name.la"; then
10041                 found_la="$additional_libdir/lib$name.la"
10042               fi
10043             else
10044               if test -f "$additional_libdir/lib$name.$libext"; then
10045                 found_dir="$additional_libdir"
10046                 found_a="$additional_libdir/lib$name.$libext"
10047                 if test -f "$additional_libdir/lib$name.la"; then
10048                   found_la="$additional_libdir/lib$name.la"
10049                 fi
10050               fi
10051             fi
10052           fi
10053           if test "X$found_dir" = "X"; then
10054             for x in $LDFLAGS $LTLIBEXPAT; do
10055
10056   acl_save_prefix="$prefix"
10057   prefix="$acl_final_prefix"
10058   acl_save_exec_prefix="$exec_prefix"
10059   exec_prefix="$acl_final_exec_prefix"
10060   eval x=\"$x\"
10061   exec_prefix="$acl_save_exec_prefix"
10062   prefix="$acl_save_prefix"
10063
10064               case "$x" in
10065                 -L*)
10066                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10067                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10068                     found_dir="$dir"
10069                     found_so="$dir/lib$name.$shlibext"
10070                     if test -f "$dir/lib$name.la"; then
10071                       found_la="$dir/lib$name.la"
10072                     fi
10073                   else
10074                     if test -f "$dir/lib$name.$libext"; then
10075                       found_dir="$dir"
10076                       found_a="$dir/lib$name.$libext"
10077                       if test -f "$dir/lib$name.la"; then
10078                         found_la="$dir/lib$name.la"
10079                       fi
10080                     fi
10081                   fi
10082                   ;;
10083               esac
10084               if test "X$found_dir" != "X"; then
10085                 break
10086               fi
10087             done
10088           fi
10089           if test "X$found_dir" != "X"; then
10090                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10091             if test "X$found_so" != "X"; then
10092                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10093                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10094               else
10095                                                                                 haveit=
10096                 for x in $ltrpathdirs; do
10097                   if test "X$x" = "X$found_dir"; then
10098                     haveit=yes
10099                     break
10100                   fi
10101                 done
10102                 if test -z "$haveit"; then
10103                   ltrpathdirs="$ltrpathdirs $found_dir"
10104                 fi
10105                                 if test "$hardcode_direct" = yes; then
10106                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10107                 else
10108                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10109                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10110                                                             haveit=
10111                     for x in $rpathdirs; 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                       rpathdirs="$rpathdirs $found_dir"
10119                     fi
10120                   else
10121                                                                                 haveit=
10122                     for x in $LDFLAGS $LIBEXPAT; do
10123
10124   acl_save_prefix="$prefix"
10125   prefix="$acl_final_prefix"
10126   acl_save_exec_prefix="$exec_prefix"
10127   exec_prefix="$acl_final_exec_prefix"
10128   eval x=\"$x\"
10129   exec_prefix="$acl_save_exec_prefix"
10130   prefix="$acl_save_prefix"
10131
10132                       if test "X$x" = "X-L$found_dir"; then
10133                         haveit=yes
10134                         break
10135                       fi
10136                     done
10137                     if test -z "$haveit"; then
10138                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10139                     fi
10140                     if test "$hardcode_minus_L" != no; then
10141                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10142                     else
10143                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10144                     fi
10145                   fi
10146                 fi
10147               fi
10148             else
10149               if test "X$found_a" != "X"; then
10150                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10151               else
10152                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10153               fi
10154             fi
10155                         additional_includedir=
10156             case "$found_dir" in
10157               */lib | */lib/)
10158                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10159                 additional_includedir="$basedir/include"
10160                 ;;
10161             esac
10162             if test "X$additional_includedir" != "X"; then
10163                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10164                 haveit=
10165                 if test "X$additional_includedir" = "X/usr/local/include"; then
10166                   if test -n "$GCC"; then
10167                     case $host_os in
10168                       linux*) haveit=yes;;
10169                     esac
10170                   fi
10171                 fi
10172                 if test -z "$haveit"; then
10173                   for x in $CPPFLAGS $INCEXPAT; do
10174
10175   acl_save_prefix="$prefix"
10176   prefix="$acl_final_prefix"
10177   acl_save_exec_prefix="$exec_prefix"
10178   exec_prefix="$acl_final_exec_prefix"
10179   eval x=\"$x\"
10180   exec_prefix="$acl_save_exec_prefix"
10181   prefix="$acl_save_prefix"
10182
10183                     if test "X$x" = "X-I$additional_includedir"; then
10184                       haveit=yes
10185                       break
10186                     fi
10187                   done
10188                   if test -z "$haveit"; then
10189                     if test -d "$additional_includedir"; then
10190                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10191                     fi
10192                   fi
10193                 fi
10194               fi
10195             fi
10196                         if test -n "$found_la"; then
10197                                                         save_libdir="$libdir"
10198               case "$found_la" in
10199                 */* | *\\*) . "$found_la" ;;
10200                 *) . "./$found_la" ;;
10201               esac
10202               libdir="$save_libdir"
10203                             for dep in $dependency_libs; do
10204                 case "$dep" in
10205                   -L*)
10206                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10207                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10208                       haveit=
10209                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10210                         if test -n "$GCC"; then
10211                           case $host_os in
10212                             linux*) haveit=yes;;
10213                           esac
10214                         fi
10215                       fi
10216                       if test -z "$haveit"; then
10217                         haveit=
10218                         for x in $LDFLAGS $LIBEXPAT; do
10219
10220   acl_save_prefix="$prefix"
10221   prefix="$acl_final_prefix"
10222   acl_save_exec_prefix="$exec_prefix"
10223   exec_prefix="$acl_final_exec_prefix"
10224   eval x=\"$x\"
10225   exec_prefix="$acl_save_exec_prefix"
10226   prefix="$acl_save_prefix"
10227
10228                           if test "X$x" = "X-L$additional_libdir"; then
10229                             haveit=yes
10230                             break
10231                           fi
10232                         done
10233                         if test -z "$haveit"; then
10234                           if test -d "$additional_libdir"; then
10235                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10236                           fi
10237                         fi
10238                         haveit=
10239                         for x in $LDFLAGS $LTLIBEXPAT; do
10240
10241   acl_save_prefix="$prefix"
10242   prefix="$acl_final_prefix"
10243   acl_save_exec_prefix="$exec_prefix"
10244   exec_prefix="$acl_final_exec_prefix"
10245   eval x=\"$x\"
10246   exec_prefix="$acl_save_exec_prefix"
10247   prefix="$acl_save_prefix"
10248
10249                           if test "X$x" = "X-L$additional_libdir"; then
10250                             haveit=yes
10251                             break
10252                           fi
10253                         done
10254                         if test -z "$haveit"; then
10255                           if test -d "$additional_libdir"; then
10256                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10257                           fi
10258                         fi
10259                       fi
10260                     fi
10261                     ;;
10262                   -R*)
10263                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10264                     if test "$enable_rpath" != no; then
10265                                                                   haveit=
10266                       for x in $rpathdirs; do
10267                         if test "X$x" = "X$dir"; then
10268                           haveit=yes
10269                           break
10270                         fi
10271                       done
10272                       if test -z "$haveit"; then
10273                         rpathdirs="$rpathdirs $dir"
10274                       fi
10275                                                                   haveit=
10276                       for x in $ltrpathdirs; do
10277                         if test "X$x" = "X$dir"; then
10278                           haveit=yes
10279                           break
10280                         fi
10281                       done
10282                       if test -z "$haveit"; then
10283                         ltrpathdirs="$ltrpathdirs $dir"
10284                       fi
10285                     fi
10286                     ;;
10287                   -l*)
10288                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10289                     ;;
10290                   *.la)
10291                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10292                     ;;
10293                   *)
10294                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10295                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10296                     ;;
10297                 esac
10298               done
10299             fi
10300           else
10301                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10302             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10303           fi
10304         fi
10305       fi
10306     done
10307   done
10308   if test "X$rpathdirs" != "X"; then
10309     if test -n "$hardcode_libdir_separator"; then
10310                         alldirs=
10311       for found_dir in $rpathdirs; do
10312         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10313       done
10314             acl_save_libdir="$libdir"
10315       libdir="$alldirs"
10316       eval flag=\"$hardcode_libdir_flag_spec\"
10317       libdir="$acl_save_libdir"
10318       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10319     else
10320             for found_dir in $rpathdirs; do
10321         acl_save_libdir="$libdir"
10322         libdir="$found_dir"
10323         eval flag=\"$hardcode_libdir_flag_spec\"
10324         libdir="$acl_save_libdir"
10325         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10326       done
10327     fi
10328   fi
10329   if test "X$ltrpathdirs" != "X"; then
10330             for found_dir in $ltrpathdirs; do
10331       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10332     done
10333   fi
10334
10335
10336         ac_save_CPPFLAGS="$CPPFLAGS"
10337
10338   for element in $INCEXPAT; do
10339     haveit=
10340     for x in $CPPFLAGS; do
10341
10342   acl_save_prefix="$prefix"
10343   prefix="$acl_final_prefix"
10344   acl_save_exec_prefix="$exec_prefix"
10345   exec_prefix="$acl_final_exec_prefix"
10346   eval x=\"$x\"
10347   exec_prefix="$acl_save_exec_prefix"
10348   prefix="$acl_save_prefix"
10349
10350       if test "X$x" = "X$element"; then
10351         haveit=yes
10352         break
10353       fi
10354     done
10355     if test -z "$haveit"; then
10356       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10357     fi
10358   done
10359
10360
10361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10362 $as_echo_n "checking for libexpat... " >&6; }
10363 if test "${ac_cv_libexpat+set}" = set; then :
10364   $as_echo_n "(cached) " >&6
10365 else
10366
10367     ac_save_LIBS="$LIBS"
10368     LIBS="$LIBS $LIBEXPAT"
10369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h.  */
10371 #include "expat.h"
10372 int
10373 main ()
10374 {
10375 XML_Parser p = XML_ParserCreate (0);
10376   ;
10377   return 0;
10378 }
10379 _ACEOF
10380 if ac_fn_c_try_link "$LINENO"; then :
10381   ac_cv_libexpat=yes
10382 else
10383   ac_cv_libexpat=no
10384 fi
10385 rm -f core conftest.err conftest.$ac_objext \
10386     conftest$ac_exeext conftest.$ac_ext
10387     LIBS="$ac_save_LIBS"
10388
10389 fi
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10391 $as_echo "$ac_cv_libexpat" >&6; }
10392   if test "$ac_cv_libexpat" = yes; then
10393     HAVE_LIBEXPAT=yes
10394
10395 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10396
10397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10398 $as_echo_n "checking how to link with libexpat... " >&6; }
10399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10400 $as_echo "$LIBEXPAT" >&6; }
10401   else
10402     HAVE_LIBEXPAT=no
10403             CPPFLAGS="$ac_save_CPPFLAGS"
10404     LIBEXPAT=
10405     LTLIBEXPAT=
10406   fi
10407
10408
10409
10410
10411
10412
10413   if test "$HAVE_LIBEXPAT" != yes; then
10414     if test "$with_expat" = yes; then
10415       as_fn_error "expat is missing or unusable" "$LINENO" 5
10416     else
10417       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10418 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10419     fi
10420   else
10421     save_LIBS=$LIBS
10422     LIBS="$LIBS $LIBEXPAT"
10423     for ac_func in XML_StopParser
10424 do :
10425   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10426 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10427   cat >>confdefs.h <<_ACEOF
10428 #define HAVE_XML_STOPPARSER 1
10429 _ACEOF
10430
10431 fi
10432 done
10433
10434     LIBS=$save_LIBS
10435   fi
10436 fi
10437
10438
10439
10440
10441
10442
10443 # Check whether --with-python was given.
10444 if test "${with_python+set}" = set; then :
10445   withval=$with_python;
10446 else
10447   with_python=auto
10448 fi
10449
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10451 $as_echo_n "checking whether to use python... " >&6; }
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10453 $as_echo "$with_python" >&6; }
10454
10455 if test "${with_python}" = no; then
10456   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10457 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10458   have_libpython=no
10459 else
10460   case "${with_python}" in
10461   /*)
10462     if test -d ${with_python}; then
10463       # Assume the python binary is ${with_python}/bin/python.
10464       python_prog="${with_python}/bin/python"
10465       python_prefix=
10466       if test ! -x ${python_prog}; then
10467         # Fall back to gdb 7.0/7.1 behaviour.
10468         python_prog=missing
10469         python_prefix=${with_python}
10470       fi
10471     elif test -x ${with_python}; then
10472       # While we can't run python compiled for $host (unless host == build),
10473       # the user could write a script that provides the needed information,
10474       # so we support that.
10475       python_prog=${with_python}
10476       python_prefix=
10477     else
10478       as_fn_error "invalid value for --with-python" "$LINENO" 5
10479     fi
10480     ;;
10481   */*)
10482     # Disallow --with-python=foo/bar.
10483     as_fn_error "invalid value for --with-python" "$LINENO" 5
10484     ;;
10485   *)
10486     # The user has either specified auto, yes, or the name of the python
10487     # program assumed to be in $PATH.
10488     python_prefix=
10489     case "${with_python}" in
10490     yes | auto)
10491       if test ${build} = ${host}; then
10492         # Extract the first word of "python", so it can be a program name with args.
10493 set dummy python; ac_word=$2
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495 $as_echo_n "checking for $ac_word... " >&6; }
10496 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10497   $as_echo_n "(cached) " >&6
10498 else
10499   case $python_prog_path in
10500   [\\/]* | ?:[\\/]*)
10501   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10502   ;;
10503   *)
10504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10506 do
10507   IFS=$as_save_IFS
10508   test -z "$as_dir" && as_dir=.
10509     for ac_exec_ext in '' $ac_executable_extensions; do
10510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10511     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513     break 2
10514   fi
10515 done
10516   done
10517 IFS=$as_save_IFS
10518
10519   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10520   ;;
10521 esac
10522 fi
10523 python_prog_path=$ac_cv_path_python_prog_path
10524 if test -n "$python_prog_path"; then
10525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10526 $as_echo "$python_prog_path" >&6; }
10527 else
10528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10530 fi
10531
10532
10533         if test "${python_prog_path}" = missing; then
10534           python_prog=missing
10535         else
10536           python_prog=${python_prog_path}
10537         fi
10538       else
10539         # Not much we can do except assume the cross-compiler will find the
10540         # right files.
10541         python_prog=missing
10542       fi
10543       ;;
10544     *)
10545       # While we can't run python compiled for $host (unless host == build),
10546       # the user could write a script that provides the needed information,
10547       # so we support that.
10548       python_prog="${with_python}"
10549       # Extract the first word of "${python_prog}", so it can be a program name with args.
10550 set dummy ${python_prog}; ac_word=$2
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10552 $as_echo_n "checking for $ac_word... " >&6; }
10553 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10554   $as_echo_n "(cached) " >&6
10555 else
10556   case $python_prog_path in
10557   [\\/]* | ?:[\\/]*)
10558   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10559   ;;
10560   *)
10561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562 for as_dir in $PATH
10563 do
10564   IFS=$as_save_IFS
10565   test -z "$as_dir" && as_dir=.
10566     for ac_exec_ext in '' $ac_executable_extensions; do
10567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10568     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10570     break 2
10571   fi
10572 done
10573   done
10574 IFS=$as_save_IFS
10575
10576   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10577   ;;
10578 esac
10579 fi
10580 python_prog_path=$ac_cv_path_python_prog_path
10581 if test -n "$python_prog_path"; then
10582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10583 $as_echo "$python_prog_path" >&6; }
10584 else
10585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10587 fi
10588
10589
10590       if test "${python_prog_path}" = missing; then
10591         as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10592       fi
10593       ;;
10594     esac
10595   esac
10596
10597   if test "${python_prog}" != missing; then
10598     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10599     if test $? != 0; then
10600       as_fn_error "failure running python-config --includes" "$LINENO" 5
10601     fi
10602     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10603     if test $? != 0; then
10604       as_fn_error "failure running python-config --ldflags" "$LINENO" 5
10605     fi
10606     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10607     if test $? != 0; then
10608       as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10609     fi
10610     have_python_config=yes
10611   else
10612     # Fall back to gdb 7.0/7.1 behaviour.
10613     if test -z ${python_prefix}; then
10614       python_includes=
10615       python_libs=
10616     else
10617       python_includes="-I${python_prefix}/include"
10618       python_libs="-L${python_prefix}/lib"
10619     fi
10620     have_python_config=no
10621   fi
10622
10623   # Having "/pythonX.Y" in the include path is awkward.
10624   # All those python headers get bubbled up to the top inviting lots
10625   # of random collisions.  GDB originally didn't use python-config to
10626   # find the compilation parameters and includes "pythonX.Y/" in the
10627   # path of the, umm, include file.  So strip away this part of the
10628   # output of python-config --includes.
10629   python_includes=`echo "${python_includes} " \
10630                         | sed -e 's,/python[0-9]*[.][0-9]* , ,g'`
10631
10632   # If we have python-config, only try the configuration it provides.
10633   # Otherwise fallback on the old way of trying different versions of
10634   # python in turn.
10635
10636   have_libpython=no
10637   if test "${have_python_config}" = yes; then
10638     python_version=`echo " ${python_libs} " \
10639                          | sed -e 's,^.* -l\(python[0-9]*[.][0-9]*\) .*$,\1,'`
10640     case "${python_version}" in
10641     python*)
10642
10643   version=${python_version}
10644
10645   new_CPPFLAGS=${python_includes}
10646   new_LIBS=${python_libs}
10647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10648 $as_echo_n "checking for ${version}... " >&6; }
10649   save_CPPFLAGS=$CPPFLAGS
10650   save_LIBS=$LIBS
10651   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10652   LIBS="$LIBS $new_LIBS"
10653   found_usable_python=no
10654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h.  */
10656 #include "${version}/Python.h"
10657 int
10658 main ()
10659 {
10660 Py_Initialize ();
10661   ;
10662   return 0;
10663 }
10664 _ACEOF
10665 if ac_fn_c_try_link "$LINENO"; then :
10666   have_libpython=${version}
10667                   found_usable_python=yes
10668 else
10669   CPPFLAGS=$save_CPPFLAGS
10670                   LIBS=$save_LIBS
10671 fi
10672 rm -f core conftest.err conftest.$ac_objext \
10673     conftest$ac_exeext conftest.$ac_ext
10674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10675 $as_echo "${found_usable_python}" >&6; }
10676
10677       ;;
10678     *)
10679       as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
10680       ;;
10681     esac
10682   else
10683     if test "${have_libpython}" = no; then
10684
10685   version=python2.6
10686
10687   new_CPPFLAGS=${python_includes}
10688   new_LIBS="${python_libs} -lpython2.6"
10689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10690 $as_echo_n "checking for ${version}... " >&6; }
10691   save_CPPFLAGS=$CPPFLAGS
10692   save_LIBS=$LIBS
10693   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10694   LIBS="$LIBS $new_LIBS"
10695   found_usable_python=no
10696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h.  */
10698 #include "${version}/Python.h"
10699 int
10700 main ()
10701 {
10702 Py_Initialize ();
10703   ;
10704   return 0;
10705 }
10706 _ACEOF
10707 if ac_fn_c_try_link "$LINENO"; then :
10708   have_libpython=${version}
10709                   found_usable_python=yes
10710 else
10711   CPPFLAGS=$save_CPPFLAGS
10712                   LIBS=$save_LIBS
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext \
10715     conftest$ac_exeext conftest.$ac_ext
10716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10717 $as_echo "${found_usable_python}" >&6; }
10718
10719     fi
10720     if test ${have_libpython} = no; then
10721
10722   version=python2.5
10723
10724   new_CPPFLAGS=${python_includes}
10725   new_LIBS="${python_libs} -lpython2.5"
10726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10727 $as_echo_n "checking for ${version}... " >&6; }
10728   save_CPPFLAGS=$CPPFLAGS
10729   save_LIBS=$LIBS
10730   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10731   LIBS="$LIBS $new_LIBS"
10732   found_usable_python=no
10733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h.  */
10735 #include "${version}/Python.h"
10736 int
10737 main ()
10738 {
10739 Py_Initialize ();
10740   ;
10741   return 0;
10742 }
10743 _ACEOF
10744 if ac_fn_c_try_link "$LINENO"; then :
10745   have_libpython=${version}
10746                   found_usable_python=yes
10747 else
10748   CPPFLAGS=$save_CPPFLAGS
10749                   LIBS=$save_LIBS
10750 fi
10751 rm -f core conftest.err conftest.$ac_objext \
10752     conftest$ac_exeext conftest.$ac_ext
10753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10754 $as_echo "${found_usable_python}" >&6; }
10755
10756     fi
10757     if test ${have_libpython} = no; then
10758
10759   version=python2.4
10760
10761   new_CPPFLAGS=${python_includes}
10762   new_LIBS="${python_libs} -lpython2.4"
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10764 $as_echo_n "checking for ${version}... " >&6; }
10765   save_CPPFLAGS=$CPPFLAGS
10766   save_LIBS=$LIBS
10767   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10768   LIBS="$LIBS $new_LIBS"
10769   found_usable_python=no
10770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h.  */
10772 #include "${version}/Python.h"
10773 int
10774 main ()
10775 {
10776 Py_Initialize ();
10777   ;
10778   return 0;
10779 }
10780 _ACEOF
10781 if ac_fn_c_try_link "$LINENO"; then :
10782   have_libpython=${version}
10783                   found_usable_python=yes
10784 else
10785   CPPFLAGS=$save_CPPFLAGS
10786                   LIBS=$save_LIBS
10787 fi
10788 rm -f core conftest.err conftest.$ac_objext \
10789     conftest$ac_exeext conftest.$ac_ext
10790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10791 $as_echo "${found_usable_python}" >&6; }
10792
10793     fi
10794   fi
10795   if test "${have_libpython}" = python2.6; then
10796
10797 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10798
10799   elif test "${have_libpython}" = python2.5; then
10800
10801 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10802
10803   elif test "${have_libpython}" = python2.4; then
10804
10805 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10806
10807   fi
10808
10809   if test "${have_libpython}" = no; then
10810     case "${with_python}" in
10811     yes)
10812       as_fn_error "python is missing or unusable" "$LINENO" 5
10813       ;;
10814     auto)
10815       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10816 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10817       ;;
10818     *)
10819       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
10820       ;;
10821     esac
10822   else
10823     if test -n "${python_prefix}"; then
10824
10825 cat >>confdefs.h <<_ACEOF
10826 #define WITH_PYTHON_PATH "${python_prefix}"
10827 _ACEOF
10828
10829
10830   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10831      if test "x$prefix" = xNONE; then
10832         test_prefix=/usr/local
10833      else
10834         test_prefix=$prefix
10835      fi
10836   else
10837      test_prefix=$exec_prefix
10838   fi
10839   value=0
10840   case ${python_prefix} in
10841      "${test_prefix}"|"${test_prefix}/"*|\
10842         '${exec_prefix}'|'${exec_prefix}/'*)
10843      value=1
10844      ;;
10845   esac
10846
10847 cat >>confdefs.h <<_ACEOF
10848 #define PYTHON_PATH_RELOCATABLE $value
10849 _ACEOF
10850
10851
10852     fi
10853   fi
10854 fi
10855
10856 if test "${have_libpython}" != no; then
10857
10858 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10859
10860   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10861   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10862   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10863   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10864
10865   # Flags needed to compile Python code (taken from python-config --cflags).
10866   # We cannot call python-config directly because it will output whatever was
10867   # used when compiling the Python interpreter itself, including flags which
10868   # would make the python-related objects be compiled differently from the
10869   # rest of GDB (e.g., -O2 and -fPIC).
10870   if test "${GCC}" = yes; then
10871     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10872   fi
10873
10874   if test "x${tentative_python_cflags}" != x; then
10875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10876 $as_echo_n "checking compiler flags for python code... " >&6; }
10877     for flag in ${tentative_python_cflags}; do
10878       # Check that the compiler accepts it
10879       saved_CFLAGS="$CFLAGS"
10880       CFLAGS="$CFLAGS $flag"
10881       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h.  */
10883
10884 int
10885 main ()
10886 {
10887
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_compile "$LINENO"; then :
10893   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10894 fi
10895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10896       CFLAGS="$saved_CFLAGS"
10897     done
10898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10899 $as_echo "${PYTHON_CFLAGS}" >&6; }
10900   fi
10901 else
10902   # Even if Python support is not compiled in, we need to have these files
10903   # included.
10904   CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10905   CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
10906         python/py-prettyprint.c python/py-auto-load.c"
10907 fi
10908
10909
10910 # ------------------------- #
10911 # Checks for header files.  #
10912 # ------------------------- #
10913
10914 ac_header_dirent=no
10915 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10916   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10918 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10920   $as_echo_n "(cached) " >&6
10921 else
10922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h.  */
10924 #include <sys/types.h>
10925 #include <$ac_hdr>
10926
10927 int
10928 main ()
10929 {
10930 if ((DIR *) 0)
10931 return 0;
10932   ;
10933   return 0;
10934 }
10935 _ACEOF
10936 if ac_fn_c_try_compile "$LINENO"; then :
10937   eval "$as_ac_Header=yes"
10938 else
10939   eval "$as_ac_Header=no"
10940 fi
10941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10942 fi
10943 eval ac_res=\$$as_ac_Header
10944                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10945 $as_echo "$ac_res" >&6; }
10946 eval as_val=\$$as_ac_Header
10947    if test "x$as_val" = x""yes; then :
10948   cat >>confdefs.h <<_ACEOF
10949 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10950 _ACEOF
10951
10952 ac_header_dirent=$ac_hdr; break
10953 fi
10954
10955 done
10956 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10957 if test $ac_header_dirent = dirent.h; then
10958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10959 $as_echo_n "checking for library containing opendir... " >&6; }
10960 if test "${ac_cv_search_opendir+set}" = set; then :
10961   $as_echo_n "(cached) " >&6
10962 else
10963   ac_func_search_save_LIBS=$LIBS
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h.  */
10966
10967 /* Override any GCC internal prototype to avoid an error.
10968    Use char because int might match the return type of a GCC
10969    builtin and then its argument prototype would still apply.  */
10970 #ifdef __cplusplus
10971 extern "C"
10972 #endif
10973 char opendir ();
10974 int
10975 main ()
10976 {
10977 return opendir ();
10978   ;
10979   return 0;
10980 }
10981 _ACEOF
10982 for ac_lib in '' dir; do
10983   if test -z "$ac_lib"; then
10984     ac_res="none required"
10985   else
10986     ac_res=-l$ac_lib
10987     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10988   fi
10989   if ac_fn_c_try_link "$LINENO"; then :
10990   ac_cv_search_opendir=$ac_res
10991 fi
10992 rm -f core conftest.err conftest.$ac_objext \
10993     conftest$ac_exeext
10994   if test "${ac_cv_search_opendir+set}" = set; then :
10995   break
10996 fi
10997 done
10998 if test "${ac_cv_search_opendir+set}" = set; then :
10999
11000 else
11001   ac_cv_search_opendir=no
11002 fi
11003 rm conftest.$ac_ext
11004 LIBS=$ac_func_search_save_LIBS
11005 fi
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11007 $as_echo "$ac_cv_search_opendir" >&6; }
11008 ac_res=$ac_cv_search_opendir
11009 if test "$ac_res" != no; then :
11010   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11011
11012 fi
11013
11014 else
11015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11016 $as_echo_n "checking for library containing opendir... " >&6; }
11017 if test "${ac_cv_search_opendir+set}" = set; then :
11018   $as_echo_n "(cached) " >&6
11019 else
11020   ac_func_search_save_LIBS=$LIBS
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h.  */
11023
11024 /* Override any GCC internal prototype to avoid an error.
11025    Use char because int might match the return type of a GCC
11026    builtin and then its argument prototype would still apply.  */
11027 #ifdef __cplusplus
11028 extern "C"
11029 #endif
11030 char opendir ();
11031 int
11032 main ()
11033 {
11034 return opendir ();
11035   ;
11036   return 0;
11037 }
11038 _ACEOF
11039 for ac_lib in '' x; do
11040   if test -z "$ac_lib"; then
11041     ac_res="none required"
11042   else
11043     ac_res=-l$ac_lib
11044     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11045   fi
11046   if ac_fn_c_try_link "$LINENO"; then :
11047   ac_cv_search_opendir=$ac_res
11048 fi
11049 rm -f core conftest.err conftest.$ac_objext \
11050     conftest$ac_exeext
11051   if test "${ac_cv_search_opendir+set}" = set; then :
11052   break
11053 fi
11054 done
11055 if test "${ac_cv_search_opendir+set}" = set; then :
11056
11057 else
11058   ac_cv_search_opendir=no
11059 fi
11060 rm conftest.$ac_ext
11061 LIBS=$ac_func_search_save_LIBS
11062 fi
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11064 $as_echo "$ac_cv_search_opendir" >&6; }
11065 ac_res=$ac_cv_search_opendir
11066 if test "$ac_res" != no; then :
11067   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11068
11069 fi
11070
11071 fi
11072
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11074 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11075 if test "${ac_cv_header_stat_broken+set}" = set; then :
11076   $as_echo_n "(cached) " >&6
11077 else
11078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h.  */
11080 #include <sys/types.h>
11081 #include <sys/stat.h>
11082
11083 #if defined S_ISBLK && defined S_IFDIR
11084 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11085 #endif
11086
11087 #if defined S_ISBLK && defined S_IFCHR
11088 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11089 #endif
11090
11091 #if defined S_ISLNK && defined S_IFREG
11092 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11093 #endif
11094
11095 #if defined S_ISSOCK && defined S_IFREG
11096 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11097 #endif
11098
11099 _ACEOF
11100 if ac_fn_c_try_compile "$LINENO"; then :
11101   ac_cv_header_stat_broken=no
11102 else
11103   ac_cv_header_stat_broken=yes
11104 fi
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 fi
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11108 $as_echo "$ac_cv_header_stat_broken" >&6; }
11109 if test $ac_cv_header_stat_broken = yes; then
11110
11111 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11112
11113 fi
11114
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11116 $as_echo_n "checking for ANSI C header files... " >&6; }
11117 if test "${ac_cv_header_stdc+set}" = set; then :
11118   $as_echo_n "(cached) " >&6
11119 else
11120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h.  */
11122 #include <stdlib.h>
11123 #include <stdarg.h>
11124 #include <string.h>
11125 #include <float.h>
11126
11127 int
11128 main ()
11129 {
11130
11131   ;
11132   return 0;
11133 }
11134 _ACEOF
11135 if ac_fn_c_try_compile "$LINENO"; then :
11136   ac_cv_header_stdc=yes
11137 else
11138   ac_cv_header_stdc=no
11139 fi
11140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11141
11142 if test $ac_cv_header_stdc = yes; then
11143   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h.  */
11146 #include <string.h>
11147
11148 _ACEOF
11149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11150   $EGREP "memchr" >/dev/null 2>&1; then :
11151
11152 else
11153   ac_cv_header_stdc=no
11154 fi
11155 rm -f conftest*
11156
11157 fi
11158
11159 if test $ac_cv_header_stdc = yes; then
11160   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h.  */
11163 #include <stdlib.h>
11164
11165 _ACEOF
11166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11167   $EGREP "free" >/dev/null 2>&1; then :
11168
11169 else
11170   ac_cv_header_stdc=no
11171 fi
11172 rm -f conftest*
11173
11174 fi
11175
11176 if test $ac_cv_header_stdc = yes; then
11177   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11178   if test "$cross_compiling" = yes; then :
11179   :
11180 else
11181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h.  */
11183 #include <ctype.h>
11184 #include <stdlib.h>
11185 #if ((' ' & 0x0FF) == 0x020)
11186 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11187 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11188 #else
11189 # define ISLOWER(c) \
11190                    (('a' <= (c) && (c) <= 'i') \
11191                      || ('j' <= (c) && (c) <= 'r') \
11192                      || ('s' <= (c) && (c) <= 'z'))
11193 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11194 #endif
11195
11196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11197 int
11198 main ()
11199 {
11200   int i;
11201   for (i = 0; i < 256; i++)
11202     if (XOR (islower (i), ISLOWER (i))
11203         || toupper (i) != TOUPPER (i))
11204       return 2;
11205   return 0;
11206 }
11207 _ACEOF
11208 if ac_fn_c_try_run "$LINENO"; then :
11209
11210 else
11211   ac_cv_header_stdc=no
11212 fi
11213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11214   conftest.$ac_objext conftest.beam conftest.$ac_ext
11215 fi
11216
11217 fi
11218 fi
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11220 $as_echo "$ac_cv_header_stdc" >&6; }
11221 if test $ac_cv_header_stdc = yes; then
11222
11223 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11224
11225 fi
11226
11227 # elf_hp.h is for HP/UX 64-bit shared library support.
11228 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11229 # unconditionally, so what's the point in checking these?
11230 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11231                   thread_db.h gnu/libc-version.h signal.h stddef.h \
11232                   stdlib.h string.h memory.h strings.h sys/fault.h \
11233                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11234                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11235                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11236                   sys/types.h sys/wait.h wait.h termios.h termio.h \
11237                   sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
11238 do :
11239   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11240 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11241 eval as_val=\$$as_ac_Header
11242    if test "x$as_val" = x""yes; then :
11243   cat >>confdefs.h <<_ACEOF
11244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11245 _ACEOF
11246
11247 fi
11248
11249 done
11250
11251 for ac_header in link.h
11252 do :
11253   ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11254 # include <sys/types.h>
11255 #endif
11256 #if HAVE_NLIST_H
11257 # include <nlist.h>
11258 #endif
11259
11260 "
11261 if test "x$ac_cv_header_link_h" = x""yes; then :
11262   cat >>confdefs.h <<_ACEOF
11263 #define HAVE_LINK_H 1
11264 _ACEOF
11265
11266 fi
11267
11268 done
11269
11270 for ac_header in sys/proc.h
11271 do :
11272   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11273 # include <sys/param.h>
11274 #endif
11275
11276 "
11277 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11278   cat >>confdefs.h <<_ACEOF
11279 #define HAVE_SYS_PROC_H 1
11280 _ACEOF
11281
11282 fi
11283
11284 done
11285
11286 for ac_header in sys/user.h
11287 do :
11288   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11289 # include <sys/param.h>
11290 #endif
11291
11292 "
11293 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11294   cat >>confdefs.h <<_ACEOF
11295 #define HAVE_SYS_USER_H 1
11296 _ACEOF
11297
11298 fi
11299
11300 done
11301
11302
11303 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11304 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11305 # think that we don't have <curses.h> if we're using GCC.
11306 case $host_os in
11307   solaris2.[789])
11308     if test "$GCC" = yes; then
11309
11310 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11311
11312     fi ;;
11313 esac
11314 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11315 do :
11316   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11317 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11318 eval as_val=\$$as_ac_Header
11319    if test "x$as_val" = x""yes; then :
11320   cat >>confdefs.h <<_ACEOF
11321 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11322 _ACEOF
11323
11324 fi
11325
11326 done
11327
11328 for ac_header in term.h
11329 do :
11330   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11331 # include <curses.h>
11332 #endif
11333
11334 "
11335 if test "x$ac_cv_header_term_h" = x""yes; then :
11336   cat >>confdefs.h <<_ACEOF
11337 #define HAVE_TERM_H 1
11338 _ACEOF
11339
11340 fi
11341
11342 done
11343
11344
11345 # ------------------------- #
11346 # Checks for declarations.  #
11347 # ------------------------- #
11348
11349 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11350 if test "x$ac_cv_have_decl_free" = x""yes; then :
11351   ac_have_decl=1
11352 else
11353   ac_have_decl=0
11354 fi
11355
11356 cat >>confdefs.h <<_ACEOF
11357 #define HAVE_DECL_FREE $ac_have_decl
11358 _ACEOF
11359 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11360 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11361   ac_have_decl=1
11362 else
11363   ac_have_decl=0
11364 fi
11365
11366 cat >>confdefs.h <<_ACEOF
11367 #define HAVE_DECL_MALLOC $ac_have_decl
11368 _ACEOF
11369 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11370 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11371   ac_have_decl=1
11372 else
11373   ac_have_decl=0
11374 fi
11375
11376 cat >>confdefs.h <<_ACEOF
11377 #define HAVE_DECL_REALLOC $ac_have_decl
11378 _ACEOF
11379 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11380 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11381   ac_have_decl=1
11382 else
11383   ac_have_decl=0
11384 fi
11385
11386 cat >>confdefs.h <<_ACEOF
11387 #define HAVE_DECL_STRERROR $ac_have_decl
11388 _ACEOF
11389 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11390 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11391   ac_have_decl=1
11392 else
11393   ac_have_decl=0
11394 fi
11395
11396 cat >>confdefs.h <<_ACEOF
11397 #define HAVE_DECL_STRSTR $ac_have_decl
11398 _ACEOF
11399 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11400 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11401   ac_have_decl=1
11402 else
11403   ac_have_decl=0
11404 fi
11405
11406 cat >>confdefs.h <<_ACEOF
11407 #define HAVE_DECL_GETOPT $ac_have_decl
11408 _ACEOF
11409 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11410 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11411   ac_have_decl=1
11412 else
11413   ac_have_decl=0
11414 fi
11415
11416 cat >>confdefs.h <<_ACEOF
11417 #define HAVE_DECL_SNPRINTF $ac_have_decl
11418 _ACEOF
11419 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11420 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11421   ac_have_decl=1
11422 else
11423   ac_have_decl=0
11424 fi
11425
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11428 _ACEOF
11429
11430
11431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11432 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11433 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11434   $as_echo_n "(cached) " >&6
11435 else
11436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h.  */
11438 #include <locale.h>
11439 int
11440 main ()
11441 {
11442 return LC_MESSAGES
11443   ;
11444   return 0;
11445 }
11446 _ACEOF
11447 if ac_fn_c_try_link "$LINENO"; then :
11448   am_cv_val_LC_MESSAGES=yes
11449 else
11450   am_cv_val_LC_MESSAGES=no
11451 fi
11452 rm -f core conftest.err conftest.$ac_objext \
11453     conftest$ac_exeext conftest.$ac_ext
11454 fi
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11456 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11457   if test $am_cv_val_LC_MESSAGES = yes; then
11458
11459 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11460
11461   fi
11462
11463
11464 # ----------------------- #
11465 # Checks for structures.  #
11466 # ----------------------- #
11467
11468 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11469 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11470
11471 cat >>confdefs.h <<_ACEOF
11472 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11473 _ACEOF
11474
11475
11476 fi
11477 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11478 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11479
11480 cat >>confdefs.h <<_ACEOF
11481 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11482 _ACEOF
11483
11484
11485 fi
11486
11487
11488 # ------------------ #
11489 # Checks for types.  #
11490 # ------------------ #
11491
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11493 $as_echo_n "checking return type of signal handlers... " >&6; }
11494 if test "${ac_cv_type_signal+set}" = set; then :
11495   $as_echo_n "(cached) " >&6
11496 else
11497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h.  */
11499 #include <sys/types.h>
11500 #include <signal.h>
11501
11502 int
11503 main ()
11504 {
11505 return *(signal (0, 0)) (0) == 1;
11506   ;
11507   return 0;
11508 }
11509 _ACEOF
11510 if ac_fn_c_try_compile "$LINENO"; then :
11511   ac_cv_type_signal=int
11512 else
11513   ac_cv_type_signal=void
11514 fi
11515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11516 fi
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11518 $as_echo "$ac_cv_type_signal" >&6; }
11519
11520 cat >>confdefs.h <<_ACEOF
11521 #define RETSIGTYPE $ac_cv_type_signal
11522 _ACEOF
11523
11524
11525 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11526 #include <sys/socket.h>
11527
11528 "
11529 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11530
11531 cat >>confdefs.h <<_ACEOF
11532 #define HAVE_SOCKLEN_T 1
11533 _ACEOF
11534
11535
11536 fi
11537
11538
11539 # ------------------------------------- #
11540 # Checks for compiler characteristics.  #
11541 # ------------------------------------- #
11542
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11544 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11545 if test "${ac_cv_c_const+set}" = set; then :
11546   $as_echo_n "(cached) " >&6
11547 else
11548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h.  */
11550
11551 int
11552 main ()
11553 {
11554 /* FIXME: Include the comments suggested by Paul. */
11555 #ifndef __cplusplus
11556   /* Ultrix mips cc rejects this.  */
11557   typedef int charset[2];
11558   const charset cs;
11559   /* SunOS 4.1.1 cc rejects this.  */
11560   char const *const *pcpcc;
11561   char **ppc;
11562   /* NEC SVR4.0.2 mips cc rejects this.  */
11563   struct point {int x, y;};
11564   static struct point const zero = {0,0};
11565   /* AIX XL C 1.02.0.0 rejects this.
11566      It does not let you subtract one const X* pointer from another in
11567      an arm of an if-expression whose if-part is not a constant
11568      expression */
11569   const char *g = "string";
11570   pcpcc = &g + (g ? g-g : 0);
11571   /* HPUX 7.0 cc rejects these. */
11572   ++pcpcc;
11573   ppc = (char**) pcpcc;
11574   pcpcc = (char const *const *) ppc;
11575   { /* SCO 3.2v4 cc rejects this.  */
11576     char *t;
11577     char const *s = 0 ? (char *) 0 : (char const *) 0;
11578
11579     *t++ = 0;
11580     if (s) return 0;
11581   }
11582   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11583     int x[] = {25, 17};
11584     const int *foo = &x[0];
11585     ++foo;
11586   }
11587   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11588     typedef const int *iptr;
11589     iptr p = 0;
11590     ++p;
11591   }
11592   { /* AIX XL C 1.02.0.0 rejects this saying
11593        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11594     struct s { int j; const int *ap[3]; };
11595     struct s *b; b->j = 5;
11596   }
11597   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11598     const int foo = 10;
11599     if (!foo) return 0;
11600   }
11601   return !cs[0] && !zero.x;
11602 #endif
11603
11604   ;
11605   return 0;
11606 }
11607 _ACEOF
11608 if ac_fn_c_try_compile "$LINENO"; then :
11609   ac_cv_c_const=yes
11610 else
11611   ac_cv_c_const=no
11612 fi
11613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11614 fi
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11616 $as_echo "$ac_cv_c_const" >&6; }
11617 if test $ac_cv_c_const = no; then
11618
11619 $as_echo "#define const /**/" >>confdefs.h
11620
11621 fi
11622
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11624 $as_echo_n "checking for inline... " >&6; }
11625 if test "${ac_cv_c_inline+set}" = set; then :
11626   $as_echo_n "(cached) " >&6
11627 else
11628   ac_cv_c_inline=no
11629 for ac_kw in inline __inline__ __inline; do
11630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h.  */
11632 #ifndef __cplusplus
11633 typedef int foo_t;
11634 static $ac_kw foo_t static_foo () {return 0; }
11635 $ac_kw foo_t foo () {return 0; }
11636 #endif
11637
11638 _ACEOF
11639 if ac_fn_c_try_compile "$LINENO"; then :
11640   ac_cv_c_inline=$ac_kw
11641 fi
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643   test "$ac_cv_c_inline" != no && break
11644 done
11645
11646 fi
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11648 $as_echo "$ac_cv_c_inline" >&6; }
11649
11650 case $ac_cv_c_inline in
11651   inline | yes) ;;
11652   *)
11653     case $ac_cv_c_inline in
11654       no) ac_val=;;
11655       *) ac_val=$ac_cv_c_inline;;
11656     esac
11657     cat >>confdefs.h <<_ACEOF
11658 #ifndef __cplusplus
11659 #define inline $ac_val
11660 #endif
11661 _ACEOF
11662     ;;
11663 esac
11664
11665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11666 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11667 if test "${ac_cv_c_bigendian+set}" = set; then :
11668   $as_echo_n "(cached) " >&6
11669 else
11670   ac_cv_c_bigendian=unknown
11671     # See if we're dealing with a universal compiler.
11672     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h.  */
11674 #ifndef __APPLE_CC__
11675                not a universal capable compiler
11676              #endif
11677              typedef int dummy;
11678
11679 _ACEOF
11680 if ac_fn_c_try_compile "$LINENO"; then :
11681
11682         # Check for potential -arch flags.  It is not universal unless
11683         # there are at least two -arch flags with different values.
11684         ac_arch=
11685         ac_prev=
11686         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11687          if test -n "$ac_prev"; then
11688            case $ac_word in
11689              i?86 | x86_64 | ppc | ppc64)
11690                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11691                  ac_arch=$ac_word
11692                else
11693                  ac_cv_c_bigendian=universal
11694                  break
11695                fi
11696                ;;
11697            esac
11698            ac_prev=
11699          elif test "x$ac_word" = "x-arch"; then
11700            ac_prev=arch
11701          fi
11702        done
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705     if test $ac_cv_c_bigendian = unknown; then
11706       # See if sys/param.h defines the BYTE_ORDER macro.
11707       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h.  */
11709 #include <sys/types.h>
11710              #include <sys/param.h>
11711
11712 int
11713 main ()
11714 {
11715 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11716                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11717                      && LITTLE_ENDIAN)
11718               bogus endian macros
11719              #endif
11720
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 if ac_fn_c_try_compile "$LINENO"; then :
11726   # It does; now see whether it defined to BIG_ENDIAN or not.
11727          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h.  */
11729 #include <sys/types.h>
11730                 #include <sys/param.h>
11731
11732 int
11733 main ()
11734 {
11735 #if BYTE_ORDER != BIG_ENDIAN
11736                  not big endian
11737                 #endif
11738
11739   ;
11740   return 0;
11741 }
11742 _ACEOF
11743 if ac_fn_c_try_compile "$LINENO"; then :
11744   ac_cv_c_bigendian=yes
11745 else
11746   ac_cv_c_bigendian=no
11747 fi
11748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11749 fi
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11751     fi
11752     if test $ac_cv_c_bigendian = unknown; then
11753       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11754       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h.  */
11756 #include <limits.h>
11757
11758 int
11759 main ()
11760 {
11761 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11762               bogus endian macros
11763              #endif
11764
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_compile "$LINENO"; then :
11770   # It does; now see whether it defined to _BIG_ENDIAN or not.
11771          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772 /* end confdefs.h.  */
11773 #include <limits.h>
11774
11775 int
11776 main ()
11777 {
11778 #ifndef _BIG_ENDIAN
11779                  not big endian
11780                 #endif
11781
11782   ;
11783   return 0;
11784 }
11785 _ACEOF
11786 if ac_fn_c_try_compile "$LINENO"; then :
11787   ac_cv_c_bigendian=yes
11788 else
11789   ac_cv_c_bigendian=no
11790 fi
11791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11792 fi
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794     fi
11795     if test $ac_cv_c_bigendian = unknown; then
11796       # Compile a test program.
11797       if test "$cross_compiling" = yes; then :
11798   # Try to guess by grepping values from an object file.
11799          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h.  */
11801 short int ascii_mm[] =
11802                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11803                 short int ascii_ii[] =
11804                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11805                 int use_ascii (int i) {
11806                   return ascii_mm[i] + ascii_ii[i];
11807                 }
11808                 short int ebcdic_ii[] =
11809                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11810                 short int ebcdic_mm[] =
11811                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11812                 int use_ebcdic (int i) {
11813                   return ebcdic_mm[i] + ebcdic_ii[i];
11814                 }
11815                 extern int foo;
11816
11817 int
11818 main ()
11819 {
11820 return use_ascii (foo) == use_ebcdic (foo);
11821   ;
11822   return 0;
11823 }
11824 _ACEOF
11825 if ac_fn_c_try_compile "$LINENO"; then :
11826   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11827               ac_cv_c_bigendian=yes
11828             fi
11829             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11830               if test "$ac_cv_c_bigendian" = unknown; then
11831                 ac_cv_c_bigendian=no
11832               else
11833                 # finding both strings is unlikely to happen, but who knows?
11834                 ac_cv_c_bigendian=unknown
11835               fi
11836             fi
11837 fi
11838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11839 else
11840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h.  */
11842 $ac_includes_default
11843 int
11844 main ()
11845 {
11846
11847              /* Are we little or big endian?  From Harbison&Steele.  */
11848              union
11849              {
11850                long int l;
11851                char c[sizeof (long int)];
11852              } u;
11853              u.l = 1;
11854              return u.c[sizeof (long int) - 1] == 1;
11855
11856   ;
11857   return 0;
11858 }
11859 _ACEOF
11860 if ac_fn_c_try_run "$LINENO"; then :
11861   ac_cv_c_bigendian=no
11862 else
11863   ac_cv_c_bigendian=yes
11864 fi
11865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11866   conftest.$ac_objext conftest.beam conftest.$ac_ext
11867 fi
11868
11869     fi
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11872 $as_echo "$ac_cv_c_bigendian" >&6; }
11873  case $ac_cv_c_bigendian in #(
11874    yes)
11875      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11876 ;; #(
11877    no)
11878       ;; #(
11879    universal)
11880
11881 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11882
11883      ;; #(
11884    *)
11885      as_fn_error "unknown endianness
11886  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11887  esac
11888
11889
11890 # ------------------------------ #
11891 # Checks for library functions.  #
11892 # ------------------------------ #
11893
11894 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11895 # for constant arguments.  Useless!
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11897 $as_echo_n "checking for working alloca.h... " >&6; }
11898 if test "${ac_cv_working_alloca_h+set}" = set; then :
11899   $as_echo_n "(cached) " >&6
11900 else
11901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h.  */
11903 #include <alloca.h>
11904 int
11905 main ()
11906 {
11907 char *p = (char *) alloca (2 * sizeof (int));
11908                           if (p) return 0;
11909   ;
11910   return 0;
11911 }
11912 _ACEOF
11913 if ac_fn_c_try_link "$LINENO"; then :
11914   ac_cv_working_alloca_h=yes
11915 else
11916   ac_cv_working_alloca_h=no
11917 fi
11918 rm -f core conftest.err conftest.$ac_objext \
11919     conftest$ac_exeext conftest.$ac_ext
11920 fi
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11922 $as_echo "$ac_cv_working_alloca_h" >&6; }
11923 if test $ac_cv_working_alloca_h = yes; then
11924
11925 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11926
11927 fi
11928
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11930 $as_echo_n "checking for alloca... " >&6; }
11931 if test "${ac_cv_func_alloca_works+set}" = set; then :
11932   $as_echo_n "(cached) " >&6
11933 else
11934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h.  */
11936 #ifdef __GNUC__
11937 # define alloca __builtin_alloca
11938 #else
11939 # ifdef _MSC_VER
11940 #  include <malloc.h>
11941 #  define alloca _alloca
11942 # else
11943 #  ifdef HAVE_ALLOCA_H
11944 #   include <alloca.h>
11945 #  else
11946 #   ifdef _AIX
11947  #pragma alloca
11948 #   else
11949 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11950 char *alloca ();
11951 #    endif
11952 #   endif
11953 #  endif
11954 # endif
11955 #endif
11956
11957 int
11958 main ()
11959 {
11960 char *p = (char *) alloca (1);
11961                                     if (p) return 0;
11962   ;
11963   return 0;
11964 }
11965 _ACEOF
11966 if ac_fn_c_try_link "$LINENO"; then :
11967   ac_cv_func_alloca_works=yes
11968 else
11969   ac_cv_func_alloca_works=no
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext \
11972     conftest$ac_exeext conftest.$ac_ext
11973 fi
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11975 $as_echo "$ac_cv_func_alloca_works" >&6; }
11976
11977 if test $ac_cv_func_alloca_works = yes; then
11978
11979 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11980
11981 else
11982   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11983 # that cause trouble.  Some versions do not even contain alloca or
11984 # contain a buggy version.  If you still want to use their alloca,
11985 # use ar to extract alloca.o from them instead of compiling alloca.c.
11986
11987 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11988
11989 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11990
11991
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11993 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11994 if test "${ac_cv_os_cray+set}" = set; then :
11995   $as_echo_n "(cached) " >&6
11996 else
11997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h.  */
11999 #if defined CRAY && ! defined CRAY2
12000 webecray
12001 #else
12002 wenotbecray
12003 #endif
12004
12005 _ACEOF
12006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12007   $EGREP "webecray" >/dev/null 2>&1; then :
12008   ac_cv_os_cray=yes
12009 else
12010   ac_cv_os_cray=no
12011 fi
12012 rm -f conftest*
12013
12014 fi
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12016 $as_echo "$ac_cv_os_cray" >&6; }
12017 if test $ac_cv_os_cray = yes; then
12018   for ac_func in _getb67 GETB67 getb67; do
12019     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12021 eval as_val=\$$as_ac_var
12022    if test "x$as_val" = x""yes; then :
12023
12024 cat >>confdefs.h <<_ACEOF
12025 #define CRAY_STACKSEG_END $ac_func
12026 _ACEOF
12027
12028     break
12029 fi
12030
12031   done
12032 fi
12033
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12035 $as_echo_n "checking stack direction for C alloca... " >&6; }
12036 if test "${ac_cv_c_stack_direction+set}" = set; then :
12037   $as_echo_n "(cached) " >&6
12038 else
12039   if test "$cross_compiling" = yes; then :
12040   ac_cv_c_stack_direction=0
12041 else
12042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h.  */
12044 $ac_includes_default
12045 int
12046 find_stack_direction ()
12047 {
12048   static char *addr = 0;
12049   auto char dummy;
12050   if (addr == 0)
12051     {
12052       addr = &dummy;
12053       return find_stack_direction ();
12054     }
12055   else
12056     return (&dummy > addr) ? 1 : -1;
12057 }
12058
12059 int
12060 main ()
12061 {
12062   return find_stack_direction () < 0;
12063 }
12064 _ACEOF
12065 if ac_fn_c_try_run "$LINENO"; then :
12066   ac_cv_c_stack_direction=1
12067 else
12068   ac_cv_c_stack_direction=-1
12069 fi
12070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12071   conftest.$ac_objext conftest.beam conftest.$ac_ext
12072 fi
12073
12074 fi
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12076 $as_echo "$ac_cv_c_stack_direction" >&6; }
12077 cat >>confdefs.h <<_ACEOF
12078 #define STACK_DIRECTION $ac_cv_c_stack_direction
12079 _ACEOF
12080
12081
12082 fi
12083
12084 for ac_header in stdlib.h unistd.h
12085 do :
12086   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12087 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12088 eval as_val=\$$as_ac_Header
12089    if test "x$as_val" = x""yes; then :
12090   cat >>confdefs.h <<_ACEOF
12091 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12092 _ACEOF
12093
12094 fi
12095
12096 done
12097
12098 for ac_func in getpagesize
12099 do :
12100   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12101 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12102   cat >>confdefs.h <<_ACEOF
12103 #define HAVE_GETPAGESIZE 1
12104 _ACEOF
12105
12106 fi
12107 done
12108
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12110 $as_echo_n "checking for working mmap... " >&6; }
12111 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12112   $as_echo_n "(cached) " >&6
12113 else
12114   if test "$cross_compiling" = yes; then :
12115   ac_cv_func_mmap_fixed_mapped=no
12116 else
12117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h.  */
12119 $ac_includes_default
12120 /* malloc might have been renamed as rpl_malloc. */
12121 #undef malloc
12122
12123 /* Thanks to Mike Haertel and Jim Avera for this test.
12124    Here is a matrix of mmap possibilities:
12125         mmap private not fixed
12126         mmap private fixed at somewhere currently unmapped
12127         mmap private fixed at somewhere already mapped
12128         mmap shared not fixed
12129         mmap shared fixed at somewhere currently unmapped
12130         mmap shared fixed at somewhere already mapped
12131    For private mappings, we should verify that changes cannot be read()
12132    back from the file, nor mmap's back from the file at a different
12133    address.  (There have been systems where private was not correctly
12134    implemented like the infamous i386 svr4.0, and systems where the
12135    VM page cache was not coherent with the file system buffer cache
12136    like early versions of FreeBSD and possibly contemporary NetBSD.)
12137    For shared mappings, we should conversely verify that changes get
12138    propagated back to all the places they're supposed to be.
12139
12140    Grep wants private fixed already mapped.
12141    The main things grep needs to know about mmap are:
12142    * does it exist and is it safe to write into the mmap'd area
12143    * how to use it (BSD variants)  */
12144
12145 #include <fcntl.h>
12146 #include <sys/mman.h>
12147
12148 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12149 char *malloc ();
12150 #endif
12151
12152 /* This mess was copied from the GNU getpagesize.h.  */
12153 #ifndef HAVE_GETPAGESIZE
12154 /* Assume that all systems that can run configure have sys/param.h.  */
12155 # ifndef HAVE_SYS_PARAM_H
12156 #  define HAVE_SYS_PARAM_H 1
12157 # endif
12158
12159 # ifdef _SC_PAGESIZE
12160 #  define getpagesize() sysconf(_SC_PAGESIZE)
12161 # else /* no _SC_PAGESIZE */
12162 #  ifdef HAVE_SYS_PARAM_H
12163 #   include <sys/param.h>
12164 #   ifdef EXEC_PAGESIZE
12165 #    define getpagesize() EXEC_PAGESIZE
12166 #   else /* no EXEC_PAGESIZE */
12167 #    ifdef NBPG
12168 #     define getpagesize() NBPG * CLSIZE
12169 #     ifndef CLSIZE
12170 #      define CLSIZE 1
12171 #     endif /* no CLSIZE */
12172 #    else /* no NBPG */
12173 #     ifdef NBPC
12174 #      define getpagesize() NBPC
12175 #     else /* no NBPC */
12176 #      ifdef PAGESIZE
12177 #       define getpagesize() PAGESIZE
12178 #      endif /* PAGESIZE */
12179 #     endif /* no NBPC */
12180 #    endif /* no NBPG */
12181 #   endif /* no EXEC_PAGESIZE */
12182 #  else /* no HAVE_SYS_PARAM_H */
12183 #   define getpagesize() 8192   /* punt totally */
12184 #  endif /* no HAVE_SYS_PARAM_H */
12185 # endif /* no _SC_PAGESIZE */
12186
12187 #endif /* no HAVE_GETPAGESIZE */
12188
12189 int
12190 main ()
12191 {
12192   char *data, *data2, *data3;
12193   int i, pagesize;
12194   int fd;
12195
12196   pagesize = getpagesize ();
12197
12198   /* First, make a file with some known garbage in it. */
12199   data = (char *) malloc (pagesize);
12200   if (!data)
12201     return 1;
12202   for (i = 0; i < pagesize; ++i)
12203     *(data + i) = rand ();
12204   umask (0);
12205   fd = creat ("conftest.mmap", 0600);
12206   if (fd < 0)
12207     return 1;
12208   if (write (fd, data, pagesize) != pagesize)
12209     return 1;
12210   close (fd);
12211
12212   /* Next, try to mmap the file at a fixed address which already has
12213      something else allocated at it.  If we can, also make sure that
12214      we see the same garbage.  */
12215   fd = open ("conftest.mmap", O_RDWR);
12216   if (fd < 0)
12217     return 1;
12218   data2 = (char *) malloc (2 * pagesize);
12219   if (!data2)
12220     return 1;
12221   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12222   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12223                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12224     return 1;
12225   for (i = 0; i < pagesize; ++i)
12226     if (*(data + i) != *(data2 + i))
12227       return 1;
12228
12229   /* Finally, make sure that changes to the mapped area do not
12230      percolate back to the file as seen by read().  (This is a bug on
12231      some variants of i386 svr4.0.)  */
12232   for (i = 0; i < pagesize; ++i)
12233     *(data2 + i) = *(data2 + i) + 1;
12234   data3 = (char *) malloc (pagesize);
12235   if (!data3)
12236     return 1;
12237   if (read (fd, data3, pagesize) != pagesize)
12238     return 1;
12239   for (i = 0; i < pagesize; ++i)
12240     if (*(data + i) != *(data3 + i))
12241       return 1;
12242   close (fd);
12243   return 0;
12244 }
12245 _ACEOF
12246 if ac_fn_c_try_run "$LINENO"; then :
12247   ac_cv_func_mmap_fixed_mapped=yes
12248 else
12249   ac_cv_func_mmap_fixed_mapped=no
12250 fi
12251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12252   conftest.$ac_objext conftest.beam conftest.$ac_ext
12253 fi
12254
12255 fi
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12257 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12258 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12259
12260 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12261
12262 fi
12263 rm -f conftest.mmap
12264
12265 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12266 if test "x$ac_cv_type_pid_t" = x""yes; then :
12267
12268 else
12269
12270 cat >>confdefs.h <<_ACEOF
12271 #define pid_t int
12272 _ACEOF
12273
12274 fi
12275
12276 for ac_header in vfork.h
12277 do :
12278   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12279 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12280   cat >>confdefs.h <<_ACEOF
12281 #define HAVE_VFORK_H 1
12282 _ACEOF
12283
12284 fi
12285
12286 done
12287
12288 for ac_func in fork vfork
12289 do :
12290   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12291 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12292 eval as_val=\$$as_ac_var
12293    if test "x$as_val" = x""yes; then :
12294   cat >>confdefs.h <<_ACEOF
12295 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12296 _ACEOF
12297
12298 fi
12299 done
12300
12301 if test "x$ac_cv_func_fork" = xyes; then
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12303 $as_echo_n "checking for working fork... " >&6; }
12304 if test "${ac_cv_func_fork_works+set}" = set; then :
12305   $as_echo_n "(cached) " >&6
12306 else
12307   if test "$cross_compiling" = yes; then :
12308   ac_cv_func_fork_works=cross
12309 else
12310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h.  */
12312 $ac_includes_default
12313 int
12314 main ()
12315 {
12316
12317           /* By Ruediger Kuhlmann. */
12318           return fork () < 0;
12319
12320   ;
12321   return 0;
12322 }
12323 _ACEOF
12324 if ac_fn_c_try_run "$LINENO"; then :
12325   ac_cv_func_fork_works=yes
12326 else
12327   ac_cv_func_fork_works=no
12328 fi
12329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12330   conftest.$ac_objext conftest.beam conftest.$ac_ext
12331 fi
12332
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12335 $as_echo "$ac_cv_func_fork_works" >&6; }
12336
12337 else
12338   ac_cv_func_fork_works=$ac_cv_func_fork
12339 fi
12340 if test "x$ac_cv_func_fork_works" = xcross; then
12341   case $host in
12342     *-*-amigaos* | *-*-msdosdjgpp*)
12343       # Override, as these systems have only a dummy fork() stub
12344       ac_cv_func_fork_works=no
12345       ;;
12346     *)
12347       ac_cv_func_fork_works=yes
12348       ;;
12349   esac
12350   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12351 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12352 fi
12353 ac_cv_func_vfork_works=$ac_cv_func_vfork
12354 if test "x$ac_cv_func_vfork" = xyes; then
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12356 $as_echo_n "checking for working vfork... " >&6; }
12357 if test "${ac_cv_func_vfork_works+set}" = set; then :
12358   $as_echo_n "(cached) " >&6
12359 else
12360   if test "$cross_compiling" = yes; then :
12361   ac_cv_func_vfork_works=cross
12362 else
12363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h.  */
12365 /* Thanks to Paul Eggert for this test.  */
12366 $ac_includes_default
12367 #include <sys/wait.h>
12368 #ifdef HAVE_VFORK_H
12369 # include <vfork.h>
12370 #endif
12371 /* On some sparc systems, changes by the child to local and incoming
12372    argument registers are propagated back to the parent.  The compiler
12373    is told about this with #include <vfork.h>, but some compilers
12374    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12375    static variable whose address is put into a register that is
12376    clobbered by the vfork.  */
12377 static void
12378 #ifdef __cplusplus
12379 sparc_address_test (int arg)
12380 # else
12381 sparc_address_test (arg) int arg;
12382 #endif
12383 {
12384   static pid_t child;
12385   if (!child) {
12386     child = vfork ();
12387     if (child < 0) {
12388       perror ("vfork");
12389       _exit(2);
12390     }
12391     if (!child) {
12392       arg = getpid();
12393       write(-1, "", 0);
12394       _exit (arg);
12395     }
12396   }
12397 }
12398
12399 int
12400 main ()
12401 {
12402   pid_t parent = getpid ();
12403   pid_t child;
12404
12405   sparc_address_test (0);
12406
12407   child = vfork ();
12408
12409   if (child == 0) {
12410     /* Here is another test for sparc vfork register problems.  This
12411        test uses lots of local variables, at least as many local
12412        variables as main has allocated so far including compiler
12413        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12414        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12415        reuse the register of parent for one of the local variables,
12416        since it will think that parent can't possibly be used any more
12417        in this routine.  Assigning to the local variable will thus
12418        munge parent in the parent process.  */
12419     pid_t
12420       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12421       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12422     /* Convince the compiler that p..p7 are live; otherwise, it might
12423        use the same hardware register for all 8 local variables.  */
12424     if (p != p1 || p != p2 || p != p3 || p != p4
12425         || p != p5 || p != p6 || p != p7)
12426       _exit(1);
12427
12428     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12429        from child file descriptors.  If the child closes a descriptor
12430        before it execs or exits, this munges the parent's descriptor
12431        as well.  Test for this by closing stdout in the child.  */
12432     _exit(close(fileno(stdout)) != 0);
12433   } else {
12434     int status;
12435     struct stat st;
12436
12437     while (wait(&status) != child)
12438       ;
12439     return (
12440          /* Was there some problem with vforking?  */
12441          child < 0
12442
12443          /* Did the child fail?  (This shouldn't happen.)  */
12444          || status
12445
12446          /* Did the vfork/compiler bug occur?  */
12447          || parent != getpid()
12448
12449          /* Did the file descriptor bug occur?  */
12450          || fstat(fileno(stdout), &st) != 0
12451          );
12452   }
12453 }
12454 _ACEOF
12455 if ac_fn_c_try_run "$LINENO"; then :
12456   ac_cv_func_vfork_works=yes
12457 else
12458   ac_cv_func_vfork_works=no
12459 fi
12460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12461   conftest.$ac_objext conftest.beam conftest.$ac_ext
12462 fi
12463
12464 fi
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12466 $as_echo "$ac_cv_func_vfork_works" >&6; }
12467
12468 fi;
12469 if test "x$ac_cv_func_fork_works" = xcross; then
12470   ac_cv_func_vfork_works=$ac_cv_func_vfork
12471   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12472 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12473 fi
12474
12475 if test "x$ac_cv_func_vfork_works" = xyes; then
12476
12477 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12478
12479 else
12480
12481 $as_echo "#define vfork fork" >>confdefs.h
12482
12483 fi
12484 if test "x$ac_cv_func_fork_works" = xyes; then
12485
12486 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12487
12488 fi
12489
12490 for ac_func in canonicalize_file_name realpath getrusage getuid \
12491                 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
12492                 sigaction sigprocmask sigsetmask socketpair syscall \
12493                 ttrace wborder setlocale iconvlist libiconvlist btowc \
12494                 setrlimit getrlimit posix_madvise
12495 do :
12496   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12497 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12498 eval as_val=\$$as_ac_var
12499    if test "x$as_val" = x""yes; then :
12500   cat >>confdefs.h <<_ACEOF
12501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12502 _ACEOF
12503
12504 fi
12505 done
12506
12507
12508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12509 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12510 if test "${am_cv_langinfo_codeset+set}" = set; then :
12511   $as_echo_n "(cached) " >&6
12512 else
12513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h.  */
12515 #include <langinfo.h>
12516 int
12517 main ()
12518 {
12519 char* cs = nl_langinfo(CODESET);
12520   ;
12521   return 0;
12522 }
12523 _ACEOF
12524 if ac_fn_c_try_link "$LINENO"; then :
12525   am_cv_langinfo_codeset=yes
12526 else
12527   am_cv_langinfo_codeset=no
12528 fi
12529 rm -f core conftest.err conftest.$ac_objext \
12530     conftest$ac_exeext conftest.$ac_ext
12531
12532 fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12534 $as_echo "$am_cv_langinfo_codeset" >&6; }
12535   if test $am_cv_langinfo_codeset = yes; then
12536
12537 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12538
12539   fi
12540
12541
12542 # Check the return and argument types of ptrace.  No canned test for
12543 # this, so roll our own.
12544 gdb_ptrace_headers='
12545 #if HAVE_SYS_TYPES_H
12546 # include <sys/types.h>
12547 #endif
12548 #if HAVE_SYS_PTRACE_H
12549 # include <sys/ptrace.h>
12550 #endif
12551 #if HAVE_UNISTD_H
12552 # include <unistd.h>
12553 #endif
12554 '
12555 # There is no point in checking if we don't have a prototype.
12556 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12557 "
12558 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12559   ac_have_decl=1
12560 else
12561   ac_have_decl=0
12562 fi
12563
12564 cat >>confdefs.h <<_ACEOF
12565 #define HAVE_DECL_PTRACE $ac_have_decl
12566 _ACEOF
12567 if test $ac_have_decl = 1; then :
12568
12569 else
12570
12571   : ${gdb_cv_func_ptrace_ret='int'}
12572   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12573
12574 fi
12575
12576 # Check return type.  Varargs (used on GNU/Linux) conflict with the
12577 # empty argument list, so check for that explicitly.
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12579 $as_echo_n "checking return type of ptrace... " >&6; }
12580 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12581   $as_echo_n "(cached) " >&6
12582 else
12583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h.  */
12585 $gdb_ptrace_headers
12586 int
12587 main ()
12588 {
12589 extern long ptrace (enum __ptrace_request, ...);
12590   ;
12591   return 0;
12592 }
12593 _ACEOF
12594 if ac_fn_c_try_compile "$LINENO"; then :
12595   gdb_cv_func_ptrace_ret='long'
12596 else
12597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h.  */
12599 $gdb_ptrace_headers
12600 int
12601 main ()
12602 {
12603 extern int ptrace ();
12604   ;
12605   return 0;
12606 }
12607 _ACEOF
12608 if ac_fn_c_try_compile "$LINENO"; then :
12609   gdb_cv_func_ptrace_ret='int'
12610 else
12611   gdb_cv_func_ptrace_ret='long'
12612 fi
12613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12614 fi
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616 fi
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12618 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12619
12620 cat >>confdefs.h <<_ACEOF
12621 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12622 _ACEOF
12623
12624 # Check argument types.
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12626 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12627 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12628   $as_echo_n "(cached) " >&6
12629 else
12630
12631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h.  */
12633 $gdb_ptrace_headers
12634 int
12635 main ()
12636 {
12637 extern long ptrace (enum __ptrace_request, ...);
12638   ;
12639   return 0;
12640 }
12641 _ACEOF
12642 if ac_fn_c_try_compile "$LINENO"; then :
12643   gdb_cv_func_ptrace_args='int,int,long,long'
12644 else
12645
12646 for gdb_arg1 in 'int' 'long'; do
12647  for gdb_arg2 in 'pid_t' 'int' 'long'; do
12648   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12649    for gdb_arg4 in 'int' 'long'; do
12650      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h.  */
12652 $gdb_ptrace_headers
12653 int
12654 main ()
12655 {
12656
12657 extern $gdb_cv_func_ptrace_ret
12658   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12659
12660   ;
12661   return 0;
12662 }
12663 _ACEOF
12664 if ac_fn_c_try_compile "$LINENO"; then :
12665   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12666     break 4;
12667 fi
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669     for gdb_arg5 in 'int *' 'int' 'long'; do
12670      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h.  */
12672 $gdb_ptrace_headers
12673 int
12674 main ()
12675 {
12676
12677 extern $gdb_cv_func_ptrace_ret
12678   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12679
12680   ;
12681   return 0;
12682 }
12683 _ACEOF
12684 if ac_fn_c_try_compile "$LINENO"; then :
12685
12686 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12687     break 5;
12688 fi
12689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690     done
12691    done
12692   done
12693  done
12694 done
12695 # Provide a safe default value.
12696 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12697
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12700 fi
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12702 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12703 ac_save_IFS=$IFS; IFS=','
12704 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12705 IFS=$ac_save_IFS
12706 shift
12707
12708 cat >>confdefs.h <<_ACEOF
12709 #define PTRACE_TYPE_ARG3 $3
12710 _ACEOF
12711
12712 if test -n "$5"; then
12713
12714 cat >>confdefs.h <<_ACEOF
12715 #define PTRACE_TYPE_ARG5 $5
12716 _ACEOF
12717
12718 fi
12719
12720 if test "$cross_compiling" = no; then
12721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12722 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12723 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12724   $as_echo_n "(cached) " >&6
12725 else
12726   if test "$cross_compiling" = yes; then :
12727   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12728 else
12729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h.  */
12731 $ac_includes_default
12732 int
12733 main ()
12734 {
12735 /* If this system has a BSD-style setpgrp which takes arguments,
12736   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12737   exit successfully. */
12738   return setpgrp (1,1) != -1;
12739   ;
12740   return 0;
12741 }
12742 _ACEOF
12743 if ac_fn_c_try_run "$LINENO"; then :
12744   ac_cv_func_setpgrp_void=no
12745 else
12746   ac_cv_func_setpgrp_void=yes
12747 fi
12748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12749   conftest.$ac_objext conftest.beam conftest.$ac_ext
12750 fi
12751
12752 fi
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12754 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12755 if test $ac_cv_func_setpgrp_void = yes; then
12756
12757 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12758
12759 fi
12760
12761 else
12762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12763 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12764 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12765   $as_echo_n "(cached) " >&6
12766 else
12767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h.  */
12769
12770 #include <unistd.h>
12771
12772 int
12773 main ()
12774 {
12775
12776   if (setpgrp(1,1) == -1)
12777     exit (0);
12778   else
12779     exit (1);
12780
12781   ;
12782   return 0;
12783 }
12784 _ACEOF
12785 if ac_fn_c_try_compile "$LINENO"; then :
12786   ac_cv_func_setpgrp_void=no
12787 else
12788   ac_cv_func_setpgrp_void=yes
12789 fi
12790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12791 fi
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12793 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12794 if test $ac_cv_func_setpgrp_void = yes; then
12795   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12796
12797 fi
12798 fi
12799
12800 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
12801 # since sigsetjmp might only be defined as a macro.
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12803 $as_echo_n "checking for sigsetjmp... " >&6; }
12804 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12805   $as_echo_n "(cached) " >&6
12806 else
12807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h.  */
12809
12810 #include <setjmp.h>
12811
12812 int
12813 main ()
12814 {
12815 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 if ac_fn_c_try_compile "$LINENO"; then :
12821   gdb_cv_func_sigsetjmp=yes
12822 else
12823   gdb_cv_func_sigsetjmp=no
12824 fi
12825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12826 fi
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12828 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12829 if test $gdb_cv_func_sigsetjmp = yes; then
12830
12831 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12832
12833 fi
12834
12835 # Assume we'll default to using the included libiberty regex.
12836 gdb_use_included_regex=yes
12837
12838 # However, if the system regex is GNU regex, then default to *not*
12839 # using the included regex.
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12841 $as_echo_n "checking for GNU regex... " >&6; }
12842 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12843   $as_echo_n "(cached) " >&6
12844 else
12845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h.  */
12847 #include <gnu-versions.h>
12848 int
12849 main ()
12850 {
12851 #define REGEX_INTERFACE_VERSION 1
12852 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12853 # error "Version mismatch"
12854 #endif
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 if ac_fn_c_try_compile "$LINENO"; then :
12860   gdb_cv_have_gnu_regex=yes
12861 else
12862   gdb_cv_have_gnu_regex=no
12863 fi
12864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865 fi
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12867 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12868 if test $gdb_cv_have_gnu_regex = yes; then
12869   gdb_use_included_regex=no
12870 fi
12871
12872
12873 # Check whether --with-included-regex was given.
12874 if test "${with_included_regex+set}" = set; then :
12875   withval=$with_included_regex; gdb_with_regex=$withval
12876 else
12877   gdb_with_regex=$gdb_use_included_regex
12878 fi
12879
12880 if test "$gdb_with_regex" = yes; then
12881
12882 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12883
12884 fi
12885
12886 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12887 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12888 #include <sys/proc.h>
12889
12890 "
12891 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12892
12893 cat >>confdefs.h <<_ACEOF
12894 #define HAVE_STRUCT_THREAD_TD_PCB 1
12895 _ACEOF
12896
12897
12898 fi
12899
12900
12901 # See if <sys/lwp.h> defines `struct lwp`.
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12903 $as_echo_n "checking for struct lwp... " >&6; }
12904 if test "${gdb_cv_struct_lwp+set}" = set; then :
12905   $as_echo_n "(cached) " >&6
12906 else
12907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h.  */
12909 #include <sys/param.h>
12910 #include <sys/lwp.h>
12911 int
12912 main ()
12913 {
12914 struct lwp l;
12915   ;
12916   return 0;
12917 }
12918 _ACEOF
12919 if ac_fn_c_try_compile "$LINENO"; then :
12920   gdb_cv_struct_lwp=yes
12921 else
12922   gdb_cv_struct_lwp=no
12923 fi
12924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12925 fi
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12927 $as_echo "$gdb_cv_struct_lwp" >&6; }
12928 if test $gdb_cv_struct_lwp = yes; then
12929
12930 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12931
12932 fi
12933
12934 # See if <machine/reg.h> degines `struct reg'.
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12936 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12937 if test "${gdb_cv_struct_reg+set}" = set; then :
12938   $as_echo_n "(cached) " >&6
12939 else
12940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h.  */
12942 #include <sys/types.h>
12943 #include <machine/reg.h>
12944 int
12945 main ()
12946 {
12947 struct reg r;
12948   ;
12949   return 0;
12950 }
12951 _ACEOF
12952 if ac_fn_c_try_compile "$LINENO"; then :
12953   gdb_cv_struct_reg=yes
12954 else
12955   gdb_cv_struct_reg=no
12956 fi
12957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12958 fi
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12960 $as_echo "$gdb_cv_struct_reg" >&6; }
12961 if test $gdb_cv_struct_reg = yes; then
12962
12963 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12964
12965 fi
12966
12967 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12968 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12969 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
12970 "
12971 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
12972
12973 cat >>confdefs.h <<_ACEOF
12974 #define HAVE_STRUCT_REG_R_FS 1
12975 _ACEOF
12976
12977
12978 fi
12979 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
12980 "
12981 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
12982
12983 cat >>confdefs.h <<_ACEOF
12984 #define HAVE_STRUCT_REG_R_GS 1
12985 _ACEOF
12986
12987
12988 fi
12989
12990
12991 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12993 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12994 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12995   $as_echo_n "(cached) " >&6
12996 else
12997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h.  */
12999 #include <sys/ptrace.h>
13000 int
13001 main ()
13002 {
13003 PTRACE_GETREGS;
13004   ;
13005   return 0;
13006 }
13007 _ACEOF
13008 if ac_fn_c_try_compile "$LINENO"; then :
13009   gdb_cv_have_ptrace_getregs=yes
13010 else
13011   gdb_cv_have_ptrace_getregs=no
13012 fi
13013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13014 fi
13015
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13017 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13018 if test $gdb_cv_have_ptrace_getregs = yes; then
13019
13020 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13021
13022 fi
13023
13024 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13026 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13027 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13028   $as_echo_n "(cached) " >&6
13029 else
13030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h.  */
13032 #include <sys/ptrace.h>
13033 int
13034 main ()
13035 {
13036 PTRACE_GETFPXREGS;
13037   ;
13038   return 0;
13039 }
13040 _ACEOF
13041 if ac_fn_c_try_compile "$LINENO"; then :
13042   gdb_cv_have_ptrace_getfpxregs=yes
13043 else
13044   gdb_cv_have_ptrace_getfpxregs=no
13045 fi
13046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13047 fi
13048
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13050 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13051 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13052
13053 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13054
13055 fi
13056
13057 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13059 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13060 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13061   $as_echo_n "(cached) " >&6
13062 else
13063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h.  */
13065 #include <sys/types.h>
13066 #include <sys/ptrace.h>
13067 int
13068 main ()
13069 {
13070 PT_GETDBREGS;
13071   ;
13072   return 0;
13073 }
13074 _ACEOF
13075 if ac_fn_c_try_compile "$LINENO"; then :
13076   gdb_cv_have_pt_getdbregs=yes
13077 else
13078   gdb_cv_have_pt_getdbregs=no
13079 fi
13080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13081 fi
13082
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13084 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13085 if test $gdb_cv_have_pt_getdbregs = yes; then
13086
13087 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13088
13089 fi
13090
13091 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13093 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13094 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13095   $as_echo_n "(cached) " >&6
13096 else
13097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h.  */
13099 #include <sys/types.h>
13100 #include <sys/ptrace.h>
13101 int
13102 main ()
13103 {
13104 PT_GETXMMREGS;
13105   ;
13106   return 0;
13107 }
13108 _ACEOF
13109 if ac_fn_c_try_compile "$LINENO"; then :
13110   gdb_cv_have_pt_getxmmregs=yes
13111 else
13112   gdb_cv_have_pt_getxmmregs=no
13113 fi
13114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13115 fi
13116
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13118 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13119 if test $gdb_cv_have_pt_getxmmregs = yes; then
13120
13121 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13122
13123 fi
13124
13125 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13126
13127 if test "${target}" = "${host}"; then
13128   case "${host}" in
13129   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
13130
13131 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13132
13133       ;;
13134   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13135
13136 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13137
13138       ;;
13139   mips-sgi-irix5*)
13140       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13141
13142 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13143
13144       ;;
13145   esac
13146 fi
13147
13148 if test "$ac_cv_header_sys_procfs_h" = yes; then
13149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13150 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13151  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13152   $as_echo_n "(cached) " >&6
13153 else
13154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h.  */
13156
13157 #define _SYSCALL32
13158 /* Needed for new procfs interface on sparc-solaris.  */
13159 #define _STRUCTURED_PROC 1
13160 #include <sys/procfs.h>
13161 int
13162 main ()
13163 {
13164 pstatus_t avar
13165   ;
13166   return 0;
13167 }
13168 _ACEOF
13169 if ac_fn_c_try_compile "$LINENO"; then :
13170   bfd_cv_have_sys_procfs_type_pstatus_t=yes
13171 else
13172   bfd_cv_have_sys_procfs_type_pstatus_t=no
13173
13174 fi
13175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13176 fi
13177
13178  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13179
13180 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13181
13182  fi
13183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13184 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13185
13186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13187 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13188  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13189   $as_echo_n "(cached) " >&6
13190 else
13191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h.  */
13193
13194 #define _SYSCALL32
13195 /* Needed for new procfs interface on sparc-solaris.  */
13196 #define _STRUCTURED_PROC 1
13197 #include <sys/procfs.h>
13198 int
13199 main ()
13200 {
13201 prrun_t avar
13202   ;
13203   return 0;
13204 }
13205 _ACEOF
13206 if ac_fn_c_try_compile "$LINENO"; then :
13207   bfd_cv_have_sys_procfs_type_prrun_t=yes
13208 else
13209   bfd_cv_have_sys_procfs_type_prrun_t=no
13210
13211 fi
13212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13213 fi
13214
13215  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13216
13217 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13218
13219  fi
13220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13221 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13222
13223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13224 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13225  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13226   $as_echo_n "(cached) " >&6
13227 else
13228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h.  */
13230
13231 #define _SYSCALL32
13232 /* Needed for new procfs interface on sparc-solaris.  */
13233 #define _STRUCTURED_PROC 1
13234 #include <sys/procfs.h>
13235 int
13236 main ()
13237 {
13238 gregset_t avar
13239   ;
13240   return 0;
13241 }
13242 _ACEOF
13243 if ac_fn_c_try_compile "$LINENO"; then :
13244   bfd_cv_have_sys_procfs_type_gregset_t=yes
13245 else
13246   bfd_cv_have_sys_procfs_type_gregset_t=no
13247
13248 fi
13249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250 fi
13251
13252  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13253
13254 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13255
13256  fi
13257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13258 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13259
13260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13261 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13262  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13263   $as_echo_n "(cached) " >&6
13264 else
13265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h.  */
13267
13268 #define _SYSCALL32
13269 /* Needed for new procfs interface on sparc-solaris.  */
13270 #define _STRUCTURED_PROC 1
13271 #include <sys/procfs.h>
13272 int
13273 main ()
13274 {
13275 fpregset_t avar
13276   ;
13277   return 0;
13278 }
13279 _ACEOF
13280 if ac_fn_c_try_compile "$LINENO"; then :
13281   bfd_cv_have_sys_procfs_type_fpregset_t=yes
13282 else
13283   bfd_cv_have_sys_procfs_type_fpregset_t=no
13284
13285 fi
13286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13287 fi
13288
13289  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13290
13291 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13292
13293  fi
13294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13295 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13296
13297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13298 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13299  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13300   $as_echo_n "(cached) " >&6
13301 else
13302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h.  */
13304
13305 #define _SYSCALL32
13306 /* Needed for new procfs interface on sparc-solaris.  */
13307 #define _STRUCTURED_PROC 1
13308 #include <sys/procfs.h>
13309 int
13310 main ()
13311 {
13312 prgregset_t avar
13313   ;
13314   return 0;
13315 }
13316 _ACEOF
13317 if ac_fn_c_try_compile "$LINENO"; then :
13318   bfd_cv_have_sys_procfs_type_prgregset_t=yes
13319 else
13320   bfd_cv_have_sys_procfs_type_prgregset_t=no
13321
13322 fi
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 fi
13325
13326  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13327
13328 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13329
13330  fi
13331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13332 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13333
13334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13335 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13336  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13337   $as_echo_n "(cached) " >&6
13338 else
13339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h.  */
13341
13342 #define _SYSCALL32
13343 /* Needed for new procfs interface on sparc-solaris.  */
13344 #define _STRUCTURED_PROC 1
13345 #include <sys/procfs.h>
13346 int
13347 main ()
13348 {
13349 prfpregset_t avar
13350   ;
13351   return 0;
13352 }
13353 _ACEOF
13354 if ac_fn_c_try_compile "$LINENO"; then :
13355   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13356 else
13357   bfd_cv_have_sys_procfs_type_prfpregset_t=no
13358
13359 fi
13360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13361 fi
13362
13363  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13364
13365 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13366
13367  fi
13368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13369 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13370
13371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13372 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13373  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13374   $as_echo_n "(cached) " >&6
13375 else
13376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h.  */
13378
13379 #define _SYSCALL32
13380 /* Needed for new procfs interface on sparc-solaris.  */
13381 #define _STRUCTURED_PROC 1
13382 #include <sys/procfs.h>
13383 int
13384 main ()
13385 {
13386 prgregset32_t avar
13387   ;
13388   return 0;
13389 }
13390 _ACEOF
13391 if ac_fn_c_try_compile "$LINENO"; then :
13392   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13393 else
13394   bfd_cv_have_sys_procfs_type_prgregset32_t=no
13395
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398 fi
13399
13400  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13401
13402 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13403
13404  fi
13405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13406 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13407
13408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13409 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13410  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13411   $as_echo_n "(cached) " >&6
13412 else
13413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h.  */
13415
13416 #define _SYSCALL32
13417 /* Needed for new procfs interface on sparc-solaris.  */
13418 #define _STRUCTURED_PROC 1
13419 #include <sys/procfs.h>
13420 int
13421 main ()
13422 {
13423 prfpregset32_t avar
13424   ;
13425   return 0;
13426 }
13427 _ACEOF
13428 if ac_fn_c_try_compile "$LINENO"; then :
13429   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
13430 else
13431   bfd_cv_have_sys_procfs_type_prfpregset32_t=no
13432
13433 fi
13434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435 fi
13436
13437  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13438
13439 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13440
13441  fi
13442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13443 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13444
13445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13446 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13447  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13448   $as_echo_n "(cached) " >&6
13449 else
13450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h.  */
13452
13453 #define _SYSCALL32
13454 /* Needed for new procfs interface on sparc-solaris.  */
13455 #define _STRUCTURED_PROC 1
13456 #include <sys/procfs.h>
13457 int
13458 main ()
13459 {
13460 lwpid_t avar
13461   ;
13462   return 0;
13463 }
13464 _ACEOF
13465 if ac_fn_c_try_compile "$LINENO"; then :
13466   bfd_cv_have_sys_procfs_type_lwpid_t=yes
13467 else
13468   bfd_cv_have_sys_procfs_type_lwpid_t=no
13469
13470 fi
13471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13472 fi
13473
13474  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13475
13476 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13477
13478  fi
13479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13480 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13481
13482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13483 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13484  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13485   $as_echo_n "(cached) " >&6
13486 else
13487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h.  */
13489
13490 #define _SYSCALL32
13491 /* Needed for new procfs interface on sparc-solaris.  */
13492 #define _STRUCTURED_PROC 1
13493 #include <sys/procfs.h>
13494 int
13495 main ()
13496 {
13497 psaddr_t avar
13498   ;
13499   return 0;
13500 }
13501 _ACEOF
13502 if ac_fn_c_try_compile "$LINENO"; then :
13503   bfd_cv_have_sys_procfs_type_psaddr_t=yes
13504 else
13505   bfd_cv_have_sys_procfs_type_psaddr_t=no
13506
13507 fi
13508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13509 fi
13510
13511  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13512
13513 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13514
13515  fi
13516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13517 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13518
13519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13520 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13521  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13522   $as_echo_n "(cached) " >&6
13523 else
13524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h.  */
13526
13527 #define _SYSCALL32
13528 /* Needed for new procfs interface on sparc-solaris.  */
13529 #define _STRUCTURED_PROC 1
13530 #include <sys/procfs.h>
13531 int
13532 main ()
13533 {
13534 prsysent_t avar
13535   ;
13536   return 0;
13537 }
13538 _ACEOF
13539 if ac_fn_c_try_compile "$LINENO"; then :
13540   bfd_cv_have_sys_procfs_type_prsysent_t=yes
13541 else
13542   bfd_cv_have_sys_procfs_type_prsysent_t=no
13543
13544 fi
13545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13546 fi
13547
13548  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13549
13550 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13551
13552  fi
13553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13554 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13555
13556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13557 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13558  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13559   $as_echo_n "(cached) " >&6
13560 else
13561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h.  */
13563
13564 #define _SYSCALL32
13565 /* Needed for new procfs interface on sparc-solaris.  */
13566 #define _STRUCTURED_PROC 1
13567 #include <sys/procfs.h>
13568 int
13569 main ()
13570 {
13571 pr_sigset_t avar
13572   ;
13573   return 0;
13574 }
13575 _ACEOF
13576 if ac_fn_c_try_compile "$LINENO"; then :
13577   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13578 else
13579   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13580
13581 fi
13582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13583 fi
13584
13585  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13586
13587 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13588
13589  fi
13590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13591 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13592
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13594 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13595  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13596   $as_echo_n "(cached) " >&6
13597 else
13598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h.  */
13600
13601 #define _SYSCALL32
13602 /* Needed for new procfs interface on sparc-solaris.  */
13603 #define _STRUCTURED_PROC 1
13604 #include <sys/procfs.h>
13605 int
13606 main ()
13607 {
13608 pr_sigaction64_t avar
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 if ac_fn_c_try_compile "$LINENO"; then :
13614   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13615 else
13616   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13617
13618 fi
13619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13620 fi
13621
13622  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13623
13624 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13625
13626  fi
13627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13628 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13629
13630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13631 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13632  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13633   $as_echo_n "(cached) " >&6
13634 else
13635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h.  */
13637
13638 #define _SYSCALL32
13639 /* Needed for new procfs interface on sparc-solaris.  */
13640 #define _STRUCTURED_PROC 1
13641 #include <sys/procfs.h>
13642 int
13643 main ()
13644 {
13645 pr_siginfo64_t avar
13646   ;
13647   return 0;
13648 }
13649 _ACEOF
13650 if ac_fn_c_try_compile "$LINENO"; then :
13651   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13652 else
13653   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13654
13655 fi
13656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13657 fi
13658
13659  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13660
13661 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13662
13663  fi
13664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13665 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13666
13667
13668
13669
13670
13671   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13673 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13674     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13675   $as_echo_n "(cached) " >&6
13676 else
13677   if test "$cross_compiling" = yes; then :
13678   gdb_cv_prfpregset_t_broken=yes
13679 else
13680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h.  */
13682 #include <sys/procfs.h>
13683        int main ()
13684        {
13685          if (sizeof (prfpregset_t) == sizeof (void *))
13686            return 1;
13687          return 0;
13688        }
13689 _ACEOF
13690 if ac_fn_c_try_run "$LINENO"; then :
13691   gdb_cv_prfpregset_t_broken=no
13692 else
13693   gdb_cv_prfpregset_t_broken=yes
13694 fi
13695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13696   conftest.$ac_objext conftest.beam conftest.$ac_ext
13697 fi
13698
13699 fi
13700
13701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13702 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13703     if test $gdb_cv_prfpregset_t_broken = yes; then
13704
13705 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13706
13707     fi
13708   fi
13709
13710
13711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13712 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13713   if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13714   $as_echo_n "(cached) " >&6
13715 else
13716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h.  */
13718 #include <unistd.h>
13719 #include <sys/types.h>
13720 #include <sys/procfs.h>
13721
13722 int
13723 main ()
13724 {
13725
13726     int dummy;;
13727     dummy = ioctl(0, PIOCSET, &dummy);
13728
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 if ac_fn_c_try_compile "$LINENO"; then :
13734   gdb_cv_have_procfs_piocset=yes
13735 else
13736   gdb_cv_have_procfs_piocset=no
13737 fi
13738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13739 fi
13740
13741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13742 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13743   if test $gdb_cv_have_procfs_piocset = yes; then
13744
13745 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13746
13747   fi
13748 fi
13749
13750 if test ${host} = ${target} ; then
13751
13752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13753 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13754   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13755   $as_echo_n "(cached) " >&6
13756 else
13757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h.  */
13759 #include <link.h>
13760 int
13761 main ()
13762 {
13763 struct link_map lm; (void) lm.l_addr;
13764   ;
13765   return 0;
13766 }
13767 _ACEOF
13768 if ac_fn_c_try_compile "$LINENO"; then :
13769   gdb_cv_have_struct_link_map_with_l_members=yes
13770 else
13771   gdb_cv_have_struct_link_map_with_l_members=no
13772 fi
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774 fi
13775
13776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13777 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13778   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13779
13780 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13781
13782   fi
13783
13784
13785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13786 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13787   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13788   $as_echo_n "(cached) " >&6
13789 else
13790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h.  */
13792 #include <sys/types.h>
13793 #include <link.h>
13794 int
13795 main ()
13796 {
13797 struct link_map lm; (void) lm.lm_addr;
13798   ;
13799   return 0;
13800 }
13801 _ACEOF
13802 if ac_fn_c_try_compile "$LINENO"; then :
13803   gdb_cv_have_struct_link_map_with_lm_members=yes
13804 else
13805   gdb_cv_have_struct_link_map_with_lm_members=no
13806 fi
13807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13808 fi
13809
13810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13811 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13812   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13813
13814 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13815
13816   fi
13817
13818
13819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13820 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13821   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13822   $as_echo_n "(cached) " >&6
13823 else
13824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h.  */
13826 #include <sys/types.h>
13827 #ifdef HAVE_NLIST_H
13828 #include <nlist.h>
13829 #endif
13830 #include <link.h>
13831 int
13832 main ()
13833 {
13834 struct so_map lm; (void) lm.som_addr;
13835   ;
13836   return 0;
13837 }
13838 _ACEOF
13839 if ac_fn_c_try_compile "$LINENO"; then :
13840   gdb_cv_have_struct_so_map_with_som_members=yes
13841 else
13842   gdb_cv_have_struct_so_map_with_som_members=no
13843 fi
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 fi
13846
13847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13848 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13849   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13850
13851 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13852
13853   fi
13854
13855
13856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13857 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13858   if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13859   $as_echo_n "(cached) " >&6
13860 else
13861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h.  */
13863 #define _SYSCALL32
13864 #include <sys/link.h>
13865 int
13866 main ()
13867 {
13868 struct link_map32 l;
13869   ;
13870   return 0;
13871 }
13872 _ACEOF
13873 if ac_fn_c_try_compile "$LINENO"; then :
13874   gdb_cv_have_struct_link_map32=yes
13875 else
13876   gdb_cv_have_struct_link_map32=no
13877 fi
13878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13879 fi
13880
13881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13882 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13883   if test $gdb_cv_have_struct_link_map32 = yes; then
13884
13885 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13886
13887
13888 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13889
13890   fi
13891 fi
13892
13893 # Check if the compiler supports the `long long' type.
13894
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13896 $as_echo_n "checking for long long support in compiler... " >&6; }
13897 if test "${gdb_cv_c_long_long+set}" = set; then :
13898   $as_echo_n "(cached) " >&6
13899 else
13900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h.  */
13902 extern long long foo;
13903 int
13904 main ()
13905 {
13906 switch (foo & 2) { case 0: return 1; }
13907   ;
13908   return 0;
13909 }
13910 _ACEOF
13911 if ac_fn_c_try_compile "$LINENO"; then :
13912   gdb_cv_c_long_long=yes
13913 else
13914   gdb_cv_c_long_long=no
13915 fi
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 fi
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13919 $as_echo "$gdb_cv_c_long_long" >&6; }
13920 if test $gdb_cv_c_long_long = yes; then
13921
13922 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
13923
13924 fi
13925
13926 # Check if the compiler and runtime support printing long longs.
13927
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13929 $as_echo_n "checking for long long support in printf... " >&6; }
13930 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13931   $as_echo_n "(cached) " >&6
13932 else
13933   if test "$cross_compiling" = yes; then :
13934   gdb_cv_printf_has_long_long=no
13935 else
13936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h.  */
13938 $ac_includes_default
13939 int
13940 main ()
13941 {
13942 char buf[32];
13943   long long l = 0;
13944   l = (l << 16) + 0x0123;
13945   l = (l << 16) + 0x4567;
13946   l = (l << 16) + 0x89ab;
13947   l = (l << 16) + 0xcdef;
13948   sprintf (buf, "0x%016llx", l);
13949   return (strcmp ("0x0123456789abcdef", buf));
13950   ;
13951   return 0;
13952 }
13953 _ACEOF
13954 if ac_fn_c_try_run "$LINENO"; then :
13955   gdb_cv_printf_has_long_long=yes
13956 else
13957   gdb_cv_printf_has_long_long=no
13958 fi
13959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13960   conftest.$ac_objext conftest.beam conftest.$ac_ext
13961 fi
13962
13963 fi
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13965 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13966 if test $gdb_cv_printf_has_long_long = yes; then
13967
13968 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13969
13970 fi
13971
13972 # Check if the compiler and runtime support printing decfloats.
13973
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13975 $as_echo_n "checking for decfloat support in printf... " >&6; }
13976 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13977   $as_echo_n "(cached) " >&6
13978 else
13979   if test "$cross_compiling" = yes; then :
13980   gdb_cv_printf_has_decfloat=no
13981 else
13982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h.  */
13984 $ac_includes_default
13985 int
13986 main ()
13987 {
13988 char buf[64];
13989   _Decimal32 d32 = 1.2345df;
13990   _Decimal64 d64 = 1.2345dd;
13991   _Decimal128 d128 = 1.2345dl;
13992   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13993   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13994   ;
13995   return 0;
13996 }
13997 _ACEOF
13998 if ac_fn_c_try_run "$LINENO"; then :
13999   gdb_cv_printf_has_decfloat=yes
14000 else
14001   gdb_cv_printf_has_decfloat=no
14002 fi
14003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14004   conftest.$ac_objext conftest.beam conftest.$ac_ext
14005 fi
14006
14007 fi
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14009 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14010 if test $gdb_cv_printf_has_decfloat = yes; then
14011
14012 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14013
14014 fi
14015
14016 # Check if the compiler supports the `long double' type.  We can't use
14017 # AC_C_LONG_DOUBLE because that one does additional checks on the
14018 # constants defined in <float.h> that fail on some systems,
14019 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14020
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14022 $as_echo_n "checking for long double support in compiler... " >&6; }
14023 if test "${gdb_cv_c_long_double+set}" = set; then :
14024   $as_echo_n "(cached) " >&6
14025 else
14026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h.  */
14028 long double foo;
14029 _ACEOF
14030 if ac_fn_c_try_compile "$LINENO"; then :
14031   gdb_cv_c_long_double=yes
14032 else
14033   gdb_cv_c_long_double=no
14034 fi
14035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14036 fi
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14038 $as_echo "$gdb_cv_c_long_double" >&6; }
14039 if test $gdb_cv_c_long_double = yes; then
14040
14041 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14042
14043 fi
14044
14045 # Check if the compiler and runtime support printing long doubles.
14046
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14048 $as_echo_n "checking for long double support in printf... " >&6; }
14049 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14050   $as_echo_n "(cached) " >&6
14051 else
14052   if test "$cross_compiling" = yes; then :
14053   gdb_cv_printf_has_long_double=no
14054 else
14055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h.  */
14057 $ac_includes_default
14058 int
14059 main ()
14060 {
14061 char buf[16];
14062   long double f = 3.141592653;
14063   sprintf (buf, "%Lg", f);
14064   return (strncmp ("3.14159", buf, 7));
14065   ;
14066   return 0;
14067 }
14068 _ACEOF
14069 if ac_fn_c_try_run "$LINENO"; then :
14070   gdb_cv_printf_has_long_double=yes
14071 else
14072   gdb_cv_printf_has_long_double=no
14073 fi
14074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14075   conftest.$ac_objext conftest.beam conftest.$ac_ext
14076 fi
14077
14078 fi
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14080 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14081 if test $gdb_cv_printf_has_long_double = yes; then
14082
14083 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14084
14085 fi
14086
14087 # Check if the compiler and runtime support scanning long doubles.
14088
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14090 $as_echo_n "checking for long double support in scanf... " >&6; }
14091 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14092   $as_echo_n "(cached) " >&6
14093 else
14094   if test "$cross_compiling" = yes; then :
14095   gdb_cv_scanf_has_long_double=no
14096 else
14097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h.  */
14099 #include <stdio.h>
14100 int
14101 main ()
14102 {
14103 char *buf = "3.141592653";
14104   long double f = 0;
14105   sscanf (buf, "%Lg", &f);
14106   return !(f > 3.14159 && f < 3.14160);
14107   ;
14108   return 0;
14109 }
14110 _ACEOF
14111 if ac_fn_c_try_run "$LINENO"; then :
14112   gdb_cv_scanf_has_long_double=yes
14113 else
14114   gdb_cv_scanf_has_long_double=no
14115 fi
14116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14117   conftest.$ac_objext conftest.beam conftest.$ac_ext
14118 fi
14119
14120 fi
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14122 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14123 if test $gdb_cv_scanf_has_long_double = yes; then
14124
14125 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14126
14127 fi
14128
14129 case ${host_os} in
14130 aix*)
14131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14132 $as_echo_n "checking for -bbigtoc option... " >&6; }
14133 if test "${gdb_cv_bigtoc+set}" = set; then :
14134   $as_echo_n "(cached) " >&6
14135 else
14136
14137     SAVE_LDFLAGS=$LDFLAGS
14138
14139     case $GCC in
14140     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14141     *) gdb_cv_bigtoc=-bbigtoc ;;
14142     esac
14143
14144     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14145     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h.  */
14147
14148 int
14149 main ()
14150 {
14151 int i;
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 if ac_fn_c_try_link "$LINENO"; then :
14157
14158 else
14159   gdb_cv_bigtoc=
14160 fi
14161 rm -f core conftest.err conftest.$ac_objext \
14162     conftest$ac_exeext conftest.$ac_ext
14163     LDFLAGS="${SAVE_LDFLAGS}"
14164
14165 fi
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14167 $as_echo "$gdb_cv_bigtoc" >&6; }
14168   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14169   ;;
14170 esac
14171
14172
14173
14174 if test ${build} = ${host} -a ${host} = ${target} ; then
14175    if test "$GCC" = "yes" ; then
14176       # The dynamically loaded libthread_db needs access to symbols in the gdb
14177       # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
14178       # may not be supported there.
14179       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14180 $as_echo_n "checking for the dynamic export flag... " >&6; }
14181       old_LDFLAGS="$LDFLAGS"
14182       # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14183       RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14184       LDFLAGS="$LDFLAGS $RDYNAMIC"
14185       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h.  */
14187
14188 int
14189 main ()
14190 {
14191
14192   ;
14193   return 0;
14194 }
14195 _ACEOF
14196 if ac_fn_c_try_link "$LINENO"; then :
14197   found="-Wl,--dynamic-list"
14198                    RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14199 else
14200   RDYNAMIC="-rdynamic"
14201                    LDFLAGS="$old_LDFLAGS $RDYNAMIC"
14202                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h.  */
14204
14205 int
14206 main ()
14207 {
14208
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 if ac_fn_c_try_link "$LINENO"; then :
14214   found="-rdynamic"
14215 else
14216   found="no"
14217                                 # Error on its usage by .mh file.
14218                                 RDYNAMIC="no-rdynamic-available"
14219 fi
14220 rm -f core conftest.err conftest.$ac_objext \
14221     conftest$ac_exeext conftest.$ac_ext
14222 fi
14223 rm -f core conftest.err conftest.$ac_objext \
14224     conftest$ac_exeext conftest.$ac_ext
14225
14226       LDFLAGS="$old_LDFLAGS"
14227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14228 $as_echo "$found" >&6; }
14229    fi
14230
14231    case ${host_os} in
14232    hpux*)
14233       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
14234 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
14235       if test -f /usr/include/dce/cma_config.h ; then
14236          if test "$GCC" = "yes" ; then
14237             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14238 $as_echo "yes" >&6; }
14239
14240 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
14241
14242             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
14243             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
14244          else
14245             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
14246 $as_echo "no (suppressed because you are not using GCC)" >&6; }
14247          fi
14248       else
14249          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14250 $as_echo "no" >&6; }
14251       fi
14252       ;;
14253    solaris*)
14254       # See if thread_db library is around for Solaris thread debugging.
14255       # Note that we must explicitly test for version 1 of the library
14256       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14257       # the same API.
14258       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14259 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14260       if test -f /usr/lib/libthread_db.so.1 ; then
14261          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14262 $as_echo "yes" >&6; }
14263
14264 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14265
14266          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
14267          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
14268          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14269 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14270 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14271   $as_echo_n "(cached) " >&6
14272 else
14273   ac_check_lib_save_LIBS=$LIBS
14274 LIBS="-ldl  $LIBS"
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h.  */
14277
14278 /* Override any GCC internal prototype to avoid an error.
14279    Use char because int might match the return type of a GCC
14280    builtin and then its argument prototype would still apply.  */
14281 #ifdef __cplusplus
14282 extern "C"
14283 #endif
14284 char dlopen ();
14285 int
14286 main ()
14287 {
14288 return dlopen ();
14289   ;
14290   return 0;
14291 }
14292 _ACEOF
14293 if ac_fn_c_try_link "$LINENO"; then :
14294   ac_cv_lib_dl_dlopen=yes
14295 else
14296   ac_cv_lib_dl_dlopen=no
14297 fi
14298 rm -f core conftest.err conftest.$ac_objext \
14299     conftest$ac_exeext conftest.$ac_ext
14300 LIBS=$ac_check_lib_save_LIBS
14301 fi
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14303 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14304 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14305   cat >>confdefs.h <<_ACEOF
14306 #define HAVE_LIBDL 1
14307 _ACEOF
14308
14309   LIBS="-ldl $LIBS"
14310
14311 fi
14312
14313          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
14314          # Sun randomly tweaked the prototypes in <proc_service.h>
14315          # at one point.
14316          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14317 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14318          if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14319   $as_echo_n "(cached) " >&6
14320 else
14321
14322             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h.  */
14324
14325                 #include <proc_service.h>
14326                 ps_err_e ps_pdwrite
14327                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
14328
14329 int
14330 main ()
14331 {
14332
14333   ;
14334   return 0;
14335 }
14336 _ACEOF
14337 if ac_fn_c_try_compile "$LINENO"; then :
14338   gdb_cv_proc_service_is_old=no
14339 else
14340   gdb_cv_proc_service_is_old=yes
14341 fi
14342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343
14344 fi
14345
14346          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14347 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14348          if test $gdb_cv_proc_service_is_old = yes; then
14349
14350 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14351
14352          fi
14353       else
14354          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 $as_echo "no" >&6; }
14356       fi
14357       ;;
14358    aix*)
14359       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14360 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14361       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14362   $as_echo_n "(cached) " >&6
14363 else
14364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h.  */
14366 #include <sys/pthdebug.h>
14367 int
14368 main ()
14369 {
14370 #ifndef PTHDB_VERSION_3
14371                                     #error
14372                                     #endif
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 if ac_fn_c_try_compile "$LINENO"; then :
14378   gdb_cv_have_aix_thread_debug=yes
14379 else
14380   gdb_cv_have_aix_thread_debug=no
14381 fi
14382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14383 fi
14384
14385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14386 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14387       if test $gdb_cv_have_aix_thread_debug = yes; then
14388          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14389          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14390          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14391       fi
14392       ;;
14393    esac
14394
14395 fi
14396
14397 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14399 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14400 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14401   $as_echo_n "(cached) " >&6
14402 else
14403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h.  */
14405 #include <thread_db.h>
14406 int
14407 main ()
14408 {
14409 int i = TD_NOTALLOC;
14410   ;
14411   return 0;
14412 }
14413 _ACEOF
14414 if ac_fn_c_try_compile "$LINENO"; then :
14415   gdb_cv_thread_db_h_has_td_notalloc=yes
14416 else
14417   gdb_cv_thread_db_h_has_td_notalloc=no
14418
14419 fi
14420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421
14422 fi
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14424 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14425    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14426 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14427 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14428   $as_echo_n "(cached) " >&6
14429 else
14430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14431 /* end confdefs.h.  */
14432 #include <thread_db.h>
14433 int
14434 main ()
14435 {
14436 int i = TD_VERSION;
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 if ac_fn_c_try_compile "$LINENO"; then :
14442   gdb_cv_thread_db_h_has_td_version=yes
14443 else
14444   gdb_cv_thread_db_h_has_td_version=no
14445
14446 fi
14447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14448
14449 fi
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14451 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14453 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14454 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14455   $as_echo_n "(cached) " >&6
14456 else
14457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h.  */
14459 #include <thread_db.h>
14460 int
14461 main ()
14462 {
14463 int i = TD_NOTLS;
14464   ;
14465   return 0;
14466 }
14467 _ACEOF
14468 if ac_fn_c_try_compile "$LINENO"; then :
14469   gdb_cv_thread_db_h_has_td_notls=yes
14470 else
14471   gdb_cv_thread_db_h_has_td_notls=no
14472
14473 fi
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475
14476 fi
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14478 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14479 fi
14480 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14481
14482 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14483
14484 fi
14485 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14486
14487 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14488
14489 fi
14490 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14491
14492 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14493
14494 fi
14495
14496 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14497    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14498 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14499 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14500   $as_echo_n "(cached) " >&6
14501 else
14502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h.  */
14504 #include <sys/syscall.h>
14505 int
14506 main ()
14507 {
14508 int i = __NR_tkill;
14509   ;
14510   return 0;
14511 }
14512 _ACEOF
14513 if ac_fn_c_try_compile "$LINENO"; then :
14514   gdb_cv_sys_syscall_h_has_tkill=yes
14515 else
14516   gdb_cv_sys_syscall_h_has_tkill=no
14517
14518 fi
14519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520
14521 fi
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14523 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14524 fi
14525 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14526
14527 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14528
14529 fi
14530
14531 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14532 "
14533 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14534   ac_have_decl=1
14535 else
14536   ac_have_decl=0
14537 fi
14538
14539 cat >>confdefs.h <<_ACEOF
14540 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14541 _ACEOF
14542
14543
14544 if test "$cross_compiling" = yes; then :
14545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h.  */
14547 #include <sys/personality.h>
14548 int
14549 main ()
14550 {
14551
14552 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
14553 #       define ADDR_NO_RANDOMIZE 0x0040000
14554 #      endif
14555        /* Test the flag could be set and stays set.  */
14556        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14557        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14558            return 1
14559   ;
14560   return 0;
14561 }
14562 _ACEOF
14563 if ac_fn_c_try_link "$LINENO"; then :
14564   have_personality=true
14565 else
14566   have_personality=false
14567 fi
14568 rm -f core conftest.err conftest.$ac_objext \
14569     conftest$ac_exeext conftest.$ac_ext
14570 else
14571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h.  */
14573 #include <sys/personality.h>
14574 int
14575 main ()
14576 {
14577
14578 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
14579 #       define ADDR_NO_RANDOMIZE 0x0040000
14580 #      endif
14581        /* Test the flag could be set and stays set.  */
14582        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14583        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14584            return 1
14585   ;
14586   return 0;
14587 }
14588 _ACEOF
14589 if ac_fn_c_try_run "$LINENO"; then :
14590   have_personality=true
14591 else
14592   have_personality=false
14593 fi
14594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14595   conftest.$ac_objext conftest.beam conftest.$ac_ext
14596 fi
14597
14598 if $have_personality
14599 then
14600
14601 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14602
14603 fi
14604
14605
14606 target_sysroot_reloc=0
14607
14608 # Check whether --with-sysroot was given.
14609 if test "${with_sysroot+set}" = set; then :
14610   withval=$with_sysroot;
14611  case ${with_sysroot} in
14612  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
14613  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14614  esac
14615
14616  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14617
14618  if test "x$prefix" = xNONE; then
14619   test_prefix=/usr/local
14620  else
14621   test_prefix=$prefix
14622  fi
14623  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14624   test_exec_prefix=$test_prefix
14625  else
14626   test_exec_prefix=$exec_prefix
14627  fi
14628  case ${TARGET_SYSTEM_ROOT} in
14629  "${test_prefix}"|"${test_prefix}/"*|\
14630  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14631  '${prefix}'|'${prefix}/'*|\
14632  '${exec_prefix}'|'${exec_prefix}/'*)
14633    target_sysroot_reloc=1
14634    ;;
14635  esac
14636
14637 else
14638
14639  TARGET_SYSTEM_ROOT=
14640  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14641
14642 fi
14643
14644 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14645
14646
14647
14648
14649
14650 # Check whether --with-system-gdbinit was given.
14651 if test "${with_system_gdbinit+set}" = set; then :
14652   withval=$with_system_gdbinit;
14653     SYSTEM_GDBINIT=$withval
14654 else
14655   SYSTEM_GDBINIT=
14656 fi
14657
14658
14659   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14660   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14661   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14662   ac_define_dir=`eval echo $ac_define_dir`
14663
14664 cat >>confdefs.h <<_ACEOF
14665 #define SYSTEM_GDBINIT "$ac_define_dir"
14666 _ACEOF
14667
14668
14669
14670
14671   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14672      if test "x$prefix" = xNONE; then
14673         test_prefix=/usr/local
14674      else
14675         test_prefix=$prefix
14676      fi
14677   else
14678      test_prefix=$exec_prefix
14679   fi
14680   value=0
14681   case ${ac_define_dir} in
14682      "${test_prefix}"|"${test_prefix}/"*|\
14683         '${exec_prefix}'|'${exec_prefix}/'*)
14684      value=1
14685      ;;
14686   esac
14687
14688 cat >>confdefs.h <<_ACEOF
14689 #define SYSTEM_GDBINIT_RELOCATABLE $value
14690 _ACEOF
14691
14692
14693
14694
14695 # Check whether --enable-werror was given.
14696 if test "${enable_werror+set}" = set; then :
14697   enableval=$enable_werror; case "${enableval}" in
14698      yes | y) ERROR_ON_WARNING="yes" ;;
14699      no | n)  ERROR_ON_WARNING="no" ;;
14700      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14701    esac
14702 fi
14703
14704
14705 # Enable -Werror by default when using gcc
14706 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14707     ERROR_ON_WARNING=yes
14708 fi
14709
14710 WERROR_CFLAGS=""
14711 if test "${ERROR_ON_WARNING}" = yes ; then
14712     WERROR_CFLAGS="-Werror"
14713 fi
14714
14715 # The entries after -Wno-pointer-sign are disabled warnings which may
14716 # be enabled in the future, which can not currently be used to build
14717 # GDB.
14718 # NOTE: If you change this list, remember to update
14719 # gdb/doc/gdbint.texinfo.
14720 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14721 -Wformat-nonliteral -Wno-pointer-sign \
14722 -Wno-unused -Wunused-value -Wunused-function \
14723 -Wno-switch -Wno-char-subscripts"
14724
14725 # Enable -Wno-format by default when using gcc on mingw since many
14726 # GCC versions complain about %I64.
14727 case "${host}" in
14728   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14729 esac
14730
14731 # Check whether --enable-build-warnings was given.
14732 if test "${enable_build_warnings+set}" = set; then :
14733   enableval=$enable_build_warnings; case "${enableval}" in
14734   yes)  ;;
14735   no)   build_warnings="-w";;
14736   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14737         build_warnings="${build_warnings} ${t}";;
14738   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14739         build_warnings="${t} ${build_warnings}";;
14740   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14741 esac
14742 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14743   echo "Setting compiler warning flags = $build_warnings" 6>&1
14744 fi
14745 fi
14746 # Check whether --enable-gdb-build-warnings was given.
14747 if test "${enable_gdb_build_warnings+set}" = set; then :
14748   enableval=$enable_gdb_build_warnings; case "${enableval}" in
14749   yes)  ;;
14750   no)   build_warnings="-w";;
14751   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14752         build_warnings="${build_warnings} ${t}";;
14753   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14754         build_warnings="${t} ${build_warnings}";;
14755   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14756 esac
14757 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14758   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14759 fi
14760 fi
14761 WARN_CFLAGS=""
14762 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14763 then
14764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14765 $as_echo_n "checking compiler warning flags... " >&6; }
14766     # Separate out the -Werror flag as some files just cannot be
14767     # compiled with it enabled.
14768     for w in ${build_warnings}; do
14769         case $w in
14770         -Werr*) WERROR_CFLAGS=-Werror ;;
14771         *) # Check that GCC accepts it
14772             saved_CFLAGS="$CFLAGS"
14773             CFLAGS="$CFLAGS $w"
14774             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14775 /* end confdefs.h.  */
14776
14777 int
14778 main ()
14779 {
14780
14781   ;
14782   return 0;
14783 }
14784 _ACEOF
14785 if ac_fn_c_try_compile "$LINENO"; then :
14786   WARN_CFLAGS="${WARN_CFLAGS} $w"
14787 fi
14788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789             CFLAGS="$saved_CFLAGS"
14790         esac
14791     done
14792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14793 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14794 fi
14795
14796
14797
14798 # In the Cygwin environment, we need some additional flags.
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14800 $as_echo_n "checking for cygwin... " >&6; }
14801 if test "${gdb_cv_os_cygwin+set}" = set; then :
14802   $as_echo_n "(cached) " >&6
14803 else
14804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14805 /* end confdefs.h.  */
14806
14807 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14808 lose
14809 #endif
14810 _ACEOF
14811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14812   $EGREP "lose" >/dev/null 2>&1; then :
14813   gdb_cv_os_cygwin=yes
14814 else
14815   gdb_cv_os_cygwin=no
14816 fi
14817 rm -f conftest*
14818
14819 fi
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14821 $as_echo "$gdb_cv_os_cygwin" >&6; }
14822
14823
14824 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14825 case ${host} in
14826   *go32* ) SER_HARDWIRE=ser-go32.o ;;
14827   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14828   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14829 esac
14830
14831
14832 # libreadline needs libuser32.a in a cygwin environment
14833 WIN32LIBS=
14834 if test x$gdb_cv_os_cygwin = xyes; then
14835     WIN32LIBS="-luser32"
14836     case "${target}" in
14837         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14838         ;;
14839     esac
14840 fi
14841
14842 # The ser-tcp.c module requires sockets.
14843 case ${host} in
14844   *mingw32*)
14845
14846 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14847
14848     WIN32LIBS="$WIN32LIBS -lws2_32"
14849     ;;
14850 esac
14851
14852
14853 # Add ELF support to GDB, but only if BFD includes ELF support.
14854 OLD_CFLAGS=$CFLAGS
14855 OLD_LDFLAGS=$LDFLAGS
14856 OLD_LIBS=$LIBS
14857 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14858 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
14859 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14860 LIBS="-lbfd -liberty $intl $LIBS"
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14862 $as_echo_n "checking for ELF support in BFD... " >&6; }
14863 if test "${gdb_cv_var_elf+set}" = set; then :
14864   $as_echo_n "(cached) " >&6
14865 else
14866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h.  */
14868 #include <stdlib.h>
14869 #include "bfd.h"
14870 #include "elf-bfd.h"
14871
14872 int
14873 main ()
14874 {
14875 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14876   ;
14877   return 0;
14878 }
14879 _ACEOF
14880 if ac_fn_c_try_link "$LINENO"; then :
14881   gdb_cv_var_elf=yes
14882 else
14883   gdb_cv_var_elf=no
14884 fi
14885 rm -f core conftest.err conftest.$ac_objext \
14886     conftest$ac_exeext conftest.$ac_ext
14887 fi
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14889 $as_echo "$gdb_cv_var_elf" >&6; }
14890 if test $gdb_cv_var_elf = yes; then
14891   CONFIG_OBS="$CONFIG_OBS elfread.o"
14892
14893 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14894
14895 fi
14896 CFLAGS=$OLD_CFLAGS
14897 LDFLAGS=$OLD_LDFLAGS
14898 LIBS=$OLD_LIBS
14899
14900 # Add any host-specific objects to GDB.
14901 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14902
14903 LIBGUI="../libgui/src/libgui.a"
14904 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14905
14906
14907
14908 WIN32LDAPP=
14909
14910
14911
14912 case "${host}" in
14913 *-*-cygwin* | *-*-mingw* )
14914     configdir="win"
14915     ;;
14916 *)
14917     configdir="unix"
14918     ;;
14919 esac
14920
14921 GDBTKLIBS=
14922 if test "${enable_gdbtk}" = "yes"; then
14923
14924     # Gdbtk must have an absolute path to srcdir in order to run
14925     # properly when not installed.
14926     here=`pwd`
14927     cd ${srcdir}
14928     GDBTK_SRC_DIR=`pwd`
14929     cd $here
14930
14931
14932     #
14933     # Ok, lets find the tcl configuration
14934     # First, look for one uninstalled.
14935     # the alternative search directory is invoked by --with-tcl
14936     #
14937
14938     if test x"${no_tcl}" = x ; then
14939         # we reset no_tcl in case something fails here
14940         no_tcl=true
14941
14942 # Check whether --with-tcl was given.
14943 if test "${with_tcl+set}" = set; then :
14944   withval=$with_tcl; with_tclconfig=${withval}
14945 fi
14946
14947         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14948 $as_echo_n "checking for Tcl configuration... " >&6; }
14949         if test "${ac_cv_c_tclconfig+set}" = set; then :
14950   $as_echo_n "(cached) " >&6
14951 else
14952
14953
14954             # First check to see if --with-tcl was specified.
14955             case "${host}" in
14956                 *-*-cygwin*) platDir="win" ;;
14957                 *) platDir="unix" ;;
14958             esac
14959             if test x"${with_tclconfig}" != x ; then
14960                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14961                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
14962                 else
14963                     as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14964                 fi
14965             fi
14966
14967             # then check for a private Tcl installation
14968             if test x"${ac_cv_c_tclconfig}" = x ; then
14969                 for i in \
14970                         ../tcl \
14971                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14972                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14973                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14974                         ../../tcl \
14975                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14976                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14977                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14978                         ../../../tcl \
14979                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14980                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14981                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14982                     if test -f "$i/$platDir/tclConfig.sh" ; then
14983                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14984                         break
14985                     fi
14986                 done
14987             fi
14988
14989             # on Darwin, check in Framework installation locations
14990             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
14991                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14992                         `ls -d /Library/Frameworks 2>/dev/null` \
14993                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
14994                         `ls -d /System/Library/Frameworks 2>/dev/null` \
14995                         ; do
14996                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14997                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
14998                         break
14999                     fi
15000                 done
15001             fi
15002
15003             # check in a few common install locations
15004             if test x"${ac_cv_c_tclconfig}" = x ; then
15005                 for i in `ls -d ${libdir} 2>/dev/null` \
15006                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
15007                         `ls -d ${prefix}/lib 2>/dev/null` \
15008                         `ls -d /usr/local/lib 2>/dev/null` \
15009                         `ls -d /usr/contrib/lib 2>/dev/null` \
15010                         `ls -d /usr/lib 2>/dev/null` \
15011                         ; do
15012                     if test -f "$i/tclConfig.sh" ; then
15013                         ac_cv_c_tclconfig=`(cd $i; pwd)`
15014                         break
15015                     fi
15016                 done
15017             fi
15018
15019             # check in a few other private locations
15020             if test x"${ac_cv_c_tclconfig}" = x ; then
15021                 for i in \
15022                         ${srcdir}/../tcl \
15023                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15024                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15025                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15026                     if test -f "$i/$platDir/tclConfig.sh" ; then
15027                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15028                     break
15029                 fi
15030                 done
15031             fi
15032
15033 fi
15034
15035
15036         if test x"${ac_cv_c_tclconfig}" = x ; then
15037             TCL_BIN_DIR="# no Tcl configs found"
15038             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15039 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15040         else
15041             no_tcl=
15042             TCL_BIN_DIR=${ac_cv_c_tclconfig}
15043             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15044 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15045         fi
15046     fi
15047
15048
15049     # If $no_tk is nonempty, then we can't do Tk, and there is no
15050     # point to doing Tcl.
15051
15052     #
15053     # Ok, lets find the tk configuration
15054     # First, look for one uninstalled.
15055     # the alternative search directory is invoked by --with-tk
15056     #
15057
15058     if test x"${no_tk}" = x ; then
15059         # we reset no_tk in case something fails here
15060         no_tk=true
15061
15062 # Check whether --with-tk was given.
15063 if test "${with_tk+set}" = set; then :
15064   withval=$with_tk; with_tkconfig=${withval}
15065 fi
15066
15067         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15068 $as_echo_n "checking for Tk configuration... " >&6; }
15069         if test "${ac_cv_c_tkconfig+set}" = set; then :
15070   $as_echo_n "(cached) " >&6
15071 else
15072
15073
15074             # First check to see if --with-tkconfig was specified.
15075             if test x"${with_tkconfig}" != x ; then
15076                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15077                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15078                 else
15079                     as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15080                 fi
15081             fi
15082
15083             # then check for a private Tk library
15084             case "${host}" in
15085                 *-*-cygwin*) platDir="win" ;;
15086                 *) platDir="unix" ;;
15087             esac
15088             if test x"${ac_cv_c_tkconfig}" = x ; then
15089                 for i in \
15090                         ../tk \
15091                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15092                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15093                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15094                         ../../tk \
15095                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15096                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15097                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15098                         ../../../tk \
15099                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15100                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15101                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15102                     if test -f "$i/$platDir/tkConfig.sh" ; then
15103                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15104                         break
15105                     fi
15106                 done
15107             fi
15108
15109             # on Darwin, check in Framework installation locations
15110             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15111                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15112                         `ls -d /Library/Frameworks 2>/dev/null` \
15113                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
15114                         `ls -d /System/Library/Frameworks 2>/dev/null` \
15115                         ; do
15116                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
15117                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15118                         break
15119                     fi
15120                 done
15121             fi
15122
15123             # check in a few common install locations
15124             if test x"${ac_cv_c_tkconfig}" = x ; then
15125                 for i in `ls -d ${libdir} 2>/dev/null` \
15126                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
15127                         `ls -d ${prefix}/lib 2>/dev/null` \
15128                         `ls -d /usr/local/lib 2>/dev/null` \
15129                         `ls -d /usr/contrib/lib 2>/dev/null` \
15130                         `ls -d /usr/lib 2>/dev/null` \
15131                         ; do
15132                     if test -f "$i/tkConfig.sh" ; then
15133                         ac_cv_c_tkconfig=`(cd $i; pwd)`
15134                         break
15135                     fi
15136                 done
15137             fi
15138             # check in a few other private locations
15139             if test x"${ac_cv_c_tkconfig}" = x ; then
15140                 for i in \
15141                         ${srcdir}/../tk \
15142                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15143                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15144                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15145                     if test -f "$i/$platDir/tkConfig.sh" ; then
15146                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15147                         break
15148                     fi
15149                 done
15150             fi
15151
15152 fi
15153
15154
15155         if test x"${ac_cv_c_tkconfig}" = x ; then
15156             TK_BIN_DIR="# no Tk configs found"
15157             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15158 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15159         else
15160             no_tk=
15161             TK_BIN_DIR=${ac_cv_c_tkconfig}
15162             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15163 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15164         fi
15165     fi
15166
15167
15168     if test -z "${no_tcl}" -a -z "${no_tk}"; then
15169
15170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15171 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15172
15173     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15174         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15175 $as_echo "loading" >&6; }
15176         . ${TCL_BIN_DIR}/tclConfig.sh
15177     else
15178         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15179 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15180     fi
15181
15182     # eval is required to do the TCL_DBGX substitution
15183     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15184     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15185
15186     # If the TCL_BIN_DIR is the build directory (not the install directory),
15187     # then set the common variable name to the value of the build variables.
15188     # For example, the variable TCL_LIB_SPEC will be set to the value
15189     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15190     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15191     # installed and uninstalled version of Tcl.
15192     if test -f "${TCL_BIN_DIR}/Makefile" ; then
15193         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15194         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15195         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15196     elif test "`uname -s`" = "Darwin"; then
15197         # If Tcl was built as a framework, attempt to use the libraries
15198         # from the framework at the given location so that linking works
15199         # against Tcl.framework installed in an arbitary location.
15200         case ${TCL_DEFS} in
15201             *TCL_FRAMEWORK*)
15202                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15203                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15204                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15205                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15206                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15207                             break
15208                         fi
15209                     done
15210                 fi
15211                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15212                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15213                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15214                 fi
15215                 ;;
15216         esac
15217     fi
15218
15219     # eval is required to do the TCL_DBGX substitution
15220     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15221     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15222     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15223     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239         # Check for in-tree tcl
15240         here=`pwd`
15241         cd ${srcdir}/..
15242         topdir=`pwd`
15243         cd ${here}
15244
15245         intree="no"
15246         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15247           intree="yes"
15248         fi
15249
15250         # Find Tcl private headers
15251         if test x"${intree}" = xno; then
15252
15253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15254 $as_echo_n "checking for Tcl private headers... " >&6; }
15255   private_dir=""
15256   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15257   if test -f ${dir}/tclInt.h ; then
15258     private_dir=${dir}
15259   fi
15260
15261   if test x"${private_dir}" = x; then
15262     as_fn_error "could not find private Tcl headers" "$LINENO" 5
15263   else
15264     TCL_PRIVATE_INCLUDE="-I${private_dir}"
15265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15266 $as_echo "${private_dir}" >&6; }
15267   fi
15268
15269           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15270           TCL_LIBRARY="${TCL_LIB_SPEC}"
15271           TCL_DEPS=""
15272         else
15273           # If building tcl in the same src tree, private headers
15274           # are not needed, but we need to be sure to use the right
15275           # headers library
15276           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15277           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15278           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15279         fi
15280
15281
15282
15283
15284
15285     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15286 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15287
15288     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15290 $as_echo "loading" >&6; }
15291         . ${TK_BIN_DIR}/tkConfig.sh
15292     else
15293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15294 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15295     fi
15296
15297     # eval is required to do the TK_DBGX substitution
15298     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15299     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15300
15301     # If the TK_BIN_DIR is the build directory (not the install directory),
15302     # then set the common variable name to the value of the build variables.
15303     # For example, the variable TK_LIB_SPEC will be set to the value
15304     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15305     # instead of TK_BUILD_LIB_SPEC since it will work with both an
15306     # installed and uninstalled version of Tcl.
15307     if test -f "${TK_BIN_DIR}/Makefile" ; then
15308         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15309         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15310         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15311     elif test "`uname -s`" = "Darwin"; then
15312         # If Tk was built as a framework, attempt to use the libraries
15313         # from the framework at the given location so that linking works
15314         # against Tk.framework installed in an arbitary location.
15315         case ${TK_DEFS} in
15316             *TK_FRAMEWORK*)
15317                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15318                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
15319                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15320                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15321                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15322                             break
15323                         fi
15324                     done
15325                 fi
15326                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15327                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15328                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15329                 fi
15330                 ;;
15331         esac
15332     fi
15333
15334     # eval is required to do the TK_DBGX substitution
15335     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15336     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15337     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15338     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353         # Check for in-tree Tk
15354         intree="no"
15355         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15356           intree="yes"
15357         fi
15358
15359         # Find Tk private headers
15360         if test x"${intree}" = xno; then
15361
15362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15363 $as_echo_n "checking for Tk private headers... " >&6; }
15364   private_dir=""
15365   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15366   if test -f ${dir}/tkInt.h; then
15367     private_dir=${dir}
15368   fi
15369
15370   if test x"${private_dir}" = x; then
15371     as_fn_error "could not find Tk private headers" "$LINENO" 5
15372   else
15373     TK_PRIVATE_INCLUDE="-I${private_dir}"
15374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15375 $as_echo "${private_dir}" >&6; }
15376   fi
15377
15378           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15379           TK_LIBRARY=${TK_LIB_SPEC}
15380           TK_DEPS=""
15381         else
15382           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15383           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15384           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15385         fi
15386
15387
15388
15389
15390
15391         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15392
15393         # Include some libraries that Tcl and Tk want.
15394         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15395         # Yes, the ordering seems wrong here.  But it isn't.
15396         # TK_LIBS is the list of libraries that need to be linked
15397         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
15398         # were in LIBS then any link tests after this point would
15399         # try to include things like `$(LIBGUI)', which wouldn't work.
15400         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15401
15402         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15403         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15404         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15405         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15406         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15407         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15408         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15409
15410         if test x$gdb_cv_os_cygwin = xyes; then
15411           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15412           WIN32LDAPP="-Wl,--subsystem,console"
15413           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15414         fi
15415
15416         subdirs="$subdirs gdbtk"
15417
15418     fi
15419 fi
15420
15421
15422
15423
15424
15425
15426
15427
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15429 $as_echo_n "checking for X... " >&6; }
15430
15431
15432 # Check whether --with-x was given.
15433 if test "${with_x+set}" = set; then :
15434   withval=$with_x;
15435 fi
15436
15437 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15438 if test "x$with_x" = xno; then
15439   # The user explicitly disabled X.
15440   have_x=disabled
15441 else
15442   case $x_includes,$x_libraries in #(
15443     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15444     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15445   $as_echo_n "(cached) " >&6
15446 else
15447   # One or both of the vars are not set, and there is no cached value.
15448 ac_x_includes=no ac_x_libraries=no
15449 rm -f -r conftest.dir
15450 if mkdir conftest.dir; then
15451   cd conftest.dir
15452   cat >Imakefile <<'_ACEOF'
15453 incroot:
15454         @echo incroot='${INCROOT}'
15455 usrlibdir:
15456         @echo usrlibdir='${USRLIBDIR}'
15457 libdir:
15458         @echo libdir='${LIBDIR}'
15459 _ACEOF
15460   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15461     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15462     for ac_var in incroot usrlibdir libdir; do
15463       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15464     done
15465     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15466     for ac_extension in a so sl dylib la dll; do
15467       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15468          test -f "$ac_im_libdir/libX11.$ac_extension"; then
15469         ac_im_usrlibdir=$ac_im_libdir; break
15470       fi
15471     done
15472     # Screen out bogus values from the imake configuration.  They are
15473     # bogus both because they are the default anyway, and because
15474     # using them would break gcc on systems where it needs fixed includes.
15475     case $ac_im_incroot in
15476         /usr/include) ac_x_includes= ;;
15477         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15478     esac
15479     case $ac_im_usrlibdir in
15480         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15481         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15482     esac
15483   fi
15484   cd ..
15485   rm -f -r conftest.dir
15486 fi
15487
15488 # Standard set of common directories for X headers.
15489 # Check X11 before X11Rn because it is often a symlink to the current release.
15490 ac_x_header_dirs='
15491 /usr/X11/include
15492 /usr/X11R7/include
15493 /usr/X11R6/include
15494 /usr/X11R5/include
15495 /usr/X11R4/include
15496
15497 /usr/include/X11
15498 /usr/include/X11R7
15499 /usr/include/X11R6
15500 /usr/include/X11R5
15501 /usr/include/X11R4
15502
15503 /usr/local/X11/include
15504 /usr/local/X11R7/include
15505 /usr/local/X11R6/include
15506 /usr/local/X11R5/include
15507 /usr/local/X11R4/include
15508
15509 /usr/local/include/X11
15510 /usr/local/include/X11R7
15511 /usr/local/include/X11R6
15512 /usr/local/include/X11R5
15513 /usr/local/include/X11R4
15514
15515 /usr/X386/include
15516 /usr/x386/include
15517 /usr/XFree86/include/X11
15518
15519 /usr/include
15520 /usr/local/include
15521 /usr/unsupported/include
15522 /usr/athena/include
15523 /usr/local/x11r5/include
15524 /usr/lpp/Xamples/include
15525
15526 /usr/openwin/include
15527 /usr/openwin/share/include'
15528
15529 if test "$ac_x_includes" = no; then
15530   # Guess where to find include files, by looking for Xlib.h.
15531   # First, try using that file with no special directory specified.
15532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15533 /* end confdefs.h.  */
15534 #include <X11/Xlib.h>
15535 _ACEOF
15536 if ac_fn_c_try_cpp "$LINENO"; then :
15537   # We can compile using X headers with no special include directory.
15538 ac_x_includes=
15539 else
15540   for ac_dir in $ac_x_header_dirs; do
15541   if test -r "$ac_dir/X11/Xlib.h"; then
15542     ac_x_includes=$ac_dir
15543     break
15544   fi
15545 done
15546 fi
15547 rm -f conftest.err conftest.$ac_ext
15548 fi # $ac_x_includes = no
15549
15550 if test "$ac_x_libraries" = no; then
15551   # Check for the libraries.
15552   # See if we find them without any special options.
15553   # Don't add to $LIBS permanently.
15554   ac_save_LIBS=$LIBS
15555   LIBS="-lX11 $LIBS"
15556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15557 /* end confdefs.h.  */
15558 #include <X11/Xlib.h>
15559 int
15560 main ()
15561 {
15562 XrmInitialize ()
15563   ;
15564   return 0;
15565 }
15566 _ACEOF
15567 if ac_fn_c_try_link "$LINENO"; then :
15568   LIBS=$ac_save_LIBS
15569 # We can link X programs with no special library path.
15570 ac_x_libraries=
15571 else
15572   LIBS=$ac_save_LIBS
15573 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15574 do
15575   # Don't even attempt the hair of trying to link an X program!
15576   for ac_extension in a so sl dylib la dll; do
15577     if test -r "$ac_dir/libX11.$ac_extension"; then
15578       ac_x_libraries=$ac_dir
15579       break 2
15580     fi
15581   done
15582 done
15583 fi
15584 rm -f core conftest.err conftest.$ac_objext \
15585     conftest$ac_exeext conftest.$ac_ext
15586 fi # $ac_x_libraries = no
15587
15588 case $ac_x_includes,$ac_x_libraries in #(
15589   no,* | *,no | *\'*)
15590     # Didn't find X, or a directory has "'" in its name.
15591     ac_cv_have_x="have_x=no";; #(
15592   *)
15593     # Record where we found X for the cache.
15594     ac_cv_have_x="have_x=yes\
15595         ac_x_includes='$ac_x_includes'\
15596         ac_x_libraries='$ac_x_libraries'"
15597 esac
15598 fi
15599 ;; #(
15600     *) have_x=yes;;
15601   esac
15602   eval "$ac_cv_have_x"
15603 fi # $with_x != no
15604
15605 if test "$have_x" != yes; then
15606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15607 $as_echo "$have_x" >&6; }
15608   no_x=yes
15609 else
15610   # If each of the values was on the command line, it overrides each guess.
15611   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15612   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15613   # Update the cache value to reflect the command line values.
15614   ac_cv_have_x="have_x=yes\
15615         ac_x_includes='$x_includes'\
15616         ac_x_libraries='$x_libraries'"
15617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15618 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15619 fi
15620
15621
15622 # Unlike the sim directory, whether a simulator is linked is controlled by
15623 # presence of a gdb_sim definition in the target configure.tgt entry.
15624 # This code just checks for a few cases where we'd like to ignore those
15625 # definitions, even when they're present in the '.mt' file.  These cases
15626 # are when --disable-sim is specified, or if the simulator directory is
15627 # not part of the source tree.
15628 #
15629 # Check whether --enable-sim was given.
15630 if test "${enable_sim+set}" = set; then :
15631   enableval=$enable_sim; echo "enable_sim = $enable_sim";
15632  echo "enableval = ${enableval}";
15633  case "${enableval}" in
15634   yes) ignore_sim=false ;;
15635   no)  ignore_sim=true ;;
15636   *)   ignore_sim=false ;;
15637  esac
15638 else
15639   ignore_sim=false
15640 fi
15641
15642
15643 if test ! -d "${srcdir}/../sim"; then
15644   ignore_sim=true
15645 fi
15646
15647 SIM=
15648 SIM_OBS=
15649 if test "${ignore_sim}" = "false"; then
15650   if test x"${gdb_sim}" != x ; then
15651     SIM="${gdb_sim}"
15652     SIM_OBS="remote-sim.o"
15653
15654 $as_echo "#define WITH_SIM 1" >>confdefs.h
15655
15656   fi
15657 fi
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672 # List of host floatformats.
15673
15674 cat >>confdefs.h <<_ACEOF
15675 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15676 _ACEOF
15677
15678
15679 cat >>confdefs.h <<_ACEOF
15680 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15681 _ACEOF
15682
15683
15684 cat >>confdefs.h <<_ACEOF
15685 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15686 _ACEOF
15687
15688
15689 # target_subdir is used by the testsuite to find the target libraries.
15690 target_subdir=
15691 if test "${host}" != "${target}"; then
15692     target_subdir="${target_alias}/"
15693 fi
15694
15695
15696 frags=
15697 if test "${gdb_native}" = "yes"; then
15698   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15699   if test ! -f ${host_makefile_frag}; then
15700     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15701   fi
15702   frags="$frags $host_makefile_frag"
15703 else
15704   host_makefile_frag=/dev/null
15705 fi
15706
15707
15708
15709
15710 if test "${gdb_native}" = "yes"; then
15711 # We pick this up from the host configuration file (.mh) because we
15712 # do not have a native configuration Makefile fragment.
15713 nativefile=`sed -n '
15714 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
15715 ' ${host_makefile_frag}`
15716 fi
15717
15718
15719 if test x"${gdb_osabi}" != x ; then
15720
15721 cat >>confdefs.h <<_ACEOF
15722 #define GDB_OSABI_DEFAULT $gdb_osabi
15723 _ACEOF
15724
15725 fi
15726
15727 # Enable multi-ice-gdb-server.
15728 # Check whether --enable-multi-ice was given.
15729 if test "${enable_multi_ice+set}" = set; then :
15730   enableval=$enable_multi_ice; case $enableval in
15731     yes | no)
15732       ;;
15733     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15734   esac
15735 fi
15736
15737 if test "x$enable_multi_ice" = xyes; then
15738    subdirs="$subdirs multi-ice"
15739
15740 fi
15741
15742 # We only build gdbserver automatically in a native configuration.
15743 if test "$gdb_native" = "yes"; then
15744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15745 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15746   if test "x$build_gdbserver" = xyes; then
15747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15748 $as_echo "yes" >&6; }
15749     subdirs="$subdirs gdbserver"
15750
15751   else
15752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15753 $as_echo "no" >&6; }
15754   fi
15755 fi
15756
15757 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15758 # to an empty version.
15759
15760 files=
15761 links=
15762
15763 rm -f nm.h
15764 if test "${nativefile}" != ""; then
15765     case "${nativefile}" in
15766       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15767       * ) GDB_NM_FILE="${nativefile}"
15768     esac
15769     files="${files} ${GDB_NM_FILE}"
15770     links="${links} nm.h"
15771
15772 cat >>confdefs.h <<_ACEOF
15773 #define GDB_NM_FILE "${GDB_NM_FILE}"
15774 _ACEOF
15775
15776 fi
15777
15778
15779 ac_sources="$files"
15780 ac_dests="$links"
15781 while test -n "$ac_sources"; do
15782   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15783   set $ac_sources; ac_source=$1; shift; ac_sources=$*
15784   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15785 done
15786 ac_config_links="$ac_config_links $ac_config_links_1"
15787
15788
15789
15790
15791
15792 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15793
15794
15795 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
15796
15797 ac_config_commands="$ac_config_commands default"
15798
15799 cat >confcache <<\_ACEOF
15800 # This file is a shell script that caches the results of configure
15801 # tests run on this system so they can be shared between configure
15802 # scripts and configure runs, see configure's option --config-cache.
15803 # It is not useful on other systems.  If it contains results you don't
15804 # want to keep, you may remove or edit it.
15805 #
15806 # config.status only pays attention to the cache file if you give it
15807 # the --recheck option to rerun configure.
15808 #
15809 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15810 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15811 # following values.
15812
15813 _ACEOF
15814
15815 # The following way of writing the cache mishandles newlines in values,
15816 # but we know of no workaround that is simple, portable, and efficient.
15817 # So, we kill variables containing newlines.
15818 # Ultrix sh set writes to stderr and can't be redirected directly,
15819 # and sets the high bit in the cache file unless we assign to the vars.
15820 (
15821   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15822     eval ac_val=\$$ac_var
15823     case $ac_val in #(
15824     *${as_nl}*)
15825       case $ac_var in #(
15826       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15827 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15828       esac
15829       case $ac_var in #(
15830       _ | IFS | as_nl) ;; #(
15831       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15832       *) { eval $ac_var=; unset $ac_var;} ;;
15833       esac ;;
15834     esac
15835   done
15836
15837   (set) 2>&1 |
15838     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15839     *${as_nl}ac_space=\ *)
15840       # `set' does not quote correctly, so add quotes: double-quote
15841       # substitution turns \\\\ into \\, and sed turns \\ into \.
15842       sed -n \
15843         "s/'/'\\\\''/g;
15844           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15845       ;; #(
15846     *)
15847       # `set' quotes correctly as required by POSIX, so do not add quotes.
15848       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15849       ;;
15850     esac |
15851     sort
15852 ) |
15853   sed '
15854      /^ac_cv_env_/b end
15855      t clear
15856      :clear
15857      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15858      t end
15859      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15860      :end' >>confcache
15861 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15862   if test -w "$cache_file"; then
15863     test "x$cache_file" != "x/dev/null" &&
15864       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15865 $as_echo "$as_me: updating cache $cache_file" >&6;}
15866     cat confcache >$cache_file
15867   else
15868     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15869 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15870   fi
15871 fi
15872 rm -f confcache
15873
15874 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15875 # Let make expand exec_prefix.
15876 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15877
15878 DEFS=-DHAVE_CONFIG_H
15879
15880 ac_libobjs=
15881 ac_ltlibobjs=
15882 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15883   # 1. Remove the extension, and $U if already installed.
15884   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15885   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15886   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15887   #    will be set to the directory where LIBOBJS objects are built.
15888   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15889   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15890 done
15891 LIBOBJS=$ac_libobjs
15892
15893 LTLIBOBJS=$ac_ltlibobjs
15894
15895
15896 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15897   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15899 fi
15900 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15901   as_fn_error "conditional \"GMAKE\" was never defined.
15902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15903 fi
15904 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15905   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
15906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15907 fi
15908
15909     gl_libobjs=
15910     gl_ltlibobjs=
15911     if test -n "$gl_LIBOBJS"; then
15912       # Remove the extension.
15913       sed_drop_objext='s/\.o$//;s/\.obj$//'
15914       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15915         gl_libobjs="$gl_libobjs $i.$ac_objext"
15916         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15917       done
15918     fi
15919     gl_LIBOBJS=$gl_libobjs
15920
15921     gl_LTLIBOBJS=$gl_ltlibobjs
15922
15923
15924
15925     gltests_libobjs=
15926     gltests_ltlibobjs=
15927     if test -n "$gltests_LIBOBJS"; then
15928       # Remove the extension.
15929       sed_drop_objext='s/\.o$//;s/\.obj$//'
15930       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15931         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
15932         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
15933       done
15934     fi
15935     gltests_LIBOBJS=$gltests_libobjs
15936
15937     gltests_LTLIBOBJS=$gltests_ltlibobjs
15938
15939
15940 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15941   as_fn_error "conditional \"AMDEP\" was never defined.
15942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15943 fi
15944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15945   as_fn_error "conditional \"am__fastdepCC\" was never defined.
15946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15947 fi
15948  if test -n "$EXEEXT"; then
15949   am__EXEEXT_TRUE=
15950   am__EXEEXT_FALSE='#'
15951 else
15952   am__EXEEXT_TRUE='#'
15953   am__EXEEXT_FALSE=
15954 fi
15955
15956
15957
15958 : ${CONFIG_STATUS=./config.status}
15959 ac_write_fail=0
15960 ac_clean_files_save=$ac_clean_files
15961 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15963 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15964 as_write_fail=0
15965 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15966 #! $SHELL
15967 # Generated by $as_me.
15968 # Run this file to recreate the current configuration.
15969 # Compiler output produced by configure, useful for debugging
15970 # configure, is in config.log if it exists.
15971
15972 debug=false
15973 ac_cs_recheck=false
15974 ac_cs_silent=false
15975
15976 SHELL=\${CONFIG_SHELL-$SHELL}
15977 export SHELL
15978 _ASEOF
15979 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15980 ## -------------------- ##
15981 ## M4sh Initialization. ##
15982 ## -------------------- ##
15983
15984 # Be more Bourne compatible
15985 DUALCASE=1; export DUALCASE # for MKS sh
15986 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15987   emulate sh
15988   NULLCMD=:
15989   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15990   # is contrary to our usage.  Disable this feature.
15991   alias -g '${1+"$@"}'='"$@"'
15992   setopt NO_GLOB_SUBST
15993 else
15994   case `(set -o) 2>/dev/null` in #(
15995   *posix*) :
15996     set -o posix ;; #(
15997   *) :
15998      ;;
15999 esac
16000 fi
16001
16002
16003 as_nl='
16004 '
16005 export as_nl
16006 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16007 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16009 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16010 # Prefer a ksh shell builtin over an external printf program on Solaris,
16011 # but without wasting forks for bash or zsh.
16012 if test -z "$BASH_VERSION$ZSH_VERSION" \
16013     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16014   as_echo='print -r --'
16015   as_echo_n='print -rn --'
16016 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16017   as_echo='printf %s\n'
16018   as_echo_n='printf %s'
16019 else
16020   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16021     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16022     as_echo_n='/usr/ucb/echo -n'
16023   else
16024     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16025     as_echo_n_body='eval
16026       arg=$1;
16027       case $arg in #(
16028       *"$as_nl"*)
16029         expr "X$arg" : "X\\(.*\\)$as_nl";
16030         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16031       esac;
16032       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16033     '
16034     export as_echo_n_body
16035     as_echo_n='sh -c $as_echo_n_body as_echo'
16036   fi
16037   export as_echo_body
16038   as_echo='sh -c $as_echo_body as_echo'
16039 fi
16040
16041 # The user is always right.
16042 if test "${PATH_SEPARATOR+set}" != set; then
16043   PATH_SEPARATOR=:
16044   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16045     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16046       PATH_SEPARATOR=';'
16047   }
16048 fi
16049
16050
16051 # IFS
16052 # We need space, tab and new line, in precisely that order.  Quoting is
16053 # there to prevent editors from complaining about space-tab.
16054 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16055 # splitting by setting IFS to empty value.)
16056 IFS=" ""        $as_nl"
16057
16058 # Find who we are.  Look in the path if we contain no directory separator.
16059 case $0 in #((
16060   *[\\/]* ) as_myself=$0 ;;
16061   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16062 for as_dir in $PATH
16063 do
16064   IFS=$as_save_IFS
16065   test -z "$as_dir" && as_dir=.
16066     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16067   done
16068 IFS=$as_save_IFS
16069
16070      ;;
16071 esac
16072 # We did not find ourselves, most probably we were run as `sh COMMAND'
16073 # in which case we are not to be found in the path.
16074 if test "x$as_myself" = x; then
16075   as_myself=$0
16076 fi
16077 if test ! -f "$as_myself"; then
16078   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16079   exit 1
16080 fi
16081
16082 # Unset variables that we do not need and which cause bugs (e.g. in
16083 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16084 # suppresses any "Segmentation fault" message there.  '((' could
16085 # trigger a bug in pdksh 5.2.14.
16086 for as_var in BASH_ENV ENV MAIL MAILPATH
16087 do eval test x\${$as_var+set} = xset \
16088   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16089 done
16090 PS1='$ '
16091 PS2='> '
16092 PS4='+ '
16093
16094 # NLS nuisances.
16095 LC_ALL=C
16096 export LC_ALL
16097 LANGUAGE=C
16098 export LANGUAGE
16099
16100 # CDPATH.
16101 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16102
16103
16104 # as_fn_error ERROR [LINENO LOG_FD]
16105 # ---------------------------------
16106 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16107 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16108 # script with status $?, using 1 if that was 0.
16109 as_fn_error ()
16110 {
16111   as_status=$?; test $as_status -eq 0 && as_status=1
16112   if test "$3"; then
16113     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16114     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16115   fi
16116   $as_echo "$as_me: error: $1" >&2
16117   as_fn_exit $as_status
16118 } # as_fn_error
16119
16120
16121 # as_fn_set_status STATUS
16122 # -----------------------
16123 # Set $? to STATUS, without forking.
16124 as_fn_set_status ()
16125 {
16126   return $1
16127 } # as_fn_set_status
16128
16129 # as_fn_exit STATUS
16130 # -----------------
16131 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16132 as_fn_exit ()
16133 {
16134   set +e
16135   as_fn_set_status $1
16136   exit $1
16137 } # as_fn_exit
16138
16139 # as_fn_unset VAR
16140 # ---------------
16141 # Portably unset VAR.
16142 as_fn_unset ()
16143 {
16144   { eval $1=; unset $1;}
16145 }
16146 as_unset=as_fn_unset
16147 # as_fn_append VAR VALUE
16148 # ----------------------
16149 # Append the text in VALUE to the end of the definition contained in VAR. Take
16150 # advantage of any shell optimizations that allow amortized linear growth over
16151 # repeated appends, instead of the typical quadratic growth present in naive
16152 # implementations.
16153 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16154   eval 'as_fn_append ()
16155   {
16156     eval $1+=\$2
16157   }'
16158 else
16159   as_fn_append ()
16160   {
16161     eval $1=\$$1\$2
16162   }
16163 fi # as_fn_append
16164
16165 # as_fn_arith ARG...
16166 # ------------------
16167 # Perform arithmetic evaluation on the ARGs, and store the result in the
16168 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16169 # must be portable across $(()) and expr.
16170 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16171   eval 'as_fn_arith ()
16172   {
16173     as_val=$(( $* ))
16174   }'
16175 else
16176   as_fn_arith ()
16177   {
16178     as_val=`expr "$@" || test $? -eq 1`
16179   }
16180 fi # as_fn_arith
16181
16182
16183 if expr a : '\(a\)' >/dev/null 2>&1 &&
16184    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16185   as_expr=expr
16186 else
16187   as_expr=false
16188 fi
16189
16190 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16191   as_basename=basename
16192 else
16193   as_basename=false
16194 fi
16195
16196 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16197   as_dirname=dirname
16198 else
16199   as_dirname=false
16200 fi
16201
16202 as_me=`$as_basename -- "$0" ||
16203 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16204          X"$0" : 'X\(//\)$' \| \
16205          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16206 $as_echo X/"$0" |
16207     sed '/^.*\/\([^/][^/]*\)\/*$/{
16208             s//\1/
16209             q
16210           }
16211           /^X\/\(\/\/\)$/{
16212             s//\1/
16213             q
16214           }
16215           /^X\/\(\/\).*/{
16216             s//\1/
16217             q
16218           }
16219           s/.*/./; q'`
16220
16221 # Avoid depending upon Character Ranges.
16222 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16223 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16224 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16225 as_cr_digits='0123456789'
16226 as_cr_alnum=$as_cr_Letters$as_cr_digits
16227
16228 ECHO_C= ECHO_N= ECHO_T=
16229 case `echo -n x` in #(((((
16230 -n*)
16231   case `echo 'xy\c'` in
16232   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16233   xy)  ECHO_C='\c';;
16234   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16235        ECHO_T=' ';;
16236   esac;;
16237 *)
16238   ECHO_N='-n';;
16239 esac
16240
16241 rm -f conf$$ conf$$.exe conf$$.file
16242 if test -d conf$$.dir; then
16243   rm -f conf$$.dir/conf$$.file
16244 else
16245   rm -f conf$$.dir
16246   mkdir conf$$.dir 2>/dev/null
16247 fi
16248 if (echo >conf$$.file) 2>/dev/null; then
16249   if ln -s conf$$.file conf$$ 2>/dev/null; then
16250     as_ln_s='ln -s'
16251     # ... but there are two gotchas:
16252     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16253     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16254     # In both cases, we have to default to `cp -p'.
16255     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16256       as_ln_s='cp -p'
16257   elif ln conf$$.file conf$$ 2>/dev/null; then
16258     as_ln_s=ln
16259   else
16260     as_ln_s='cp -p'
16261   fi
16262 else
16263   as_ln_s='cp -p'
16264 fi
16265 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16266 rmdir conf$$.dir 2>/dev/null
16267
16268
16269 # as_fn_mkdir_p
16270 # -------------
16271 # Create "$as_dir" as a directory, including parents if necessary.
16272 as_fn_mkdir_p ()
16273 {
16274
16275   case $as_dir in #(
16276   -*) as_dir=./$as_dir;;
16277   esac
16278   test -d "$as_dir" || eval $as_mkdir_p || {
16279     as_dirs=
16280     while :; do
16281       case $as_dir in #(
16282       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16283       *) as_qdir=$as_dir;;
16284       esac
16285       as_dirs="'$as_qdir' $as_dirs"
16286       as_dir=`$as_dirname -- "$as_dir" ||
16287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16288          X"$as_dir" : 'X\(//\)[^/]' \| \
16289          X"$as_dir" : 'X\(//\)$' \| \
16290          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16291 $as_echo X"$as_dir" |
16292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16293             s//\1/
16294             q
16295           }
16296           /^X\(\/\/\)[^/].*/{
16297             s//\1/
16298             q
16299           }
16300           /^X\(\/\/\)$/{
16301             s//\1/
16302             q
16303           }
16304           /^X\(\/\).*/{
16305             s//\1/
16306             q
16307           }
16308           s/.*/./; q'`
16309       test -d "$as_dir" && break
16310     done
16311     test -z "$as_dirs" || eval "mkdir $as_dirs"
16312   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16313
16314
16315 } # as_fn_mkdir_p
16316 if mkdir -p . 2>/dev/null; then
16317   as_mkdir_p='mkdir -p "$as_dir"'
16318 else
16319   test -d ./-p && rmdir ./-p
16320   as_mkdir_p=false
16321 fi
16322
16323 if test -x / >/dev/null 2>&1; then
16324   as_test_x='test -x'
16325 else
16326   if ls -dL / >/dev/null 2>&1; then
16327     as_ls_L_option=L
16328   else
16329     as_ls_L_option=
16330   fi
16331   as_test_x='
16332     eval sh -c '\''
16333       if test -d "$1"; then
16334         test -d "$1/.";
16335       else
16336         case $1 in #(
16337         -*)set "./$1";;
16338         esac;
16339         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16340         ???[sx]*):;;*)false;;esac;fi
16341     '\'' sh
16342   '
16343 fi
16344 as_executable_p=$as_test_x
16345
16346 # Sed expression to map a string onto a valid CPP name.
16347 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16348
16349 # Sed expression to map a string onto a valid variable name.
16350 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16351
16352
16353 exec 6>&1
16354 ## ----------------------------------- ##
16355 ## Main body of $CONFIG_STATUS script. ##
16356 ## ----------------------------------- ##
16357 _ASEOF
16358 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16359
16360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16361 # Save the log message, to keep $0 and so on meaningful, and to
16362 # report actual input values of CONFIG_FILES etc. instead of their
16363 # values after options handling.
16364 ac_log="
16365 This file was extended by $as_me, which was
16366 generated by GNU Autoconf 2.64.  Invocation command line was
16367
16368   CONFIG_FILES    = $CONFIG_FILES
16369   CONFIG_HEADERS  = $CONFIG_HEADERS
16370   CONFIG_LINKS    = $CONFIG_LINKS
16371   CONFIG_COMMANDS = $CONFIG_COMMANDS
16372   $ $0 $@
16373
16374 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16375 "
16376
16377 _ACEOF
16378
16379 case $ac_config_files in *"
16380 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16381 esac
16382
16383 case $ac_config_headers in *"
16384 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16385 esac
16386
16387
16388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16389 # Files that config.status was made for.
16390 config_files="$ac_config_files"
16391 config_headers="$ac_config_headers"
16392 config_links="$ac_config_links"
16393 config_commands="$ac_config_commands"
16394
16395 _ACEOF
16396
16397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16398 ac_cs_usage="\
16399 \`$as_me' instantiates files and other configuration actions
16400 from templates according to the current configuration.  Unless the files
16401 and actions are specified as TAGs, all are instantiated by default.
16402
16403 Usage: $0 [OPTION]... [TAG]...
16404
16405   -h, --help       print this help, then exit
16406   -V, --version    print version number and configuration settings, then exit
16407   -q, --quiet, --silent
16408                    do not print progress messages
16409   -d, --debug      don't remove temporary files
16410       --recheck    update $as_me by reconfiguring in the same conditions
16411       --file=FILE[:TEMPLATE]
16412                    instantiate the configuration file FILE
16413       --header=FILE[:TEMPLATE]
16414                    instantiate the configuration header FILE
16415
16416 Configuration files:
16417 $config_files
16418
16419 Configuration headers:
16420 $config_headers
16421
16422 Configuration links:
16423 $config_links
16424
16425 Configuration commands:
16426 $config_commands
16427
16428 Report bugs to the package provider."
16429
16430 _ACEOF
16431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16432 ac_cs_version="\\
16433 config.status
16434 configured by $0, generated by GNU Autoconf 2.64,
16435   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16436
16437 Copyright (C) 2009 Free Software Foundation, Inc.
16438 This config.status script is free software; the Free Software Foundation
16439 gives unlimited permission to copy, distribute and modify it."
16440
16441 ac_pwd='$ac_pwd'
16442 srcdir='$srcdir'
16443 INSTALL='$INSTALL'
16444 MKDIR_P='$MKDIR_P'
16445 AWK='$AWK'
16446 test -n "\$AWK" || AWK=awk
16447 _ACEOF
16448
16449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16450 # The default lists apply if the user does not specify any file.
16451 ac_need_defaults=:
16452 while test $# != 0
16453 do
16454   case $1 in
16455   --*=*)
16456     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16457     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16458     ac_shift=:
16459     ;;
16460   *)
16461     ac_option=$1
16462     ac_optarg=$2
16463     ac_shift=shift
16464     ;;
16465   esac
16466
16467   case $ac_option in
16468   # Handling of the options.
16469   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16470     ac_cs_recheck=: ;;
16471   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16472     $as_echo "$ac_cs_version"; exit ;;
16473   --debug | --debu | --deb | --de | --d | -d )
16474     debug=: ;;
16475   --file | --fil | --fi | --f )
16476     $ac_shift
16477     case $ac_optarg in
16478     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16479     esac
16480     as_fn_append CONFIG_FILES " '$ac_optarg'"
16481     ac_need_defaults=false;;
16482   --header | --heade | --head | --hea )
16483     $ac_shift
16484     case $ac_optarg in
16485     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16486     esac
16487     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16488     ac_need_defaults=false;;
16489   --he | --h)
16490     # Conflict between --help and --header
16491     as_fn_error "ambiguous option: \`$1'
16492 Try \`$0 --help' for more information.";;
16493   --help | --hel | -h )
16494     $as_echo "$ac_cs_usage"; exit ;;
16495   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16496   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16497     ac_cs_silent=: ;;
16498
16499   # This is an error.
16500   -*) as_fn_error "unrecognized option: \`$1'
16501 Try \`$0 --help' for more information." ;;
16502
16503   *) as_fn_append ac_config_targets " $1"
16504      ac_need_defaults=false ;;
16505
16506   esac
16507   shift
16508 done
16509
16510 ac_configure_extra_args=
16511
16512 if $ac_cs_silent; then
16513   exec 6>/dev/null
16514   ac_configure_extra_args="$ac_configure_extra_args --silent"
16515 fi
16516
16517 _ACEOF
16518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16519 if \$ac_cs_recheck; then
16520   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16521   shift
16522   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16523   CONFIG_SHELL='$SHELL'
16524   export CONFIG_SHELL
16525   exec "\$@"
16526 fi
16527
16528 _ACEOF
16529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16530 exec 5>>config.log
16531 {
16532   echo
16533   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16534 ## Running $as_me. ##
16535 _ASBOX
16536   $as_echo "$ac_log"
16537 } >&5
16538
16539 _ACEOF
16540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16541 #
16542 # INIT-COMMANDS
16543 #
16544 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16545 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16546
16547 _ACEOF
16548
16549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16550
16551 # Handling of arguments.
16552 for ac_config_target in $ac_config_targets
16553 do
16554   case $ac_config_target in
16555     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16556     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16557     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16558     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16559     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16560     ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16561     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
16562     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16563
16564   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16565   esac
16566 done
16567
16568
16569 # If the user did not use the arguments to specify the items to instantiate,
16570 # then the envvar interface is used.  Set only those that are not.
16571 # We use the long form for the default assignment because of an extremely
16572 # bizarre bug on SunOS 4.1.3.
16573 if $ac_need_defaults; then
16574   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16575   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16576   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16577   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16578 fi
16579
16580 # Have a temporary directory for convenience.  Make it in the build tree
16581 # simply because there is no reason against having it here, and in addition,
16582 # creating and moving files from /tmp can sometimes cause problems.
16583 # Hook for its removal unless debugging.
16584 # Note that there is a small window in which the directory will not be cleaned:
16585 # after its creation but before its name has been assigned to `$tmp'.
16586 $debug ||
16587 {
16588   tmp=
16589   trap 'exit_status=$?
16590   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16591 ' 0
16592   trap 'as_fn_exit 1' 1 2 13 15
16593 }
16594 # Create a (secure) tmp directory for tmp files.
16595
16596 {
16597   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16598   test -n "$tmp" && test -d "$tmp"
16599 }  ||
16600 {
16601   tmp=./conf$$-$RANDOM
16602   (umask 077 && mkdir "$tmp")
16603 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16604
16605 # Set up the scripts for CONFIG_FILES section.
16606 # No need to generate them if there are no CONFIG_FILES.
16607 # This happens for instance with `./config.status config.h'.
16608 if test -n "$CONFIG_FILES"; then
16609
16610 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16611   ac_cs_awk_getline=:
16612   ac_cs_awk_pipe_init=
16613   ac_cs_awk_read_file='
16614       while ((getline aline < (F[key])) > 0)
16615         print(aline)
16616       close(F[key])'
16617   ac_cs_awk_pipe_fini=
16618 else
16619   ac_cs_awk_getline=false
16620   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16621   ac_cs_awk_read_file='
16622       print "|#_!!_#|"
16623       print "cat " F[key] " &&"
16624       '$ac_cs_awk_pipe_init
16625   # The final `:' finishes the AND list.
16626   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16627 fi
16628 ac_cr=`echo X | tr X '\015'`
16629 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16630 # But we know of no other shell where ac_cr would be empty at this
16631 # point, so we can use a bashism as a fallback.
16632 if test "x$ac_cr" = x; then
16633   eval ac_cr=\$\'\\r\'
16634 fi
16635 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16636 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16637   ac_cs_awk_cr='\r'
16638 else
16639   ac_cs_awk_cr=$ac_cr
16640 fi
16641
16642 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16643 _ACEOF
16644
16645 # Create commands to substitute file output variables.
16646 {
16647   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16648   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16649   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16650   echo "_ACAWK" &&
16651   echo "_ACEOF"
16652 } >conf$$files.sh &&
16653 . ./conf$$files.sh ||
16654   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16655 rm -f conf$$files.sh
16656
16657 {
16658   echo "cat >conf$$subs.awk <<_ACEOF" &&
16659   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16660   echo "_ACEOF"
16661 } >conf$$subs.sh ||
16662   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16663 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16664 ac_delim='%!_!# '
16665 for ac_last_try in false false false false false :; do
16666   . ./conf$$subs.sh ||
16667     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16668
16669   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16670   if test $ac_delim_n = $ac_delim_num; then
16671     break
16672   elif $ac_last_try; then
16673     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16674   else
16675     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16676   fi
16677 done
16678 rm -f conf$$subs.sh
16679
16680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16681 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16682 _ACEOF
16683 sed -n '
16684 h
16685 s/^/S["/; s/!.*/"]=/
16686 p
16687 g
16688 s/^[^!]*!//
16689 :repl
16690 t repl
16691 s/'"$ac_delim"'$//
16692 t delim
16693 :nl
16694 h
16695 s/\(.\{148\}\).*/\1/
16696 t more1
16697 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16698 p
16699 n
16700 b repl
16701 :more1
16702 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16703 p
16704 g
16705 s/.\{148\}//
16706 t nl
16707 :delim
16708 h
16709 s/\(.\{148\}\).*/\1/
16710 t more2
16711 s/["\\]/\\&/g; s/^/"/; s/$/"/
16712 p
16713 b
16714 :more2
16715 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16716 p
16717 g
16718 s/.\{148\}//
16719 t delim
16720 ' <conf$$subs.awk | sed '
16721 /^[^""]/{
16722   N
16723   s/\n//
16724 }
16725 ' >>$CONFIG_STATUS || ac_write_fail=1
16726 rm -f conf$$subs.awk
16727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16728 _ACAWK
16729 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16730   for (key in S) S_is_set[key] = 1
16731   FS = "\a"
16732   \$ac_cs_awk_pipe_init
16733 }
16734 {
16735   line = $ 0
16736   nfields = split(line, field, "@")
16737   substed = 0
16738   len = length(field[1])
16739   for (i = 2; i < nfields; i++) {
16740     key = field[i]
16741     keylen = length(key)
16742     if (S_is_set[key]) {
16743       value = S[key]
16744       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16745       len += length(value) + length(field[++i])
16746       substed = 1
16747     } else
16748       len += 1 + keylen
16749   }
16750   if (nfields == 3 && !substed) {
16751     key = field[2]
16752     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16753       \$ac_cs_awk_read_file
16754       next
16755     }
16756   }
16757   print line
16758 }
16759 \$ac_cs_awk_pipe_fini
16760 _ACAWK
16761 _ACEOF
16762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16763 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16764   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16765 else
16766   cat
16767 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16768   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16769 _ACEOF
16770
16771 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16772 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16773 # trailing colons and then remove the whole line if VPATH becomes empty
16774 # (actually we leave an empty line to preserve line numbers).
16775 if test "x$srcdir" = x.; then
16776   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16777 s/:*\$(srcdir):*/:/
16778 s/:*\${srcdir}:*/:/
16779 s/:*@srcdir@:*/:/
16780 s/^\([^=]*=[     ]*\):*/\1/
16781 s/:*$//
16782 s/^[^=]*=[       ]*$//
16783 }'
16784 fi
16785
16786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16787 fi # test -n "$CONFIG_FILES"
16788
16789 # Set up the scripts for CONFIG_HEADERS section.
16790 # No need to generate them if there are no CONFIG_HEADERS.
16791 # This happens for instance with `./config.status Makefile'.
16792 if test -n "$CONFIG_HEADERS"; then
16793 cat >"$tmp/defines.awk" <<\_ACAWK ||
16794 BEGIN {
16795 _ACEOF
16796
16797 # Transform confdefs.h into an awk script `defines.awk', embedded as
16798 # here-document in config.status, that substitutes the proper values into
16799 # config.h.in to produce config.h.
16800
16801 # Create a delimiter string that does not exist in confdefs.h, to ease
16802 # handling of long lines.
16803 ac_delim='%!_!# '
16804 for ac_last_try in false false :; do
16805   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16806   if test -z "$ac_t"; then
16807     break
16808   elif $ac_last_try; then
16809     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16810   else
16811     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16812   fi
16813 done
16814
16815 # For the awk script, D is an array of macro values keyed by name,
16816 # likewise P contains macro parameters if any.  Preserve backslash
16817 # newline sequences.
16818
16819 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16820 sed -n '
16821 s/.\{148\}/&'"$ac_delim"'/g
16822 t rset
16823 :rset
16824 s/^[     ]*#[    ]*define[       ][      ]*/ /
16825 t def
16826 d
16827 :def
16828 s/\\$//
16829 t bsnl
16830 s/["\\]/\\&/g
16831 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16832 D["\1"]=" \3"/p
16833 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16834 d
16835 :bsnl
16836 s/["\\]/\\&/g
16837 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16838 D["\1"]=" \3\\\\\\n"\\/p
16839 t cont
16840 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16841 t cont
16842 d
16843 :cont
16844 n
16845 s/.\{148\}/&'"$ac_delim"'/g
16846 t clear
16847 :clear
16848 s/\\$//
16849 t bsnlc
16850 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16851 d
16852 :bsnlc
16853 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16854 b cont
16855 ' <confdefs.h | sed '
16856 s/'"$ac_delim"'/"\\\
16857 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16858
16859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16860   for (key in D) D_is_set[key] = 1
16861   FS = "\a"
16862 }
16863 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16864   line = \$ 0
16865   split(line, arg, " ")
16866   if (arg[1] == "#") {
16867     defundef = arg[2]
16868     mac1 = arg[3]
16869   } else {
16870     defundef = substr(arg[1], 2)
16871     mac1 = arg[2]
16872   }
16873   split(mac1, mac2, "(") #)
16874   macro = mac2[1]
16875   prefix = substr(line, 1, index(line, defundef) - 1)
16876   if (D_is_set[macro]) {
16877     # Preserve the white space surrounding the "#".
16878     print prefix "define", macro P[macro] D[macro]
16879     next
16880   } else {
16881     # Replace #undef with comments.  This is necessary, for example,
16882     # in the case of _POSIX_SOURCE, which is predefined and required
16883     # on some systems where configure will not decide to define it.
16884     if (defundef == "undef") {
16885       print "/*", prefix defundef, macro, "*/"
16886       next
16887     }
16888   }
16889 }
16890 { print }
16891 _ACAWK
16892 _ACEOF
16893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16894   as_fn_error "could not setup config headers machinery" "$LINENO" 5
16895 fi # test -n "$CONFIG_HEADERS"
16896
16897
16898 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16899 shift
16900 for ac_tag
16901 do
16902   case $ac_tag in
16903   :[FHLC]) ac_mode=$ac_tag; continue;;
16904   esac
16905   case $ac_mode$ac_tag in
16906   :[FHL]*:*);;
16907   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16908   :[FH]-) ac_tag=-:-;;
16909   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16910   esac
16911   ac_save_IFS=$IFS
16912   IFS=:
16913   set x $ac_tag
16914   IFS=$ac_save_IFS
16915   shift
16916   ac_file=$1
16917   shift
16918
16919   case $ac_mode in
16920   :L) ac_source=$1;;
16921   :[FH])
16922     ac_file_inputs=
16923     for ac_f
16924     do
16925       case $ac_f in
16926       -) ac_f="$tmp/stdin";;
16927       *) # Look for the file first in the build tree, then in the source tree
16928          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16929          # because $ac_f cannot contain `:'.
16930          test -f "$ac_f" ||
16931            case $ac_f in
16932            [\\/$]*) false;;
16933            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16934            esac ||
16935            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16936       esac
16937       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16938       as_fn_append ac_file_inputs " '$ac_f'"
16939     done
16940
16941     # Let's still pretend it is `configure' which instantiates (i.e., don't
16942     # use $as_me), people would be surprised to read:
16943     #    /* config.h.  Generated by config.status.  */
16944     configure_input='Generated from '`
16945           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16946         `' by configure.'
16947     if test x"$ac_file" != x-; then
16948       configure_input="$ac_file.  $configure_input"
16949       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16950 $as_echo "$as_me: creating $ac_file" >&6;}
16951     fi
16952     # Neutralize special characters interpreted by sed in replacement strings.
16953     case $configure_input in #(
16954     *\&* | *\|* | *\\* )
16955        ac_sed_conf_input=`$as_echo "$configure_input" |
16956        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16957     *) ac_sed_conf_input=$configure_input;;
16958     esac
16959
16960     case $ac_tag in
16961     *:-:* | *:-) cat >"$tmp/stdin" \
16962       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16963     esac
16964     ;;
16965   esac
16966
16967   ac_dir=`$as_dirname -- "$ac_file" ||
16968 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16969          X"$ac_file" : 'X\(//\)[^/]' \| \
16970          X"$ac_file" : 'X\(//\)$' \| \
16971          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16972 $as_echo X"$ac_file" |
16973     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16974             s//\1/
16975             q
16976           }
16977           /^X\(\/\/\)[^/].*/{
16978             s//\1/
16979             q
16980           }
16981           /^X\(\/\/\)$/{
16982             s//\1/
16983             q
16984           }
16985           /^X\(\/\).*/{
16986             s//\1/
16987             q
16988           }
16989           s/.*/./; q'`
16990   as_dir="$ac_dir"; as_fn_mkdir_p
16991   ac_builddir=.
16992
16993 case "$ac_dir" in
16994 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16995 *)
16996   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16997   # A ".." for each directory in $ac_dir_suffix.
16998   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16999   case $ac_top_builddir_sub in
17000   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17001   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17002   esac ;;
17003 esac
17004 ac_abs_top_builddir=$ac_pwd
17005 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17006 # for backward compatibility:
17007 ac_top_builddir=$ac_top_build_prefix
17008
17009 case $srcdir in
17010   .)  # We are building in place.
17011     ac_srcdir=.
17012     ac_top_srcdir=$ac_top_builddir_sub
17013     ac_abs_top_srcdir=$ac_pwd ;;
17014   [\\/]* | ?:[\\/]* )  # Absolute name.
17015     ac_srcdir=$srcdir$ac_dir_suffix;
17016     ac_top_srcdir=$srcdir
17017     ac_abs_top_srcdir=$srcdir ;;
17018   *) # Relative name.
17019     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17020     ac_top_srcdir=$ac_top_build_prefix$srcdir
17021     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17022 esac
17023 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17024
17025
17026   case $ac_mode in
17027   :F)
17028   #
17029   # CONFIG_FILE
17030   #
17031
17032   case $INSTALL in
17033   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17034   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17035   esac
17036   ac_MKDIR_P=$MKDIR_P
17037   case $MKDIR_P in
17038   [\\/$]* | ?:[\\/]* ) ;;
17039   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17040   esac
17041 _ACEOF
17042
17043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17044 # If the template does not know about datarootdir, expand it.
17045 # FIXME: This hack should be removed a few years after 2.60.
17046 ac_datarootdir_hack=; ac_datarootdir_seen=
17047 ac_sed_dataroot='
17048 /datarootdir/ {
17049   p
17050   q
17051 }
17052 /@datadir@/p
17053 /@docdir@/p
17054 /@infodir@/p
17055 /@localedir@/p
17056 /@mandir@/p'
17057 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17058 *datarootdir*) ac_datarootdir_seen=yes;;
17059 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17060   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17061 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17062 _ACEOF
17063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17064   ac_datarootdir_hack='
17065   s&@datadir@&$datadir&g
17066   s&@docdir@&$docdir&g
17067   s&@infodir@&$infodir&g
17068   s&@localedir@&$localedir&g
17069   s&@mandir@&$mandir&g
17070   s&\\\${datarootdir}&$datarootdir&g' ;;
17071 esac
17072 _ACEOF
17073
17074 # Neutralize VPATH when `$srcdir' = `.'.
17075 # Shell code in configure.ac might set extrasub.
17076 # FIXME: do we really want to maintain this feature?
17077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17078 ac_sed_extra="$ac_vpsub
17079 $extrasub
17080 _ACEOF
17081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17082 :t
17083 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17084 s|@configure_input@|$ac_sed_conf_input|;t t
17085 s&@top_builddir@&$ac_top_builddir_sub&;t t
17086 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17087 s&@srcdir@&$ac_srcdir&;t t
17088 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17089 s&@top_srcdir@&$ac_top_srcdir&;t t
17090 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17091 s&@builddir@&$ac_builddir&;t t
17092 s&@abs_builddir@&$ac_abs_builddir&;t t
17093 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17094 s&@INSTALL@&$ac_INSTALL&;t t
17095 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17096 $ac_datarootdir_hack
17097 "
17098 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17099 if $ac_cs_awk_getline; then
17100   $AWK -f "$tmp/subs.awk"
17101 else
17102   $AWK -f "$tmp/subs.awk" | $SHELL
17103 fi >$tmp/out \
17104   || as_fn_error "could not create $ac_file" "$LINENO" 5
17105
17106 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17107   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17108   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17109   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17110 which seems to be undefined.  Please make sure it is defined." >&5
17111 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17112 which seems to be undefined.  Please make sure it is defined." >&2;}
17113
17114   rm -f "$tmp/stdin"
17115   case $ac_file in
17116   -) cat "$tmp/out" && rm -f "$tmp/out";;
17117   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17118   esac \
17119   || as_fn_error "could not create $ac_file" "$LINENO" 5
17120  ;;
17121   :H)
17122   #
17123   # CONFIG_HEADER
17124   #
17125   if test x"$ac_file" != x-; then
17126     {
17127       $as_echo "/* $configure_input  */" \
17128       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17129     } >"$tmp/config.h" \
17130       || as_fn_error "could not create $ac_file" "$LINENO" 5
17131     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17132       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17133 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17134     else
17135       rm -f "$ac_file"
17136       mv "$tmp/config.h" "$ac_file" \
17137         || as_fn_error "could not create $ac_file" "$LINENO" 5
17138     fi
17139   else
17140     $as_echo "/* $configure_input  */" \
17141       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17142       || as_fn_error "could not create -" "$LINENO" 5
17143   fi
17144 # Compute "$ac_file"'s index in $config_headers.
17145 _am_arg="$ac_file"
17146 _am_stamp_count=1
17147 for _am_header in $config_headers :; do
17148   case $_am_header in
17149     $_am_arg | $_am_arg:* )
17150       break ;;
17151     * )
17152       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17153   esac
17154 done
17155 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17156 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17157          X"$_am_arg" : 'X\(//\)[^/]' \| \
17158          X"$_am_arg" : 'X\(//\)$' \| \
17159          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17160 $as_echo X"$_am_arg" |
17161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17162             s//\1/
17163             q
17164           }
17165           /^X\(\/\/\)[^/].*/{
17166             s//\1/
17167             q
17168           }
17169           /^X\(\/\/\)$/{
17170             s//\1/
17171             q
17172           }
17173           /^X\(\/\).*/{
17174             s//\1/
17175             q
17176           }
17177           s/.*/./; q'`/stamp-h$_am_stamp_count
17178  ;;
17179   :L)
17180   #
17181   # CONFIG_LINK
17182   #
17183
17184   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17185     :
17186   else
17187     # Prefer the file from the source tree if names are identical.
17188     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17189       ac_source=$srcdir/$ac_source
17190     fi
17191
17192     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17193 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17194
17195     if test ! -r "$ac_source"; then
17196       as_fn_error "$ac_source: file not found" "$LINENO" 5
17197     fi
17198     rm -f "$ac_file"
17199
17200     # Try a relative symlink, then a hard link, then a copy.
17201     case $srcdir in
17202     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17203         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17204     esac
17205     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17206       ln "$ac_source" "$ac_file" 2>/dev/null ||
17207       cp -p "$ac_source" "$ac_file" ||
17208       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17209   fi
17210  ;;
17211   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17212 $as_echo "$as_me: executing $ac_file commands" >&6;}
17213  ;;
17214   esac
17215
17216
17217   case $ac_file$ac_mode in
17218     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17219     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17220   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17221   # are listed without --file.  Let's play safe and only enable the eval
17222   # if we detect the quoting.
17223   case $CONFIG_FILES in
17224   *\'*) eval set x "$CONFIG_FILES" ;;
17225   *)   set x $CONFIG_FILES ;;
17226   esac
17227   shift
17228   for mf
17229   do
17230     # Strip MF so we end up with the name of the file.
17231     mf=`echo "$mf" | sed -e 's/:.*$//'`
17232     # Check whether this is an Automake generated Makefile or not.
17233     # We used to match only the files named `Makefile.in', but
17234     # some people rename them; so instead we look at the file content.
17235     # Grep'ing the first line is not enough: some people post-process
17236     # each Makefile.in and add a new line on top of each file to say so.
17237     # Grep'ing the whole file is not good either: AIX grep has a line
17238     # limit of 2048, but all sed's we know have understand at least 4000.
17239     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17240       dirpart=`$as_dirname -- "$mf" ||
17241 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17242          X"$mf" : 'X\(//\)[^/]' \| \
17243          X"$mf" : 'X\(//\)$' \| \
17244          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17245 $as_echo X"$mf" |
17246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17247             s//\1/
17248             q
17249           }
17250           /^X\(\/\/\)[^/].*/{
17251             s//\1/
17252             q
17253           }
17254           /^X\(\/\/\)$/{
17255             s//\1/
17256             q
17257           }
17258           /^X\(\/\).*/{
17259             s//\1/
17260             q
17261           }
17262           s/.*/./; q'`
17263     else
17264       continue
17265     fi
17266     # Extract the definition of DEPDIR, am__include, and am__quote
17267     # from the Makefile without running `make'.
17268     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17269     test -z "$DEPDIR" && continue
17270     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17271     test -z "am__include" && continue
17272     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17273     # When using ansi2knr, U may be empty or an underscore; expand it
17274     U=`sed -n 's/^U = //p' < "$mf"`
17275     # Find all dependency output files, they are included files with
17276     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17277     # simplest approach to changing $(DEPDIR) to its actual value in the
17278     # expansion.
17279     for file in `sed -n "
17280       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17281          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17282       # Make sure the directory exists.
17283       test -f "$dirpart/$file" && continue
17284       fdir=`$as_dirname -- "$file" ||
17285 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17286          X"$file" : 'X\(//\)[^/]' \| \
17287          X"$file" : 'X\(//\)$' \| \
17288          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17289 $as_echo X"$file" |
17290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17291             s//\1/
17292             q
17293           }
17294           /^X\(\/\/\)[^/].*/{
17295             s//\1/
17296             q
17297           }
17298           /^X\(\/\/\)$/{
17299             s//\1/
17300             q
17301           }
17302           /^X\(\/\).*/{
17303             s//\1/
17304             q
17305           }
17306           s/.*/./; q'`
17307       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17308       # echo "creating $dirpart/$file"
17309       echo '# dummy' > "$dirpart/$file"
17310     done
17311   done
17312 }
17313  ;;
17314     "default":C)
17315 case x$CONFIG_HEADERS in
17316 xconfig.h:config.in)
17317 echo > stamp-h ;;
17318 esac
17319  ;;
17320
17321   esac
17322 done # for ac_tag
17323
17324
17325 as_fn_exit 0
17326 _ACEOF
17327 ac_clean_files=$ac_clean_files_save
17328
17329 test $ac_write_fail = 0 ||
17330   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17331
17332
17333 # configure is writing to config.log, and then calls config.status.
17334 # config.status does its own redirection, appending to config.log.
17335 # Unfortunately, on DOS this fails, as config.log is still kept open
17336 # by configure, so config.status won't be able to write to it; its
17337 # output is simply discarded.  So we exec the FD to /dev/null,
17338 # effectively closing config.log, so it can be properly (re)opened and
17339 # appended to by config.status.  When coming back to configure, we
17340 # need to make the FD available again.
17341 if test "$no_create" != yes; then
17342   ac_cs_success=:
17343   ac_config_status_args=
17344   test "$silent" = yes &&
17345     ac_config_status_args="$ac_config_status_args --quiet"
17346   exec 5>/dev/null
17347   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17348   exec 5>>config.log
17349   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17350   # would make configure fail if this is the last instruction.
17351   $ac_cs_success || as_fn_exit $?
17352 fi
17353
17354 #
17355 # CONFIG_SUBDIRS section.
17356 #
17357 if test "$no_recursion" != yes; then
17358
17359   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17360   # so they do not pile up.
17361   ac_sub_configure_args=
17362   ac_prev=
17363   eval "set x $ac_configure_args"
17364   shift
17365   for ac_arg
17366   do
17367     if test -n "$ac_prev"; then
17368       ac_prev=
17369       continue
17370     fi
17371     case $ac_arg in
17372     -cache-file | --cache-file | --cache-fil | --cache-fi \
17373     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17374       ac_prev=cache_file ;;
17375     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17376     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17377     | --c=*)
17378       ;;
17379     --config-cache | -C)
17380       ;;
17381     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17382       ac_prev=srcdir ;;
17383     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17384       ;;
17385     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17386       ac_prev=prefix ;;
17387     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17388       ;;
17389     --disable-option-checking)
17390       ;;
17391     *)
17392       case $ac_arg in
17393       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17394       esac
17395       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17396     esac
17397   done
17398
17399   # Always prepend --prefix to ensure using the same prefix
17400   # in subdir configurations.
17401   ac_arg="--prefix=$prefix"
17402   case $ac_arg in
17403   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17404   esac
17405   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17406
17407   # Pass --silent
17408   if test "$silent" = yes; then
17409     ac_sub_configure_args="--silent $ac_sub_configure_args"
17410   fi
17411
17412   # Always prepend --disable-option-checking to silence warnings, since
17413   # different subdirs can have different --enable and --with options.
17414   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17415
17416   ac_popdir=`pwd`
17417   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17418
17419     # Do not complain, so a configure script can configure whichever
17420     # parts of a large source tree are present.
17421     test -d "$srcdir/$ac_dir" || continue
17422
17423     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17424     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17425     $as_echo "$ac_msg" >&6
17426     as_dir="$ac_dir"; as_fn_mkdir_p
17427     ac_builddir=.
17428
17429 case "$ac_dir" in
17430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17431 *)
17432   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17433   # A ".." for each directory in $ac_dir_suffix.
17434   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17435   case $ac_top_builddir_sub in
17436   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17437   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17438   esac ;;
17439 esac
17440 ac_abs_top_builddir=$ac_pwd
17441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17442 # for backward compatibility:
17443 ac_top_builddir=$ac_top_build_prefix
17444
17445 case $srcdir in
17446   .)  # We are building in place.
17447     ac_srcdir=.
17448     ac_top_srcdir=$ac_top_builddir_sub
17449     ac_abs_top_srcdir=$ac_pwd ;;
17450   [\\/]* | ?:[\\/]* )  # Absolute name.
17451     ac_srcdir=$srcdir$ac_dir_suffix;
17452     ac_top_srcdir=$srcdir
17453     ac_abs_top_srcdir=$srcdir ;;
17454   *) # Relative name.
17455     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17456     ac_top_srcdir=$ac_top_build_prefix$srcdir
17457     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17458 esac
17459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17460
17461
17462     cd "$ac_dir"
17463
17464     # Check for guested configure; otherwise get Cygnus style configure.
17465     if test -f "$ac_srcdir/configure.gnu"; then
17466       ac_sub_configure=$ac_srcdir/configure.gnu
17467     elif test -f "$ac_srcdir/configure"; then
17468       ac_sub_configure=$ac_srcdir/configure
17469     elif test -f "$ac_srcdir/configure.in"; then
17470       # This should be Cygnus configure.
17471       ac_sub_configure=$ac_aux_dir/configure
17472     else
17473       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17475       ac_sub_configure=
17476     fi
17477
17478     # The recursion is here.
17479     if test -n "$ac_sub_configure"; then
17480       # Make the cache file name correct relative to the subdirectory.
17481       case $cache_file in
17482       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17483       *) # Relative name.
17484         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17485       esac
17486
17487       { $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
17488 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17489       # The eval makes quoting arguments work.
17490       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17491            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17492         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17493     fi
17494
17495     cd "$ac_popdir"
17496   done
17497 fi
17498 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17499   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17500 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17501 fi
17502
17503
17504 exit 0