gdb/
[deliverable/binutils-gdb.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 enable_gdbserver
979 '
980 ac_precious_vars='build_alias
981 host_alias
982 target_alias
983 CC
984 CFLAGS
985 LDFLAGS
986 LIBS
987 CPPFLAGS
988 CPP
989 YACC
990 YFLAGS
991 XMKMF'
992 ac_subdirs_all='doc testsuite
993 gdbtk
994 multi-ice
995 gdbserver'
996
997 # Initialize some variables set by options.
998 ac_init_help=
999 ac_init_version=false
1000 ac_unrecognized_opts=
1001 ac_unrecognized_sep=
1002 # The variables have the same names as the options, with
1003 # dashes changed to underlines.
1004 cache_file=/dev/null
1005 exec_prefix=NONE
1006 no_create=
1007 no_recursion=
1008 prefix=NONE
1009 program_prefix=NONE
1010 program_suffix=NONE
1011 program_transform_name=s,x,x,
1012 silent=
1013 site=
1014 srcdir=
1015 verbose=
1016 x_includes=NONE
1017 x_libraries=NONE
1018
1019 # Installation directory options.
1020 # These are left unexpanded so users can "make install exec_prefix=/foo"
1021 # and all the variables that are supposed to be based on exec_prefix
1022 # by default will actually change.
1023 # Use braces instead of parens because sh, perl, etc. also accept them.
1024 # (The list follows the same order as the GNU Coding Standards.)
1025 bindir='${exec_prefix}/bin'
1026 sbindir='${exec_prefix}/sbin'
1027 libexecdir='${exec_prefix}/libexec'
1028 datarootdir='${prefix}/share'
1029 datadir='${datarootdir}'
1030 sysconfdir='${prefix}/etc'
1031 sharedstatedir='${prefix}/com'
1032 localstatedir='${prefix}/var'
1033 includedir='${prefix}/include'
1034 oldincludedir='/usr/include'
1035 docdir='${datarootdir}/doc/${PACKAGE}'
1036 infodir='${datarootdir}/info'
1037 htmldir='${docdir}'
1038 dvidir='${docdir}'
1039 pdfdir='${docdir}'
1040 psdir='${docdir}'
1041 libdir='${exec_prefix}/lib'
1042 localedir='${datarootdir}/locale'
1043 mandir='${datarootdir}/man'
1044
1045 ac_prev=
1046 ac_dashdash=
1047 for ac_option
1048 do
1049 # If the previous option needs an argument, assign it.
1050 if test -n "$ac_prev"; then
1051 eval $ac_prev=\$ac_option
1052 ac_prev=
1053 continue
1054 fi
1055
1056 case $ac_option in
1057 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1058 *) ac_optarg=yes ;;
1059 esac
1060
1061 # Accept the important Cygnus configure options, so we can diagnose typos.
1062
1063 case $ac_dashdash$ac_option in
1064 --)
1065 ac_dashdash=yes ;;
1066
1067 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1068 ac_prev=bindir ;;
1069 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1070 bindir=$ac_optarg ;;
1071
1072 -build | --build | --buil | --bui | --bu)
1073 ac_prev=build_alias ;;
1074 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1075 build_alias=$ac_optarg ;;
1076
1077 -cache-file | --cache-file | --cache-fil | --cache-fi \
1078 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1079 ac_prev=cache_file ;;
1080 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1081 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1082 cache_file=$ac_optarg ;;
1083
1084 --config-cache | -C)
1085 cache_file=config.cache ;;
1086
1087 -datadir | --datadir | --datadi | --datad)
1088 ac_prev=datadir ;;
1089 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1090 datadir=$ac_optarg ;;
1091
1092 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1093 | --dataroo | --dataro | --datar)
1094 ac_prev=datarootdir ;;
1095 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1096 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1097 datarootdir=$ac_optarg ;;
1098
1099 -disable-* | --disable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid feature name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "enable_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval enable_$ac_useropt=no ;;
1114
1115 -docdir | --docdir | --docdi | --doc | --do)
1116 ac_prev=docdir ;;
1117 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1118 docdir=$ac_optarg ;;
1119
1120 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1121 ac_prev=dvidir ;;
1122 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1123 dvidir=$ac_optarg ;;
1124
1125 -enable-* | --enable-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid feature name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "enable_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval enable_$ac_useropt=\$ac_optarg ;;
1140
1141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1143 | --exec | --exe | --ex)
1144 ac_prev=exec_prefix ;;
1145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1147 | --exec=* | --exe=* | --ex=*)
1148 exec_prefix=$ac_optarg ;;
1149
1150 -gas | --gas | --ga | --g)
1151 # Obsolete; use --with-gas.
1152 with_gas=yes ;;
1153
1154 -help | --help | --hel | --he | -h)
1155 ac_init_help=long ;;
1156 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1157 ac_init_help=recursive ;;
1158 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1159 ac_init_help=short ;;
1160
1161 -host | --host | --hos | --ho)
1162 ac_prev=host_alias ;;
1163 -host=* | --host=* | --hos=* | --ho=*)
1164 host_alias=$ac_optarg ;;
1165
1166 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1167 ac_prev=htmldir ;;
1168 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1169 | --ht=*)
1170 htmldir=$ac_optarg ;;
1171
1172 -includedir | --includedir | --includedi | --included | --include \
1173 | --includ | --inclu | --incl | --inc)
1174 ac_prev=includedir ;;
1175 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1176 | --includ=* | --inclu=* | --incl=* | --inc=*)
1177 includedir=$ac_optarg ;;
1178
1179 -infodir | --infodir | --infodi | --infod | --info | --inf)
1180 ac_prev=infodir ;;
1181 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1182 infodir=$ac_optarg ;;
1183
1184 -libdir | --libdir | --libdi | --libd)
1185 ac_prev=libdir ;;
1186 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1187 libdir=$ac_optarg ;;
1188
1189 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1190 | --libexe | --libex | --libe)
1191 ac_prev=libexecdir ;;
1192 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1193 | --libexe=* | --libex=* | --libe=*)
1194 libexecdir=$ac_optarg ;;
1195
1196 -localedir | --localedir | --localedi | --localed | --locale)
1197 ac_prev=localedir ;;
1198 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1199 localedir=$ac_optarg ;;
1200
1201 -localstatedir | --localstatedir | --localstatedi | --localstated \
1202 | --localstate | --localstat | --localsta | --localst | --locals)
1203 ac_prev=localstatedir ;;
1204 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1205 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1206 localstatedir=$ac_optarg ;;
1207
1208 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1209 ac_prev=mandir ;;
1210 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1211 mandir=$ac_optarg ;;
1212
1213 -nfp | --nfp | --nf)
1214 # Obsolete; use --without-fp.
1215 with_fp=no ;;
1216
1217 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1218 | --no-cr | --no-c | -n)
1219 no_create=yes ;;
1220
1221 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1222 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1223 no_recursion=yes ;;
1224
1225 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1226 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1227 | --oldin | --oldi | --old | --ol | --o)
1228 ac_prev=oldincludedir ;;
1229 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1230 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1231 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1232 oldincludedir=$ac_optarg ;;
1233
1234 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1235 ac_prev=prefix ;;
1236 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1237 prefix=$ac_optarg ;;
1238
1239 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1240 | --program-pre | --program-pr | --program-p)
1241 ac_prev=program_prefix ;;
1242 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1243 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1244 program_prefix=$ac_optarg ;;
1245
1246 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1247 | --program-suf | --program-su | --program-s)
1248 ac_prev=program_suffix ;;
1249 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1250 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1251 program_suffix=$ac_optarg ;;
1252
1253 -program-transform-name | --program-transform-name \
1254 | --program-transform-nam | --program-transform-na \
1255 | --program-transform-n | --program-transform- \
1256 | --program-transform | --program-transfor \
1257 | --program-transfo | --program-transf \
1258 | --program-trans | --program-tran \
1259 | --progr-tra | --program-tr | --program-t)
1260 ac_prev=program_transform_name ;;
1261 -program-transform-name=* | --program-transform-name=* \
1262 | --program-transform-nam=* | --program-transform-na=* \
1263 | --program-transform-n=* | --program-transform-=* \
1264 | --program-transform=* | --program-transfor=* \
1265 | --program-transfo=* | --program-transf=* \
1266 | --program-trans=* | --program-tran=* \
1267 | --progr-tra=* | --program-tr=* | --program-t=*)
1268 program_transform_name=$ac_optarg ;;
1269
1270 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1271 ac_prev=pdfdir ;;
1272 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1273 pdfdir=$ac_optarg ;;
1274
1275 -psdir | --psdir | --psdi | --psd | --ps)
1276 ac_prev=psdir ;;
1277 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1278 psdir=$ac_optarg ;;
1279
1280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281 | -silent | --silent | --silen | --sile | --sil)
1282 silent=yes ;;
1283
1284 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1285 ac_prev=sbindir ;;
1286 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1287 | --sbi=* | --sb=*)
1288 sbindir=$ac_optarg ;;
1289
1290 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1291 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1292 | --sharedst | --shareds | --shared | --share | --shar \
1293 | --sha | --sh)
1294 ac_prev=sharedstatedir ;;
1295 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1296 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1297 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1298 | --sha=* | --sh=*)
1299 sharedstatedir=$ac_optarg ;;
1300
1301 -site | --site | --sit)
1302 ac_prev=site ;;
1303 -site=* | --site=* | --sit=*)
1304 site=$ac_optarg ;;
1305
1306 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1307 ac_prev=srcdir ;;
1308 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1309 srcdir=$ac_optarg ;;
1310
1311 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1312 | --syscon | --sysco | --sysc | --sys | --sy)
1313 ac_prev=sysconfdir ;;
1314 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1315 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1316 sysconfdir=$ac_optarg ;;
1317
1318 -target | --target | --targe | --targ | --tar | --ta | --t)
1319 ac_prev=target_alias ;;
1320 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1321 target_alias=$ac_optarg ;;
1322
1323 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1324 verbose=yes ;;
1325
1326 -version | --version | --versio | --versi | --vers | -V)
1327 ac_init_version=: ;;
1328
1329 -with-* | --with-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333 as_fn_error "invalid package name: $ac_useropt"
1334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1337 *"
1338 "with_$ac_useropt"
1339 "*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1342 esac
1343 eval with_$ac_useropt=\$ac_optarg ;;
1344
1345 -without-* | --without-*)
1346 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1349 as_fn_error "invalid package name: $ac_useropt"
1350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1353 *"
1354 "with_$ac_useropt"
1355 "*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval with_$ac_useropt=no ;;
1360
1361 --x)
1362 # Obsolete; use --with-x.
1363 with_x=yes ;;
1364
1365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1366 | --x-incl | --x-inc | --x-in | --x-i)
1367 ac_prev=x_includes ;;
1368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1370 x_includes=$ac_optarg ;;
1371
1372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1374 ac_prev=x_libraries ;;
1375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1377 x_libraries=$ac_optarg ;;
1378
1379 -*) as_fn_error "unrecognized option: \`$ac_option'
1380 Try \`$0 --help' for more information."
1381 ;;
1382
1383 *=*)
1384 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1385 # Reject names that are not valid shell variable names.
1386 case $ac_envvar in #(
1387 '' | [0-9]* | *[!_$as_cr_alnum]* )
1388 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1389 esac
1390 eval $ac_envvar=\$ac_optarg
1391 export $ac_envvar ;;
1392
1393 *)
1394 # FIXME: should be removed in autoconf 3.0.
1395 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1396 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1398 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1399 ;;
1400
1401 esac
1402 done
1403
1404 if test -n "$ac_prev"; then
1405 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1406 as_fn_error "missing argument to $ac_option"
1407 fi
1408
1409 if test -n "$ac_unrecognized_opts"; then
1410 case $enable_option_checking in
1411 no) ;;
1412 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1413 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1414 esac
1415 fi
1416
1417 # Check all directory arguments for consistency.
1418 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1419 datadir sysconfdir sharedstatedir localstatedir includedir \
1420 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1421 libdir localedir mandir
1422 do
1423 eval ac_val=\$$ac_var
1424 # Remove trailing slashes.
1425 case $ac_val in
1426 */ )
1427 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1428 eval $ac_var=\$ac_val;;
1429 esac
1430 # Be sure to have absolute directory names.
1431 case $ac_val in
1432 [\\/$]* | ?:[\\/]* ) continue;;
1433 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1434 esac
1435 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1436 done
1437
1438 # There might be people who depend on the old broken behavior: `$host'
1439 # used to hold the argument of --host etc.
1440 # FIXME: To remove some day.
1441 build=$build_alias
1442 host=$host_alias
1443 target=$target_alias
1444
1445 # FIXME: To remove some day.
1446 if test "x$host_alias" != x; then
1447 if test "x$build_alias" = x; then
1448 cross_compiling=maybe
1449 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1450 If a cross compiler is detected then cross compile mode will be used." >&2
1451 elif test "x$build_alias" != "x$host_alias"; then
1452 cross_compiling=yes
1453 fi
1454 fi
1455
1456 ac_tool_prefix=
1457 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1458
1459 test "$silent" = yes && exec 6>/dev/null
1460
1461
1462 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1463 ac_ls_di=`ls -di .` &&
1464 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1465 as_fn_error "working directory cannot be determined"
1466 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1467 as_fn_error "pwd does not report name of working directory"
1468
1469
1470 # Find the source files, if location was not specified.
1471 if test -z "$srcdir"; then
1472 ac_srcdir_defaulted=yes
1473 # Try the directory containing this script, then the parent directory.
1474 ac_confdir=`$as_dirname -- "$as_myself" ||
1475 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1476 X"$as_myself" : 'X\(//\)[^/]' \| \
1477 X"$as_myself" : 'X\(//\)$' \| \
1478 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1479 $as_echo X"$as_myself" |
1480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1481 s//\1/
1482 q
1483 }
1484 /^X\(\/\/\)[^/].*/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\/\)$/{
1489 s//\1/
1490 q
1491 }
1492 /^X\(\/\).*/{
1493 s//\1/
1494 q
1495 }
1496 s/.*/./; q'`
1497 srcdir=$ac_confdir
1498 if test ! -r "$srcdir/$ac_unique_file"; then
1499 srcdir=..
1500 fi
1501 else
1502 ac_srcdir_defaulted=no
1503 fi
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1505 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1506 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1507 fi
1508 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1509 ac_abs_confdir=`(
1510 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1511 pwd)`
1512 # When building in place, set srcdir=.
1513 if test "$ac_abs_confdir" = "$ac_pwd"; then
1514 srcdir=.
1515 fi
1516 # Remove unnecessary trailing slashes from srcdir.
1517 # Double slashes in file names in object file debugging info
1518 # mess up M-x gdb in Emacs.
1519 case $srcdir in
1520 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1521 esac
1522 for ac_var in $ac_precious_vars; do
1523 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1524 eval ac_env_${ac_var}_value=\$${ac_var}
1525 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1526 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1527 done
1528
1529 #
1530 # Report the --help message.
1531 #
1532 if test "$ac_init_help" = "long"; then
1533 # Omit some internal or obsolete options to make the list less imposing.
1534 # This message is too long to be a string in the A/UX 3.1 sh.
1535 cat <<_ACEOF
1536 \`configure' configures this package to adapt to many kinds of systems.
1537
1538 Usage: $0 [OPTION]... [VAR=VALUE]...
1539
1540 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1541 VAR=VALUE. See below for descriptions of some of the useful variables.
1542
1543 Defaults for the options are specified in brackets.
1544
1545 Configuration:
1546 -h, --help display this help and exit
1547 --help=short display options specific to this package
1548 --help=recursive display the short help of all the included packages
1549 -V, --version display version information and exit
1550 -q, --quiet, --silent do not print \`checking...' messages
1551 --cache-file=FILE cache test results in FILE [disabled]
1552 -C, --config-cache alias for \`--cache-file=config.cache'
1553 -n, --no-create do not create output files
1554 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1555
1556 Installation directories:
1557 --prefix=PREFIX install architecture-independent files in PREFIX
1558 [$ac_default_prefix]
1559 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1560 [PREFIX]
1561
1562 By default, \`make install' will install all the files in
1563 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1564 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1565 for instance \`--prefix=\$HOME'.
1566
1567 For better control, use the options below.
1568
1569 Fine tuning of the installation directories:
1570 --bindir=DIR user executables [EPREFIX/bin]
1571 --sbindir=DIR system admin executables [EPREFIX/sbin]
1572 --libexecdir=DIR program executables [EPREFIX/libexec]
1573 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1574 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1575 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1576 --libdir=DIR object code libraries [EPREFIX/lib]
1577 --includedir=DIR C header files [PREFIX/include]
1578 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1579 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1580 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1581 --infodir=DIR info documentation [DATAROOTDIR/info]
1582 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1583 --mandir=DIR man documentation [DATAROOTDIR/man]
1584 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1585 --htmldir=DIR html documentation [DOCDIR]
1586 --dvidir=DIR dvi documentation [DOCDIR]
1587 --pdfdir=DIR pdf documentation [DOCDIR]
1588 --psdir=DIR ps documentation [DOCDIR]
1589 _ACEOF
1590
1591 cat <<\_ACEOF
1592
1593 Program names:
1594 --program-prefix=PREFIX prepend PREFIX to installed program names
1595 --program-suffix=SUFFIX append SUFFIX to installed program names
1596 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1597
1598 X features:
1599 --x-includes=DIR X include files are in DIR
1600 --x-libraries=DIR X library files are in DIR
1601
1602 System types:
1603 --build=BUILD configure for building on BUILD [guessed]
1604 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1605 --target=TARGET configure for building compilers for TARGET [HOST]
1606 _ACEOF
1607 fi
1608
1609 if test -n "$ac_init_help"; then
1610
1611 cat <<\_ACEOF
1612
1613 Optional Features:
1614 --disable-option-checking ignore unrecognized --enable/--with options
1615 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1616 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1617 --enable-maintainer-mode enable make rules and dependencies not useful
1618 (and sometimes confusing) to the casual installer
1619 --enable-plugins Enable support for plugins (defaults no)
1620 --disable-largefile omit support for large files
1621 --disable-dependency-tracking speeds up one-time build
1622 --enable-dependency-tracking do not reject slow dependency extractors
1623 --enable-targets=TARGETS
1624 alternative target configurations
1625 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1626 --disable-gdbcli disable command-line interface (CLI)
1627 --disable-gdbmi disable machine-interface (MI)
1628 --enable-tui enable full-screen terminal user interface (TUI)
1629 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1630 --enable-profiling enable profiling of GDB
1631 --disable-rpath do not hardcode runtime library paths
1632 --enable-werror treat compile warnings as errors
1633 --enable-build-warnings enable build-time compiler warnings if gcc is used
1634 --enable-gdb-build-warnings
1635 enable GDB specific build-time compiler warnings if
1636 gcc is used
1637 --enable-sim link gdb with simulator
1638 --enable-multi-ice build the multi-ice-gdb-server
1639 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1640 is auto)
1641
1642 Optional Packages:
1643 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1644 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1645 --with-separate-debug-dir=PATH
1646 look for global separate debug info in this path
1647 [LIBDIR/debug]
1648 --with-gdb-datadir=PATH look for global separate data files in this path
1649 [DATADIR/gdb]
1650 --with-relocated-sources=PATH
1651 automatically relocate this path for source files
1652 --with-libunwind use libunwind frame unwinding support
1653 --with-curses use the curses library instead of the termcap
1654 library
1655 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1656 --with-bugurl=URL Direct users to URL to report a bug
1657 --with-zlib include zlib support (auto/yes/no) default=auto
1658 --with-libiconv-prefix=DIR
1659 search for libiconv in DIR/include and DIR/lib
1660 --with-system-readline use installed readline library
1661 --with-expat include expat support (auto/yes/no)
1662 --with-gnu-ld assume the C compiler uses GNU ld default=no
1663 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1664 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1665 --with-python[=PYTHON] include python support
1666 (auto/yes/no/<python-program>)
1667 --without-included-regex
1668 don't use included regex; this is the default on
1669 systems with version 2 of the GNU C library (use
1670 with caution on other system)
1671 --with-sysroot[=DIR] search for usr/lib et al within DIR
1672 --with-system-gdbinit=PATH
1673 automatically load a system-wide gdbinit file
1674 --with-tcl directory containing tcl configuration (tclConfig.sh)
1675 --with-tk directory containing tk configuration (tkConfig.sh)
1676 --with-x use the X Window System
1677
1678 Some influential environment variables:
1679 CC C compiler command
1680 CFLAGS C compiler flags
1681 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1682 nonstandard directory <lib dir>
1683 LIBS libraries to pass to the linker, e.g. -l<library>
1684 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1685 you have headers in a nonstandard directory <include dir>
1686 CPP C preprocessor
1687 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1688 the first program found out of: `bison -y', `byacc', `yacc'.
1689 YFLAGS The list of arguments that will be passed by default to $YACC.
1690 This script will default YFLAGS to the empty string to avoid a
1691 default value of `-d' given by some make applications.
1692 XMKMF Path to xmkmf, Makefile generator for X Window System
1693
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1696
1697 Report bugs to the package provider.
1698 _ACEOF
1699 ac_status=$?
1700 fi
1701
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707 continue
1708 ac_builddir=.
1709
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *)
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1725
1726 case $srcdir in
1727 .) # We are building in place.
1728 ac_srcdir=.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1735 *) # Relative name.
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1750 else
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 fi || ac_status=$?
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1754 done
1755 fi
1756
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759 cat <<\_ACEOF
1760 configure
1761 generated by GNU Autoconf 2.64
1762
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767 exit
1768 fi
1769
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1773
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806 fi
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 return $ac_retval
1809
1810 } # ac_fn_c_try_compile
1811
1812 # ac_fn_c_try_cpp LINENO
1813 # ----------------------
1814 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_c_try_cpp ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_cpp conftest.$ac_ext"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } >/dev/null && {
1834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843 fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
1846
1847 } # ac_fn_c_try_cpp
1848
1849 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1850 # -------------------------------------------------------
1851 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1852 # the include files in INCLUDES and setting the cache variable VAR
1853 # accordingly.
1854 ac_fn_c_check_header_mongrel ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1862 fi
1863 eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 else
1867 # Is the header compilable?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1869 $as_echo_n "checking $2 usability... " >&6; }
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 $4
1873 #include <$2>
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876 ac_header_compiler=yes
1877 else
1878 ac_header_compiler=no
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1882 $as_echo "$ac_header_compiler" >&6; }
1883
1884 # Is the header present?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1886 $as_echo_n "checking $2 presence... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 #include <$2>
1890 _ACEOF
1891 if ac_fn_c_try_cpp "$LINENO"; then :
1892 ac_header_preproc=yes
1893 else
1894 ac_header_preproc=no
1895 fi
1896 rm -f conftest.err conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1898 $as_echo "$ac_header_preproc" >&6; }
1899
1900 # So? What about this header?
1901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1902 yes:no: )
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1904 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1907 ;;
1908 no:yes:* )
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1910 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1912 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1914 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1916 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1919 ;;
1920 esac
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1925 else
1926 eval "$3=\$ac_header_compiler"
1927 fi
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 fi
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933
1934 } # ac_fn_c_check_header_mongrel
1935
1936 # ac_fn_c_try_run LINENO
1937 # ----------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1939 # that executables *can* be run.
1940 ac_fn_c_try_run ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if { { ac_try="$ac_link"
1944 case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>&5
1951 ac_status=$?
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1954 { { case "(($ac_try" in
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956 *) ac_try_echo=$ac_try;;
1957 esac
1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959 $as_echo "$ac_try_echo"; } >&5
1960 (eval "$ac_try") 2>&5
1961 ac_status=$?
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; }; }; then :
1964 ac_retval=0
1965 else
1966 $as_echo "$as_me: program exited with status $ac_status" >&5
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970 ac_retval=$ac_status
1971 fi
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 return $ac_retval
1975
1976 } # ac_fn_c_try_run
1977
1978 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1979 # -------------------------------------------------------
1980 # Tests whether HEADER exists and can be compiled using the include files in
1981 # INCLUDES, setting the cache variable VAR accordingly.
1982 ac_fn_c_check_header_compile ()
1983 {
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 $as_echo_n "(cached) " >&6
1989 else
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 $4
1993 #include <$2>
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996 eval "$3=yes"
1997 else
1998 eval "$3=no"
1999 fi
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 fi
2002 eval ac_res=\$$3
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2006
2007 } # ac_fn_c_check_header_compile
2008
2009 # ac_fn_c_try_link LINENO
2010 # -----------------------
2011 # Try to link conftest.$ac_ext, and return whether this succeeded.
2012 ac_fn_c_try_link ()
2013 {
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 rm -f conftest.$ac_objext conftest$ac_exeext
2016 if { { ac_try="$ac_link"
2017 case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_link") 2>conftest.err
2024 ac_status=$?
2025 if test -s conftest.err; then
2026 grep -v '^ *+' conftest.err >conftest.er1
2027 cat conftest.er1 >&5
2028 mv -f conftest.er1 conftest.err
2029 fi
2030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2031 test $ac_status = 0; } && {
2032 test -z "$ac_c_werror_flag" ||
2033 test ! -s conftest.err
2034 } && test -s conftest$ac_exeext && {
2035 test "$cross_compiling" = yes ||
2036 $as_test_x conftest$ac_exeext
2037 }; then :
2038 ac_retval=0
2039 else
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 ac_retval=1
2044 fi
2045 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2046 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2047 # interfere with the next link command; also delete a directory that is
2048 # left behind by Apple's compiler. We do this before executing the actions.
2049 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051 return $ac_retval
2052
2053 } # ac_fn_c_try_link
2054
2055 # ac_fn_c_check_func LINENO FUNC VAR
2056 # ----------------------------------
2057 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2058 ac_fn_c_check_func ()
2059 {
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2068 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2070 #define $2 innocuous_$2
2071
2072 /* System header to define __stub macros and hopefully few prototypes,
2073 which can conflict with char $2 (); below.
2074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2075 <limits.h> exists even on freestanding compilers. */
2076
2077 #ifdef __STDC__
2078 # include <limits.h>
2079 #else
2080 # include <assert.h>
2081 #endif
2082
2083 #undef $2
2084
2085 /* Override any GCC internal prototype to avoid an error.
2086 Use char because int might match the return type of a GCC
2087 builtin and then its argument prototype would still apply. */
2088 #ifdef __cplusplus
2089 extern "C"
2090 #endif
2091 char $2 ();
2092 /* The GNU C library defines this for functions which it implements
2093 to always fail with ENOSYS. Some functions are actually named
2094 something starting with __ and the normal name is an alias. */
2095 #if defined __stub_$2 || defined __stub___$2
2096 choke me
2097 #endif
2098
2099 int
2100 main ()
2101 {
2102 return $2 ();
2103 ;
2104 return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_link "$LINENO"; then :
2108 eval "$3=yes"
2109 else
2110 eval "$3=no"
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext \
2113 conftest$ac_exeext conftest.$ac_ext
2114 fi
2115 eval ac_res=\$$3
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 $as_echo "$ac_res" >&6; }
2118 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119
2120 } # ac_fn_c_check_func
2121
2122 # ac_fn_c_check_decl LINENO SYMBOL VAR
2123 # ------------------------------------
2124 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2125 ac_fn_c_check_decl ()
2126 {
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 as_decl_name=`echo $2|sed 's/ *(.*//'`
2129 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2131 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2132 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 $4
2138 int
2139 main ()
2140 {
2141 #ifndef $as_decl_name
2142 #ifdef __cplusplus
2143 (void) $as_decl_use;
2144 #else
2145 (void) $as_decl_name;
2146 #endif
2147 #endif
2148
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 eval "$3=yes"
2155 else
2156 eval "$3=no"
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 fi
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2164
2165 } # ac_fn_c_check_decl
2166
2167 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2168 # --------------------------------------------
2169 # Tries to find the compile-time value of EXPR in a program that includes
2170 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2171 # computed
2172 ac_fn_c_compute_int ()
2173 {
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 if test "$cross_compiling" = yes; then
2176 # Depending upon the size, compute the lo and hi bounds.
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2179 $4
2180 int
2181 main ()
2182 {
2183 static int test_array [1 - 2 * !(($2) >= 0)];
2184 test_array [0] = 0
2185
2186 ;
2187 return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_lo=0 ac_mid=0
2192 while :; do
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2195 $4
2196 int
2197 main ()
2198 {
2199 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2200 test_array [0] = 0
2201
2202 ;
2203 return 0;
2204 }
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207 ac_hi=$ac_mid; break
2208 else
2209 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2210 if test $ac_lo -le $ac_mid; then
2211 ac_lo= ac_hi=
2212 break
2213 fi
2214 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2215 fi
2216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 done
2218 else
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2221 $4
2222 int
2223 main ()
2224 {
2225 static int test_array [1 - 2 * !(($2) < 0)];
2226 test_array [0] = 0
2227
2228 ;
2229 return 0;
2230 }
2231 _ACEOF
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233 ac_hi=-1 ac_mid=-1
2234 while :; do
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2237 $4
2238 int
2239 main ()
2240 {
2241 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2242 test_array [0] = 0
2243
2244 ;
2245 return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_lo=$ac_mid; break
2250 else
2251 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2252 if test $ac_mid -le $ac_hi; then
2253 ac_lo= ac_hi=
2254 break
2255 fi
2256 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 done
2260 else
2261 ac_lo= ac_hi=
2262 fi
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 fi
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 # Binary search between lo and hi bounds.
2267 while test "x$ac_lo" != "x$ac_hi"; do
2268 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 $4
2272 int
2273 main ()
2274 {
2275 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2276 test_array [0] = 0
2277
2278 ;
2279 return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_compile "$LINENO"; then :
2283 ac_hi=$ac_mid
2284 else
2285 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2286 fi
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 done
2289 case $ac_lo in #((
2290 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2291 '') ac_retval=1 ;;
2292 esac
2293 else
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2296 $4
2297 static long int longval () { return $2; }
2298 static unsigned long int ulongval () { return $2; }
2299 #include <stdio.h>
2300 #include <stdlib.h>
2301 int
2302 main ()
2303 {
2304
2305 FILE *f = fopen ("conftest.val", "w");
2306 if (! f)
2307 return 1;
2308 if (($2) < 0)
2309 {
2310 long int i = longval ();
2311 if (i != ($2))
2312 return 1;
2313 fprintf (f, "%ld", i);
2314 }
2315 else
2316 {
2317 unsigned long int i = ulongval ();
2318 if (i != ($2))
2319 return 1;
2320 fprintf (f, "%lu", i);
2321 }
2322 /* Do not output a trailing newline, as this causes \r\n confusion
2323 on some platforms. */
2324 return ferror (f) || fclose (f) != 0;
2325
2326 ;
2327 return 0;
2328 }
2329 _ACEOF
2330 if ac_fn_c_try_run "$LINENO"; then :
2331 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2332 else
2333 ac_retval=1
2334 fi
2335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2336 conftest.$ac_objext conftest.beam conftest.$ac_ext
2337 rm -f conftest.val
2338
2339 fi
2340 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2341 return $ac_retval
2342
2343 } # ac_fn_c_compute_int
2344
2345 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2346 # ----------------------------------------------------
2347 # Tries to find if the field MEMBER exists in type AGGR, after including
2348 # INCLUDES, setting cache variable VAR accordingly.
2349 ac_fn_c_check_member ()
2350 {
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2353 $as_echo_n "checking for $2.$3... " >&6; }
2354 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2359 $5
2360 int
2361 main ()
2362 {
2363 static $2 ac_aggr;
2364 if (ac_aggr.$3)
2365 return 0;
2366 ;
2367 return 0;
2368 }
2369 _ACEOF
2370 if ac_fn_c_try_compile "$LINENO"; then :
2371 eval "$4=yes"
2372 else
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2375 $5
2376 int
2377 main ()
2378 {
2379 static $2 ac_aggr;
2380 if (sizeof ac_aggr.$3)
2381 return 0;
2382 ;
2383 return 0;
2384 }
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387 eval "$4=yes"
2388 else
2389 eval "$4=no"
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 fi
2395 eval ac_res=\$$4
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397 $as_echo "$ac_res" >&6; }
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399
2400 } # ac_fn_c_check_member
2401
2402 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2403 # -------------------------------------------
2404 # Tests whether TYPE exists after having included INCLUDES, setting cache
2405 # variable VAR accordingly.
2406 ac_fn_c_check_type ()
2407 {
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2412 $as_echo_n "(cached) " >&6
2413 else
2414 eval "$3=no"
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2417 $4
2418 int
2419 main ()
2420 {
2421 if (sizeof ($2))
2422 return 0;
2423 ;
2424 return 0;
2425 }
2426 _ACEOF
2427 if ac_fn_c_try_compile "$LINENO"; then :
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2430 $4
2431 int
2432 main ()
2433 {
2434 if (sizeof (($2)))
2435 return 0;
2436 ;
2437 return 0;
2438 }
2439 _ACEOF
2440 if ac_fn_c_try_compile "$LINENO"; then :
2441
2442 else
2443 eval "$3=yes"
2444 fi
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 fi
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 fi
2449 eval ac_res=\$$3
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2453
2454 } # ac_fn_c_check_type
2455 cat >config.log <<_ACEOF
2456 This file contains any messages produced by compilers while
2457 running configure, to aid debugging if configure makes a mistake.
2458
2459 It was created by $as_me, which was
2460 generated by GNU Autoconf 2.64. Invocation command line was
2461
2462 $ $0 $@
2463
2464 _ACEOF
2465 exec 5>>config.log
2466 {
2467 cat <<_ASUNAME
2468 ## --------- ##
2469 ## Platform. ##
2470 ## --------- ##
2471
2472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2477
2478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2480
2481 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2484 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2485 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2486 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2487 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2488
2489 _ASUNAME
2490
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2493 do
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 $as_echo "PATH: $as_dir"
2497 done
2498 IFS=$as_save_IFS
2499
2500 } >&5
2501
2502 cat >&5 <<_ACEOF
2503
2504
2505 ## ----------- ##
2506 ## Core tests. ##
2507 ## ----------- ##
2508
2509 _ACEOF
2510
2511
2512 # Keep a trace of the command line.
2513 # Strip out --no-create and --no-recursion so they do not pile up.
2514 # Strip out --silent because we don't want to record it for future runs.
2515 # Also quote any args containing shell meta-characters.
2516 # Make two passes to allow for proper duplicate-argument suppression.
2517 ac_configure_args=
2518 ac_configure_args0=
2519 ac_configure_args1=
2520 ac_must_keep_next=false
2521 for ac_pass in 1 2
2522 do
2523 for ac_arg
2524 do
2525 case $ac_arg in
2526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2528 | -silent | --silent | --silen | --sile | --sil)
2529 continue ;;
2530 *\'*)
2531 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2532 esac
2533 case $ac_pass in
2534 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2535 2)
2536 as_fn_append ac_configure_args1 " '$ac_arg'"
2537 if test $ac_must_keep_next = true; then
2538 ac_must_keep_next=false # Got value, back to normal.
2539 else
2540 case $ac_arg in
2541 *=* | --config-cache | -C | -disable-* | --disable-* \
2542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2544 | -with-* | --with-* | -without-* | --without-* | --x)
2545 case "$ac_configure_args0 " in
2546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2547 esac
2548 ;;
2549 -* ) ac_must_keep_next=true ;;
2550 esac
2551 fi
2552 as_fn_append ac_configure_args " '$ac_arg'"
2553 ;;
2554 esac
2555 done
2556 done
2557 { ac_configure_args0=; unset ac_configure_args0;}
2558 { ac_configure_args1=; unset ac_configure_args1;}
2559
2560 # When interrupted or exit'd, cleanup temporary files, and complete
2561 # config.log. We remove comments because anyway the quotes in there
2562 # would cause problems or look ugly.
2563 # WARNING: Use '\'' to represent an apostrophe within the trap.
2564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2565 trap 'exit_status=$?
2566 # Save into config.log some information that might help in debugging.
2567 {
2568 echo
2569
2570 cat <<\_ASBOX
2571 ## ---------------- ##
2572 ## Cache variables. ##
2573 ## ---------------- ##
2574 _ASBOX
2575 echo
2576 # The following way of writing the cache mishandles newlines in values,
2577 (
2578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2579 eval ac_val=\$$ac_var
2580 case $ac_val in #(
2581 *${as_nl}*)
2582 case $ac_var in #(
2583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2584 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2585 esac
2586 case $ac_var in #(
2587 _ | IFS | as_nl) ;; #(
2588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2589 *) { eval $ac_var=; unset $ac_var;} ;;
2590 esac ;;
2591 esac
2592 done
2593 (set) 2>&1 |
2594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2595 *${as_nl}ac_space=\ *)
2596 sed -n \
2597 "s/'\''/'\''\\\\'\'''\''/g;
2598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2599 ;; #(
2600 *)
2601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2602 ;;
2603 esac |
2604 sort
2605 )
2606 echo
2607
2608 cat <<\_ASBOX
2609 ## ----------------- ##
2610 ## Output variables. ##
2611 ## ----------------- ##
2612 _ASBOX
2613 echo
2614 for ac_var in $ac_subst_vars
2615 do
2616 eval ac_val=\$$ac_var
2617 case $ac_val in
2618 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2619 esac
2620 $as_echo "$ac_var='\''$ac_val'\''"
2621 done | sort
2622 echo
2623
2624 if test -n "$ac_subst_files"; then
2625 cat <<\_ASBOX
2626 ## ------------------- ##
2627 ## File substitutions. ##
2628 ## ------------------- ##
2629 _ASBOX
2630 echo
2631 for ac_var in $ac_subst_files
2632 do
2633 eval ac_val=\$$ac_var
2634 case $ac_val in
2635 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2636 esac
2637 $as_echo "$ac_var='\''$ac_val'\''"
2638 done | sort
2639 echo
2640 fi
2641
2642 if test -s confdefs.h; then
2643 cat <<\_ASBOX
2644 ## ----------- ##
2645 ## confdefs.h. ##
2646 ## ----------- ##
2647 _ASBOX
2648 echo
2649 cat confdefs.h
2650 echo
2651 fi
2652 test "$ac_signal" != 0 &&
2653 $as_echo "$as_me: caught signal $ac_signal"
2654 $as_echo "$as_me: exit $exit_status"
2655 } >&5
2656 rm -f core *.core core.conftest.* &&
2657 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2658 exit $exit_status
2659 ' 0
2660 for ac_signal in 1 2 13 15; do
2661 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2662 done
2663 ac_signal=0
2664
2665 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2666 rm -f -r conftest* confdefs.h
2667
2668 $as_echo "/* confdefs.h */" > confdefs.h
2669
2670 # Predefined preprocessor variables.
2671
2672 cat >>confdefs.h <<_ACEOF
2673 #define PACKAGE_NAME "$PACKAGE_NAME"
2674 _ACEOF
2675
2676 cat >>confdefs.h <<_ACEOF
2677 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2678 _ACEOF
2679
2680 cat >>confdefs.h <<_ACEOF
2681 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2682 _ACEOF
2683
2684 cat >>confdefs.h <<_ACEOF
2685 #define PACKAGE_STRING "$PACKAGE_STRING"
2686 _ACEOF
2687
2688 cat >>confdefs.h <<_ACEOF
2689 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2690 _ACEOF
2691
2692 cat >>confdefs.h <<_ACEOF
2693 #define PACKAGE_URL "$PACKAGE_URL"
2694 _ACEOF
2695
2696
2697 # Let the site file select an alternate cache file if it wants to.
2698 # Prefer an explicitly selected file to automatically selected ones.
2699 ac_site_file1=NONE
2700 ac_site_file2=NONE
2701 if test -n "$CONFIG_SITE"; then
2702 ac_site_file1=$CONFIG_SITE
2703 elif test "x$prefix" != xNONE; then
2704 ac_site_file1=$prefix/share/config.site
2705 ac_site_file2=$prefix/etc/config.site
2706 else
2707 ac_site_file1=$ac_default_prefix/share/config.site
2708 ac_site_file2=$ac_default_prefix/etc/config.site
2709 fi
2710 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2711 do
2712 test "x$ac_site_file" = xNONE && continue
2713 if test -r "$ac_site_file"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2715 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2716 sed 's/^/| /' "$ac_site_file" >&5
2717 . "$ac_site_file"
2718 fi
2719 done
2720
2721 if test -r "$cache_file"; then
2722 # Some versions of bash will fail to source /dev/null (special
2723 # files actually), so we avoid doing that.
2724 if test -f "$cache_file"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2726 $as_echo "$as_me: loading cache $cache_file" >&6;}
2727 case $cache_file in
2728 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2729 *) . "./$cache_file";;
2730 esac
2731 fi
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2734 $as_echo "$as_me: creating cache $cache_file" >&6;}
2735 >$cache_file
2736 fi
2737
2738 gl_header_list="$gl_header_list sys/mman.h"
2739 gl_func_list="$gl_func_list mprotect"
2740 gl_func_list="$gl_func_list memchr"
2741 gl_header_list="$gl_header_list stddef.h"
2742 gl_header_list="$gl_header_list stdint.h"
2743 gl_header_list="$gl_header_list wchar.h"
2744 gl_header_list="$gl_header_list string.h"
2745 # Check that the precious variables saved in the cache have kept the same
2746 # value.
2747 ac_cache_corrupted=false
2748 for ac_var in $ac_precious_vars; do
2749 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2750 eval ac_new_set=\$ac_env_${ac_var}_set
2751 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2752 eval ac_new_val=\$ac_env_${ac_var}_value
2753 case $ac_old_set,$ac_new_set in
2754 set,)
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2756 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2757 ac_cache_corrupted=: ;;
2758 ,set)
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2760 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2761 ac_cache_corrupted=: ;;
2762 ,);;
2763 *)
2764 if test "x$ac_old_val" != "x$ac_new_val"; then
2765 # differences in whitespace do not lead to failure.
2766 ac_old_val_w=`echo x $ac_old_val`
2767 ac_new_val_w=`echo x $ac_new_val`
2768 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2770 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2771 ac_cache_corrupted=:
2772 else
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2774 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2775 eval $ac_var=\$ac_old_val
2776 fi
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2778 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2780 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2781 fi;;
2782 esac
2783 # Pass precious variables to config.status.
2784 if test "$ac_new_set" = set; then
2785 case $ac_new_val in
2786 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2787 *) ac_arg=$ac_var=$ac_new_val ;;
2788 esac
2789 case " $ac_configure_args " in
2790 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2791 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2792 esac
2793 fi
2794 done
2795 if $ac_cache_corrupted; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2799 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2800 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2801 fi
2802 ## -------------------- ##
2803 ## Main body of script. ##
2804 ## -------------------- ##
2805
2806 ac_ext=c
2807 ac_cpp='$CPP $CPPFLAGS'
2808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811
2812
2813
2814
2815
2816 ac_config_headers="$ac_config_headers config.h:config.in"
2817
2818
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2820 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2821 # Check whether --enable-maintainer-mode was given.
2822 if test "${enable_maintainer_mode+set}" = set; then :
2823 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2824 else
2825 USE_MAINTAINER_MODE=no
2826 fi
2827
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2829 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2830 if test $USE_MAINTAINER_MODE = yes; then
2831 MAINTAINER_MODE_TRUE=
2832 MAINTAINER_MODE_FALSE='#'
2833 else
2834 MAINTAINER_MODE_TRUE='#'
2835 MAINTAINER_MODE_FALSE=
2836 fi
2837
2838 MAINT=$MAINTAINER_MODE_TRUE
2839
2840
2841
2842 ac_ext=c
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847 if test -n "$ac_tool_prefix"; then
2848 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if test "${ac_cv_prog_CC+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC="$CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2868 fi
2869 done
2870 done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 CC=$ac_cv_prog_CC
2876 if test -n "$CC"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878 $as_echo "$CC" >&6; }
2879 else
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884
2885 fi
2886 if test -z "$ac_cv_prog_CC"; then
2887 ac_ct_CC=$CC
2888 # Extract the first word of "gcc", so it can be a program name with args.
2889 set dummy gcc; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 if test -n "$ac_ct_CC"; then
2896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905 ac_cv_prog_ac_ct_CC="gcc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2916 if test -n "$ac_ct_CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2918 $as_echo "$ac_ct_CC" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2923
2924 if test "x$ac_ct_CC" = x; then
2925 CC=""
2926 else
2927 case $cross_compiling:$ac_tool_warned in
2928 yes:)
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2932 esac
2933 CC=$ac_ct_CC
2934 fi
2935 else
2936 CC="$ac_cv_prog_CC"
2937 fi
2938
2939 if test -z "$CC"; then
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}cc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if test "${ac_cv_prog_CC+set}" = set; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_CC="${ac_tool_prefix}cc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962 done
2963 done
2964 IFS=$as_save_IFS
2965
2966 fi
2967 fi
2968 CC=$ac_cv_prog_CC
2969 if test -n "$CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2972 else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975 fi
2976
2977
2978 fi
2979 fi
2980 if test -z "$CC"; then
2981 # Extract the first word of "cc", so it can be a program name with args.
2982 set dummy cc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if test "${ac_cv_prog_CC+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991 ac_prog_rejected=no
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3000 ac_prog_rejected=yes
3001 continue
3002 fi
3003 ac_cv_prog_CC="cc"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009 IFS=$as_save_IFS
3010
3011 if test $ac_prog_rejected = yes; then
3012 # We found a bogon in the path, so make sure we never use it.
3013 set dummy $ac_cv_prog_CC
3014 shift
3015 if test $# != 0; then
3016 # We chose a different compiler from the bogus one.
3017 # However, it has the same basename, so the bogon will be chosen
3018 # first if we set CC to just the basename; use the full file name.
3019 shift
3020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3021 fi
3022 fi
3023 fi
3024 fi
3025 CC=$ac_cv_prog_CC
3026 if test -n "$CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028 $as_echo "$CC" >&6; }
3029 else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 fi
3033
3034
3035 fi
3036 if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
3038 for ac_prog in cl.exe
3039 do
3040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if test "${ac_cv_prog_CC+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077 test -n "$CC" && break
3078 done
3079 fi
3080 if test -z "$CC"; then
3081 ac_ct_CC=$CC
3082 for ac_prog in cl.exe
3083 do
3084 # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 if test -n "$ac_ct_CC"; then
3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101 ac_cv_prog_ac_ct_CC="$ac_prog"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105 done
3106 done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112 if test -n "$ac_ct_CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114 $as_echo "$ac_ct_CC" >&6; }
3115 else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121 test -n "$ac_ct_CC" && break
3122 done
3123
3124 if test "x$ac_ct_CC" = x; then
3125 CC=""
3126 else
3127 case $cross_compiling:$ac_tool_warned in
3128 yes:)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3132 esac
3133 CC=$ac_ct_CC
3134 fi
3135 fi
3136
3137 fi
3138
3139
3140 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error "no acceptable C compiler found in \$PATH
3143 See \`config.log' for more details." "$LINENO" 5; }
3144
3145 # Provide some information about the compiler.
3146 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3147 set X $ac_compile
3148 ac_compiler=$2
3149 for ac_option in --version -v -V -qversion; do
3150 { { ac_try="$ac_compiler $ac_option >&5"
3151 case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3158 ac_status=$?
3159 if test -s conftest.err; then
3160 sed '10a\
3161 ... rest of stderr output deleted ...
3162 10q' conftest.err >conftest.er1
3163 cat conftest.er1 >&5
3164 rm -f conftest.er1 conftest.err
3165 fi
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }
3168 done
3169
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3172
3173 int
3174 main ()
3175 {
3176
3177 ;
3178 return 0;
3179 }
3180 _ACEOF
3181 ac_clean_files_save=$ac_clean_files
3182 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3183 # Try to create an executable without -o first, disregard a.out.
3184 # It will help us diagnose broken compilers, and finding out an intuition
3185 # of exeext.
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3187 $as_echo_n "checking for C compiler default output file name... " >&6; }
3188 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3189
3190 # The possible output files:
3191 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3192
3193 ac_rmfiles=
3194 for ac_file in $ac_files
3195 do
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3199 esac
3200 done
3201 rm -f $ac_rmfiles
3202
3203 if { { ac_try="$ac_link_default"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link_default") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3217 # so that the user can short-circuit this test for compilers unknown to
3218 # Autoconf.
3219 for ac_file in $ac_files ''
3220 do
3221 test -f "$ac_file" || continue
3222 case $ac_file in
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3224 ;;
3225 [ab].out )
3226 # We found the default executable, but exeext='' is most
3227 # certainly right.
3228 break;;
3229 *.* )
3230 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3231 then :; else
3232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 fi
3234 # We set ac_cv_exeext here because the later test for it is not
3235 # safe: cross compilers may not add the suffix if given an `-o'
3236 # argument, so we may need to know it at that point already.
3237 # Even if this section looks crufty: it has the advantage of
3238 # actually working.
3239 break;;
3240 * )
3241 break;;
3242 esac
3243 done
3244 test "$ac_cv_exeext" = no && ac_cv_exeext=
3245
3246 else
3247 ac_file=''
3248 fi
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3250 $as_echo "$ac_file" >&6; }
3251 if test -z "$ac_file"; then :
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 { as_fn_set_status 77
3258 as_fn_error "C compiler cannot create executables
3259 See \`config.log' for more details." "$LINENO" 5; }; }
3260 fi
3261 ac_exeext=$ac_cv_exeext
3262
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3266 $as_echo_n "checking whether the C compiler works... " >&6; }
3267 # If not cross compiling, check that we can run a simple program.
3268 if test "$cross_compiling" != yes; then
3269 if { ac_try='./$ac_file'
3270 { { case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_try") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; }; then
3280 cross_compiling=no
3281 else
3282 if test "$cross_compiling" = maybe; then
3283 cross_compiling=yes
3284 else
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error "cannot run C compiled programs.
3288 If you meant to cross compile, use \`--host'.
3289 See \`config.log' for more details." "$LINENO" 5; }
3290 fi
3291 fi
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3295
3296 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3297 ac_clean_files=$ac_clean_files_save
3298 # Check that the compiler produces executables we can run. If not, either
3299 # the compiler is broken, or we cross compile.
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3301 $as_echo_n "checking whether we are cross compiling... " >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3303 $as_echo "$cross_compiling" >&6; }
3304
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3306 $as_echo_n "checking for suffix of executables... " >&6; }
3307 if { { ac_try="$ac_link"
3308 case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_link") 2>&5
3315 ac_status=$?
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
3318 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3319 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3320 # work properly (i.e., refer to `conftest.exe'), while it won't with
3321 # `rm'.
3322 for ac_file in conftest.exe conftest conftest.*; do
3323 test -f "$ac_file" || continue
3324 case $ac_file in
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327 break;;
3328 * ) break;;
3329 esac
3330 done
3331 else
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error "cannot compute suffix of executables: cannot compile and link
3335 See \`config.log' for more details." "$LINENO" 5; }
3336 fi
3337 rm -f conftest$ac_cv_exeext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3339 $as_echo "$ac_cv_exeext" >&6; }
3340
3341 rm -f conftest.$ac_ext
3342 EXEEXT=$ac_cv_exeext
3343 ac_exeext=$EXEEXT
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3345 $as_echo_n "checking for suffix of object files... " >&6; }
3346 if test "${ac_cv_objext+set}" = set; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351
3352 int
3353 main ()
3354 {
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.o conftest.obj
3361 if { { ac_try="$ac_compile"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_compile") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; then :
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3377 break;;
3378 esac
3379 done
3380 else
3381 $as_echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error "cannot compute suffix of object files: cannot compile
3387 See \`config.log' for more details." "$LINENO" 5; }
3388 fi
3389 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3392 $as_echo "$ac_cv_objext" >&6; }
3393 OBJEXT=$ac_cv_objext
3394 ac_objext=$OBJEXT
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3396 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3397 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3402
3403 int
3404 main ()
3405 {
3406 #ifndef __GNUC__
3407 choke me
3408 #endif
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_compiler_gnu=yes
3416 else
3417 ac_compiler_gnu=no
3418 fi
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3421
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3424 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3425 if test $ac_compiler_gnu = yes; then
3426 GCC=yes
3427 else
3428 GCC=
3429 fi
3430 ac_test_CFLAGS=${CFLAGS+set}
3431 ac_save_CFLAGS=$CFLAGS
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3433 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3434 if test "${ac_cv_prog_cc_g+set}" = set; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 ac_save_c_werror_flag=$ac_c_werror_flag
3438 ac_c_werror_flag=yes
3439 ac_cv_prog_cc_g=no
3440 CFLAGS="-g"
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443
3444 int
3445 main ()
3446 {
3447
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_cv_prog_cc_g=yes
3454 else
3455 CFLAGS=""
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458
3459 int
3460 main ()
3461 {
3462
3463 ;
3464 return 0;
3465 }
3466 _ACEOF
3467 if ac_fn_c_try_compile "$LINENO"; then :
3468
3469 else
3470 ac_c_werror_flag=$ac_save_c_werror_flag
3471 CFLAGS="-g"
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474
3475 int
3476 main ()
3477 {
3478
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484 ac_cv_prog_cc_g=yes
3485 fi
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 fi
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_c_werror_flag=$ac_save_c_werror_flag
3492 fi
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3494 $as_echo "$ac_cv_prog_cc_g" >&6; }
3495 if test "$ac_test_CFLAGS" = set; then
3496 CFLAGS=$ac_save_CFLAGS
3497 elif test $ac_cv_prog_cc_g = yes; then
3498 if test "$GCC" = yes; then
3499 CFLAGS="-g -O2"
3500 else
3501 CFLAGS="-g"
3502 fi
3503 else
3504 if test "$GCC" = yes; then
3505 CFLAGS="-O2"
3506 else
3507 CFLAGS=
3508 fi
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3511 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3512 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 ac_cv_prog_cc_c89=no
3516 ac_save_CC=$CC
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519 #include <stdarg.h>
3520 #include <stdio.h>
3521 #include <sys/types.h>
3522 #include <sys/stat.h>
3523 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3524 struct buf { int x; };
3525 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3526 static char *e (p, i)
3527 char **p;
3528 int i;
3529 {
3530 return p[i];
3531 }
3532 static char *f (char * (*g) (char **, int), char **p, ...)
3533 {
3534 char *s;
3535 va_list v;
3536 va_start (v,p);
3537 s = g (p, va_arg (v,int));
3538 va_end (v);
3539 return s;
3540 }
3541
3542 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3543 function prototypes and stuff, but not '\xHH' hex character constants.
3544 These don't provoke an error unfortunately, instead are silently treated
3545 as 'x'. The following induces an error, until -std is added to get
3546 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3547 array size at least. It's necessary to write '\x00'==0 to get something
3548 that's true only with -std. */
3549 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3550
3551 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3552 inside strings and character constants. */
3553 #define FOO(x) 'x'
3554 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3555
3556 int test (int i, double x);
3557 struct s1 {int (*f) (int a);};
3558 struct s2 {int (*f) (double a);};
3559 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3560 int argc;
3561 char **argv;
3562 int
3563 main ()
3564 {
3565 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3566 ;
3567 return 0;
3568 }
3569 _ACEOF
3570 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3571 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3572 do
3573 CC="$ac_save_CC $ac_arg"
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_c89=$ac_arg
3576 fi
3577 rm -f core conftest.err conftest.$ac_objext
3578 test "x$ac_cv_prog_cc_c89" != "xno" && break
3579 done
3580 rm -f conftest.$ac_ext
3581 CC=$ac_save_CC
3582
3583 fi
3584 # AC_CACHE_VAL
3585 case "x$ac_cv_prog_cc_c89" in
3586 x)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3588 $as_echo "none needed" >&6; } ;;
3589 xno)
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3591 $as_echo "unsupported" >&6; } ;;
3592 *)
3593 CC="$CC $ac_cv_prog_cc_c89"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3595 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3596 esac
3597 if test "x$ac_cv_prog_cc_c89" != xno; then :
3598
3599 fi
3600
3601 ac_ext=c
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606
3607 ac_aux_dir=
3608 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3609 for ac_t in install-sh install.sh shtool; do
3610 if test -f "$ac_dir/$ac_t"; then
3611 ac_aux_dir=$ac_dir
3612 ac_install_sh="$ac_aux_dir/$ac_t -c"
3613 break 2
3614 fi
3615 done
3616 done
3617 if test -z "$ac_aux_dir"; then
3618 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3619 fi
3620
3621 # These three variables are undocumented and unsupported,
3622 # and are intended to be withdrawn in a future Autoconf release.
3623 # They can cause serious problems if a builder's source tree is in a directory
3624 # whose full name contains unusual characters.
3625 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3626 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3627 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3628
3629
3630 # Make sure we can run config.sub.
3631 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3632 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3633
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3635 $as_echo_n "checking build system type... " >&6; }
3636 if test "${ac_cv_build+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 ac_build_alias=$build_alias
3640 test "x$ac_build_alias" = x &&
3641 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3642 test "x$ac_build_alias" = x &&
3643 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3644 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3645 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3646
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3649 $as_echo "$ac_cv_build" >&6; }
3650 case $ac_cv_build in
3651 *-*-*) ;;
3652 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3653 esac
3654 build=$ac_cv_build
3655 ac_save_IFS=$IFS; IFS='-'
3656 set x $ac_cv_build
3657 shift
3658 build_cpu=$1
3659 build_vendor=$2
3660 shift; shift
3661 # Remember, the first character of IFS is used to create $*,
3662 # except with old shells:
3663 build_os=$*
3664 IFS=$ac_save_IFS
3665 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3666
3667
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3669 $as_echo_n "checking host system type... " >&6; }
3670 if test "${ac_cv_host+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 if test "x$host_alias" = x; then
3674 ac_cv_host=$ac_cv_build
3675 else
3676 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3677 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3678 fi
3679
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3682 $as_echo "$ac_cv_host" >&6; }
3683 case $ac_cv_host in
3684 *-*-*) ;;
3685 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3686 esac
3687 host=$ac_cv_host
3688 ac_save_IFS=$IFS; IFS='-'
3689 set x $ac_cv_host
3690 shift
3691 host_cpu=$1
3692 host_vendor=$2
3693 shift; shift
3694 # Remember, the first character of IFS is used to create $*,
3695 # except with old shells:
3696 host_os=$*
3697 IFS=$ac_save_IFS
3698 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3699
3700
3701
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3708 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3709 # On Suns, sometimes $CPP names a directory.
3710 if test -n "$CPP" && test -d "$CPP"; then
3711 CPP=
3712 fi
3713 if test -z "$CPP"; then
3714 if test "${ac_cv_prog_CPP+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 # Double quotes because CPP needs to be expanded
3718 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3719 do
3720 ac_preproc_ok=false
3721 for ac_c_preproc_warn_flag in '' yes
3722 do
3723 # Use a header file that comes with gcc, so configuring glibc
3724 # with a fresh cross-compiler works.
3725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3726 # <limits.h> exists even on freestanding compilers.
3727 # On the NeXT, cc -E runs the code through the compiler's parser,
3728 # not just through cpp. "Syntax error" is here to catch this case.
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731 #ifdef __STDC__
3732 # include <limits.h>
3733 #else
3734 # include <assert.h>
3735 #endif
3736 Syntax error
3737 _ACEOF
3738 if ac_fn_c_try_cpp "$LINENO"; then :
3739
3740 else
3741 # Broken: fails on valid input.
3742 continue
3743 fi
3744 rm -f conftest.err conftest.$ac_ext
3745
3746 # OK, works on sane cases. Now check whether nonexistent headers
3747 # can be detected and how.
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750 #include <ac_nonexistent.h>
3751 _ACEOF
3752 if ac_fn_c_try_cpp "$LINENO"; then :
3753 # Broken: success on invalid input.
3754 continue
3755 else
3756 # Passes both tests.
3757 ac_preproc_ok=:
3758 break
3759 fi
3760 rm -f conftest.err conftest.$ac_ext
3761
3762 done
3763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3764 rm -f conftest.err conftest.$ac_ext
3765 if $ac_preproc_ok; then :
3766 break
3767 fi
3768
3769 done
3770 ac_cv_prog_CPP=$CPP
3771
3772 fi
3773 CPP=$ac_cv_prog_CPP
3774 else
3775 ac_cv_prog_CPP=$CPP
3776 fi
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3778 $as_echo "$CPP" >&6; }
3779 ac_preproc_ok=false
3780 for ac_c_preproc_warn_flag in '' yes
3781 do
3782 # Use a header file that comes with gcc, so configuring glibc
3783 # with a fresh cross-compiler works.
3784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3785 # <limits.h> exists even on freestanding compilers.
3786 # On the NeXT, cc -E runs the code through the compiler's parser,
3787 # not just through cpp. "Syntax error" is here to catch this case.
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790 #ifdef __STDC__
3791 # include <limits.h>
3792 #else
3793 # include <assert.h>
3794 #endif
3795 Syntax error
3796 _ACEOF
3797 if ac_fn_c_try_cpp "$LINENO"; then :
3798
3799 else
3800 # Broken: fails on valid input.
3801 continue
3802 fi
3803 rm -f conftest.err conftest.$ac_ext
3804
3805 # OK, works on sane cases. Now check whether nonexistent headers
3806 # can be detected and how.
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3809 #include <ac_nonexistent.h>
3810 _ACEOF
3811 if ac_fn_c_try_cpp "$LINENO"; then :
3812 # Broken: success on invalid input.
3813 continue
3814 else
3815 # Passes both tests.
3816 ac_preproc_ok=:
3817 break
3818 fi
3819 rm -f conftest.err conftest.$ac_ext
3820
3821 done
3822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823 rm -f conftest.err conftest.$ac_ext
3824 if $ac_preproc_ok; then :
3825
3826 else
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3830 See \`config.log' for more details." "$LINENO" 5; }
3831 fi
3832
3833 ac_ext=c
3834 ac_cpp='$CPP $CPPFLAGS'
3835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838
3839
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3841 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3842 if test "${ac_cv_path_GREP+set}" = set; then :
3843 $as_echo_n "(cached) " >&6
3844 else
3845 if test -z "$GREP"; then
3846 ac_path_GREP_found=false
3847 # Loop through the user's path and test for each of PROGNAME-LIST
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3850 do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_prog in grep ggrep; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3856 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3857 # Check for GNU ac_path_GREP and select it if it is found.
3858 # Check for GNU $ac_path_GREP
3859 case `"$ac_path_GREP" --version 2>&1` in
3860 *GNU*)
3861 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3862 *)
3863 ac_count=0
3864 $as_echo_n 0123456789 >"conftest.in"
3865 while :
3866 do
3867 cat "conftest.in" "conftest.in" >"conftest.tmp"
3868 mv "conftest.tmp" "conftest.in"
3869 cp "conftest.in" "conftest.nl"
3870 $as_echo 'GREP' >> "conftest.nl"
3871 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3873 as_fn_arith $ac_count + 1 && ac_count=$as_val
3874 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3875 # Best one so far, save it but keep looking for a better one
3876 ac_cv_path_GREP="$ac_path_GREP"
3877 ac_path_GREP_max=$ac_count
3878 fi
3879 # 10*(2^10) chars as input seems more than enough
3880 test $ac_count -gt 10 && break
3881 done
3882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3883 esac
3884
3885 $ac_path_GREP_found && break 3
3886 done
3887 done
3888 done
3889 IFS=$as_save_IFS
3890 if test -z "$ac_cv_path_GREP"; then
3891 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3892 fi
3893 else
3894 ac_cv_path_GREP=$GREP
3895 fi
3896
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3899 $as_echo "$ac_cv_path_GREP" >&6; }
3900 GREP="$ac_cv_path_GREP"
3901
3902
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3904 $as_echo_n "checking for egrep... " >&6; }
3905 if test "${ac_cv_path_EGREP+set}" = set; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3909 then ac_cv_path_EGREP="$GREP -E"
3910 else
3911 if test -z "$EGREP"; then
3912 ac_path_EGREP_found=false
3913 # Loop through the user's path and test for each of PROGNAME-LIST
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_prog in egrep; do
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3922 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3923 # Check for GNU ac_path_EGREP and select it if it is found.
3924 # Check for GNU $ac_path_EGREP
3925 case `"$ac_path_EGREP" --version 2>&1` in
3926 *GNU*)
3927 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3928 *)
3929 ac_count=0
3930 $as_echo_n 0123456789 >"conftest.in"
3931 while :
3932 do
3933 cat "conftest.in" "conftest.in" >"conftest.tmp"
3934 mv "conftest.tmp" "conftest.in"
3935 cp "conftest.in" "conftest.nl"
3936 $as_echo 'EGREP' >> "conftest.nl"
3937 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939 as_fn_arith $ac_count + 1 && ac_count=$as_val
3940 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3941 # Best one so far, save it but keep looking for a better one
3942 ac_cv_path_EGREP="$ac_path_EGREP"
3943 ac_path_EGREP_max=$ac_count
3944 fi
3945 # 10*(2^10) chars as input seems more than enough
3946 test $ac_count -gt 10 && break
3947 done
3948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949 esac
3950
3951 $ac_path_EGREP_found && break 3
3952 done
3953 done
3954 done
3955 IFS=$as_save_IFS
3956 if test -z "$ac_cv_path_EGREP"; then
3957 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3958 fi
3959 else
3960 ac_cv_path_EGREP=$EGREP
3961 fi
3962
3963 fi
3964 fi
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3966 $as_echo "$ac_cv_path_EGREP" >&6; }
3967 EGREP="$ac_cv_path_EGREP"
3968
3969
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3971 $as_echo_n "checking for ANSI C header files... " >&6; }
3972 if test "${ac_cv_header_stdc+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977 #include <stdlib.h>
3978 #include <stdarg.h>
3979 #include <string.h>
3980 #include <float.h>
3981
3982 int
3983 main ()
3984 {
3985
3986 ;
3987 return 0;
3988 }
3989 _ACEOF
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991 ac_cv_header_stdc=yes
3992 else
3993 ac_cv_header_stdc=no
3994 fi
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996
3997 if test $ac_cv_header_stdc = yes; then
3998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001 #include <string.h>
4002
4003 _ACEOF
4004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4005 $EGREP "memchr" >/dev/null 2>&1; then :
4006
4007 else
4008 ac_cv_header_stdc=no
4009 fi
4010 rm -f conftest*
4011
4012 fi
4013
4014 if test $ac_cv_header_stdc = yes; then
4015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018 #include <stdlib.h>
4019
4020 _ACEOF
4021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4022 $EGREP "free" >/dev/null 2>&1; then :
4023
4024 else
4025 ac_cv_header_stdc=no
4026 fi
4027 rm -f conftest*
4028
4029 fi
4030
4031 if test $ac_cv_header_stdc = yes; then
4032 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4033 if test "$cross_compiling" = yes; then :
4034 :
4035 else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #include <ctype.h>
4039 #include <stdlib.h>
4040 #if ((' ' & 0x0FF) == 0x020)
4041 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4042 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4043 #else
4044 # define ISLOWER(c) \
4045 (('a' <= (c) && (c) <= 'i') \
4046 || ('j' <= (c) && (c) <= 'r') \
4047 || ('s' <= (c) && (c) <= 'z'))
4048 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4049 #endif
4050
4051 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4052 int
4053 main ()
4054 {
4055 int i;
4056 for (i = 0; i < 256; i++)
4057 if (XOR (islower (i), ISLOWER (i))
4058 || toupper (i) != TOUPPER (i))
4059 return 2;
4060 return 0;
4061 }
4062 _ACEOF
4063 if ac_fn_c_try_run "$LINENO"; then :
4064
4065 else
4066 ac_cv_header_stdc=no
4067 fi
4068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4069 conftest.$ac_objext conftest.beam conftest.$ac_ext
4070 fi
4071
4072 fi
4073 fi
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4075 $as_echo "$ac_cv_header_stdc" >&6; }
4076 if test $ac_cv_header_stdc = yes; then
4077
4078 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4079
4080 fi
4081
4082 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4083 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4084 inttypes.h stdint.h unistd.h
4085 do :
4086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4087 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4088 "
4089 eval as_val=\$$as_ac_Header
4090 if test "x$as_val" = x""yes; then :
4091 cat >>confdefs.h <<_ACEOF
4092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4093 _ACEOF
4094
4095 fi
4096
4097 done
4098
4099
4100
4101
4102
4103 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4104 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4105 MINIX=yes
4106 else
4107 MINIX=
4108 fi
4109
4110
4111 if test "$MINIX" = yes; then
4112
4113 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4114
4115
4116 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4117
4118
4119 $as_echo "#define _MINIX 1" >>confdefs.h
4120
4121 fi
4122
4123 case "$host_os" in
4124 hpux*)
4125
4126 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4127
4128 ;;
4129 esac
4130
4131
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4133 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4134 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139
4140 # define __EXTENSIONS__ 1
4141 $ac_includes_default
4142 int
4143 main ()
4144 {
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_safe_to_define___extensions__=yes
4152 else
4153 ac_cv_safe_to_define___extensions__=no
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4158 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4159 test $ac_cv_safe_to_define___extensions__ = yes &&
4160 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4161
4162 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4163
4164 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4165
4166 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4167
4168 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4169
4170
4171 if test -n "$ac_tool_prefix"; then
4172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4173 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 if test -n "$RANLIB"; then
4180 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4192 fi
4193 done
4194 done
4195 IFS=$as_save_IFS
4196
4197 fi
4198 fi
4199 RANLIB=$ac_cv_prog_RANLIB
4200 if test -n "$RANLIB"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4202 $as_echo "$RANLIB" >&6; }
4203 else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206 fi
4207
4208
4209 fi
4210 if test -z "$ac_cv_prog_RANLIB"; then
4211 ac_ct_RANLIB=$RANLIB
4212 # Extract the first word of "ranlib", so it can be a program name with args.
4213 set dummy ranlib; ac_word=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 if test -n "$ac_ct_RANLIB"; then
4220 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229 ac_cv_prog_ac_ct_RANLIB="ranlib"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4232 fi
4233 done
4234 done
4235 IFS=$as_save_IFS
4236
4237 fi
4238 fi
4239 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4240 if test -n "$ac_ct_RANLIB"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4242 $as_echo "$ac_ct_RANLIB" >&6; }
4243 else
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4246 fi
4247
4248 if test "x$ac_ct_RANLIB" = x; then
4249 RANLIB=":"
4250 else
4251 case $cross_compiling:$ac_tool_warned in
4252 yes:)
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255 ac_tool_warned=yes ;;
4256 esac
4257 RANLIB=$ac_ct_RANLIB
4258 fi
4259 else
4260 RANLIB="$ac_cv_prog_RANLIB"
4261 fi
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271 # Code from module arg-nonnull:
4272 # Code from module c++defs:
4273 # Code from module extensions:
4274
4275 # Code from module include_next:
4276 # Code from module memchr:
4277 # Code from module memmem:
4278 # Code from module memmem-simple:
4279 # Code from module multiarch:
4280 # Code from module stddef:
4281 # Code from module stdint:
4282 # Code from module string:
4283 # Code from module warn-on-use:
4284 # Code from module wchar:
4285
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4287 $as_echo_n "checking target system type... " >&6; }
4288 if test "${ac_cv_target+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if test "x$target_alias" = x; then
4292 ac_cv_target=$ac_cv_host
4293 else
4294 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4295 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4296 fi
4297
4298 fi
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4300 $as_echo "$ac_cv_target" >&6; }
4301 case $ac_cv_target in
4302 *-*-*) ;;
4303 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4304 esac
4305 target=$ac_cv_target
4306 ac_save_IFS=$IFS; IFS='-'
4307 set x $ac_cv_target
4308 shift
4309 target_cpu=$1
4310 target_vendor=$2
4311 shift; shift
4312 # Remember, the first character of IFS is used to create $*,
4313 # except with old shells:
4314 target_os=$*
4315 IFS=$ac_save_IFS
4316 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4317
4318
4319 # The aliases save the names the user supplied, while $host etc.
4320 # will get canonicalized.
4321 test -n "$target_alias" &&
4322 test "$program_prefix$program_suffix$program_transform_name" = \
4323 NONENONEs,x,x, &&
4324 program_prefix=${target_alias}-
4325
4326 # The tests for host and target for $enable_largefile require
4327 # canonical names.
4328
4329
4330
4331 # As the $enable_largefile decision depends on --enable-plugins we must set it
4332 # even in directories otherwise not depending on the $plugins option.
4333
4334
4335 # Check whether --enable-plugins was given.
4336 if test "${enable_plugins+set}" = set; then :
4337 enableval=$enable_plugins; case "${enableval}" in
4338 yes | "") plugins=yes ;;
4339 no) plugins=no ;;
4340 *) plugins=yes ;;
4341 esac
4342 else
4343 plugins=no
4344 fi
4345
4346
4347
4348 case "${host}" in
4349 sparc-*-solaris*|i[3-7]86-*-solaris*)
4350 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4351 # are mutually exclusive; and without procfs support, the bfd/ elf module
4352 # cannot provide certain routines such as elfcore_write_prpsinfo
4353 # or elfcore_write_prstatus. So unless the user explicitly requested
4354 # large-file support through the --enable-largefile switch, disable
4355 # large-file support in favor of procfs support.
4356 test "${target}" = "${host}" -a "x$plugins" = xno \
4357 && : ${enable_largefile="no"}
4358 ;;
4359 esac
4360
4361 # Check whether --enable-largefile was given.
4362 if test "${enable_largefile+set}" = set; then :
4363 enableval=$enable_largefile;
4364 fi
4365
4366 if test "$enable_largefile" != no; then
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4369 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4370 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 ac_cv_sys_largefile_CC=no
4374 if test "$GCC" != yes; then
4375 ac_save_CC=$CC
4376 while :; do
4377 # IRIX 6.2 and later do not support large files by default,
4378 # so use the C compiler's -n32 option if that helps.
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381 #include <sys/types.h>
4382 /* Check that off_t can represent 2**63 - 1 correctly.
4383 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4384 since some C++ compilers masquerading as C compilers
4385 incorrectly reject 9223372036854775807. */
4386 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4387 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4388 && LARGE_OFF_T % 2147483647 == 1)
4389 ? 1 : -1];
4390 int
4391 main ()
4392 {
4393
4394 ;
4395 return 0;
4396 }
4397 _ACEOF
4398 if ac_fn_c_try_compile "$LINENO"; then :
4399 break
4400 fi
4401 rm -f core conftest.err conftest.$ac_objext
4402 CC="$CC -n32"
4403 if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_cv_sys_largefile_CC=' -n32'; break
4405 fi
4406 rm -f core conftest.err conftest.$ac_objext
4407 break
4408 done
4409 CC=$ac_save_CC
4410 rm -f conftest.$ac_ext
4411 fi
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4414 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4415 if test "$ac_cv_sys_largefile_CC" != no; then
4416 CC=$CC$ac_cv_sys_largefile_CC
4417 fi
4418
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4420 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4421 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 while :; do
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427 #include <sys/types.h>
4428 /* Check that off_t can represent 2**63 - 1 correctly.
4429 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4430 since some C++ compilers masquerading as C compilers
4431 incorrectly reject 9223372036854775807. */
4432 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4433 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4434 && LARGE_OFF_T % 2147483647 == 1)
4435 ? 1 : -1];
4436 int
4437 main ()
4438 {
4439
4440 ;
4441 return 0;
4442 }
4443 _ACEOF
4444 if ac_fn_c_try_compile "$LINENO"; then :
4445 ac_cv_sys_file_offset_bits=no; break
4446 fi
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #define _FILE_OFFSET_BITS 64
4451 #include <sys/types.h>
4452 /* Check that off_t can represent 2**63 - 1 correctly.
4453 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4454 since some C++ compilers masquerading as C compilers
4455 incorrectly reject 9223372036854775807. */
4456 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4457 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4458 && LARGE_OFF_T % 2147483647 == 1)
4459 ? 1 : -1];
4460 int
4461 main ()
4462 {
4463
4464 ;
4465 return 0;
4466 }
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"; then :
4469 ac_cv_sys_file_offset_bits=64; break
4470 fi
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 ac_cv_sys_file_offset_bits=unknown
4473 break
4474 done
4475 fi
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4477 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4478 case $ac_cv_sys_file_offset_bits in #(
4479 no | unknown) ;;
4480 *)
4481 cat >>confdefs.h <<_ACEOF
4482 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4483 _ACEOF
4484 ;;
4485 esac
4486 rm -rf conftest*
4487 if test $ac_cv_sys_file_offset_bits = unknown; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4489 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4490 if test "${ac_cv_sys_large_files+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 while :; do
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #include <sys/types.h>
4497 /* Check that off_t can represent 2**63 - 1 correctly.
4498 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4499 since some C++ compilers masquerading as C compilers
4500 incorrectly reject 9223372036854775807. */
4501 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4502 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4503 && LARGE_OFF_T % 2147483647 == 1)
4504 ? 1 : -1];
4505 int
4506 main ()
4507 {
4508
4509 ;
4510 return 0;
4511 }
4512 _ACEOF
4513 if ac_fn_c_try_compile "$LINENO"; then :
4514 ac_cv_sys_large_files=no; break
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 #define _LARGE_FILES 1
4520 #include <sys/types.h>
4521 /* Check that off_t can represent 2**63 - 1 correctly.
4522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4523 since some C++ compilers masquerading as C compilers
4524 incorrectly reject 9223372036854775807. */
4525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4527 && LARGE_OFF_T % 2147483647 == 1)
4528 ? 1 : -1];
4529 int
4530 main ()
4531 {
4532
4533 ;
4534 return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538 ac_cv_sys_large_files=1; break
4539 fi
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 ac_cv_sys_large_files=unknown
4542 break
4543 done
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4546 $as_echo "$ac_cv_sys_large_files" >&6; }
4547 case $ac_cv_sys_large_files in #(
4548 no | unknown) ;;
4549 *)
4550 cat >>confdefs.h <<_ACEOF
4551 #define _LARGE_FILES $ac_cv_sys_large_files
4552 _ACEOF
4553 ;;
4554 esac
4555 rm -rf conftest*
4556 fi
4557 fi
4558
4559
4560
4561
4562
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4564 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4565 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 am_cv_prog_cc_stdc=no
4569 ac_save_CC="$CC"
4570 # Don't try gcc -ansi; that turns off useful extensions and
4571 # breaks some systems' header files.
4572 # AIX -qlanglvl=ansi
4573 # Ultrix and OSF/1 -std1
4574 # HP-UX 10.20 and later -Ae
4575 # HP-UX older versions -Aa -D_HPUX_SOURCE
4576 # SVR4 -Xc -D__EXTENSIONS__
4577 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4578 do
4579 CC="$ac_save_CC $ac_arg"
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4582 #include <stdarg.h>
4583 #include <stdio.h>
4584 #include <sys/types.h>
4585 #include <sys/stat.h>
4586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4587 struct buf { int x; };
4588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4589 static char *e (p, i)
4590 char **p;
4591 int i;
4592 {
4593 return p[i];
4594 }
4595 static char *f (char * (*g) (char **, int), char **p, ...)
4596 {
4597 char *s;
4598 va_list v;
4599 va_start (v,p);
4600 s = g (p, va_arg (v,int));
4601 va_end (v);
4602 return s;
4603 }
4604 int test (int i, double x);
4605 struct s1 {int (*f) (int a);};
4606 struct s2 {int (*f) (double a);};
4607 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4608 int argc;
4609 char **argv;
4610
4611 int
4612 main ()
4613 {
4614
4615 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4616
4617 ;
4618 return 0;
4619 }
4620 _ACEOF
4621 if ac_fn_c_try_compile "$LINENO"; then :
4622 am_cv_prog_cc_stdc="$ac_arg"; break
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 done
4626 CC="$ac_save_CC"
4627
4628 fi
4629
4630 if test -z "$am_cv_prog_cc_stdc"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4632 $as_echo "none needed" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4635 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4636 fi
4637 case "x$am_cv_prog_cc_stdc" in
4638 x|xno) ;;
4639 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4640 esac
4641
4642
4643 ac_aux_dir=
4644 for ac_dir in .. "$srcdir"/..; do
4645 for ac_t in install-sh install.sh shtool; do
4646 if test -f "$ac_dir/$ac_t"; then
4647 ac_aux_dir=$ac_dir
4648 ac_install_sh="$ac_aux_dir/$ac_t -c"
4649 break 2
4650 fi
4651 done
4652 done
4653 if test -z "$ac_aux_dir"; then
4654 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4655 fi
4656
4657 # These three variables are undocumented and unsupported,
4658 # and are intended to be withdrawn in a future Autoconf release.
4659 # They can cause serious problems if a builder's source tree is in a directory
4660 # whose full name contains unusual characters.
4661 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4662 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4663 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4664
4665
4666
4667
4668 # Dependency checking.
4669 rm -rf .tst 2>/dev/null
4670 mkdir .tst 2>/dev/null
4671 if test -d .tst; then
4672 am__leading_dot=.
4673 else
4674 am__leading_dot=_
4675 fi
4676 rmdir .tst 2>/dev/null
4677
4678 DEPDIR="${am__leading_dot}deps"
4679
4680 ac_config_commands="$ac_config_commands depdir"
4681
4682
4683 depcc="$CC" am_compiler_list=
4684
4685 am_depcomp=$ac_aux_dir/depcomp
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4687 $as_echo_n "checking dependency style of $depcc... " >&6; }
4688 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -f "$am_depcomp"; then
4692 # We make a subdir and do the tests there. Otherwise we can end up
4693 # making bogus files that we don't know about and never remove. For
4694 # instance it was reported that on HP-UX the gcc test will end up
4695 # making a dummy file named `D' -- because `-MD' means `put the output
4696 # in D'.
4697 mkdir conftest.dir
4698 # Copy depcomp to subdir because otherwise we won't find it if we're
4699 # using a relative directory.
4700 cp "$am_depcomp" conftest.dir
4701 cd conftest.dir
4702 # We will build objects and dependencies in a subdirectory because
4703 # it helps to detect inapplicable dependency modes. For instance
4704 # both Tru64's cc and ICC support -MD to output dependencies as a
4705 # side effect of compilation, but ICC will put the dependencies in
4706 # the current directory while Tru64 will put them in the object
4707 # directory.
4708 mkdir sub
4709
4710 am_cv_CC_dependencies_compiler_type=none
4711 if test "$am_compiler_list" = ""; then
4712 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4713 fi
4714 for depmode in $am_compiler_list; do
4715 if test $depmode = none; then break; fi
4716
4717 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4718 # Setup a source with many dependencies, because some compilers
4719 # like to wrap large dependency lists on column 80 (with \), and
4720 # we should not choose a depcomp mode which is confused by this.
4721 #
4722 # We need to recreate these files for each test, as the compiler may
4723 # overwrite some of them when testing with obscure command lines.
4724 # This happens at least with the AIX C compiler.
4725 : > sub/conftest.c
4726 for i in 1 2 3 4 5 6; do
4727 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4728 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4729 # Solaris 8's {/usr,}/bin/sh.
4730 touch sub/conftst$i.h
4731 done
4732 echo "include sub/conftest.Po" > confmf
4733
4734 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4735 # mode. It turns out that the SunPro C++ compiler does not properly
4736 # handle `-M -o', and we need to detect this.
4737 depcmd="depmode=$depmode \
4738 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4739 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4740 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4741 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4742 if env $depcmd > conftest.err 2>&1 &&
4743 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4744 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4745 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4746 # icc doesn't choke on unknown options, it will just issue warnings
4747 # or remarks (even with -Werror). So we grep stderr for any message
4748 # that says an option was ignored or not supported.
4749 # When given -MP, icc 7.0 and 7.1 complain thusly:
4750 # icc: Command line warning: ignoring option '-M'; no argument required
4751 # The diagnosis changed in icc 8.0:
4752 # icc: Command line remark: option '-MP' not supported
4753 if (grep 'ignoring option' conftest.err ||
4754 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4755 am_cv_CC_dependencies_compiler_type=$depmode
4756 $as_echo "$as_me:$LINENO: success" >&5
4757 break
4758 fi
4759 fi
4760 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4761 sed -e 's/^/| /' < conftest.err >&5
4762 done
4763
4764 cd ..
4765 rm -rf conftest.dir
4766 else
4767 am_cv_CC_dependencies_compiler_type=none
4768 fi
4769
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4772 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4773 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4774 then as_fn_error "no usable dependency style found" "$LINENO" 5
4775 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4776
4777 fi
4778
4779
4780 # Check for the 'make' the user wants to use.
4781 for ac_prog in make
4782 do
4783 # Extract the first word of "$ac_prog", so it can be a program name with args.
4784 set dummy $ac_prog; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_MAKE+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 if test -n "$MAKE"; then
4791 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_MAKE="$ac_prog"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4803 fi
4804 done
4805 done
4806 IFS=$as_save_IFS
4807
4808 fi
4809 fi
4810 MAKE=$ac_cv_prog_MAKE
4811 if test -n "$MAKE"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4813 $as_echo "$MAKE" >&6; }
4814 else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4817 fi
4818
4819
4820 test -n "$MAKE" && break
4821 done
4822
4823 MAKE_IS_GNU=
4824 case "`$MAKE --version 2>&1 | sed 1q`" in
4825 *GNU*)
4826 MAKE_IS_GNU=yes
4827 ;;
4828 esac
4829 if test "$MAKE_IS_GNU" = yes; then
4830 GMAKE_TRUE=
4831 GMAKE_FALSE='#'
4832 else
4833 GMAKE_TRUE='#'
4834 GMAKE_FALSE=
4835 fi
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4838 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4839 set x ${MAKE-make}
4840 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4841 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 cat >conftest.make <<\_ACEOF
4845 SHELL = /bin/sh
4846 all:
4847 @echo '@@@%%%=$(MAKE)=@@@%%%'
4848 _ACEOF
4849 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4850 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4851 *@@@%%%=?*=@@@%%%*)
4852 eval ac_cv_prog_make_${ac_make}_set=yes;;
4853 *)
4854 eval ac_cv_prog_make_${ac_make}_set=no;;
4855 esac
4856 rm -f conftest.make
4857 fi
4858 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4860 $as_echo "yes" >&6; }
4861 SET_MAKE=
4862 else
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 $as_echo "no" >&6; }
4865 SET_MAKE="MAKE=${MAKE-make}"
4866 fi
4867
4868
4869
4870 CONFIG_OBS=
4871 CONFIG_DEPS=
4872 CONFIG_SRCS=
4873 ENABLE_CFLAGS=
4874
4875 CONFIG_ALL=
4876 CONFIG_CLEAN=
4877 CONFIG_INSTALL=
4878 CONFIG_UNINSTALL=
4879
4880 # If we haven't got the data from the intl directory,
4881 # assume NLS is disabled.
4882 USE_NLS=no
4883 LIBINTL=
4884 LIBINTL_DEP=
4885 INCINTL=
4886 XGETTEXT=
4887 GMSGFMT=
4888 POSUB=
4889
4890 if test -f ../intl/config.intl; then
4891 . ../intl/config.intl
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4894 $as_echo_n "checking whether NLS is requested... " >&6; }
4895 if test x"$USE_NLS" != xyes; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4900 $as_echo "yes" >&6; }
4901
4902 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4906 $as_echo_n "checking for catalogs to be installed... " >&6; }
4907 # Look for .po and .gmo files in the source directory.
4908 CATALOGS=
4909 XLINGUAS=
4910 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4911 # If there aren't any .gmo files the shell will give us the
4912 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4913 # weeded out.
4914 case "$cat" in *\**)
4915 continue;;
4916 esac
4917 # The quadruple backslash is collapsed to a double backslash
4918 # by the backticks, then collapsed again by the double quotes,
4919 # leaving us with one backslash in the sed expression (right
4920 # before the dot that mustn't act as a wildcard).
4921 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4922 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4923 # The user is allowed to set LINGUAS to a list of languages to
4924 # install catalogs for. If it's empty that means "all of them."
4925 if test "x$LINGUAS" = x; then
4926 CATALOGS="$CATALOGS $cat"
4927 XLINGUAS="$XLINGUAS $lang"
4928 else
4929 case "$LINGUAS" in *$lang*)
4930 CATALOGS="$CATALOGS $cat"
4931 XLINGUAS="$XLINGUAS $lang"
4932 ;;
4933 esac
4934 fi
4935 done
4936 LINGUAS="$XLINGUAS"
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4938 $as_echo "$LINGUAS" >&6; }
4939
4940
4941 DATADIRNAME=share
4942
4943 INSTOBJEXT=.mo
4944
4945 GENCAT=gencat
4946
4947 CATOBJEXT=.gmo
4948
4949 fi
4950
4951 localedir='${datadir}/locale'
4952
4953
4954 if test x"$USE_NLS" = xyes; then
4955 CONFIG_ALL="$CONFIG_ALL all-po"
4956 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4957 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4958 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4959 fi
4960
4961
4962
4963
4964
4965 LIBC_FATAL_STDERR_=1
4966 export LIBC_FATAL_STDERR_
4967
4968
4969
4970
4971
4972 for ac_header in $gl_header_list
4973 do :
4974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4975 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4976 eval as_val=\$$as_ac_Header
4977 if test "x$as_val" = x""yes; then :
4978 cat >>confdefs.h <<_ACEOF
4979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4980 _ACEOF
4981
4982 fi
4983
4984 done
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994 for ac_func in $gl_func_list
4995 do :
4996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4997 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4998 eval as_val=\$$as_ac_var
4999 if test "x$as_val" = x""yes; then :
5000 cat >>confdefs.h <<_ACEOF
5001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5002 _ACEOF
5003
5004 fi
5005 done
5006
5007
5008
5009
5010
5011
5012 GNULIB_MEMCHR=0;
5013 GNULIB_MEMMEM=0;
5014 GNULIB_MEMPCPY=0;
5015 GNULIB_MEMRCHR=0;
5016 GNULIB_RAWMEMCHR=0;
5017 GNULIB_STPCPY=0;
5018 GNULIB_STPNCPY=0;
5019 GNULIB_STRCHRNUL=0;
5020 GNULIB_STRDUP=0;
5021 GNULIB_STRNCAT=0;
5022 GNULIB_STRNDUP=0;
5023 GNULIB_STRNLEN=0;
5024 GNULIB_STRPBRK=0;
5025 GNULIB_STRSEP=0;
5026 GNULIB_STRSTR=0;
5027 GNULIB_STRCASESTR=0;
5028 GNULIB_STRTOK_R=0;
5029 GNULIB_MBSLEN=0;
5030 GNULIB_MBSNLEN=0;
5031 GNULIB_MBSCHR=0;
5032 GNULIB_MBSRCHR=0;
5033 GNULIB_MBSSTR=0;
5034 GNULIB_MBSCASECMP=0;
5035 GNULIB_MBSNCASECMP=0;
5036 GNULIB_MBSPCASECMP=0;
5037 GNULIB_MBSCASESTR=0;
5038 GNULIB_MBSCSPN=0;
5039 GNULIB_MBSPBRK=0;
5040 GNULIB_MBSSPN=0;
5041 GNULIB_MBSSEP=0;
5042 GNULIB_MBSTOK_R=0;
5043 GNULIB_STRERROR=0;
5044 GNULIB_STRSIGNAL=0;
5045 GNULIB_STRVERSCMP=0;
5046 HAVE_MBSLEN=0;
5047 HAVE_MEMCHR=1;
5048 HAVE_DECL_MEMMEM=1;
5049 HAVE_MEMPCPY=1;
5050 HAVE_DECL_MEMRCHR=1;
5051 HAVE_RAWMEMCHR=1;
5052 HAVE_STPCPY=1;
5053 HAVE_STPNCPY=1;
5054 HAVE_STRCHRNUL=1;
5055 HAVE_DECL_STRDUP=1;
5056 HAVE_DECL_STRNDUP=1;
5057 HAVE_DECL_STRNLEN=1;
5058 HAVE_STRPBRK=1;
5059 HAVE_STRSEP=1;
5060 HAVE_STRCASESTR=1;
5061 HAVE_DECL_STRTOK_R=1;
5062 HAVE_DECL_STRSIGNAL=1;
5063 HAVE_STRVERSCMP=1;
5064 REPLACE_MEMCHR=0;
5065 REPLACE_MEMMEM=0;
5066 REPLACE_STPNCPY=0;
5067 REPLACE_STRDUP=0;
5068 REPLACE_STRSTR=0;
5069 REPLACE_STRCASESTR=0;
5070 REPLACE_STRERROR=0;
5071 REPLACE_STRNCAT=0;
5072 REPLACE_STRNDUP=0;
5073 REPLACE_STRNLEN=0;
5074 REPLACE_STRSIGNAL=0;
5075 REPLACE_STRTOK_R=0;
5076 UNDEFINE_STRTOK_R=0;
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5091 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5092 # irrelevant for anonymous mappings.
5093 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5094 if test "x$ac_cv_func_mmap" = x""yes; then :
5095 gl_have_mmap=yes
5096 else
5097 gl_have_mmap=no
5098 fi
5099
5100
5101 # Try to allow MAP_ANONYMOUS.
5102 gl_have_mmap_anonymous=no
5103 if test $gl_have_mmap = yes; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5105 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108
5109 #include <sys/mman.h>
5110 #ifdef MAP_ANONYMOUS
5111 I cant identify this map.
5112 #endif
5113
5114 _ACEOF
5115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5116 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5117 gl_have_mmap_anonymous=yes
5118 fi
5119 rm -f conftest*
5120
5121 if test $gl_have_mmap_anonymous != yes; then
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124
5125 #include <sys/mman.h>
5126 #ifdef MAP_ANON
5127 I cant identify this map.
5128 #endif
5129
5130 _ACEOF
5131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5132 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5133
5134 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5135
5136 gl_have_mmap_anonymous=yes
5137 fi
5138 rm -f conftest*
5139
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5142 $as_echo "$gl_have_mmap_anonymous" >&6; }
5143 if test $gl_have_mmap_anonymous = yes; then
5144
5145 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5146
5147 fi
5148 fi
5149
5150
5151 :
5152
5153
5154
5155
5156
5157
5158 :
5159
5160
5161
5162
5163
5164
5165
5166
5167 :
5168
5169
5170
5171
5172
5173 if test $ac_cv_func_memchr = yes; then
5174 # Detect platform-specific bugs in some versions of glibc:
5175 # memchr should not dereference anything with length 0
5176 # http://bugzilla.redhat.com/499689
5177 # memchr should not dereference overestimated length after a match
5178 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5179 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5180 # Assume that memchr works on platforms that lack mprotect.
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5182 $as_echo_n "checking whether memchr works... " >&6; }
5183 if test "${gl_cv_func_memchr_works+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 if test "$cross_compiling" = yes; then :
5187 gl_cv_func_memchr_works="guessing no"
5188 else
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191
5192 #include <string.h>
5193 #if HAVE_SYS_MMAN_H
5194 # include <fcntl.h>
5195 # include <unistd.h>
5196 # include <sys/types.h>
5197 # include <sys/mman.h>
5198 # ifndef MAP_FILE
5199 # define MAP_FILE 0
5200 # endif
5201 #endif
5202
5203 int
5204 main ()
5205 {
5206
5207 char *fence = NULL;
5208 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5209 # if HAVE_MAP_ANONYMOUS
5210 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5211 const int fd = -1;
5212 # else /* !HAVE_MAP_ANONYMOUS */
5213 const int flags = MAP_FILE | MAP_PRIVATE;
5214 int fd = open ("/dev/zero", O_RDONLY, 0666);
5215 if (fd >= 0)
5216 # endif
5217 {
5218 int pagesize = getpagesize ();
5219 char *two_pages =
5220 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5221 flags, fd, 0);
5222 if (two_pages != (char *)(-1)
5223 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5224 fence = two_pages + pagesize;
5225 }
5226 #endif
5227 if (fence)
5228 {
5229 if (memchr (fence, 0, 0))
5230 return 1;
5231 strcpy (fence - 9, "12345678");
5232 if (memchr (fence - 9, 0, 79) != fence - 1)
5233 return 2;
5234 }
5235 return 0;
5236
5237 ;
5238 return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_run "$LINENO"; then :
5242 gl_cv_func_memchr_works=yes
5243 else
5244 gl_cv_func_memchr_works=no
5245 fi
5246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5247 conftest.$ac_objext conftest.beam conftest.$ac_ext
5248 fi
5249
5250 fi
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5252 $as_echo "$gl_cv_func_memchr_works" >&6; }
5253 if test "$gl_cv_func_memchr_works" != yes; then
5254 REPLACE_MEMCHR=1
5255 fi
5256 else
5257 HAVE_MEMCHR=0
5258 fi
5259 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5260
5261
5262
5263
5264
5265
5266
5267
5268 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5269
5270
5271 for ac_header in bp-sym.h
5272 do :
5273 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5274 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5275 cat >>confdefs.h <<_ACEOF
5276 #define HAVE_BP_SYM_H 1
5277 _ACEOF
5278
5279 fi
5280
5281 done
5282
5283
5284 fi
5285
5286
5287 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5288 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5289 ac_have_decl=1
5290 else
5291 ac_have_decl=0
5292 fi
5293
5294 cat >>confdefs.h <<_ACEOF
5295 #define HAVE_DECL_MEMMEM $ac_have_decl
5296 _ACEOF
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311 for ac_func in memmem
5312 do :
5313 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5314 if test "x$ac_cv_func_memmem" = x""yes; then :
5315 cat >>confdefs.h <<_ACEOF
5316 #define HAVE_MEMMEM 1
5317 _ACEOF
5318
5319 else
5320
5321 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5322
5323 fi
5324 done
5325
5326
5327
5328 :
5329
5330
5331
5332
5333
5334 if test $ac_cv_have_decl_memmem = no; then
5335 HAVE_DECL_MEMMEM=0
5336 fi
5337 :
5338
5339
5340 gl_cv_c_multiarch=no
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 #ifndef __APPLE_CC__
5344 not a universal capable compiler
5345 #endif
5346 typedef int dummy;
5347
5348 _ACEOF
5349 if ac_fn_c_try_compile "$LINENO"; then :
5350
5351 arch=
5352 prev=
5353 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5354 if test -n "$prev"; then
5355 case $word in
5356 i?86 | x86_64 | ppc | ppc64)
5357 if test -z "$arch" || test "$arch" = "$word"; then
5358 arch="$word"
5359 else
5360 gl_cv_c_multiarch=yes
5361 fi
5362 ;;
5363 esac
5364 prev=
5365 else
5366 if test "x$word" = "x-arch"; then
5367 prev=arch
5368 fi
5369 fi
5370 done
5371
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 if test $gl_cv_c_multiarch = yes; then
5375
5376 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5377
5378 APPLE_UNIVERSAL_BUILD=1
5379 else
5380 APPLE_UNIVERSAL_BUILD=0
5381 fi
5382
5383
5384
5385 REPLACE_NULL=0;
5386 HAVE_WCHAR_T=1;
5387 STDDEF_H='';
5388
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5391 $as_echo_n "checking for wchar_t... " >&6; }
5392 if test "${gt_cv_c_wchar_t+set}" = set; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5397 #include <stddef.h>
5398 wchar_t foo = (wchar_t)'\0';
5399 int
5400 main ()
5401 {
5402
5403 ;
5404 return 0;
5405 }
5406 _ACEOF
5407 if ac_fn_c_try_compile "$LINENO"; then :
5408 gt_cv_c_wchar_t=yes
5409 else
5410 gt_cv_c_wchar_t=no
5411 fi
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5415 $as_echo "$gt_cv_c_wchar_t" >&6; }
5416 if test $gt_cv_c_wchar_t = yes; then
5417
5418 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5419
5420 fi
5421
5422
5423
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5425 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5426 if test "${gl_cv_have_include_next+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 rm -rf conftestd1a conftestd1b conftestd2
5430 mkdir conftestd1a conftestd1b conftestd2
5431 cat <<EOF > conftestd1a/conftest.h
5432 #define DEFINED_IN_CONFTESTD1
5433 #include_next <conftest.h>
5434 #ifdef DEFINED_IN_CONFTESTD2
5435 int foo;
5436 #else
5437 #error "include_next doesn't work"
5438 #endif
5439 EOF
5440 cat <<EOF > conftestd1b/conftest.h
5441 #define DEFINED_IN_CONFTESTD1
5442 #include <stdio.h>
5443 #include_next <conftest.h>
5444 #ifdef DEFINED_IN_CONFTESTD2
5445 int foo;
5446 #else
5447 #error "include_next doesn't work"
5448 #endif
5449 EOF
5450 cat <<EOF > conftestd2/conftest.h
5451 #ifndef DEFINED_IN_CONFTESTD1
5452 #error "include_next test doesn't work"
5453 #endif
5454 #define DEFINED_IN_CONFTESTD2
5455 EOF
5456 gl_save_CPPFLAGS="$CPPFLAGS"
5457 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 #include <conftest.h>
5461 _ACEOF
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463 gl_cv_have_include_next=yes
5464 else
5465 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #include <conftest.h>
5469 _ACEOF
5470 if ac_fn_c_try_compile "$LINENO"; then :
5471 gl_cv_have_include_next=buggy
5472 else
5473 gl_cv_have_include_next=no
5474 fi
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 CPPFLAGS="$gl_save_CPPFLAGS"
5480 rm -rf conftestd1a conftestd1b conftestd2
5481
5482 fi
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5484 $as_echo "$gl_cv_have_include_next" >&6; }
5485 PRAGMA_SYSTEM_HEADER=
5486 if test $gl_cv_have_include_next = yes; then
5487 INCLUDE_NEXT=include_next
5488 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5489 if test -n "$GCC"; then
5490 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5491 fi
5492 else
5493 if test $gl_cv_have_include_next = buggy; then
5494 INCLUDE_NEXT=include
5495 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5496 else
5497 INCLUDE_NEXT=include
5498 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5499 fi
5500 fi
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5512 $as_echo_n "checking for long long int... " >&6; }
5513 if test "${ac_cv_type_long_long_int+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518
5519 /* For now, do not test the preprocessor; as of 2007 there are too many
5520 implementations with broken preprocessors. Perhaps this can
5521 be revisited in 2012. In the meantime, code should not expect
5522 #if to work with literals wider than 32 bits. */
5523 /* Test literals. */
5524 long long int ll = 9223372036854775807ll;
5525 long long int nll = -9223372036854775807LL;
5526 unsigned long long int ull = 18446744073709551615ULL;
5527 /* Test constant expressions. */
5528 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5529 ? 1 : -1)];
5530 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5531 ? 1 : -1)];
5532 int i = 63;
5533 int
5534 main ()
5535 {
5536 /* Test availability of runtime routines for shift and division. */
5537 long long int llmax = 9223372036854775807ll;
5538 unsigned long long int ullmax = 18446744073709551615ull;
5539 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5540 | (llmax / ll) | (llmax % ll)
5541 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5542 | (ullmax / ull) | (ullmax % ull));
5543 ;
5544 return 0;
5545 }
5546
5547 _ACEOF
5548 if ac_fn_c_try_link "$LINENO"; then :
5549 if test "$cross_compiling" = yes; then :
5550 ac_cv_type_long_long_int=yes
5551 else
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554 #include <limits.h>
5555 #ifndef LLONG_MAX
5556 # define HALF \
5557 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5558 # define LLONG_MAX (HALF - 1 + HALF)
5559 #endif
5560 int
5561 main ()
5562 {
5563 long long int n = 1;
5564 int i;
5565 for (i = 0; ; i++)
5566 {
5567 long long int m = n << i;
5568 if (m >> i != n)
5569 return 1;
5570 if (LLONG_MAX / 2 < m)
5571 break;
5572 }
5573 return 0;
5574 ;
5575 return 0;
5576 }
5577 _ACEOF
5578 if ac_fn_c_try_run "$LINENO"; then :
5579 ac_cv_type_long_long_int=yes
5580 else
5581 ac_cv_type_long_long_int=no
5582 fi
5583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5584 conftest.$ac_objext conftest.beam conftest.$ac_ext
5585 fi
5586
5587 else
5588 ac_cv_type_long_long_int=no
5589 fi
5590 rm -f core conftest.err conftest.$ac_objext \
5591 conftest$ac_exeext conftest.$ac_ext
5592 fi
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5594 $as_echo "$ac_cv_type_long_long_int" >&6; }
5595 if test $ac_cv_type_long_long_int = yes; then
5596
5597 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5598
5599 fi
5600
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5603 $as_echo_n "checking for unsigned long long int... " >&6; }
5604 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609
5610 /* For now, do not test the preprocessor; as of 2007 there are too many
5611 implementations with broken preprocessors. Perhaps this can
5612 be revisited in 2012. In the meantime, code should not expect
5613 #if to work with literals wider than 32 bits. */
5614 /* Test literals. */
5615 long long int ll = 9223372036854775807ll;
5616 long long int nll = -9223372036854775807LL;
5617 unsigned long long int ull = 18446744073709551615ULL;
5618 /* Test constant expressions. */
5619 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5620 ? 1 : -1)];
5621 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5622 ? 1 : -1)];
5623 int i = 63;
5624 int
5625 main ()
5626 {
5627 /* Test availability of runtime routines for shift and division. */
5628 long long int llmax = 9223372036854775807ll;
5629 unsigned long long int ullmax = 18446744073709551615ull;
5630 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5631 | (llmax / ll) | (llmax % ll)
5632 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5633 | (ullmax / ull) | (ullmax % ull));
5634 ;
5635 return 0;
5636 }
5637
5638 _ACEOF
5639 if ac_fn_c_try_link "$LINENO"; then :
5640 ac_cv_type_unsigned_long_long_int=yes
5641 else
5642 ac_cv_type_unsigned_long_long_int=no
5643 fi
5644 rm -f core conftest.err conftest.$ac_objext \
5645 conftest$ac_exeext conftest.$ac_ext
5646 fi
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5648 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5649 if test $ac_cv_type_unsigned_long_long_int = yes; then
5650
5651 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5652
5653 fi
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5666 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5667 if test "${ac_cv_c_restrict+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 ac_cv_c_restrict=no
5671 # The order here caters to the fact that C++ does not require restrict.
5672 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 typedef int * int_ptr;
5676 int foo (int_ptr $ac_kw ip) {
5677 return ip[0];
5678 }
5679 int
5680 main ()
5681 {
5682 int s[1];
5683 int * $ac_kw t = s;
5684 t[0] = 0;
5685 return foo(t)
5686 ;
5687 return 0;
5688 }
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 ac_cv_c_restrict=$ac_kw
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 test "$ac_cv_c_restrict" != no && break
5695 done
5696
5697 fi
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5699 $as_echo "$ac_cv_c_restrict" >&6; }
5700
5701 case $ac_cv_c_restrict in
5702 restrict) ;;
5703 no) $as_echo "#define restrict /**/" >>confdefs.h
5704 ;;
5705 *) cat >>confdefs.h <<_ACEOF
5706 #define restrict $ac_cv_c_restrict
5707 _ACEOF
5708 ;;
5709 esac
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723 :
5724
5725
5726
5727
5728
5729
5730
5731 if test $gl_cv_have_include_next = yes; then
5732 gl_cv_next_string_h='<'string.h'>'
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5735 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5736 if test "${gl_cv_next_string_h+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739
5740 if test $ac_cv_header_string_h = yes; then
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 #include <string.h>
5744
5745 _ACEOF
5746 case "$host_os" in
5747 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5748 *) gl_absname_cpp="$ac_cpp" ;;
5749 esac
5750 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5751 sed -n '\#/string.h#{
5752 s#.*"\(.*/string.h\)".*#\1#
5753 s#^/[^/]#//&#
5754 p
5755 q
5756 }'`'"'
5757 else
5758 gl_cv_next_string_h='<'string.h'>'
5759 fi
5760
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5763 $as_echo "$gl_cv_next_string_h" >&6; }
5764 fi
5765 NEXT_STRING_H=$gl_cv_next_string_h
5766
5767 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5768 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5769 gl_next_as_first_directive='<'string.h'>'
5770 else
5771 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5772 gl_next_as_first_directive=$gl_cv_next_string_h
5773 fi
5774 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5775
5776
5777
5778
5779
5780 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
5781 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5783 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5784 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5789 #include <string.h>
5790
5791 int
5792 main ()
5793 {
5794 #undef $gl_func
5795 (void) $gl_func;
5796 ;
5797 return 0;
5798 }
5799 _ACEOF
5800 if ac_fn_c_try_compile "$LINENO"; then :
5801 eval "$as_gl_Symbol=yes"
5802 else
5803 eval "$as_gl_Symbol=no"
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 fi
5807 eval ac_res=\$$as_gl_Symbol
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5809 $as_echo "$ac_res" >&6; }
5810 eval as_val=\$$as_gl_Symbol
5811 if test "x$as_val" = x""yes; then :
5812 cat >>confdefs.h <<_ACEOF
5813 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5814 _ACEOF
5815
5816 eval ac_cv_have_decl_$gl_func=yes
5817 fi
5818 done
5819
5820
5821
5822 GNULIB_BTOWC=0;
5823 GNULIB_WCTOB=0;
5824 GNULIB_MBSINIT=0;
5825 GNULIB_MBRTOWC=0;
5826 GNULIB_MBRLEN=0;
5827 GNULIB_MBSRTOWCS=0;
5828 GNULIB_MBSNRTOWCS=0;
5829 GNULIB_WCRTOMB=0;
5830 GNULIB_WCSRTOMBS=0;
5831 GNULIB_WCSNRTOMBS=0;
5832 GNULIB_WCWIDTH=0;
5833 HAVE_BTOWC=1;
5834 HAVE_MBSINIT=1;
5835 HAVE_MBRTOWC=1;
5836 HAVE_MBRLEN=1;
5837 HAVE_MBSRTOWCS=1;
5838 HAVE_MBSNRTOWCS=1;
5839 HAVE_WCRTOMB=1;
5840 HAVE_WCSRTOMBS=1;
5841 HAVE_WCSNRTOMBS=1;
5842 HAVE_DECL_WCTOB=1;
5843 HAVE_DECL_WCWIDTH=1;
5844 REPLACE_MBSTATE_T=0;
5845 REPLACE_BTOWC=0;
5846 REPLACE_WCTOB=0;
5847 REPLACE_MBSINIT=0;
5848 REPLACE_MBRTOWC=0;
5849 REPLACE_MBRLEN=0;
5850 REPLACE_MBSRTOWCS=0;
5851 REPLACE_MBSNRTOWCS=0;
5852 REPLACE_WCRTOMB=0;
5853 REPLACE_WCSRTOMBS=0;
5854 REPLACE_WCSNRTOMBS=0;
5855 REPLACE_WCWIDTH=0;
5856
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5859 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5860 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 gl_cv_header_wchar_h_correct_inline=yes
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866
5867 #define wcstod renamed_wcstod
5868 #include <wchar.h>
5869 extern int zero (void);
5870 int main () { return zero(); }
5871
5872 _ACEOF
5873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5874 (eval $ac_compile) 2>&5
5875 ac_status=$?
5876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5877 test $ac_status = 0; }; then
5878 mv conftest.$ac_objext conftest1.$ac_objext
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881
5882 #define wcstod renamed_wcstod
5883 #include <wchar.h>
5884 int zero (void) { return 0; }
5885
5886 _ACEOF
5887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5888 (eval $ac_compile) 2>&5
5889 ac_status=$?
5890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891 test $ac_status = 0; }; then
5892 mv conftest.$ac_objext conftest2.$ac_objext
5893 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5894 :
5895 else
5896 gl_cv_header_wchar_h_correct_inline=no
5897 fi
5898 fi
5899 fi
5900 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5901
5902 fi
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5904 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5905 if test $gl_cv_header_wchar_h_correct_inline = no; then
5906 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5907 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5908 C99 mode. You have four options:
5909 - Add the flag -fgnu89-inline to CC and reconfigure, or
5910 - Fix your include files, using parts of
5911 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5912 - Use a gcc version older than 4.3, or
5913 - Don't use the flags -std=c99 or -std=gnu99.
5914 Configuration aborted." "$LINENO" 5
5915 fi
5916
5917
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5919 $as_echo_n "checking for wint_t... " >&6; }
5920 if test "${gt_cv_c_wint_t+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925
5926 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5927 <wchar.h>.
5928 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5929 before <wchar.h>. */
5930 #include <stddef.h>
5931 #include <stdio.h>
5932 #include <time.h>
5933 #include <wchar.h>
5934 wint_t foo = (wchar_t)'\0';
5935 int
5936 main ()
5937 {
5938
5939 ;
5940 return 0;
5941 }
5942 _ACEOF
5943 if ac_fn_c_try_compile "$LINENO"; then :
5944 gt_cv_c_wint_t=yes
5945 else
5946 gt_cv_c_wint_t=no
5947 fi
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 fi
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5951 $as_echo "$gt_cv_c_wint_t" >&6; }
5952 if test $gt_cv_c_wint_t = yes; then
5953
5954 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5955
5956 fi
5957
5958
5959 if false; then
5960 GL_COND_LIBTOOL_TRUE=
5961 GL_COND_LIBTOOL_FALSE='#'
5962 else
5963 GL_COND_LIBTOOL_TRUE='#'
5964 GL_COND_LIBTOOL_FALSE=
5965 fi
5966
5967 gl_cond_libtool=false
5968 gl_libdeps=
5969 gl_ltlibdeps=
5970 gl_m4_base='gnulib/m4'
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980 gl_source_base='gnulib'
5981 # Code from module arg-nonnull:
5982 # Code from module c++defs:
5983 # Code from module extensions:
5984 # Code from module include_next:
5985 # Code from module memchr:
5986
5987
5988
5989
5990 GNULIB_MEMCHR=1
5991
5992
5993
5994 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
5995
5996
5997
5998 # Code from module memmem:
5999
6000
6001 if test $ac_cv_have_decl_memmem = yes; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6003 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6004 if test "${gl_cv_func_memmem_works+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test "$cross_compiling" = yes; then :
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010
6011 #include <features.h>
6012 #ifdef __GNU_LIBRARY__
6013 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6014 Lucky user
6015 #endif
6016 #endif
6017 #ifdef __CYGWIN__
6018 #include <cygwin/version.h>
6019 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6020 Lucky user
6021 #endif
6022 #endif
6023
6024 _ACEOF
6025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6026 $EGREP "Lucky user" >/dev/null 2>&1; then :
6027 gl_cv_func_memmem_works=yes
6028 else
6029 gl_cv_func_memmem_works="guessing no"
6030 fi
6031 rm -f conftest*
6032
6033
6034 else
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037
6038 #include <signal.h> /* for signal */
6039 #include <string.h> /* for memmem */
6040 #include <stdlib.h> /* for malloc */
6041 #include <unistd.h> /* for alarm */
6042
6043 int
6044 main ()
6045 {
6046 size_t m = 1000000;
6047 char *haystack = (char *) malloc (2 * m + 1);
6048 char *needle = (char *) malloc (m + 1);
6049 void *result = 0;
6050 /* Failure to compile this test due to missing alarm is okay,
6051 since all such platforms (mingw) also lack memmem. */
6052 signal (SIGALRM, SIG_DFL);
6053 alarm (5);
6054 /* Check for quadratic performance. */
6055 if (haystack && needle)
6056 {
6057 memset (haystack, 'A', 2 * m);
6058 haystack[2 * m] = 'B';
6059 memset (needle, 'A', m);
6060 needle[m] = 'B';
6061 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6062 }
6063 /* Check for empty needle behavior. */
6064 return !result || !memmem ("a", 1, 0, 0);
6065 ;
6066 return 0;
6067 }
6068 _ACEOF
6069 if ac_fn_c_try_run "$LINENO"; then :
6070 gl_cv_func_memmem_works=yes
6071 else
6072 gl_cv_func_memmem_works=no
6073 fi
6074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6075 conftest.$ac_objext conftest.beam conftest.$ac_ext
6076 fi
6077
6078
6079 fi
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6081 $as_echo "$gl_cv_func_memmem_works" >&6; }
6082 if test "$gl_cv_func_memmem_works" != yes; then
6083 REPLACE_MEMMEM=1
6084
6085
6086
6087
6088
6089
6090
6091
6092 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6093
6094 fi
6095 fi
6096
6097 # Code from module memmem-simple:
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110 for ac_func in memmem
6111 do :
6112 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6113 if test "x$ac_cv_func_memmem" = x""yes; then :
6114 cat >>confdefs.h <<_ACEOF
6115 #define HAVE_MEMMEM 1
6116 _ACEOF
6117
6118 else
6119
6120 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6121
6122 fi
6123 done
6124
6125
6126
6127 :
6128
6129
6130
6131
6132
6133 if test $ac_cv_have_decl_memmem = no; then
6134 HAVE_DECL_MEMMEM=0
6135 fi
6136 :
6137
6138
6139
6140
6141 GNULIB_MEMMEM=1
6142
6143
6144
6145 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6146
6147
6148
6149 # Code from module multiarch:
6150
6151 # Code from module stddef:
6152
6153
6154
6155 if test $gt_cv_c_wchar_t = no; then
6156 HAVE_WCHAR_T=0
6157 STDDEF_H=stddef.h
6158 fi
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6160 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6161 if test "${gl_cv_decl_null_works+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166 #include <stddef.h>
6167 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6168
6169 int
6170 main ()
6171 {
6172
6173 ;
6174 return 0;
6175 }
6176 _ACEOF
6177 if ac_fn_c_try_compile "$LINENO"; then :
6178 gl_cv_decl_null_works=yes
6179 else
6180 gl_cv_decl_null_works=no
6181 fi
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6185 $as_echo "$gl_cv_decl_null_works" >&6; }
6186 if test $gl_cv_decl_null_works = no; then
6187 REPLACE_NULL=1
6188 STDDEF_H=stddef.h
6189 fi
6190 if test -n "$STDDEF_H"; then
6191
6192
6193
6194
6195 :
6196
6197
6198
6199
6200
6201
6202
6203 if test $gl_cv_have_include_next = yes; then
6204 gl_cv_next_stddef_h='<'stddef.h'>'
6205 else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6207 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6208 if test "${gl_cv_next_stddef_h+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211
6212 if test $ac_cv_header_stddef_h = yes; then
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215 #include <stddef.h>
6216
6217 _ACEOF
6218 case "$host_os" in
6219 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6220 *) gl_absname_cpp="$ac_cpp" ;;
6221 esac
6222 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6223 sed -n '\#/stddef.h#{
6224 s#.*"\(.*/stddef.h\)".*#\1#
6225 s#^/[^/]#//&#
6226 p
6227 q
6228 }'`'"'
6229 else
6230 gl_cv_next_stddef_h='<'stddef.h'>'
6231 fi
6232
6233 fi
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6235 $as_echo "$gl_cv_next_stddef_h" >&6; }
6236 fi
6237 NEXT_STDDEF_H=$gl_cv_next_stddef_h
6238
6239 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6241 gl_next_as_first_directive='<'stddef.h'>'
6242 else
6243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6244 gl_next_as_first_directive=$gl_cv_next_stddef_h
6245 fi
6246 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6247
6248
6249
6250 fi
6251
6252 # Code from module stdint:
6253
6254
6255
6256 if test $ac_cv_type_long_long_int = yes; then
6257 HAVE_LONG_LONG_INT=1
6258 else
6259 HAVE_LONG_LONG_INT=0
6260 fi
6261
6262
6263 if test $ac_cv_type_unsigned_long_long_int = yes; then
6264 HAVE_UNSIGNED_LONG_LONG_INT=1
6265 else
6266 HAVE_UNSIGNED_LONG_LONG_INT=0
6267 fi
6268
6269
6270 if test $ac_cv_header_inttypes_h = yes; then
6271 HAVE_INTTYPES_H=1
6272 else
6273 HAVE_INTTYPES_H=0
6274 fi
6275
6276
6277 if test $ac_cv_header_sys_types_h = yes; then
6278 HAVE_SYS_TYPES_H=1
6279 else
6280 HAVE_SYS_TYPES_H=0
6281 fi
6282
6283
6284
6285
6286
6287
6288 :
6289
6290
6291
6292
6293
6294
6295
6296 if test $gl_cv_have_include_next = yes; then
6297 gl_cv_next_stdint_h='<'stdint.h'>'
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6300 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6301 if test "${gl_cv_next_stdint_h+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304
6305 if test $ac_cv_header_stdint_h = yes; then
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6308 #include <stdint.h>
6309
6310 _ACEOF
6311 case "$host_os" in
6312 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6313 *) gl_absname_cpp="$ac_cpp" ;;
6314 esac
6315 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6316 sed -n '\#/stdint.h#{
6317 s#.*"\(.*/stdint.h\)".*#\1#
6318 s#^/[^/]#//&#
6319 p
6320 q
6321 }'`'"'
6322 else
6323 gl_cv_next_stdint_h='<'stdint.h'>'
6324 fi
6325
6326 fi
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6328 $as_echo "$gl_cv_next_stdint_h" >&6; }
6329 fi
6330 NEXT_STDINT_H=$gl_cv_next_stdint_h
6331
6332 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6334 gl_next_as_first_directive='<'stdint.h'>'
6335 else
6336 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6337 gl_next_as_first_directive=$gl_cv_next_stdint_h
6338 fi
6339 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6340
6341
6342
6343 if test $ac_cv_header_stdint_h = yes; then
6344 HAVE_STDINT_H=1
6345 else
6346 HAVE_STDINT_H=0
6347 fi
6348
6349
6350 if test $ac_cv_header_stdint_h = yes; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6352 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6353 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 gl_cv_header_working_stdint_h=no
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359
6360
6361 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6362 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6363 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6364 #include <stdint.h>
6365 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6366 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6367 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6368 #endif
6369
6370
6371 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6372 included before <wchar.h>. */
6373 #include <stddef.h>
6374 #include <signal.h>
6375 #if HAVE_WCHAR_H
6376 # include <stdio.h>
6377 # include <time.h>
6378 # include <wchar.h>
6379 #endif
6380
6381
6382 #ifdef INT8_MAX
6383 int8_t a1 = INT8_MAX;
6384 int8_t a1min = INT8_MIN;
6385 #endif
6386 #ifdef INT16_MAX
6387 int16_t a2 = INT16_MAX;
6388 int16_t a2min = INT16_MIN;
6389 #endif
6390 #ifdef INT32_MAX
6391 int32_t a3 = INT32_MAX;
6392 int32_t a3min = INT32_MIN;
6393 #endif
6394 #ifdef INT64_MAX
6395 int64_t a4 = INT64_MAX;
6396 int64_t a4min = INT64_MIN;
6397 #endif
6398 #ifdef UINT8_MAX
6399 uint8_t b1 = UINT8_MAX;
6400 #else
6401 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6402 #endif
6403 #ifdef UINT16_MAX
6404 uint16_t b2 = UINT16_MAX;
6405 #endif
6406 #ifdef UINT32_MAX
6407 uint32_t b3 = UINT32_MAX;
6408 #endif
6409 #ifdef UINT64_MAX
6410 uint64_t b4 = UINT64_MAX;
6411 #endif
6412 int_least8_t c1 = INT8_C (0x7f);
6413 int_least8_t c1max = INT_LEAST8_MAX;
6414 int_least8_t c1min = INT_LEAST8_MIN;
6415 int_least16_t c2 = INT16_C (0x7fff);
6416 int_least16_t c2max = INT_LEAST16_MAX;
6417 int_least16_t c2min = INT_LEAST16_MIN;
6418 int_least32_t c3 = INT32_C (0x7fffffff);
6419 int_least32_t c3max = INT_LEAST32_MAX;
6420 int_least32_t c3min = INT_LEAST32_MIN;
6421 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6422 int_least64_t c4max = INT_LEAST64_MAX;
6423 int_least64_t c4min = INT_LEAST64_MIN;
6424 uint_least8_t d1 = UINT8_C (0xff);
6425 uint_least8_t d1max = UINT_LEAST8_MAX;
6426 uint_least16_t d2 = UINT16_C (0xffff);
6427 uint_least16_t d2max = UINT_LEAST16_MAX;
6428 uint_least32_t d3 = UINT32_C (0xffffffff);
6429 uint_least32_t d3max = UINT_LEAST32_MAX;
6430 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6431 uint_least64_t d4max = UINT_LEAST64_MAX;
6432 int_fast8_t e1 = INT_FAST8_MAX;
6433 int_fast8_t e1min = INT_FAST8_MIN;
6434 int_fast16_t e2 = INT_FAST16_MAX;
6435 int_fast16_t e2min = INT_FAST16_MIN;
6436 int_fast32_t e3 = INT_FAST32_MAX;
6437 int_fast32_t e3min = INT_FAST32_MIN;
6438 int_fast64_t e4 = INT_FAST64_MAX;
6439 int_fast64_t e4min = INT_FAST64_MIN;
6440 uint_fast8_t f1 = UINT_FAST8_MAX;
6441 uint_fast16_t f2 = UINT_FAST16_MAX;
6442 uint_fast32_t f3 = UINT_FAST32_MAX;
6443 uint_fast64_t f4 = UINT_FAST64_MAX;
6444 #ifdef INTPTR_MAX
6445 intptr_t g = INTPTR_MAX;
6446 intptr_t gmin = INTPTR_MIN;
6447 #endif
6448 #ifdef UINTPTR_MAX
6449 uintptr_t h = UINTPTR_MAX;
6450 #endif
6451 intmax_t i = INTMAX_MAX;
6452 uintmax_t j = UINTMAX_MAX;
6453
6454 #include <limits.h> /* for CHAR_BIT */
6455 #define TYPE_MINIMUM(t) \
6456 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6457 #define TYPE_MAXIMUM(t) \
6458 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6459 struct s {
6460 int check_PTRDIFF:
6461 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6462 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6463 ? 1 : -1;
6464 /* Detect bug in FreeBSD 6.0 / ia64. */
6465 int check_SIG_ATOMIC:
6466 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6467 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6468 ? 1 : -1;
6469 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6470 int check_WCHAR:
6471 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6472 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6473 ? 1 : -1;
6474 /* Detect bug in mingw. */
6475 int check_WINT:
6476 WINT_MIN == TYPE_MINIMUM (wint_t)
6477 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6478 ? 1 : -1;
6479
6480 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6481 int check_UINT8_C:
6482 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6483 int check_UINT16_C:
6484 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6485
6486 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6487 #ifdef UINT8_MAX
6488 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6489 #endif
6490 #ifdef UINT16_MAX
6491 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6492 #endif
6493 #ifdef UINT32_MAX
6494 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6495 #endif
6496 #ifdef UINT64_MAX
6497 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6498 #endif
6499 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6500 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6501 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6502 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6503 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6504 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6505 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6506 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6507 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6508 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6509 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6510 };
6511
6512 int
6513 main ()
6514 {
6515
6516 ;
6517 return 0;
6518 }
6519 _ACEOF
6520 if ac_fn_c_try_compile "$LINENO"; then :
6521 if test "$cross_compiling" = yes; then :
6522 gl_cv_header_working_stdint_h=yes
6523
6524 else
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527
6528
6529 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6530 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6531 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6532 #include <stdint.h>
6533
6534
6535 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6536 included before <wchar.h>. */
6537 #include <stddef.h>
6538 #include <signal.h>
6539 #if HAVE_WCHAR_H
6540 # include <stdio.h>
6541 # include <time.h>
6542 # include <wchar.h>
6543 #endif
6544
6545
6546 #include <stdio.h>
6547 #include <string.h>
6548 #define MVAL(macro) MVAL1(macro)
6549 #define MVAL1(expression) #expression
6550 static const char *macro_values[] =
6551 {
6552 #ifdef INT8_MAX
6553 MVAL (INT8_MAX),
6554 #endif
6555 #ifdef INT16_MAX
6556 MVAL (INT16_MAX),
6557 #endif
6558 #ifdef INT32_MAX
6559 MVAL (INT32_MAX),
6560 #endif
6561 #ifdef INT64_MAX
6562 MVAL (INT64_MAX),
6563 #endif
6564 #ifdef UINT8_MAX
6565 MVAL (UINT8_MAX),
6566 #endif
6567 #ifdef UINT16_MAX
6568 MVAL (UINT16_MAX),
6569 #endif
6570 #ifdef UINT32_MAX
6571 MVAL (UINT32_MAX),
6572 #endif
6573 #ifdef UINT64_MAX
6574 MVAL (UINT64_MAX),
6575 #endif
6576 NULL
6577 };
6578
6579 int
6580 main ()
6581 {
6582
6583 const char **mv;
6584 for (mv = macro_values; *mv != NULL; mv++)
6585 {
6586 const char *value = *mv;
6587 /* Test whether it looks like a cast expression. */
6588 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6589 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6590 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6591 || strncmp (value, "((int)"/*)*/, 6) == 0
6592 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6593 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6594 return 1;
6595 }
6596 return 0;
6597
6598 ;
6599 return 0;
6600 }
6601 _ACEOF
6602 if ac_fn_c_try_run "$LINENO"; then :
6603 gl_cv_header_working_stdint_h=yes
6604 fi
6605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6606 conftest.$ac_objext conftest.beam conftest.$ac_ext
6607 fi
6608
6609
6610 fi
6611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612
6613 fi
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6615 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6616 fi
6617 if test "$gl_cv_header_working_stdint_h" = yes; then
6618 STDINT_H=
6619 else
6620 for ac_header in sys/inttypes.h sys/bitypes.h
6621 do :
6622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6623 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6624 eval as_val=\$$as_ac_Header
6625 if test "x$as_val" = x""yes; then :
6626 cat >>confdefs.h <<_ACEOF
6627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6628 _ACEOF
6629
6630 fi
6631
6632 done
6633
6634 if test $ac_cv_header_sys_inttypes_h = yes; then
6635 HAVE_SYS_INTTYPES_H=1
6636 else
6637 HAVE_SYS_INTTYPES_H=0
6638 fi
6639
6640 if test $ac_cv_header_sys_bitypes_h = yes; then
6641 HAVE_SYS_BITYPES_H=1
6642 else
6643 HAVE_SYS_BITYPES_H=0
6644 fi
6645
6646
6647
6648 :
6649
6650
6651
6652
6653
6654
6655
6656
6657 if test $APPLE_UNIVERSAL_BUILD = 0; then
6658
6659
6660 for gltype in ptrdiff_t size_t ; do
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6662 $as_echo_n "checking for bit size of $gltype... " >&6; }
6663 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6667 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6668 included before <wchar.h>. */
6669 #include <stddef.h>
6670 #include <signal.h>
6671 #if HAVE_WCHAR_H
6672 # include <stdio.h>
6673 # include <time.h>
6674 # include <wchar.h>
6675 #endif
6676
6677 #include <limits.h>"; then :
6678
6679 else
6680 result=unknown
6681 fi
6682
6683 eval gl_cv_bitsizeof_${gltype}=\$result
6684
6685 fi
6686 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6688 $as_echo "$ac_res" >&6; }
6689 eval result=\$gl_cv_bitsizeof_${gltype}
6690 if test $result = unknown; then
6691 result=0
6692 fi
6693 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6694 cat >>confdefs.h <<_ACEOF
6695 #define BITSIZEOF_${GLTYPE} $result
6696 _ACEOF
6697
6698 eval BITSIZEOF_${GLTYPE}=\$result
6699 done
6700
6701
6702 fi
6703
6704
6705 for gltype in sig_atomic_t wchar_t wint_t ; do
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6707 $as_echo_n "checking for bit size of $gltype... " >&6; }
6708 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6712 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6713 included before <wchar.h>. */
6714 #include <stddef.h>
6715 #include <signal.h>
6716 #if HAVE_WCHAR_H
6717 # include <stdio.h>
6718 # include <time.h>
6719 # include <wchar.h>
6720 #endif
6721
6722 #include <limits.h>"; then :
6723
6724 else
6725 result=unknown
6726 fi
6727
6728 eval gl_cv_bitsizeof_${gltype}=\$result
6729
6730 fi
6731 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6733 $as_echo "$ac_res" >&6; }
6734 eval result=\$gl_cv_bitsizeof_${gltype}
6735 if test $result = unknown; then
6736 result=0
6737 fi
6738 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6739 cat >>confdefs.h <<_ACEOF
6740 #define BITSIZEOF_${GLTYPE} $result
6741 _ACEOF
6742
6743 eval BITSIZEOF_${GLTYPE}=\$result
6744 done
6745
6746
6747
6748
6749 for gltype in sig_atomic_t wchar_t wint_t ; do
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6751 $as_echo_n "checking whether $gltype is signed... " >&6; }
6752 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757
6758 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6759 included before <wchar.h>. */
6760 #include <stddef.h>
6761 #include <signal.h>
6762 #if HAVE_WCHAR_H
6763 # include <stdio.h>
6764 # include <time.h>
6765 # include <wchar.h>
6766 #endif
6767
6768 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6769 int
6770 main ()
6771 {
6772
6773 ;
6774 return 0;
6775 }
6776 _ACEOF
6777 if ac_fn_c_try_compile "$LINENO"; then :
6778 result=yes
6779 else
6780 result=no
6781 fi
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 eval gl_cv_type_${gltype}_signed=\$result
6784
6785 fi
6786 eval ac_res=\$gl_cv_type_${gltype}_signed
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6788 $as_echo "$ac_res" >&6; }
6789 eval result=\$gl_cv_type_${gltype}_signed
6790 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6791 if test "$result" = yes; then
6792 cat >>confdefs.h <<_ACEOF
6793 #define HAVE_SIGNED_${GLTYPE} 1
6794 _ACEOF
6795
6796 eval HAVE_SIGNED_${GLTYPE}=1
6797 else
6798 eval HAVE_SIGNED_${GLTYPE}=0
6799 fi
6800 done
6801
6802
6803 gl_cv_type_ptrdiff_t_signed=yes
6804 gl_cv_type_size_t_signed=no
6805 if test $APPLE_UNIVERSAL_BUILD = 0; then
6806
6807
6808 for gltype in ptrdiff_t size_t ; do
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6810 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6811 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 eval gl_cv_type_${gltype}_suffix=no
6815 eval result=\$gl_cv_type_${gltype}_signed
6816 if test "$result" = yes; then
6817 glsufu=
6818 else
6819 glsufu=u
6820 fi
6821 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6822 case $glsuf in
6823 '') gltype1='int';;
6824 l) gltype1='long int';;
6825 ll) gltype1='long long int';;
6826 i64) gltype1='__int64';;
6827 u) gltype1='unsigned int';;
6828 ul) gltype1='unsigned long int';;
6829 ull) gltype1='unsigned long long int';;
6830 ui64)gltype1='unsigned __int64';;
6831 esac
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834
6835 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6836 included before <wchar.h>. */
6837 #include <stddef.h>
6838 #include <signal.h>
6839 #if HAVE_WCHAR_H
6840 # include <stdio.h>
6841 # include <time.h>
6842 # include <wchar.h>
6843 #endif
6844
6845 extern $gltype foo;
6846 extern $gltype1 foo;
6847 int
6848 main ()
6849 {
6850
6851 ;
6852 return 0;
6853 }
6854 _ACEOF
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856 eval gl_cv_type_${gltype}_suffix=\$glsuf
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 eval result=\$gl_cv_type_${gltype}_suffix
6860 test "$result" != no && break
6861 done
6862 fi
6863 eval ac_res=\$gl_cv_type_${gltype}_suffix
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6865 $as_echo "$ac_res" >&6; }
6866 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6867 eval result=\$gl_cv_type_${gltype}_suffix
6868 test "$result" = no && result=
6869 eval ${GLTYPE}_SUFFIX=\$result
6870 cat >>confdefs.h <<_ACEOF
6871 #define ${GLTYPE}_SUFFIX $result
6872 _ACEOF
6873
6874 done
6875
6876
6877 fi
6878
6879
6880 for gltype in sig_atomic_t wchar_t wint_t ; do
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6882 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6883 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 eval gl_cv_type_${gltype}_suffix=no
6887 eval result=\$gl_cv_type_${gltype}_signed
6888 if test "$result" = yes; then
6889 glsufu=
6890 else
6891 glsufu=u
6892 fi
6893 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6894 case $glsuf in
6895 '') gltype1='int';;
6896 l) gltype1='long int';;
6897 ll) gltype1='long long int';;
6898 i64) gltype1='__int64';;
6899 u) gltype1='unsigned int';;
6900 ul) gltype1='unsigned long int';;
6901 ull) gltype1='unsigned long long int';;
6902 ui64)gltype1='unsigned __int64';;
6903 esac
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906
6907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6908 included before <wchar.h>. */
6909 #include <stddef.h>
6910 #include <signal.h>
6911 #if HAVE_WCHAR_H
6912 # include <stdio.h>
6913 # include <time.h>
6914 # include <wchar.h>
6915 #endif
6916
6917 extern $gltype foo;
6918 extern $gltype1 foo;
6919 int
6920 main ()
6921 {
6922
6923 ;
6924 return 0;
6925 }
6926 _ACEOF
6927 if ac_fn_c_try_compile "$LINENO"; then :
6928 eval gl_cv_type_${gltype}_suffix=\$glsuf
6929 fi
6930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931 eval result=\$gl_cv_type_${gltype}_suffix
6932 test "$result" != no && break
6933 done
6934 fi
6935 eval ac_res=\$gl_cv_type_${gltype}_suffix
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6937 $as_echo "$ac_res" >&6; }
6938 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6939 eval result=\$gl_cv_type_${gltype}_suffix
6940 test "$result" = no && result=
6941 eval ${GLTYPE}_SUFFIX=\$result
6942 cat >>confdefs.h <<_ACEOF
6943 #define ${GLTYPE}_SUFFIX $result
6944 _ACEOF
6945
6946 done
6947
6948
6949
6950 STDINT_H=stdint.h
6951 fi
6952
6953
6954 # Code from module string:
6955
6956
6957
6958 # Code from module warn-on-use:
6959 # Code from module wchar:
6960
6961
6962
6963
6964 :
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974 :
6975
6976
6977
6978
6979
6980
6981
6982 if test $gl_cv_have_include_next = yes; then
6983 gl_cv_next_wchar_h='<'wchar.h'>'
6984 else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6986 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6987 if test "${gl_cv_next_wchar_h+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990
6991 if test $ac_cv_header_wchar_h = yes; then
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6994 #include <wchar.h>
6995
6996 _ACEOF
6997 case "$host_os" in
6998 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6999 *) gl_absname_cpp="$ac_cpp" ;;
7000 esac
7001 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7002 sed -n '\#/wchar.h#{
7003 s#.*"\(.*/wchar.h\)".*#\1#
7004 s#^/[^/]#//&#
7005 p
7006 q
7007 }'`'"'
7008 else
7009 gl_cv_next_wchar_h='<'wchar.h'>'
7010 fi
7011
7012 fi
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7014 $as_echo "$gl_cv_next_wchar_h" >&6; }
7015 fi
7016 NEXT_WCHAR_H=$gl_cv_next_wchar_h
7017
7018 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7020 gl_next_as_first_directive='<'wchar.h'>'
7021 else
7022 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7023 gl_next_as_first_directive=$gl_cv_next_wchar_h
7024 fi
7025 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7026
7027
7028
7029 if test $ac_cv_header_wchar_h = yes; then
7030 HAVE_WCHAR_H=1
7031 else
7032 HAVE_WCHAR_H=0
7033 fi
7034
7035
7036
7037 if test $gt_cv_c_wint_t = yes; then
7038 HAVE_WINT_T=1
7039 else
7040 HAVE_WINT_T=0
7041 fi
7042
7043
7044
7045 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
7046 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7048 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7049 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054
7055 /* Some systems require additional headers. */
7056 #ifndef __GLIBC__
7057 # include <stddef.h>
7058 # include <stdio.h>
7059 # include <time.h>
7060 #endif
7061 #include <wchar.h>
7062
7063 int
7064 main ()
7065 {
7066 #undef $gl_func
7067 (void) $gl_func;
7068 ;
7069 return 0;
7070 }
7071 _ACEOF
7072 if ac_fn_c_try_compile "$LINENO"; then :
7073 eval "$as_gl_Symbol=yes"
7074 else
7075 eval "$as_gl_Symbol=no"
7076 fi
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078 fi
7079 eval ac_res=\$$as_gl_Symbol
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7081 $as_echo "$ac_res" >&6; }
7082 eval as_val=\$$as_gl_Symbol
7083 if test "x$as_val" = x""yes; then :
7084 cat >>confdefs.h <<_ACEOF
7085 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7086 _ACEOF
7087
7088 eval ac_cv_have_decl_$gl_func=yes
7089 fi
7090 done
7091
7092
7093 # Code from module dummy:
7094 # End of code from modules
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104 gltests_libdeps=
7105 gltests_ltlibdeps=
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115 gl_source_base='tests'
7116 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
7117
7118 gl_module_indicator_condition=$gltests_WITNESS
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128 LIBGNU_LIBDEPS="$gl_libdeps"
7129
7130 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7131
7132
7133
7134 # For Makefile dependencies.
7135 GNULIB_STDINT_H=
7136 if test x"$STDINT_H" != x; then
7137 GNULIB_STDINT_H=gnulib/$STDINT_H
7138 fi
7139
7140
7141 PACKAGE=gdb
7142
7143 cat >>confdefs.h <<_ACEOF
7144 #define PACKAGE "$PACKAGE"
7145 _ACEOF
7146
7147
7148
7149 # GDB does not use automake, but gnulib does. This line lets us
7150 # generate its Makefile.in.
7151 am__api_version='1.11'
7152
7153 # Find a good install program. We prefer a C program (faster),
7154 # so one script is as good as another. But avoid the broken or
7155 # incompatible versions:
7156 # SysV /etc/install, /usr/sbin/install
7157 # SunOS /usr/etc/install
7158 # IRIX /sbin/install
7159 # AIX /bin/install
7160 # AmigaOS /C/install, which installs bootblocks on floppy discs
7161 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7162 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7163 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7164 # OS/2's system install, which has a completely different semantic
7165 # ./install, which can be erroneously created by make from ./install.sh.
7166 # Reject install programs that cannot install multiple files.
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7168 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7169 if test -z "$INSTALL"; then
7170 if test "${ac_cv_path_install+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 # Account for people who put trailing slashes in PATH elements.
7179 case $as_dir/ in #((
7180 ./ | .// | /[cC]/* | \
7181 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7182 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7183 /usr/ucb/* ) ;;
7184 *)
7185 # OSF1 and SCO ODT 3.0 have their own names for install.
7186 # Don't use installbsd from OSF since it installs stuff as root
7187 # by default.
7188 for ac_prog in ginstall scoinst install; do
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7191 if test $ac_prog = install &&
7192 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7193 # AIX install. It has an incompatible calling convention.
7194 :
7195 elif test $ac_prog = install &&
7196 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7197 # program-specific install script used by HP pwplus--don't use.
7198 :
7199 else
7200 rm -rf conftest.one conftest.two conftest.dir
7201 echo one > conftest.one
7202 echo two > conftest.two
7203 mkdir conftest.dir
7204 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7205 test -s conftest.one && test -s conftest.two &&
7206 test -s conftest.dir/conftest.one &&
7207 test -s conftest.dir/conftest.two
7208 then
7209 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7210 break 3
7211 fi
7212 fi
7213 fi
7214 done
7215 done
7216 ;;
7217 esac
7218
7219 done
7220 IFS=$as_save_IFS
7221
7222 rm -rf conftest.one conftest.two conftest.dir
7223
7224 fi
7225 if test "${ac_cv_path_install+set}" = set; then
7226 INSTALL=$ac_cv_path_install
7227 else
7228 # As a last resort, use the slow shell script. Don't cache a
7229 # value for INSTALL within a source directory, because that will
7230 # break other packages using the cache if that directory is
7231 # removed, or if the value is a relative name.
7232 INSTALL=$ac_install_sh
7233 fi
7234 fi
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7236 $as_echo "$INSTALL" >&6; }
7237
7238 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7239 # It thinks the first close brace ends the variable substitution.
7240 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7241
7242 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7243
7244 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7245
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7247 $as_echo_n "checking whether build environment is sane... " >&6; }
7248 # Just in case
7249 sleep 1
7250 echo timestamp > conftest.file
7251 # Reject unsafe characters in $srcdir or the absolute working directory
7252 # name. Accept space and tab only in the latter.
7253 am_lf='
7254 '
7255 case `pwd` in
7256 *[\\\"\#\$\&\'\`$am_lf]*)
7257 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7258 esac
7259 case $srcdir in
7260 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7261 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7262 esac
7263
7264 # Do `set' in a subshell so we don't clobber the current shell's
7265 # arguments. Must try -L first in case configure is actually a
7266 # symlink; some systems play weird games with the mod time of symlinks
7267 # (eg FreeBSD returns the mod time of the symlink's containing
7268 # directory).
7269 if (
7270 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7271 if test "$*" = "X"; then
7272 # -L didn't work.
7273 set X `ls -t "$srcdir/configure" conftest.file`
7274 fi
7275 rm -f conftest.file
7276 if test "$*" != "X $srcdir/configure conftest.file" \
7277 && test "$*" != "X conftest.file $srcdir/configure"; then
7278
7279 # If neither matched, then we have a broken ls. This can happen
7280 # if, for instance, CONFIG_SHELL is bash and it inherits a
7281 # broken ls alias from the environment. This has actually
7282 # happened. Such a system could not be considered "sane".
7283 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7284 alias in your environment" "$LINENO" 5
7285 fi
7286
7287 test "$2" = conftest.file
7288 )
7289 then
7290 # Ok.
7291 :
7292 else
7293 as_fn_error "newly created file is older than distributed files!
7294 Check your system clock" "$LINENO" 5
7295 fi
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7297 $as_echo "yes" >&6; }
7298 test "$program_prefix" != NONE &&
7299 program_transform_name="s&^&$program_prefix&;$program_transform_name"
7300 # Use a double $ so make ignores it.
7301 test "$program_suffix" != NONE &&
7302 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7303 # Double any \ or $.
7304 # By default was `s,x,x', remove it if useless.
7305 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7306 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7307
7308 # expand $ac_aux_dir to an absolute path
7309 am_aux_dir=`cd $ac_aux_dir && pwd`
7310
7311 if test x"${MISSING+set}" != xset; then
7312 case $am_aux_dir in
7313 *\ * | *\ *)
7314 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7315 *)
7316 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7317 esac
7318 fi
7319 # Use eval to expand $SHELL
7320 if eval "$MISSING --run true"; then
7321 am_missing_run="$MISSING --run "
7322 else
7323 am_missing_run=
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7325 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7326 fi
7327
7328 if test x"${install_sh}" != xset; then
7329 case $am_aux_dir in
7330 *\ * | *\ *)
7331 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7332 *)
7333 install_sh="\${SHELL} $am_aux_dir/install-sh"
7334 esac
7335 fi
7336
7337 # Installed binaries are usually stripped using `strip' when the user
7338 # run `make install-strip'. However `strip' might not be the right
7339 # tool to use in cross-compilation environments, therefore Automake
7340 # will honor the `STRIP' environment variable to overrule this program.
7341 if test "$cross_compiling" != no; then
7342 if test -n "$ac_tool_prefix"; then
7343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7344 set dummy ${ac_tool_prefix}strip; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if test "${ac_cv_prog_STRIP+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 if test -n "$STRIP"; then
7351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7355 do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364 done
7365 done
7366 IFS=$as_save_IFS
7367
7368 fi
7369 fi
7370 STRIP=$ac_cv_prog_STRIP
7371 if test -n "$STRIP"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7373 $as_echo "$STRIP" >&6; }
7374 else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7377 fi
7378
7379
7380 fi
7381 if test -z "$ac_cv_prog_STRIP"; then
7382 ac_ct_STRIP=$STRIP
7383 # Extract the first word of "strip", so it can be a program name with args.
7384 set dummy strip; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 if test -n "$ac_ct_STRIP"; then
7391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_prog_ac_ct_STRIP="strip"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7403 fi
7404 done
7405 done
7406 IFS=$as_save_IFS
7407
7408 fi
7409 fi
7410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7411 if test -n "$ac_ct_STRIP"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7413 $as_echo "$ac_ct_STRIP" >&6; }
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7417 fi
7418
7419 if test "x$ac_ct_STRIP" = x; then
7420 STRIP=":"
7421 else
7422 case $cross_compiling:$ac_tool_warned in
7423 yes:)
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7426 ac_tool_warned=yes ;;
7427 esac
7428 STRIP=$ac_ct_STRIP
7429 fi
7430 else
7431 STRIP="$ac_cv_prog_STRIP"
7432 fi
7433
7434 fi
7435 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7436
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7438 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7439 if test -z "$MKDIR_P"; then
7440 if test "${ac_cv_path_mkdir+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7445 do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_prog in mkdir gmkdir; do
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7451 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7452 'mkdir (GNU coreutils) '* | \
7453 'mkdir (coreutils) '* | \
7454 'mkdir (fileutils) '4.1*)
7455 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7456 break 3;;
7457 esac
7458 done
7459 done
7460 done
7461 IFS=$as_save_IFS
7462
7463 fi
7464
7465 if test "${ac_cv_path_mkdir+set}" = set; then
7466 MKDIR_P="$ac_cv_path_mkdir -p"
7467 else
7468 # As a last resort, use the slow shell script. Don't cache a
7469 # value for MKDIR_P within a source directory, because that will
7470 # break other packages using the cache if that directory is
7471 # removed, or if the value is a relative name.
7472 test -d ./--version && rmdir ./--version
7473 MKDIR_P="$ac_install_sh -d"
7474 fi
7475 fi
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7477 $as_echo "$MKDIR_P" >&6; }
7478
7479
7480 mkdir_p="$MKDIR_P"
7481 case $mkdir_p in
7482 [\\/$]* | ?:[\\/]*) ;;
7483 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7484 esac
7485
7486 for ac_prog in gawk mawk nawk awk
7487 do
7488 # Extract the first word of "$ac_prog", so it can be a program name with args.
7489 set dummy $ac_prog; ac_word=$2
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491 $as_echo_n "checking for $ac_word... " >&6; }
7492 if test "${ac_cv_prog_AWK+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 if test -n "$AWK"; then
7496 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7497 else
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7500 do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_prog_AWK="$ac_prog"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509 done
7510 done
7511 IFS=$as_save_IFS
7512
7513 fi
7514 fi
7515 AWK=$ac_cv_prog_AWK
7516 if test -n "$AWK"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7518 $as_echo "$AWK" >&6; }
7519 else
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7522 fi
7523
7524
7525 test -n "$AWK" && break
7526 done
7527
7528 ac_config_commands="$ac_config_commands depfiles"
7529
7530
7531 am_make=${MAKE-make}
7532 cat > confinc << 'END'
7533 am__doit:
7534 @echo this is the am__doit target
7535 .PHONY: am__doit
7536 END
7537 # If we don't find an include directive, just comment out the code.
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7539 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7540 am__include="#"
7541 am__quote=
7542 _am_result=none
7543 # First try GNU make style include.
7544 echo "include confinc" > confmf
7545 # Ignore all kinds of additional output from `make'.
7546 case `$am_make -s -f confmf 2> /dev/null` in #(
7547 *the\ am__doit\ target*)
7548 am__include=include
7549 am__quote=
7550 _am_result=GNU
7551 ;;
7552 esac
7553 # Now try BSD make style include.
7554 if test "$am__include" = "#"; then
7555 echo '.include "confinc"' > confmf
7556 case `$am_make -s -f confmf 2> /dev/null` in #(
7557 *the\ am__doit\ target*)
7558 am__include=.include
7559 am__quote="\""
7560 _am_result=BSD
7561 ;;
7562 esac
7563 fi
7564
7565
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7567 $as_echo "$_am_result" >&6; }
7568 rm -f confinc confmf
7569
7570 # Check whether --enable-dependency-tracking was given.
7571 if test "${enable_dependency_tracking+set}" = set; then :
7572 enableval=$enable_dependency_tracking;
7573 fi
7574
7575 if test "x$enable_dependency_tracking" != xno; then
7576 am_depcomp="$ac_aux_dir/depcomp"
7577 AMDEPBACKSLASH='\'
7578 fi
7579 if test "x$enable_dependency_tracking" != xno; then
7580 AMDEP_TRUE=
7581 AMDEP_FALSE='#'
7582 else
7583 AMDEP_TRUE='#'
7584 AMDEP_FALSE=
7585 fi
7586
7587
7588 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7589 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7590 # is not polluted with repeated "-I."
7591 am__isrc=' -I$(srcdir)'
7592 # test to see if srcdir already configured
7593 if test -f $srcdir/config.status; then
7594 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7595 fi
7596 fi
7597
7598 # test whether we have cygpath
7599 if test -z "$CYGPATH_W"; then
7600 if (cygpath --version) >/dev/null 2>/dev/null; then
7601 CYGPATH_W='cygpath -w'
7602 else
7603 CYGPATH_W=echo
7604 fi
7605 fi
7606
7607
7608 # Define the identity of the package.
7609 PACKAGE=gdb
7610 VERSION=UNUSED-VERSION
7611
7612
7613 # Some tools Automake needs.
7614
7615 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7616
7617
7618 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7619
7620
7621 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7622
7623
7624 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7625
7626
7627 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7628
7629 # We need awk for the "check" target. The system "awk" is bad on
7630 # some platforms.
7631 # Always define AMTAR for backward compatibility.
7632
7633 AMTAR=${AMTAR-"${am_missing_run}tar"}
7634
7635 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7636
7637
7638
7639
7640 depcc="$CC" am_compiler_list=
7641
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7643 $as_echo_n "checking dependency style of $depcc... " >&6; }
7644 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7648 # We make a subdir and do the tests there. Otherwise we can end up
7649 # making bogus files that we don't know about and never remove. For
7650 # instance it was reported that on HP-UX the gcc test will end up
7651 # making a dummy file named `D' -- because `-MD' means `put the output
7652 # in D'.
7653 mkdir conftest.dir
7654 # Copy depcomp to subdir because otherwise we won't find it if we're
7655 # using a relative directory.
7656 cp "$am_depcomp" conftest.dir
7657 cd conftest.dir
7658 # We will build objects and dependencies in a subdirectory because
7659 # it helps to detect inapplicable dependency modes. For instance
7660 # both Tru64's cc and ICC support -MD to output dependencies as a
7661 # side effect of compilation, but ICC will put the dependencies in
7662 # the current directory while Tru64 will put them in the object
7663 # directory.
7664 mkdir sub
7665
7666 am_cv_CC_dependencies_compiler_type=none
7667 if test "$am_compiler_list" = ""; then
7668 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7669 fi
7670 am__universal=false
7671 case " $depcc " in #(
7672 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7673 esac
7674
7675 for depmode in $am_compiler_list; do
7676 # Setup a source with many dependencies, because some compilers
7677 # like to wrap large dependency lists on column 80 (with \), and
7678 # we should not choose a depcomp mode which is confused by this.
7679 #
7680 # We need to recreate these files for each test, as the compiler may
7681 # overwrite some of them when testing with obscure command lines.
7682 # This happens at least with the AIX C compiler.
7683 : > sub/conftest.c
7684 for i in 1 2 3 4 5 6; do
7685 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7686 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7687 # Solaris 8's {/usr,}/bin/sh.
7688 touch sub/conftst$i.h
7689 done
7690 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7691
7692 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7693 # mode. It turns out that the SunPro C++ compiler does not properly
7694 # handle `-M -o', and we need to detect this. Also, some Intel
7695 # versions had trouble with output in subdirs
7696 am__obj=sub/conftest.${OBJEXT-o}
7697 am__minus_obj="-o $am__obj"
7698 case $depmode in
7699 gcc)
7700 # This depmode causes a compiler race in universal mode.
7701 test "$am__universal" = false || continue
7702 ;;
7703 nosideeffect)
7704 # after this tag, mechanisms are not by side-effect, so they'll
7705 # only be used when explicitly requested
7706 if test "x$enable_dependency_tracking" = xyes; then
7707 continue
7708 else
7709 break
7710 fi
7711 ;;
7712 msvisualcpp | msvcmsys)
7713 # This compiler won't grok `-c -o', but also, the minuso test has
7714 # not run yet. These depmodes are late enough in the game, and
7715 # so weak that their functioning should not be impacted.
7716 am__obj=conftest.${OBJEXT-o}
7717 am__minus_obj=
7718 ;;
7719 none) break ;;
7720 esac
7721 if depmode=$depmode \
7722 source=sub/conftest.c object=$am__obj \
7723 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7724 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7725 >/dev/null 2>conftest.err &&
7726 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7727 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7728 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7729 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7730 # icc doesn't choke on unknown options, it will just issue warnings
7731 # or remarks (even with -Werror). So we grep stderr for any message
7732 # that says an option was ignored or not supported.
7733 # When given -MP, icc 7.0 and 7.1 complain thusly:
7734 # icc: Command line warning: ignoring option '-M'; no argument required
7735 # The diagnosis changed in icc 8.0:
7736 # icc: Command line remark: option '-MP' not supported
7737 if (grep 'ignoring option' conftest.err ||
7738 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7739 am_cv_CC_dependencies_compiler_type=$depmode
7740 break
7741 fi
7742 fi
7743 done
7744
7745 cd ..
7746 rm -rf conftest.dir
7747 else
7748 am_cv_CC_dependencies_compiler_type=none
7749 fi
7750
7751 fi
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7753 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7754 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7755
7756 if
7757 test "x$enable_dependency_tracking" != xno \
7758 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7759 am__fastdepCC_TRUE=
7760 am__fastdepCC_FALSE='#'
7761 else
7762 am__fastdepCC_TRUE='#'
7763 am__fastdepCC_FALSE=
7764 fi
7765
7766
7767
7768
7769
7770
7771 # Check whether --with-separate-debug-dir was given.
7772 if test "${with_separate_debug_dir+set}" = set; then :
7773 withval=$with_separate_debug_dir;
7774 DEBUGDIR=$withval
7775 else
7776 DEBUGDIR=${libdir}/debug
7777 fi
7778
7779
7780 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7781 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7782 ac_define_dir=`eval echo $DEBUGDIR`
7783 ac_define_dir=`eval echo $ac_define_dir`
7784
7785 cat >>confdefs.h <<_ACEOF
7786 #define DEBUGDIR "$ac_define_dir"
7787 _ACEOF
7788
7789
7790
7791
7792 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7793 if test "x$prefix" = xNONE; then
7794 test_prefix=/usr/local
7795 else
7796 test_prefix=$prefix
7797 fi
7798 else
7799 test_prefix=$exec_prefix
7800 fi
7801 value=0
7802 case ${ac_define_dir} in
7803 "${test_prefix}"|"${test_prefix}/"*|\
7804 '${exec_prefix}'|'${exec_prefix}/'*)
7805 value=1
7806 ;;
7807 esac
7808
7809 cat >>confdefs.h <<_ACEOF
7810 #define DEBUGDIR_RELOCATABLE $value
7811 _ACEOF
7812
7813
7814
7815
7816 # GDB's datadir relocation
7817
7818
7819
7820 # Check whether --with-gdb-datadir was given.
7821 if test "${with_gdb_datadir+set}" = set; then :
7822 withval=$with_gdb_datadir;
7823 GDB_DATADIR=$withval
7824 else
7825 GDB_DATADIR=${datadir}/gdb
7826 fi
7827
7828
7829 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7830 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7831 ac_define_dir=`eval echo $GDB_DATADIR`
7832 ac_define_dir=`eval echo $ac_define_dir`
7833
7834 cat >>confdefs.h <<_ACEOF
7835 #define GDB_DATADIR "$ac_define_dir"
7836 _ACEOF
7837
7838
7839
7840
7841 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7842 if test "x$prefix" = xNONE; then
7843 test_prefix=/usr/local
7844 else
7845 test_prefix=$prefix
7846 fi
7847 else
7848 test_prefix=$exec_prefix
7849 fi
7850 value=0
7851 case ${ac_define_dir} in
7852 "${test_prefix}"|"${test_prefix}/"*|\
7853 '${exec_prefix}'|'${exec_prefix}/'*)
7854 value=1
7855 ;;
7856 esac
7857
7858 cat >>confdefs.h <<_ACEOF
7859 #define GDB_DATADIR_RELOCATABLE $value
7860 _ACEOF
7861
7862
7863
7864
7865
7866 # Check whether --with-relocated-sources was given.
7867 if test "${with_relocated_sources+set}" = set; then :
7868 withval=$with_relocated_sources; reloc_srcdir="${withval}"
7869
7870 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7872 ac_define_dir=`eval echo $reloc_srcdir`
7873 ac_define_dir=`eval echo $ac_define_dir`
7874
7875 cat >>confdefs.h <<_ACEOF
7876 #define RELOC_SRCDIR "$ac_define_dir"
7877 _ACEOF
7878
7879
7880
7881 fi
7882
7883
7884
7885
7886 subdirs="$subdirs doc testsuite"
7887
7888
7889 # Check whether to support alternative target configurations
7890 # Check whether --enable-targets was given.
7891 if test "${enable_targets+set}" = set; then :
7892 enableval=$enable_targets; case "${enableval}" in
7893 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7894 ;;
7895 no) enable_targets= ;;
7896 *) enable_targets=$enableval ;;
7897 esac
7898 fi
7899
7900
7901 # Check whether to enable 64-bit support on 32-bit hosts
7902 # Check whether --enable-64-bit-bfd was given.
7903 if test "${enable_64_bit_bfd+set}" = set; then :
7904 enableval=$enable_64_bit_bfd; case "${enableval}" in
7905 yes) want64=true ;;
7906 no) want64=false ;;
7907 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7908 esac
7909 else
7910 want64=false
7911 fi
7912
7913 # Provide defaults for some variables set by the per-host and per-target
7914 # configuration.
7915 gdb_host_obs=posix-hdep.o
7916
7917 if test "${target}" = "${host}"; then
7918 gdb_native=yes
7919 else
7920 gdb_native=no
7921 fi
7922
7923 . $srcdir/configure.host
7924
7925 # Accumulate some settings from configure.tgt over all enabled targets
7926
7927 TARGET_OBS=
7928 all_targets=
7929
7930 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7931 do
7932 if test "$targ_alias" = "all"; then
7933 all_targets=true
7934 else
7935 # Canonicalize the secondary target names.
7936 result=`$ac_config_sub $targ_alias 2>/dev/null`
7937 if test -n "$result"; then
7938 targ=$result
7939 else
7940 targ=$targ_alias
7941 fi
7942
7943 . ${srcdir}/configure.tgt
7944
7945 if test -z "${gdb_target_obs}"; then :
7946 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
7947 fi
7948
7949 # Target-specific object files
7950 for i in ${gdb_target_obs}; do
7951 case " $TARGET_OBS " in
7952 *" ${i} "*) ;;
7953 *)
7954 TARGET_OBS="$TARGET_OBS ${i}"
7955 ;;
7956 esac
7957 done
7958
7959 # Check whether this target needs 64-bit CORE_ADDR
7960 if test x${want64} = xfalse; then
7961 . ${srcdir}/../bfd/config.bfd
7962 fi
7963 fi
7964 done
7965
7966 if test x${all_targets} = xtrue; then
7967
7968 # We want all 64-bit targets if we either:
7969 # - run on a 64-bit host or
7970 # - already require 64-bit support for some other target or
7971 # - the --enable-64-bit-bfd option was supplied
7972 # Otherwise we only support all 32-bit targets.
7973 #
7974 # NOTE: This test must be in sync with the corresponding
7975 # tests in BFD!
7976
7977 if test x${want64} = xfalse; then
7978 # The cast to long int works around a bug in the HP C Compiler
7979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7981 # This bug is HP SR number 8606223364.
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7983 $as_echo_n "checking size of long... " >&6; }
7984 if test "${ac_cv_sizeof_long+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7988
7989 else
7990 if test "$ac_cv_type_long" = yes; then
7991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7993 { as_fn_set_status 77
7994 as_fn_error "cannot compute sizeof (long)
7995 See \`config.log' for more details." "$LINENO" 5; }; }
7996 else
7997 ac_cv_sizeof_long=0
7998 fi
7999 fi
8000
8001 fi
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8003 $as_echo "$ac_cv_sizeof_long" >&6; }
8004
8005
8006
8007 cat >>confdefs.h <<_ACEOF
8008 #define SIZEOF_LONG $ac_cv_sizeof_long
8009 _ACEOF
8010
8011
8012 if test "x${ac_cv_sizeof_long}" = "x8"; then
8013 want64=true
8014 fi
8015 fi
8016 if test x${want64} = xtrue; then
8017 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8018 else
8019 TARGET_OBS='$(ALL_TARGET_OBS)'
8020 fi
8021 fi
8022
8023
8024
8025 # For other settings, only the main target counts.
8026 gdb_sim=
8027 gdb_osabi=
8028 build_gdbserver=
8029 targ=$target; . ${srcdir}/configure.tgt
8030
8031 # Fetch the default architecture and default target vector from BFD.
8032 targ=$target; . $srcdir/../bfd/config.bfd
8033
8034 # We only want the first architecture, so strip off the others if
8035 # there is more than one.
8036 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8037
8038 if test "x$targ_archs" != x; then
8039
8040 cat >>confdefs.h <<_ACEOF
8041 #define DEFAULT_BFD_ARCH $targ_archs
8042 _ACEOF
8043
8044 fi
8045 if test "x$targ_defvec" != x; then
8046
8047 cat >>confdefs.h <<_ACEOF
8048 #define DEFAULT_BFD_VEC $targ_defvec
8049 _ACEOF
8050
8051 fi
8052
8053 # The CLI cannot be disabled yet, but may be in the future.
8054
8055 # Enable CLI.
8056 # Check whether --enable-gdbcli was given.
8057 if test "${enable_gdbcli+set}" = set; then :
8058 enableval=$enable_gdbcli; case $enableval in
8059 yes)
8060 ;;
8061 no)
8062 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8063 *)
8064 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8065 esac
8066 else
8067 enable_gdbcli=yes
8068 fi
8069
8070 if test x"$enable_gdbcli" = xyes; then
8071 if test -d $srcdir/cli; then
8072 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8073 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8074 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8075 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8076 fi
8077 fi
8078
8079 # Enable MI.
8080 # Check whether --enable-gdbmi was given.
8081 if test "${enable_gdbmi+set}" = set; then :
8082 enableval=$enable_gdbmi; case $enableval in
8083 yes | no)
8084 ;;
8085 *)
8086 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8087 esac
8088 else
8089 enable_gdbmi=yes
8090 fi
8091
8092 if test x"$enable_gdbmi" = xyes; then
8093 if test -d $srcdir/mi; then
8094 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8095 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8096 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8097 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8098 fi
8099 fi
8100
8101 # Enable TUI.
8102 # Check whether --enable-tui was given.
8103 if test "${enable_tui+set}" = set; then :
8104 enableval=$enable_tui; case $enableval in
8105 yes | no | auto)
8106 ;;
8107 *)
8108 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8109 esac
8110 else
8111 enable_tui=auto
8112 fi
8113
8114
8115 # Enable gdbtk.
8116 # Check whether --enable-gdbtk was given.
8117 if test "${enable_gdbtk+set}" = set; then :
8118 enableval=$enable_gdbtk; case $enableval in
8119 yes | no)
8120 ;;
8121 *)
8122 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8123 esac
8124 else
8125 if test -d $srcdir/gdbtk; then
8126 enable_gdbtk=yes
8127 else
8128 enable_gdbtk=no
8129 fi
8130 fi
8131
8132 # We unconditionally disable gdbtk tests on selected platforms.
8133 case $host_os in
8134 go32* | windows*)
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8136 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8137 enable_gdbtk=no ;;
8138 esac
8139
8140 # Libunwind support.
8141
8142 # Check whether --with-libunwind was given.
8143 if test "${with_libunwind+set}" = set; then :
8144 withval=$with_libunwind; case "${withval}" in
8145 yes) enable_libunwind=yes ;;
8146 no) enable_libunwind=no ;;
8147 *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8148 esac
8149 else
8150
8151 for ac_header in libunwind.h libunwind-ia64.h
8152 do :
8153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8154 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8155 eval as_val=\$$as_ac_Header
8156 if test "x$as_val" = x""yes; then :
8157 cat >>confdefs.h <<_ACEOF
8158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8159 _ACEOF
8160
8161 fi
8162
8163 done
8164
8165 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8166 enable_libunwind=yes;
8167 fi
8168
8169 fi
8170
8171
8172 if test x"$enable_libunwind" = xyes; then
8173 for ac_header in libunwind.h libunwind-ia64.h
8174 do :
8175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8176 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8177 eval as_val=\$$as_ac_Header
8178 if test "x$as_val" = x""yes; then :
8179 cat >>confdefs.h <<_ACEOF
8180 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8181 _ACEOF
8182
8183 fi
8184
8185 done
8186
8187
8188 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8189
8190 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8191 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8192 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8193 fi
8194
8195 opt_curses=no
8196
8197 # Check whether --with-curses was given.
8198 if test "${with_curses+set}" = set; then :
8199 withval=$with_curses; opt_curses=$withval
8200 fi
8201
8202
8203 prefer_curses=no
8204 if test "$opt_curses" = "yes"; then
8205 prefer_curses=yes
8206 fi
8207
8208 # Profiling support.
8209 # Check whether --enable-profiling was given.
8210 if test "${enable_profiling+set}" = set; then :
8211 enableval=$enable_profiling; case $enableval in
8212 yes | no)
8213 ;;
8214 *)
8215 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8216 esac
8217 else
8218 enable_profiling=no
8219 fi
8220
8221
8222 for ac_func in monstartup _mcleanup
8223 do :
8224 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8225 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8226 eval as_val=\$$as_ac_var
8227 if test "x$as_val" = x""yes; then :
8228 cat >>confdefs.h <<_ACEOF
8229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8230 _ACEOF
8231
8232 fi
8233 done
8234
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8236 $as_echo_n "checking for _etext... " >&6; }
8237 if test "${ac_cv_var__etext+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 #include <stdlib.h>
8243 extern char _etext;
8244
8245 int
8246 main ()
8247 {
8248 free (&_etext);
8249 ;
8250 return 0;
8251 }
8252 _ACEOF
8253 if ac_fn_c_try_link "$LINENO"; then :
8254 ac_cv_var__etext=yes
8255 else
8256 ac_cv_var__etext=no
8257 fi
8258 rm -f core conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
8260 fi
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8262 $as_echo "$ac_cv_var__etext" >&6; }
8263 if test $ac_cv_var__etext = yes; then
8264
8265 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8266
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8269 $as_echo_n "checking for etext... " >&6; }
8270 if test "${ac_cv_var_etext+set}" = set; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 #include <stdlib.h>
8276 extern char etext;
8277
8278 int
8279 main ()
8280 {
8281 free (&etext);
8282 ;
8283 return 0;
8284 }
8285 _ACEOF
8286 if ac_fn_c_try_link "$LINENO"; then :
8287 ac_cv_var_etext=yes
8288 else
8289 ac_cv_var_etext=no
8290 fi
8291 rm -f core conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
8293 fi
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8295 $as_echo "$ac_cv_var_etext" >&6; }
8296 if test $ac_cv_var_etext = yes; then
8297
8298 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8299
8300 fi
8301 if test "$enable_profiling" = yes ; then
8302 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8303 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8304 fi
8305 PROFILE_CFLAGS=-pg
8306 OLD_CFLAGS="$CFLAGS"
8307 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8308
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8310 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8311 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8316
8317 int
8318 main ()
8319 {
8320 int x;
8321 ;
8322 return 0;
8323 }
8324 _ACEOF
8325 if ac_fn_c_try_compile "$LINENO"; then :
8326 ac_cv_cc_supports_pg=yes
8327 else
8328 ac_cv_cc_supports_pg=no
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 fi
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8333 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8334
8335 if test $ac_cv_cc_supports_pg = no; then
8336 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8337 fi
8338
8339 CFLAGS="$OLD_CFLAGS"
8340 fi
8341
8342
8343
8344 # Check whether --with-pkgversion was given.
8345 if test "${with_pkgversion+set}" = set; then :
8346 withval=$with_pkgversion; case "$withval" in
8347 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8348 no) PKGVERSION= ;;
8349 *) PKGVERSION="($withval) " ;;
8350 esac
8351 else
8352 PKGVERSION="(GDB) "
8353
8354 fi
8355
8356
8357
8358
8359
8360 # Check whether --with-bugurl was given.
8361 if test "${with_bugurl+set}" = set; then :
8362 withval=$with_bugurl; case "$withval" in
8363 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8364 no) BUGURL=
8365 ;;
8366 *) BUGURL="$withval"
8367 ;;
8368 esac
8369 else
8370 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8371
8372 fi
8373
8374 case ${BUGURL} in
8375 "")
8376 REPORT_BUGS_TO=
8377 REPORT_BUGS_TEXI=
8378 ;;
8379 *)
8380 REPORT_BUGS_TO="<$BUGURL>"
8381 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8382 ;;
8383 esac;
8384
8385
8386
8387
8388 cat >>confdefs.h <<_ACEOF
8389 #define PKGVERSION "$PKGVERSION"
8390 _ACEOF
8391
8392
8393 cat >>confdefs.h <<_ACEOF
8394 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8395 _ACEOF
8396
8397
8398 # --------------------- #
8399 # Checks for programs. #
8400 # --------------------- #
8401
8402 for ac_prog in gawk mawk nawk awk
8403 do
8404 # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy $ac_prog; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if test "${ac_cv_prog_AWK+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 if test -n "$AWK"; then
8412 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8416 do
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_prog_AWK="$ac_prog"
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 break 2
8424 fi
8425 done
8426 done
8427 IFS=$as_save_IFS
8428
8429 fi
8430 fi
8431 AWK=$ac_cv_prog_AWK
8432 if test -n "$AWK"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8434 $as_echo "$AWK" >&6; }
8435 else
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8438 fi
8439
8440
8441 test -n "$AWK" && break
8442 done
8443
8444
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8446 $as_echo_n "checking whether ln -s works... " >&6; }
8447 LN_S=$as_ln_s
8448 if test "$LN_S" = "ln -s"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8450 $as_echo "yes" >&6; }
8451 else
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8453 $as_echo "no, using $LN_S" >&6; }
8454 fi
8455
8456 if test -n "$ac_tool_prefix"; then
8457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8458 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8460 $as_echo_n "checking for $ac_word... " >&6; }
8461 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8462 $as_echo_n "(cached) " >&6
8463 else
8464 if test -n "$RANLIB"; then
8465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8466 else
8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468 for as_dir in $PATH
8469 do
8470 IFS=$as_save_IFS
8471 test -z "$as_dir" && as_dir=.
8472 for ac_exec_ext in '' $ac_executable_extensions; do
8473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8476 break 2
8477 fi
8478 done
8479 done
8480 IFS=$as_save_IFS
8481
8482 fi
8483 fi
8484 RANLIB=$ac_cv_prog_RANLIB
8485 if test -n "$RANLIB"; then
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8487 $as_echo "$RANLIB" >&6; }
8488 else
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490 $as_echo "no" >&6; }
8491 fi
8492
8493
8494 fi
8495 if test -z "$ac_cv_prog_RANLIB"; then
8496 ac_ct_RANLIB=$RANLIB
8497 # Extract the first word of "ranlib", so it can be a program name with args.
8498 set dummy ranlib; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 if test -n "$ac_ct_RANLIB"; then
8505 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8509 do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514 ac_cv_prog_ac_ct_RANLIB="ranlib"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8517 fi
8518 done
8519 done
8520 IFS=$as_save_IFS
8521
8522 fi
8523 fi
8524 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8525 if test -n "$ac_ct_RANLIB"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8527 $as_echo "$ac_ct_RANLIB" >&6; }
8528 else
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8531 fi
8532
8533 if test "x$ac_ct_RANLIB" = x; then
8534 RANLIB=":"
8535 else
8536 case $cross_compiling:$ac_tool_warned in
8537 yes:)
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8540 ac_tool_warned=yes ;;
8541 esac
8542 RANLIB=$ac_ct_RANLIB
8543 fi
8544 else
8545 RANLIB="$ac_cv_prog_RANLIB"
8546 fi
8547
8548 for ac_prog in 'bison -y' byacc
8549 do
8550 # Extract the first word of "$ac_prog", so it can be a program name with args.
8551 set dummy $ac_prog; ac_word=$2
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if test "${ac_cv_prog_YACC+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 if test -n "$YACC"; then
8558 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8559 else
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8562 do
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8567 ac_cv_prog_YACC="$ac_prog"
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 break 2
8570 fi
8571 done
8572 done
8573 IFS=$as_save_IFS
8574
8575 fi
8576 fi
8577 YACC=$ac_cv_prog_YACC
8578 if test -n "$YACC"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8580 $as_echo "$YACC" >&6; }
8581 else
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8584 fi
8585
8586
8587 test -n "$YACC" && break
8588 done
8589 test -n "$YACC" || YACC="yacc"
8590
8591
8592 if test -n "$ac_tool_prefix"; then
8593 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8594 set dummy ${ac_tool_prefix}ar; ac_word=$2
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596 $as_echo_n "checking for $ac_word... " >&6; }
8597 if test "${ac_cv_prog_AR+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 if test -n "$AR"; then
8601 ac_cv_prog_AR="$AR" # Let the user override the test.
8602 else
8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 for as_dir in $PATH
8605 do
8606 IFS=$as_save_IFS
8607 test -z "$as_dir" && as_dir=.
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8610 ac_cv_prog_AR="${ac_tool_prefix}ar"
8611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612 break 2
8613 fi
8614 done
8615 done
8616 IFS=$as_save_IFS
8617
8618 fi
8619 fi
8620 AR=$ac_cv_prog_AR
8621 if test -n "$AR"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8623 $as_echo "$AR" >&6; }
8624 else
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8627 fi
8628
8629
8630 fi
8631 if test -z "$ac_cv_prog_AR"; then
8632 ac_ct_AR=$AR
8633 # Extract the first word of "ar", so it can be a program name with args.
8634 set dummy ar; ac_word=$2
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636 $as_echo_n "checking for $ac_word... " >&6; }
8637 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 if test -n "$ac_ct_AR"; then
8641 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8642 else
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $PATH
8645 do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8650 ac_cv_prog_ac_ct_AR="ar"
8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 break 2
8653 fi
8654 done
8655 done
8656 IFS=$as_save_IFS
8657
8658 fi
8659 fi
8660 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8661 if test -n "$ac_ct_AR"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8663 $as_echo "$ac_ct_AR" >&6; }
8664 else
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8667 fi
8668
8669 if test "x$ac_ct_AR" = x; then
8670 AR=""
8671 else
8672 case $cross_compiling:$ac_tool_warned in
8673 yes:)
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8676 ac_tool_warned=yes ;;
8677 esac
8678 AR=$ac_ct_AR
8679 fi
8680 else
8681 AR="$ac_cv_prog_AR"
8682 fi
8683
8684 if test -n "$ac_tool_prefix"; then
8685 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8686 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688 $as_echo_n "checking for $ac_word... " >&6; }
8689 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 if test -n "$DLLTOOL"; then
8693 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8694 else
8695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 for as_dir in $PATH
8697 do
8698 IFS=$as_save_IFS
8699 test -z "$as_dir" && as_dir=.
8700 for ac_exec_ext in '' $ac_executable_extensions; do
8701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8702 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8704 break 2
8705 fi
8706 done
8707 done
8708 IFS=$as_save_IFS
8709
8710 fi
8711 fi
8712 DLLTOOL=$ac_cv_prog_DLLTOOL
8713 if test -n "$DLLTOOL"; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8715 $as_echo "$DLLTOOL" >&6; }
8716 else
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718 $as_echo "no" >&6; }
8719 fi
8720
8721
8722 fi
8723 if test -z "$ac_cv_prog_DLLTOOL"; then
8724 ac_ct_DLLTOOL=$DLLTOOL
8725 # Extract the first word of "dlltool", so it can be a program name with args.
8726 set dummy dlltool; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 if test -n "$ac_ct_DLLTOOL"; then
8733 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8734 else
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8737 do
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8742 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 break 2
8745 fi
8746 done
8747 done
8748 IFS=$as_save_IFS
8749
8750 fi
8751 fi
8752 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8753 if test -n "$ac_ct_DLLTOOL"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8755 $as_echo "$ac_ct_DLLTOOL" >&6; }
8756 else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8759 fi
8760
8761 if test "x$ac_ct_DLLTOOL" = x; then
8762 DLLTOOL=""
8763 else
8764 case $cross_compiling:$ac_tool_warned in
8765 yes:)
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8768 ac_tool_warned=yes ;;
8769 esac
8770 DLLTOOL=$ac_ct_DLLTOOL
8771 fi
8772 else
8773 DLLTOOL="$ac_cv_prog_DLLTOOL"
8774 fi
8775
8776 if test -n "$ac_tool_prefix"; then
8777 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8778 set dummy ${ac_tool_prefix}windres; ac_word=$2
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780 $as_echo_n "checking for $ac_word... " >&6; }
8781 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 if test -n "$WINDRES"; then
8785 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8786 else
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 for as_dir in $PATH
8789 do
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8794 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 break 2
8797 fi
8798 done
8799 done
8800 IFS=$as_save_IFS
8801
8802 fi
8803 fi
8804 WINDRES=$ac_cv_prog_WINDRES
8805 if test -n "$WINDRES"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8807 $as_echo "$WINDRES" >&6; }
8808 else
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8811 fi
8812
8813
8814 fi
8815 if test -z "$ac_cv_prog_WINDRES"; then
8816 ac_ct_WINDRES=$WINDRES
8817 # Extract the first word of "windres", so it can be a program name with args.
8818 set dummy windres; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 if test -n "$ac_ct_WINDRES"; then
8825 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8826 else
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 for as_dir in $PATH
8829 do
8830 IFS=$as_save_IFS
8831 test -z "$as_dir" && as_dir=.
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8834 ac_cv_prog_ac_ct_WINDRES="windres"
8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 break 2
8837 fi
8838 done
8839 done
8840 IFS=$as_save_IFS
8841
8842 fi
8843 fi
8844 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8845 if test -n "$ac_ct_WINDRES"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8847 $as_echo "$ac_ct_WINDRES" >&6; }
8848 else
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8851 fi
8852
8853 if test "x$ac_ct_WINDRES" = x; then
8854 WINDRES=""
8855 else
8856 case $cross_compiling:$ac_tool_warned in
8857 yes:)
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8860 ac_tool_warned=yes ;;
8861 esac
8862 WINDRES=$ac_ct_WINDRES
8863 fi
8864 else
8865 WINDRES="$ac_cv_prog_WINDRES"
8866 fi
8867
8868
8869 # Needed for GNU/Hurd.
8870 if test -n "$ac_tool_prefix"; then
8871 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8872 set dummy ${ac_tool_prefix}mig; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if test "${ac_cv_prog_MIG+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 if test -n "$MIG"; then
8879 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8880 else
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8883 do
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 break 2
8891 fi
8892 done
8893 done
8894 IFS=$as_save_IFS
8895
8896 fi
8897 fi
8898 MIG=$ac_cv_prog_MIG
8899 if test -n "$MIG"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8901 $as_echo "$MIG" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8905 fi
8906
8907
8908 fi
8909 if test -z "$ac_cv_prog_MIG"; then
8910 ac_ct_MIG=$MIG
8911 # Extract the first word of "mig", so it can be a program name with args.
8912 set dummy mig; ac_word=$2
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914 $as_echo_n "checking for $ac_word... " >&6; }
8915 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 if test -n "$ac_ct_MIG"; then
8919 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8920 else
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922 for as_dir in $PATH
8923 do
8924 IFS=$as_save_IFS
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8928 ac_cv_prog_ac_ct_MIG="mig"
8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8930 break 2
8931 fi
8932 done
8933 done
8934 IFS=$as_save_IFS
8935
8936 fi
8937 fi
8938 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8939 if test -n "$ac_ct_MIG"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8941 $as_echo "$ac_ct_MIG" >&6; }
8942 else
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8945 fi
8946
8947 if test "x$ac_ct_MIG" = x; then
8948 MIG=""
8949 else
8950 case $cross_compiling:$ac_tool_warned in
8951 yes:)
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8954 ac_tool_warned=yes ;;
8955 esac
8956 MIG=$ac_ct_MIG
8957 fi
8958 else
8959 MIG="$ac_cv_prog_MIG"
8960 fi
8961
8962
8963 # ---------------------- #
8964 # Checks for libraries. #
8965 # ---------------------- #
8966
8967 # We might need to link with -lm; most simulators need it.
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8969 $as_echo_n "checking for main in -lm... " >&6; }
8970 if test "${ac_cv_lib_m_main+set}" = set; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 ac_check_lib_save_LIBS=$LIBS
8974 LIBS="-lm $LIBS"
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977
8978
8979 int
8980 main ()
8981 {
8982 return main ();
8983 ;
8984 return 0;
8985 }
8986 _ACEOF
8987 if ac_fn_c_try_link "$LINENO"; then :
8988 ac_cv_lib_m_main=yes
8989 else
8990 ac_cv_lib_m_main=no
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 LIBS=$ac_check_lib_save_LIBS
8995 fi
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8997 $as_echo "$ac_cv_lib_m_main" >&6; }
8998 if test "x$ac_cv_lib_m_main" = x""yes; then :
8999 cat >>confdefs.h <<_ACEOF
9000 #define HAVE_LIBM 1
9001 _ACEOF
9002
9003 LIBS="-lm $LIBS"
9004
9005 fi
9006
9007
9008 # We need to link with -lw to get `wctype' on Solaris before Solaris
9009 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9010 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9011 # is known to have this problem). Therefore we avoid libw if we can.
9012 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9013 if test "x$ac_cv_func_wctype" = x""yes; then :
9014
9015 else
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9017 $as_echo_n "checking for wctype in -lw... " >&6; }
9018 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 ac_check_lib_save_LIBS=$LIBS
9022 LIBS="-lw $LIBS"
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9025
9026 /* Override any GCC internal prototype to avoid an error.
9027 Use char because int might match the return type of a GCC
9028 builtin and then its argument prototype would still apply. */
9029 #ifdef __cplusplus
9030 extern "C"
9031 #endif
9032 char wctype ();
9033 int
9034 main ()
9035 {
9036 return wctype ();
9037 ;
9038 return 0;
9039 }
9040 _ACEOF
9041 if ac_fn_c_try_link "$LINENO"; then :
9042 ac_cv_lib_w_wctype=yes
9043 else
9044 ac_cv_lib_w_wctype=no
9045 fi
9046 rm -f core conftest.err conftest.$ac_objext \
9047 conftest$ac_exeext conftest.$ac_ext
9048 LIBS=$ac_check_lib_save_LIBS
9049 fi
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9051 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9052 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9053 cat >>confdefs.h <<_ACEOF
9054 #define HAVE_LIBW 1
9055 _ACEOF
9056
9057 LIBS="-lw $LIBS"
9058
9059 fi
9060
9061 fi
9062
9063
9064 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9066 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9067 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9068 $as_echo_n "(cached) " >&6
9069 else
9070 ac_func_search_save_LIBS=$LIBS
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9073
9074 /* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
9077 #ifdef __cplusplus
9078 extern "C"
9079 #endif
9080 char gethostbyname ();
9081 int
9082 main ()
9083 {
9084 return gethostbyname ();
9085 ;
9086 return 0;
9087 }
9088 _ACEOF
9089 for ac_lib in '' nsl; do
9090 if test -z "$ac_lib"; then
9091 ac_res="none required"
9092 else
9093 ac_res=-l$ac_lib
9094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9095 fi
9096 if ac_fn_c_try_link "$LINENO"; then :
9097 ac_cv_search_gethostbyname=$ac_res
9098 fi
9099 rm -f core conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext
9101 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9102 break
9103 fi
9104 done
9105 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9106
9107 else
9108 ac_cv_search_gethostbyname=no
9109 fi
9110 rm conftest.$ac_ext
9111 LIBS=$ac_func_search_save_LIBS
9112 fi
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9114 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9115 ac_res=$ac_cv_search_gethostbyname
9116 if test "$ac_res" != no; then :
9117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9118
9119 fi
9120
9121
9122 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9124 $as_echo_n "checking for library containing socketpair... " >&6; }
9125 if test "${ac_cv_search_socketpair+set}" = set; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 ac_func_search_save_LIBS=$LIBS
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131
9132 /* Override any GCC internal prototype to avoid an error.
9133 Use char because int might match the return type of a GCC
9134 builtin and then its argument prototype would still apply. */
9135 #ifdef __cplusplus
9136 extern "C"
9137 #endif
9138 char socketpair ();
9139 int
9140 main ()
9141 {
9142 return socketpair ();
9143 ;
9144 return 0;
9145 }
9146 _ACEOF
9147 for ac_lib in '' socket; do
9148 if test -z "$ac_lib"; then
9149 ac_res="none required"
9150 else
9151 ac_res=-l$ac_lib
9152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9153 fi
9154 if ac_fn_c_try_link "$LINENO"; then :
9155 ac_cv_search_socketpair=$ac_res
9156 fi
9157 rm -f core conftest.err conftest.$ac_objext \
9158 conftest$ac_exeext
9159 if test "${ac_cv_search_socketpair+set}" = set; then :
9160 break
9161 fi
9162 done
9163 if test "${ac_cv_search_socketpair+set}" = set; then :
9164
9165 else
9166 ac_cv_search_socketpair=no
9167 fi
9168 rm conftest.$ac_ext
9169 LIBS=$ac_func_search_save_LIBS
9170 fi
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9172 $as_echo "$ac_cv_search_socketpair" >&6; }
9173 ac_res=$ac_cv_search_socketpair
9174 if test "$ac_res" != no; then :
9175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9176
9177 fi
9178
9179
9180 # Link in zlib if we can. This allows us to read compressed debug sections.
9181
9182 # See if the user specified whether he wants zlib support or not.
9183
9184 # Check whether --with-zlib was given.
9185 if test "${with_zlib+set}" = set; then :
9186 withval=$with_zlib;
9187 else
9188 with_zlib=auto
9189 fi
9190
9191
9192 if test "$with_zlib" != "no"; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9194 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9195 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 ac_func_search_save_LIBS=$LIBS
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201
9202 /* Override any GCC internal prototype to avoid an error.
9203 Use char because int might match the return type of a GCC
9204 builtin and then its argument prototype would still apply. */
9205 #ifdef __cplusplus
9206 extern "C"
9207 #endif
9208 char zlibVersion ();
9209 int
9210 main ()
9211 {
9212 return zlibVersion ();
9213 ;
9214 return 0;
9215 }
9216 _ACEOF
9217 for ac_lib in '' z; do
9218 if test -z "$ac_lib"; then
9219 ac_res="none required"
9220 else
9221 ac_res=-l$ac_lib
9222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9223 fi
9224 if ac_fn_c_try_link "$LINENO"; then :
9225 ac_cv_search_zlibVersion=$ac_res
9226 fi
9227 rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext
9229 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9230 break
9231 fi
9232 done
9233 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9234
9235 else
9236 ac_cv_search_zlibVersion=no
9237 fi
9238 rm conftest.$ac_ext
9239 LIBS=$ac_func_search_save_LIBS
9240 fi
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9242 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9243 ac_res=$ac_cv_search_zlibVersion
9244 if test "$ac_res" != no; then :
9245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9246 for ac_header in zlib.h
9247 do :
9248 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9249 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9250 cat >>confdefs.h <<_ACEOF
9251 #define HAVE_ZLIB_H 1
9252 _ACEOF
9253
9254 fi
9255
9256 done
9257
9258 fi
9259
9260 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9261 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9262 fi
9263 fi
9264
9265
9266 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9268 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9269 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9270 $as_echo_n "(cached) " >&6
9271 else
9272 ac_func_search_save_LIBS=$LIBS
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275
9276 /* Override any GCC internal prototype to avoid an error.
9277 Use char because int might match the return type of a GCC
9278 builtin and then its argument prototype would still apply. */
9279 #ifdef __cplusplus
9280 extern "C"
9281 #endif
9282 char dlgetmodinfo ();
9283 int
9284 main ()
9285 {
9286 return dlgetmodinfo ();
9287 ;
9288 return 0;
9289 }
9290 _ACEOF
9291 for ac_lib in '' dl xpdl; do
9292 if test -z "$ac_lib"; then
9293 ac_res="none required"
9294 else
9295 ac_res=-l$ac_lib
9296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9297 fi
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 ac_cv_search_dlgetmodinfo=$ac_res
9300 fi
9301 rm -f core conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext
9303 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9304 break
9305 fi
9306 done
9307 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9308
9309 else
9310 ac_cv_search_dlgetmodinfo=no
9311 fi
9312 rm conftest.$ac_ext
9313 LIBS=$ac_func_search_save_LIBS
9314 fi
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9316 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9317 ac_res=$ac_cv_search_dlgetmodinfo
9318 if test "$ac_res" != no; then :
9319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9320
9321 fi
9322
9323
9324
9325
9326
9327 # Check whether --with-libiconv-prefix was given.
9328 if test "${with_libiconv_prefix+set}" = set; then :
9329 withval=$with_libiconv_prefix;
9330 for dir in `echo "$withval" | tr : ' '`; do
9331 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9332 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9333 done
9334
9335 fi
9336
9337
9338 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9339 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9340
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9342 $as_echo_n "checking for iconv... " >&6; }
9343 if test "${am_cv_func_iconv+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346
9347 am_cv_func_iconv="no, consider installing GNU libiconv"
9348 am_cv_lib_iconv=no
9349 am_cv_use_build_libiconv=no
9350 am_cv_build_libiconv_path=
9351
9352 # If libiconv is part of the build tree, then try using it over
9353 # any system iconv.
9354 if test -d ../libiconv; then
9355 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9356 am_save_LIBS="$LIBS"
9357 am_save_CPPFLAGS="$CPPFLAGS"
9358 LIBS="$LIBS $lib_dir/libiconv.a"
9359 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362 #include <stdlib.h>
9363 #include <iconv.h>
9364 int
9365 main ()
9366 {
9367 iconv_t cd = iconv_open("","");
9368 iconv(cd,NULL,NULL,NULL,NULL);
9369 iconv_close(cd);
9370 ;
9371 return 0;
9372 }
9373 _ACEOF
9374 if ac_fn_c_try_link "$LINENO"; then :
9375 am_cv_use_build_libiconv=yes
9376 am_cv_build_libiconv_path=$lib_dir/libiconv.a
9377 am_cv_lib_iconv=yes
9378 am_cv_func_iconv=yes
9379 fi
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 LIBS="$am_save_LIBS"
9383 CPPFLAGS="$am_save_CPPFLAGS"
9384 if test "$am_cv_use_build_libiconv" = "yes"; then
9385 break
9386 fi
9387 done
9388 fi
9389
9390 # Next, try to find iconv in libc.
9391 if test "$am_cv_func_iconv" != yes; then
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394 #include <stdlib.h>
9395 #include <iconv.h>
9396 int
9397 main ()
9398 {
9399 iconv_t cd = iconv_open("","");
9400 iconv(cd,NULL,NULL,NULL,NULL);
9401 iconv_close(cd);
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 if ac_fn_c_try_link "$LINENO"; then :
9407 am_cv_func_iconv=yes
9408 fi
9409 rm -f core conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9411 fi
9412
9413 # If iconv was not in libc, try -liconv. In this case, arrange to
9414 # look in the libiconv prefix, if it was specified by the user.
9415 if test "$am_cv_func_iconv" != yes; then
9416 am_save_CPPFLAGS="$CPPFLAGS"
9417 am_save_LIBS="$LIBS"
9418 if test -n "$LIBICONV_INCLUDE"; then
9419 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9420 LIBS="$LIBS $LIBICONV_LIBDIR"
9421 fi
9422 LIBS="$LIBS -liconv"
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 #include <stdlib.h>
9426 #include <iconv.h>
9427 int
9428 main ()
9429 {
9430 iconv_t cd = iconv_open("","");
9431 iconv(cd,NULL,NULL,NULL,NULL);
9432 iconv_close(cd);
9433 ;
9434 return 0;
9435 }
9436 _ACEOF
9437 if ac_fn_c_try_link "$LINENO"; then :
9438 am_cv_lib_iconv=yes
9439 am_cv_func_iconv=yes
9440 fi
9441 rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9443 LIBS="$am_save_LIBS"
9444 CPPFLAGS="$am_save_CPPFLAGS"
9445 fi
9446
9447 fi
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9449 $as_echo "$am_cv_func_iconv" >&6; }
9450
9451 # Set the various flags based on the cache variables. We can't rely
9452 # on the flags to remain set from the above code, due to caching.
9453 LIBICONV=
9454 if test "$am_cv_lib_iconv" = yes; then
9455 LIBICONV="-liconv"
9456 else
9457 LIBICONV_LIBDIR=
9458 LIBICONV_INCLUDE=
9459 fi
9460 if test "$am_cv_use_build_libiconv" = yes; then
9461 LIBICONV="$am_cv_build_libiconv_path"
9462 LIBICONV_LIBDIR=""
9463 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9464 fi
9465 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9466 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9467
9468 if test "$am_cv_func_iconv" = yes; then
9469
9470 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9471
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9473 $as_echo_n "checking for iconv declaration... " >&6; }
9474 if test "${am_cv_proto_iconv+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9480
9481 #include <stdlib.h>
9482 #include <iconv.h>
9483 extern
9484 #ifdef __cplusplus
9485 "C"
9486 #endif
9487 #if defined(__STDC__) || defined(__cplusplus)
9488 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9489 #else
9490 size_t iconv();
9491 #endif
9492
9493 int
9494 main ()
9495 {
9496
9497 ;
9498 return 0;
9499 }
9500 _ACEOF
9501 if ac_fn_c_try_compile "$LINENO"; then :
9502 am_cv_proto_iconv_arg1=""
9503 else
9504 am_cv_proto_iconv_arg1="const"
9505 fi
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 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);"
9508 fi
9509
9510 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9512 }$am_cv_proto_iconv" >&5
9513 $as_echo "${ac_t:-
9514 }$am_cv_proto_iconv" >&6; }
9515
9516 cat >>confdefs.h <<_ACEOF
9517 #define ICONV_CONST $am_cv_proto_iconv_arg1
9518 _ACEOF
9519
9520 fi
9521
9522
9523 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9524 # There is a very specific comment in /usr/include/curses.h explaining that
9525 # termcap routines built into libcurses must not be used.
9526 #
9527 # The symptoms we observed so far is GDB unexpectedly changing
9528 # the terminal settings when tgetent is called - this is particularly
9529 # visible as the output is missing carriage returns, and so rapidly
9530 # becomes very hard to read.
9531 #
9532 # The readline configure script has already decided that libtermcap
9533 # was enough for its purposes, and so decided to build readline using
9534 # libtermcap. Since the TUI mode requires curses, building GDB with
9535 # TUI enabled results in both libraries to be used at the same time,
9536 # which is not allowed. This basically means that GDB with TUI is
9537 # broken on alpha-osf.
9538
9539 case $host_os in
9540 osf* )
9541 if test x"$enable_tui" = xyes; then
9542 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9543 fi
9544 if test x"$enable_tui" = xauto; then
9545 enable_tui=no
9546 fi
9547 ;;
9548 esac
9549
9550 # For the TUI, we need enhanced curses functionality.
9551 if test x"$enable_tui" != xno; then
9552 prefer_curses=yes
9553 fi
9554
9555 curses_found=no
9556 if test x"$prefer_curses" = xyes; then
9557 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9558 # curses library because the latter might not provide all the
9559 # functionality we need. However, this leads to problems on systems
9560 # where the linker searches /usr/local/lib, but the compiler doesn't
9561 # search /usr/local/include, if ncurses is installed in /usr/local. A
9562 # default installation of ncurses on alpha*-dec-osf* will lead to such
9563 # a situation.
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9565 $as_echo_n "checking for library containing waddstr... " >&6; }
9566 if test "${ac_cv_search_waddstr+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 ac_func_search_save_LIBS=$LIBS
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572
9573 /* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
9576 #ifdef __cplusplus
9577 extern "C"
9578 #endif
9579 char waddstr ();
9580 int
9581 main ()
9582 {
9583 return waddstr ();
9584 ;
9585 return 0;
9586 }
9587 _ACEOF
9588 for ac_lib in '' ncurses cursesX curses; do
9589 if test -z "$ac_lib"; then
9590 ac_res="none required"
9591 else
9592 ac_res=-l$ac_lib
9593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9594 fi
9595 if ac_fn_c_try_link "$LINENO"; then :
9596 ac_cv_search_waddstr=$ac_res
9597 fi
9598 rm -f core conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext
9600 if test "${ac_cv_search_waddstr+set}" = set; then :
9601 break
9602 fi
9603 done
9604 if test "${ac_cv_search_waddstr+set}" = set; then :
9605
9606 else
9607 ac_cv_search_waddstr=no
9608 fi
9609 rm conftest.$ac_ext
9610 LIBS=$ac_func_search_save_LIBS
9611 fi
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9613 $as_echo "$ac_cv_search_waddstr" >&6; }
9614 ac_res=$ac_cv_search_waddstr
9615 if test "$ac_res" != no; then :
9616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9617
9618 fi
9619
9620
9621 if test "$ac_cv_search_waddstr" != no; then
9622 curses_found=yes
9623 fi
9624 fi
9625
9626 # Check whether we should enable the TUI, but only do so if we really
9627 # can.
9628 if test x"$enable_tui" != xno; then
9629 if test -d $srcdir/tui; then
9630 if test "$curses_found" != no; then
9631 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9632 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9633 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9634 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9635 CONFIG_ALL="${CONFIG_ALL} all-tui"
9636 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9637 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9638 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9639 else
9640 if test x"$enable_tui" = xyes; then
9641 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9642 else
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9644 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9645 fi
9646 fi
9647 fi
9648 fi
9649
9650 # Since GDB uses Readline, we need termcap functionality. In many
9651 # cases this will be provided by the curses library, but some systems
9652 # have a seperate termcap library, or no curses library at all.
9653
9654 case $host_os in
9655 cygwin*)
9656 if test -d $srcdir/libtermcap; then
9657 LIBS="../libtermcap/libtermcap.a $LIBS"
9658 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9659 fi ;;
9660 go32* | *djgpp*)
9661 ac_cv_search_tgetent="none required"
9662 ;;
9663 *mingw32*)
9664 ac_cv_search_tgetent="none required"
9665 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9666 ;;
9667 esac
9668
9669 # These are the libraries checked by Readline.
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9671 $as_echo_n "checking for library containing tgetent... " >&6; }
9672 if test "${ac_cv_search_tgetent+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 ac_func_search_save_LIBS=$LIBS
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9678
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9682 #ifdef __cplusplus
9683 extern "C"
9684 #endif
9685 char tgetent ();
9686 int
9687 main ()
9688 {
9689 return tgetent ();
9690 ;
9691 return 0;
9692 }
9693 _ACEOF
9694 for ac_lib in '' termcap tinfo curses ncurses; do
9695 if test -z "$ac_lib"; then
9696 ac_res="none required"
9697 else
9698 ac_res=-l$ac_lib
9699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9700 fi
9701 if ac_fn_c_try_link "$LINENO"; then :
9702 ac_cv_search_tgetent=$ac_res
9703 fi
9704 rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext
9706 if test "${ac_cv_search_tgetent+set}" = set; then :
9707 break
9708 fi
9709 done
9710 if test "${ac_cv_search_tgetent+set}" = set; then :
9711
9712 else
9713 ac_cv_search_tgetent=no
9714 fi
9715 rm conftest.$ac_ext
9716 LIBS=$ac_func_search_save_LIBS
9717 fi
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9719 $as_echo "$ac_cv_search_tgetent" >&6; }
9720 ac_res=$ac_cv_search_tgetent
9721 if test "$ac_res" != no; then :
9722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9723
9724 fi
9725
9726
9727 if test "$ac_cv_search_tgetent" = no; then
9728 as_fn_error "no termcap library found" "$LINENO" 5
9729 fi
9730
9731
9732 # Check whether --with-system-readline was given.
9733 if test "${with_system_readline+set}" = set; then :
9734 withval=$with_system_readline;
9735 fi
9736
9737
9738 if test "$with_system_readline" = yes; then
9739 READLINE=-lreadline
9740 READLINE_DEPS=
9741 READLINE_CFLAGS=
9742
9743 # readline-6.0 started to use the name `_rl_echoing_p'.
9744 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9745
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9747 $as_echo_n "checking for readline_echoing_p... " >&6; }
9748 save_LIBS=$LIBS
9749 LIBS="$LIBS $READLINE"
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752
9753 int
9754 main ()
9755 {
9756 extern int readline_echoing_p;
9757 return readline_echoing_p;
9758 ;
9759 return 0;
9760 }
9761 _ACEOF
9762 if ac_fn_c_try_link "$LINENO"; then :
9763 READLINE_ECHOING_P=yes
9764 else
9765 READLINE_ECHOING_P=no
9766
9767 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9768
9769 fi
9770 rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 LIBS="$save_LIBS"
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9774 $as_echo "$READLINE_ECHOING_P" >&6; }
9775 else
9776 READLINE='$(READLINE_DIR)/libreadline.a'
9777 READLINE_DEPS='$(READLINE)'
9778 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9779 fi
9780
9781
9782
9783
9784
9785 # Check whether --with-expat was given.
9786 if test "${with_expat+set}" = set; then :
9787 withval=$with_expat;
9788 else
9789 with_expat=auto
9790 fi
9791
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9793 $as_echo_n "checking whether to use expat... " >&6; }
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9795 $as_echo "$with_expat" >&6; }
9796
9797 if test "${with_expat}" = no; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9799 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9800 HAVE_LIBEXPAT=no
9801 else
9802
9803 if test "X$prefix" = "XNONE"; then
9804 acl_final_prefix="$ac_default_prefix"
9805 else
9806 acl_final_prefix="$prefix"
9807 fi
9808 if test "X$exec_prefix" = "XNONE"; then
9809 acl_final_exec_prefix='${prefix}'
9810 else
9811 acl_final_exec_prefix="$exec_prefix"
9812 fi
9813 acl_save_prefix="$prefix"
9814 prefix="$acl_final_prefix"
9815 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9816 prefix="$acl_save_prefix"
9817
9818
9819 # Check whether --with-gnu-ld was given.
9820 if test "${with_gnu_ld+set}" = set; then :
9821 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9822 else
9823 with_gnu_ld=no
9824 fi
9825
9826 # Prepare PATH_SEPARATOR.
9827 # The user is always right.
9828 if test "${PATH_SEPARATOR+set}" != set; then
9829 echo "#! /bin/sh" >conf$$.sh
9830 echo "exit 0" >>conf$$.sh
9831 chmod +x conf$$.sh
9832 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9833 PATH_SEPARATOR=';'
9834 else
9835 PATH_SEPARATOR=:
9836 fi
9837 rm -f conf$$.sh
9838 fi
9839 ac_prog=ld
9840 if test "$GCC" = yes; then
9841 # Check if gcc -print-prog-name=ld gives a path.
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9843 $as_echo_n "checking for ld used by GCC... " >&6; }
9844 case $host in
9845 *-*-mingw*)
9846 # gcc leaves a trailing carriage return which upsets mingw
9847 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9848 *)
9849 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9850 esac
9851 case $ac_prog in
9852 # Accept absolute paths.
9853 [\\/]* | [A-Za-z]:[\\/]*)
9854 re_direlt='/[^/][^/]*/\.\./'
9855 # Canonicalize the path of ld
9856 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9857 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9858 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9859 done
9860 test -z "$LD" && LD="$ac_prog"
9861 ;;
9862 "")
9863 # If it fails, then pretend we aren't using GCC.
9864 ac_prog=ld
9865 ;;
9866 *)
9867 # If it is relative, then search for the first ld in PATH.
9868 with_gnu_ld=unknown
9869 ;;
9870 esac
9871 elif test "$with_gnu_ld" = yes; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9873 $as_echo_n "checking for GNU ld... " >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9876 $as_echo_n "checking for non-GNU ld... " >&6; }
9877 fi
9878 if test "${acl_cv_path_LD+set}" = set; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 if test -z "$LD"; then
9882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9883 for ac_dir in $PATH; do
9884 test -z "$ac_dir" && ac_dir=.
9885 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9886 acl_cv_path_LD="$ac_dir/$ac_prog"
9887 # Check to see if the program is GNU ld. I'd rather use --version,
9888 # but apparently some GNU ld's only accept -v.
9889 # Break only if it was the GNU/non-GNU ld that we prefer.
9890 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9891 test "$with_gnu_ld" != no && break
9892 else
9893 test "$with_gnu_ld" != yes && break
9894 fi
9895 fi
9896 done
9897 IFS="$ac_save_ifs"
9898 else
9899 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9900 fi
9901 fi
9902
9903 LD="$acl_cv_path_LD"
9904 if test -n "$LD"; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9906 $as_echo "$LD" >&6; }
9907 else
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9910 fi
9911 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9914 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9915 $as_echo_n "(cached) " >&6
9916 else
9917 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9918 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9919 acl_cv_prog_gnu_ld=yes
9920 else
9921 acl_cv_prog_gnu_ld=no
9922 fi
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9925 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9926 with_gnu_ld=$acl_cv_prog_gnu_ld
9927
9928
9929
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9931 $as_echo_n "checking for shared library run path origin... " >&6; }
9932 if test "${acl_cv_rpath+set}" = set; then :
9933 $as_echo_n "(cached) " >&6
9934 else
9935
9936 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9937 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9938 . ./conftest.sh
9939 rm -f ./conftest.sh
9940 acl_cv_rpath=done
9941
9942 fi
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9944 $as_echo "$acl_cv_rpath" >&6; }
9945 wl="$acl_cv_wl"
9946 libext="$acl_cv_libext"
9947 shlibext="$acl_cv_shlibext"
9948 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9949 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9950 hardcode_direct="$acl_cv_hardcode_direct"
9951 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9952 # Check whether --enable-rpath was given.
9953 if test "${enable_rpath+set}" = set; then :
9954 enableval=$enable_rpath; :
9955 else
9956 enable_rpath=yes
9957 fi
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968 use_additional=yes
9969
9970 acl_save_prefix="$prefix"
9971 prefix="$acl_final_prefix"
9972 acl_save_exec_prefix="$exec_prefix"
9973 exec_prefix="$acl_final_exec_prefix"
9974
9975 eval additional_includedir=\"$includedir\"
9976 eval additional_libdir=\"$libdir\"
9977
9978 exec_prefix="$acl_save_exec_prefix"
9979 prefix="$acl_save_prefix"
9980
9981
9982 # Check whether --with-libexpat-prefix was given.
9983 if test "${with_libexpat_prefix+set}" = set; then :
9984 withval=$with_libexpat_prefix;
9985 if test "X$withval" = "Xno"; then
9986 use_additional=no
9987 else
9988 if test "X$withval" = "X"; then
9989
9990 acl_save_prefix="$prefix"
9991 prefix="$acl_final_prefix"
9992 acl_save_exec_prefix="$exec_prefix"
9993 exec_prefix="$acl_final_exec_prefix"
9994
9995 eval additional_includedir=\"$includedir\"
9996 eval additional_libdir=\"$libdir\"
9997
9998 exec_prefix="$acl_save_exec_prefix"
9999 prefix="$acl_save_prefix"
10000
10001 else
10002 additional_includedir="$withval/include"
10003 additional_libdir="$withval/lib"
10004 fi
10005 fi
10006
10007 fi
10008
10009 LIBEXPAT=
10010 LTLIBEXPAT=
10011 INCEXPAT=
10012 rpathdirs=
10013 ltrpathdirs=
10014 names_already_handled=
10015 names_next_round='expat '
10016 while test -n "$names_next_round"; do
10017 names_this_round="$names_next_round"
10018 names_next_round=
10019 for name in $names_this_round; do
10020 already_handled=
10021 for n in $names_already_handled; do
10022 if test "$n" = "$name"; then
10023 already_handled=yes
10024 break
10025 fi
10026 done
10027 if test -z "$already_handled"; then
10028 names_already_handled="$names_already_handled $name"
10029 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10030 eval value=\"\$HAVE_LIB$uppername\"
10031 if test -n "$value"; then
10032 if test "$value" = yes; then
10033 eval value=\"\$LIB$uppername\"
10034 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10035 eval value=\"\$LTLIB$uppername\"
10036 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10037 else
10038 :
10039 fi
10040 else
10041 found_dir=
10042 found_la=
10043 found_so=
10044 found_a=
10045 if test $use_additional = yes; then
10046 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10047 found_dir="$additional_libdir"
10048 found_so="$additional_libdir/lib$name.$shlibext"
10049 if test -f "$additional_libdir/lib$name.la"; then
10050 found_la="$additional_libdir/lib$name.la"
10051 fi
10052 else
10053 if test -f "$additional_libdir/lib$name.$libext"; then
10054 found_dir="$additional_libdir"
10055 found_a="$additional_libdir/lib$name.$libext"
10056 if test -f "$additional_libdir/lib$name.la"; then
10057 found_la="$additional_libdir/lib$name.la"
10058 fi
10059 fi
10060 fi
10061 fi
10062 if test "X$found_dir" = "X"; then
10063 for x in $LDFLAGS $LTLIBEXPAT; do
10064
10065 acl_save_prefix="$prefix"
10066 prefix="$acl_final_prefix"
10067 acl_save_exec_prefix="$exec_prefix"
10068 exec_prefix="$acl_final_exec_prefix"
10069 eval x=\"$x\"
10070 exec_prefix="$acl_save_exec_prefix"
10071 prefix="$acl_save_prefix"
10072
10073 case "$x" in
10074 -L*)
10075 dir=`echo "X$x" | sed -e 's/^X-L//'`
10076 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10077 found_dir="$dir"
10078 found_so="$dir/lib$name.$shlibext"
10079 if test -f "$dir/lib$name.la"; then
10080 found_la="$dir/lib$name.la"
10081 fi
10082 else
10083 if test -f "$dir/lib$name.$libext"; then
10084 found_dir="$dir"
10085 found_a="$dir/lib$name.$libext"
10086 if test -f "$dir/lib$name.la"; then
10087 found_la="$dir/lib$name.la"
10088 fi
10089 fi
10090 fi
10091 ;;
10092 esac
10093 if test "X$found_dir" != "X"; then
10094 break
10095 fi
10096 done
10097 fi
10098 if test "X$found_dir" != "X"; then
10099 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10100 if test "X$found_so" != "X"; then
10101 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10102 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10103 else
10104 haveit=
10105 for x in $ltrpathdirs; do
10106 if test "X$x" = "X$found_dir"; then
10107 haveit=yes
10108 break
10109 fi
10110 done
10111 if test -z "$haveit"; then
10112 ltrpathdirs="$ltrpathdirs $found_dir"
10113 fi
10114 if test "$hardcode_direct" = yes; then
10115 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10116 else
10117 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10118 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10119 haveit=
10120 for x in $rpathdirs; do
10121 if test "X$x" = "X$found_dir"; then
10122 haveit=yes
10123 break
10124 fi
10125 done
10126 if test -z "$haveit"; then
10127 rpathdirs="$rpathdirs $found_dir"
10128 fi
10129 else
10130 haveit=
10131 for x in $LDFLAGS $LIBEXPAT; do
10132
10133 acl_save_prefix="$prefix"
10134 prefix="$acl_final_prefix"
10135 acl_save_exec_prefix="$exec_prefix"
10136 exec_prefix="$acl_final_exec_prefix"
10137 eval x=\"$x\"
10138 exec_prefix="$acl_save_exec_prefix"
10139 prefix="$acl_save_prefix"
10140
10141 if test "X$x" = "X-L$found_dir"; then
10142 haveit=yes
10143 break
10144 fi
10145 done
10146 if test -z "$haveit"; then
10147 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10148 fi
10149 if test "$hardcode_minus_L" != no; then
10150 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10151 else
10152 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10153 fi
10154 fi
10155 fi
10156 fi
10157 else
10158 if test "X$found_a" != "X"; then
10159 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10160 else
10161 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10162 fi
10163 fi
10164 additional_includedir=
10165 case "$found_dir" in
10166 */lib | */lib/)
10167 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10168 additional_includedir="$basedir/include"
10169 ;;
10170 esac
10171 if test "X$additional_includedir" != "X"; then
10172 if test "X$additional_includedir" != "X/usr/include"; then
10173 haveit=
10174 if test "X$additional_includedir" = "X/usr/local/include"; then
10175 if test -n "$GCC"; then
10176 case $host_os in
10177 linux*) haveit=yes;;
10178 esac
10179 fi
10180 fi
10181 if test -z "$haveit"; then
10182 for x in $CPPFLAGS $INCEXPAT; do
10183
10184 acl_save_prefix="$prefix"
10185 prefix="$acl_final_prefix"
10186 acl_save_exec_prefix="$exec_prefix"
10187 exec_prefix="$acl_final_exec_prefix"
10188 eval x=\"$x\"
10189 exec_prefix="$acl_save_exec_prefix"
10190 prefix="$acl_save_prefix"
10191
10192 if test "X$x" = "X-I$additional_includedir"; then
10193 haveit=yes
10194 break
10195 fi
10196 done
10197 if test -z "$haveit"; then
10198 if test -d "$additional_includedir"; then
10199 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10200 fi
10201 fi
10202 fi
10203 fi
10204 fi
10205 if test -n "$found_la"; then
10206 save_libdir="$libdir"
10207 case "$found_la" in
10208 */* | *\\*) . "$found_la" ;;
10209 *) . "./$found_la" ;;
10210 esac
10211 libdir="$save_libdir"
10212 for dep in $dependency_libs; do
10213 case "$dep" in
10214 -L*)
10215 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10216 if test "X$additional_libdir" != "X/usr/lib"; then
10217 haveit=
10218 if test "X$additional_libdir" = "X/usr/local/lib"; then
10219 if test -n "$GCC"; then
10220 case $host_os in
10221 linux*) haveit=yes;;
10222 esac
10223 fi
10224 fi
10225 if test -z "$haveit"; then
10226 haveit=
10227 for x in $LDFLAGS $LIBEXPAT; do
10228
10229 acl_save_prefix="$prefix"
10230 prefix="$acl_final_prefix"
10231 acl_save_exec_prefix="$exec_prefix"
10232 exec_prefix="$acl_final_exec_prefix"
10233 eval x=\"$x\"
10234 exec_prefix="$acl_save_exec_prefix"
10235 prefix="$acl_save_prefix"
10236
10237 if test "X$x" = "X-L$additional_libdir"; then
10238 haveit=yes
10239 break
10240 fi
10241 done
10242 if test -z "$haveit"; then
10243 if test -d "$additional_libdir"; then
10244 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10245 fi
10246 fi
10247 haveit=
10248 for x in $LDFLAGS $LTLIBEXPAT; do
10249
10250 acl_save_prefix="$prefix"
10251 prefix="$acl_final_prefix"
10252 acl_save_exec_prefix="$exec_prefix"
10253 exec_prefix="$acl_final_exec_prefix"
10254 eval x=\"$x\"
10255 exec_prefix="$acl_save_exec_prefix"
10256 prefix="$acl_save_prefix"
10257
10258 if test "X$x" = "X-L$additional_libdir"; then
10259 haveit=yes
10260 break
10261 fi
10262 done
10263 if test -z "$haveit"; then
10264 if test -d "$additional_libdir"; then
10265 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10266 fi
10267 fi
10268 fi
10269 fi
10270 ;;
10271 -R*)
10272 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10273 if test "$enable_rpath" != no; then
10274 haveit=
10275 for x in $rpathdirs; do
10276 if test "X$x" = "X$dir"; then
10277 haveit=yes
10278 break
10279 fi
10280 done
10281 if test -z "$haveit"; then
10282 rpathdirs="$rpathdirs $dir"
10283 fi
10284 haveit=
10285 for x in $ltrpathdirs; do
10286 if test "X$x" = "X$dir"; then
10287 haveit=yes
10288 break
10289 fi
10290 done
10291 if test -z "$haveit"; then
10292 ltrpathdirs="$ltrpathdirs $dir"
10293 fi
10294 fi
10295 ;;
10296 -l*)
10297 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10298 ;;
10299 *.la)
10300 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10301 ;;
10302 *)
10303 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10304 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10305 ;;
10306 esac
10307 done
10308 fi
10309 else
10310 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10311 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10312 fi
10313 fi
10314 fi
10315 done
10316 done
10317 if test "X$rpathdirs" != "X"; then
10318 if test -n "$hardcode_libdir_separator"; then
10319 alldirs=
10320 for found_dir in $rpathdirs; do
10321 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10322 done
10323 acl_save_libdir="$libdir"
10324 libdir="$alldirs"
10325 eval flag=\"$hardcode_libdir_flag_spec\"
10326 libdir="$acl_save_libdir"
10327 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10328 else
10329 for found_dir in $rpathdirs; do
10330 acl_save_libdir="$libdir"
10331 libdir="$found_dir"
10332 eval flag=\"$hardcode_libdir_flag_spec\"
10333 libdir="$acl_save_libdir"
10334 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10335 done
10336 fi
10337 fi
10338 if test "X$ltrpathdirs" != "X"; then
10339 for found_dir in $ltrpathdirs; do
10340 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10341 done
10342 fi
10343
10344
10345 ac_save_CPPFLAGS="$CPPFLAGS"
10346
10347 for element in $INCEXPAT; do
10348 haveit=
10349 for x in $CPPFLAGS; do
10350
10351 acl_save_prefix="$prefix"
10352 prefix="$acl_final_prefix"
10353 acl_save_exec_prefix="$exec_prefix"
10354 exec_prefix="$acl_final_exec_prefix"
10355 eval x=\"$x\"
10356 exec_prefix="$acl_save_exec_prefix"
10357 prefix="$acl_save_prefix"
10358
10359 if test "X$x" = "X$element"; then
10360 haveit=yes
10361 break
10362 fi
10363 done
10364 if test -z "$haveit"; then
10365 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10366 fi
10367 done
10368
10369
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10371 $as_echo_n "checking for libexpat... " >&6; }
10372 if test "${ac_cv_libexpat+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375
10376 ac_save_LIBS="$LIBS"
10377 LIBS="$LIBS $LIBEXPAT"
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10380 #include "expat.h"
10381 int
10382 main ()
10383 {
10384 XML_Parser p = XML_ParserCreate (0);
10385 ;
10386 return 0;
10387 }
10388 _ACEOF
10389 if ac_fn_c_try_link "$LINENO"; then :
10390 ac_cv_libexpat=yes
10391 else
10392 ac_cv_libexpat=no
10393 fi
10394 rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396 LIBS="$ac_save_LIBS"
10397
10398 fi
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10400 $as_echo "$ac_cv_libexpat" >&6; }
10401 if test "$ac_cv_libexpat" = yes; then
10402 HAVE_LIBEXPAT=yes
10403
10404 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10405
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10407 $as_echo_n "checking how to link with libexpat... " >&6; }
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10409 $as_echo "$LIBEXPAT" >&6; }
10410 else
10411 HAVE_LIBEXPAT=no
10412 CPPFLAGS="$ac_save_CPPFLAGS"
10413 LIBEXPAT=
10414 LTLIBEXPAT=
10415 fi
10416
10417
10418
10419
10420
10421
10422 if test "$HAVE_LIBEXPAT" != yes; then
10423 if test "$with_expat" = yes; then
10424 as_fn_error "expat is missing or unusable" "$LINENO" 5
10425 else
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10427 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10428 fi
10429 else
10430 save_LIBS=$LIBS
10431 LIBS="$LIBS $LIBEXPAT"
10432 for ac_func in XML_StopParser
10433 do :
10434 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10435 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10436 cat >>confdefs.h <<_ACEOF
10437 #define HAVE_XML_STOPPARSER 1
10438 _ACEOF
10439
10440 fi
10441 done
10442
10443 LIBS=$save_LIBS
10444 fi
10445 fi
10446
10447
10448
10449
10450
10451
10452 # Check whether --with-python was given.
10453 if test "${with_python+set}" = set; then :
10454 withval=$with_python;
10455 else
10456 with_python=auto
10457 fi
10458
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10460 $as_echo_n "checking whether to use python... " >&6; }
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10462 $as_echo "$with_python" >&6; }
10463
10464 if test "${with_python}" = no; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10466 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10467 have_libpython=no
10468 else
10469 case "${with_python}" in
10470 /*)
10471 if test -d ${with_python}; then
10472 # Assume the python binary is ${with_python}/bin/python.
10473 python_prog="${with_python}/bin/python"
10474 python_prefix=
10475 if test ! -x "${python_prog}"; then
10476 # Fall back to gdb 7.0/7.1 behaviour.
10477 python_prog=missing
10478 python_prefix=${with_python}
10479 fi
10480 elif test -x "${with_python}"; then
10481 # While we can't run python compiled for $host (unless host == build),
10482 # the user could write a script that provides the needed information,
10483 # so we support that.
10484 python_prog=${with_python}
10485 python_prefix=
10486 else
10487 as_fn_error "invalid value for --with-python" "$LINENO" 5
10488 fi
10489 ;;
10490 */*)
10491 # Disallow --with-python=foo/bar.
10492 as_fn_error "invalid value for --with-python" "$LINENO" 5
10493 ;;
10494 *)
10495 # The user has either specified auto, yes, or the name of the python
10496 # program assumed to be in $PATH.
10497 python_prefix=
10498 case "${with_python}" in
10499 yes | auto)
10500 if test ${build} = ${host}; then
10501 # Extract the first word of "python", so it can be a program name with args.
10502 set dummy python; ac_word=$2
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504 $as_echo_n "checking for $ac_word... " >&6; }
10505 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 case $python_prog_path in
10509 [\\/]* | ?:[\\/]*)
10510 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10511 ;;
10512 *)
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in $PATH
10515 do
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10520 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 break 2
10523 fi
10524 done
10525 done
10526 IFS=$as_save_IFS
10527
10528 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10529 ;;
10530 esac
10531 fi
10532 python_prog_path=$ac_cv_path_python_prog_path
10533 if test -n "$python_prog_path"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10535 $as_echo "$python_prog_path" >&6; }
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10539 fi
10540
10541
10542 if test "${python_prog_path}" = missing; then
10543 python_prog=missing
10544 else
10545 python_prog=${python_prog_path}
10546 fi
10547 else
10548 # Not much we can do except assume the cross-compiler will find the
10549 # right files.
10550 python_prog=missing
10551 fi
10552 ;;
10553 *)
10554 # While we can't run python compiled for $host (unless host == build),
10555 # the user could write a script that provides the needed information,
10556 # so we support that.
10557 python_prog="${with_python}"
10558 # Extract the first word of "${python_prog}", so it can be a program name with args.
10559 set dummy ${python_prog}; ac_word=$2
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561 $as_echo_n "checking for $ac_word... " >&6; }
10562 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
10564 else
10565 case $python_prog_path in
10566 [\\/]* | ?:[\\/]*)
10567 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10568 ;;
10569 *)
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10572 do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10577 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 break 2
10580 fi
10581 done
10582 done
10583 IFS=$as_save_IFS
10584
10585 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10586 ;;
10587 esac
10588 fi
10589 python_prog_path=$ac_cv_path_python_prog_path
10590 if test -n "$python_prog_path"; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10592 $as_echo "$python_prog_path" >&6; }
10593 else
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595 $as_echo "no" >&6; }
10596 fi
10597
10598
10599 if test "${python_prog_path}" = missing; then
10600 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10601 fi
10602 ;;
10603 esac
10604 esac
10605
10606 if test "${python_prog}" != missing; then
10607 # We have a python program to use, but it may be too old.
10608 # Don't flag an error for --with-python=auto (the default).
10609 have_python_config=yes
10610 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10611 if test $? != 0; then
10612 have_python_config=failed
10613 if test "${with_python}" != auto; then
10614 as_fn_error "failure running python-config --includes" "$LINENO" 5
10615 fi
10616 fi
10617 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10618 if test $? != 0; then
10619 have_python_config=failed
10620 if test "${with_python}" != auto; then
10621 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
10622 fi
10623 fi
10624 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10625 if test $? != 0; then
10626 have_python_config=failed
10627 if test "${with_python}" != auto; then
10628 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10629 fi
10630 fi
10631 else
10632 # Fall back to gdb 7.0/7.1 behaviour.
10633 if test -z ${python_prefix}; then
10634 python_includes=
10635 python_libs=
10636 else
10637 python_includes="-I${python_prefix}/include"
10638 python_libs="-L${python_prefix}/lib"
10639 fi
10640 have_python_config=no
10641 fi
10642
10643 # Having "/pythonX.Y" in the include path is awkward.
10644 # All those python headers get bubbled up to the top inviting lots
10645 # of random collisions. GDB originally didn't use python-config to
10646 # find the compilation parameters and includes "pythonX.Y/" in the
10647 # path of the, umm, include file. So strip away this part of the
10648 # output of python-config --includes.
10649 python_includes=`echo "${python_includes} " \
10650 | sed -e 's,/python[0-9]*[.][0-9]* , ,g'`
10651
10652 # If we have python-config, only try the configuration it provides.
10653 # Otherwise fallback on the old way of trying different versions of
10654 # python in turn.
10655
10656 have_libpython=no
10657 if test "${have_python_config}" = yes; then
10658 python_version=`echo " ${python_libs} " \
10659 | sed -e 's,^.* -l\(python[0-9]*[.][0-9]*\) .*$,\1,'`
10660 case "${python_version}" in
10661 python*)
10662
10663 version=${python_version}
10664
10665 new_CPPFLAGS=${python_includes}
10666 new_LIBS=${python_libs}
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10668 $as_echo_n "checking for ${version}... " >&6; }
10669 save_CPPFLAGS=$CPPFLAGS
10670 save_LIBS=$LIBS
10671 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10672 LIBS="$LIBS $new_LIBS"
10673 found_usable_python=no
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 #include "${version}/Python.h"
10677 int
10678 main ()
10679 {
10680 Py_Initialize ();
10681 ;
10682 return 0;
10683 }
10684 _ACEOF
10685 if ac_fn_c_try_link "$LINENO"; then :
10686 have_libpython=${version}
10687 found_usable_python=yes
10688 else
10689 CPPFLAGS=$save_CPPFLAGS
10690 LIBS=$save_LIBS
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10695 $as_echo "${found_usable_python}" >&6; }
10696
10697 ;;
10698 *)
10699 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
10700 ;;
10701 esac
10702 elif test "${have_python_config}" != failed; then
10703 if test "${have_libpython}" = no; then
10704
10705 version=python2.7
10706
10707 new_CPPFLAGS=${python_includes}
10708 new_LIBS="${python_libs} -lpython2.7"
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10710 $as_echo_n "checking for ${version}... " >&6; }
10711 save_CPPFLAGS=$CPPFLAGS
10712 save_LIBS=$LIBS
10713 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10714 LIBS="$LIBS $new_LIBS"
10715 found_usable_python=no
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 #include "${version}/Python.h"
10719 int
10720 main ()
10721 {
10722 Py_Initialize ();
10723 ;
10724 return 0;
10725 }
10726 _ACEOF
10727 if ac_fn_c_try_link "$LINENO"; then :
10728 have_libpython=${version}
10729 found_usable_python=yes
10730 else
10731 CPPFLAGS=$save_CPPFLAGS
10732 LIBS=$save_LIBS
10733 fi
10734 rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10737 $as_echo "${found_usable_python}" >&6; }
10738
10739 fi
10740 if test "${have_libpython}" = no; then
10741
10742 version=python2.6
10743
10744 new_CPPFLAGS=${python_includes}
10745 new_LIBS="${python_libs} -lpython2.6"
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10747 $as_echo_n "checking for ${version}... " >&6; }
10748 save_CPPFLAGS=$CPPFLAGS
10749 save_LIBS=$LIBS
10750 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10751 LIBS="$LIBS $new_LIBS"
10752 found_usable_python=no
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10755 #include "${version}/Python.h"
10756 int
10757 main ()
10758 {
10759 Py_Initialize ();
10760 ;
10761 return 0;
10762 }
10763 _ACEOF
10764 if ac_fn_c_try_link "$LINENO"; then :
10765 have_libpython=${version}
10766 found_usable_python=yes
10767 else
10768 CPPFLAGS=$save_CPPFLAGS
10769 LIBS=$save_LIBS
10770 fi
10771 rm -f core conftest.err conftest.$ac_objext \
10772 conftest$ac_exeext conftest.$ac_ext
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10774 $as_echo "${found_usable_python}" >&6; }
10775
10776 fi
10777 if test ${have_libpython} = no; then
10778
10779 version=python2.5
10780
10781 new_CPPFLAGS=${python_includes}
10782 new_LIBS="${python_libs} -lpython2.5"
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10784 $as_echo_n "checking for ${version}... " >&6; }
10785 save_CPPFLAGS=$CPPFLAGS
10786 save_LIBS=$LIBS
10787 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10788 LIBS="$LIBS $new_LIBS"
10789 found_usable_python=no
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10792 #include "${version}/Python.h"
10793 int
10794 main ()
10795 {
10796 Py_Initialize ();
10797 ;
10798 return 0;
10799 }
10800 _ACEOF
10801 if ac_fn_c_try_link "$LINENO"; then :
10802 have_libpython=${version}
10803 found_usable_python=yes
10804 else
10805 CPPFLAGS=$save_CPPFLAGS
10806 LIBS=$save_LIBS
10807 fi
10808 rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10811 $as_echo "${found_usable_python}" >&6; }
10812
10813 fi
10814 if test ${have_libpython} = no; then
10815
10816 version=python2.4
10817
10818 new_CPPFLAGS=${python_includes}
10819 new_LIBS="${python_libs} -lpython2.4"
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10821 $as_echo_n "checking for ${version}... " >&6; }
10822 save_CPPFLAGS=$CPPFLAGS
10823 save_LIBS=$LIBS
10824 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10825 LIBS="$LIBS $new_LIBS"
10826 found_usable_python=no
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829 #include "${version}/Python.h"
10830 int
10831 main ()
10832 {
10833 Py_Initialize ();
10834 ;
10835 return 0;
10836 }
10837 _ACEOF
10838 if ac_fn_c_try_link "$LINENO"; then :
10839 have_libpython=${version}
10840 found_usable_python=yes
10841 else
10842 CPPFLAGS=$save_CPPFLAGS
10843 LIBS=$save_LIBS
10844 fi
10845 rm -f core conftest.err conftest.$ac_objext \
10846 conftest$ac_exeext conftest.$ac_ext
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10848 $as_echo "${found_usable_python}" >&6; }
10849
10850 fi
10851 fi
10852 if test "${have_libpython}" = python2.7; then
10853
10854 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10855
10856 elif test "${have_libpython}" = python2.6; then
10857
10858 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10859
10860 elif test "${have_libpython}" = python2.5; then
10861
10862 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10863
10864 elif test "${have_libpython}" = python2.4; then
10865
10866 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10867
10868 fi
10869
10870 if test "${have_libpython}" = no; then
10871 case "${with_python}" in
10872 yes)
10873 as_fn_error "python is missing or unusable" "$LINENO" 5
10874 ;;
10875 auto)
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10877 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10878 ;;
10879 *)
10880 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
10881 ;;
10882 esac
10883 else
10884 if test -n "${python_prefix}"; then
10885
10886 cat >>confdefs.h <<_ACEOF
10887 #define WITH_PYTHON_PATH "${python_prefix}"
10888 _ACEOF
10889
10890
10891 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10892 if test "x$prefix" = xNONE; then
10893 test_prefix=/usr/local
10894 else
10895 test_prefix=$prefix
10896 fi
10897 else
10898 test_prefix=$exec_prefix
10899 fi
10900 value=0
10901 case ${python_prefix} in
10902 "${test_prefix}"|"${test_prefix}/"*|\
10903 '${exec_prefix}'|'${exec_prefix}/'*)
10904 value=1
10905 ;;
10906 esac
10907
10908 cat >>confdefs.h <<_ACEOF
10909 #define PYTHON_PATH_RELOCATABLE $value
10910 _ACEOF
10911
10912
10913 fi
10914 fi
10915 fi
10916
10917 if test "${have_libpython}" != no; then
10918
10919 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10920
10921 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10922 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10923 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10924 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
10925 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10926
10927 # Flags needed to compile Python code (taken from python-config --cflags).
10928 # We cannot call python-config directly because it will output whatever was
10929 # used when compiling the Python interpreter itself, including flags which
10930 # would make the python-related objects be compiled differently from the
10931 # rest of GDB (e.g., -O2 and -fPIC).
10932 if test "${GCC}" = yes; then
10933 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10934 fi
10935
10936 if test "x${tentative_python_cflags}" != x; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10938 $as_echo_n "checking compiler flags for python code... " >&6; }
10939 for flag in ${tentative_python_cflags}; do
10940 # Check that the compiler accepts it
10941 saved_CFLAGS="$CFLAGS"
10942 CFLAGS="$CFLAGS $flag"
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10945
10946 int
10947 main ()
10948 {
10949
10950 ;
10951 return 0;
10952 }
10953 _ACEOF
10954 if ac_fn_c_try_compile "$LINENO"; then :
10955 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10956 fi
10957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 CFLAGS="$saved_CFLAGS"
10959 done
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10961 $as_echo "${PYTHON_CFLAGS}" >&6; }
10962 fi
10963 else
10964 # Even if Python support is not compiled in, we need to have these files
10965 # included.
10966 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10967 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
10968 python/py-prettyprint.c python/py-auto-load.c"
10969 fi
10970
10971
10972 # ------------------------- #
10973 # Checks for header files. #
10974 # ------------------------- #
10975
10976 ac_header_dirent=no
10977 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10978 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10980 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986 #include <sys/types.h>
10987 #include <$ac_hdr>
10988
10989 int
10990 main ()
10991 {
10992 if ((DIR *) 0)
10993 return 0;
10994 ;
10995 return 0;
10996 }
10997 _ACEOF
10998 if ac_fn_c_try_compile "$LINENO"; then :
10999 eval "$as_ac_Header=yes"
11000 else
11001 eval "$as_ac_Header=no"
11002 fi
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11004 fi
11005 eval ac_res=\$$as_ac_Header
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11007 $as_echo "$ac_res" >&6; }
11008 eval as_val=\$$as_ac_Header
11009 if test "x$as_val" = x""yes; then :
11010 cat >>confdefs.h <<_ACEOF
11011 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11012 _ACEOF
11013
11014 ac_header_dirent=$ac_hdr; break
11015 fi
11016
11017 done
11018 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11019 if test $ac_header_dirent = dirent.h; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11021 $as_echo_n "checking for library containing opendir... " >&6; }
11022 if test "${ac_cv_search_opendir+set}" = set; then :
11023 $as_echo_n "(cached) " >&6
11024 else
11025 ac_func_search_save_LIBS=$LIBS
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11028
11029 /* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
11032 #ifdef __cplusplus
11033 extern "C"
11034 #endif
11035 char opendir ();
11036 int
11037 main ()
11038 {
11039 return opendir ();
11040 ;
11041 return 0;
11042 }
11043 _ACEOF
11044 for ac_lib in '' dir; do
11045 if test -z "$ac_lib"; then
11046 ac_res="none required"
11047 else
11048 ac_res=-l$ac_lib
11049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11050 fi
11051 if ac_fn_c_try_link "$LINENO"; then :
11052 ac_cv_search_opendir=$ac_res
11053 fi
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext
11056 if test "${ac_cv_search_opendir+set}" = set; then :
11057 break
11058 fi
11059 done
11060 if test "${ac_cv_search_opendir+set}" = set; then :
11061
11062 else
11063 ac_cv_search_opendir=no
11064 fi
11065 rm conftest.$ac_ext
11066 LIBS=$ac_func_search_save_LIBS
11067 fi
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11069 $as_echo "$ac_cv_search_opendir" >&6; }
11070 ac_res=$ac_cv_search_opendir
11071 if test "$ac_res" != no; then :
11072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11073
11074 fi
11075
11076 else
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11078 $as_echo_n "checking for library containing opendir... " >&6; }
11079 if test "${ac_cv_search_opendir+set}" = set; then :
11080 $as_echo_n "(cached) " >&6
11081 else
11082 ac_func_search_save_LIBS=$LIBS
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11085
11086 /* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11089 #ifdef __cplusplus
11090 extern "C"
11091 #endif
11092 char opendir ();
11093 int
11094 main ()
11095 {
11096 return opendir ();
11097 ;
11098 return 0;
11099 }
11100 _ACEOF
11101 for ac_lib in '' x; do
11102 if test -z "$ac_lib"; then
11103 ac_res="none required"
11104 else
11105 ac_res=-l$ac_lib
11106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11107 fi
11108 if ac_fn_c_try_link "$LINENO"; then :
11109 ac_cv_search_opendir=$ac_res
11110 fi
11111 rm -f core conftest.err conftest.$ac_objext \
11112 conftest$ac_exeext
11113 if test "${ac_cv_search_opendir+set}" = set; then :
11114 break
11115 fi
11116 done
11117 if test "${ac_cv_search_opendir+set}" = set; then :
11118
11119 else
11120 ac_cv_search_opendir=no
11121 fi
11122 rm conftest.$ac_ext
11123 LIBS=$ac_func_search_save_LIBS
11124 fi
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11126 $as_echo "$ac_cv_search_opendir" >&6; }
11127 ac_res=$ac_cv_search_opendir
11128 if test "$ac_res" != no; then :
11129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11130
11131 fi
11132
11133 fi
11134
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11136 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11137 if test "${ac_cv_header_stat_broken+set}" = set; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11142 #include <sys/types.h>
11143 #include <sys/stat.h>
11144
11145 #if defined S_ISBLK && defined S_IFDIR
11146 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11147 #endif
11148
11149 #if defined S_ISBLK && defined S_IFCHR
11150 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11151 #endif
11152
11153 #if defined S_ISLNK && defined S_IFREG
11154 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11155 #endif
11156
11157 #if defined S_ISSOCK && defined S_IFREG
11158 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11159 #endif
11160
11161 _ACEOF
11162 if ac_fn_c_try_compile "$LINENO"; then :
11163 ac_cv_header_stat_broken=no
11164 else
11165 ac_cv_header_stat_broken=yes
11166 fi
11167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11168 fi
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11170 $as_echo "$ac_cv_header_stat_broken" >&6; }
11171 if test $ac_cv_header_stat_broken = yes; then
11172
11173 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11174
11175 fi
11176
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11178 $as_echo_n "checking for ANSI C header files... " >&6; }
11179 if test "${ac_cv_header_stdc+set}" = set; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184 #include <stdlib.h>
11185 #include <stdarg.h>
11186 #include <string.h>
11187 #include <float.h>
11188
11189 int
11190 main ()
11191 {
11192
11193 ;
11194 return 0;
11195 }
11196 _ACEOF
11197 if ac_fn_c_try_compile "$LINENO"; then :
11198 ac_cv_header_stdc=yes
11199 else
11200 ac_cv_header_stdc=no
11201 fi
11202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203
11204 if test $ac_cv_header_stdc = yes; then
11205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h. */
11208 #include <string.h>
11209
11210 _ACEOF
11211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11212 $EGREP "memchr" >/dev/null 2>&1; then :
11213
11214 else
11215 ac_cv_header_stdc=no
11216 fi
11217 rm -f conftest*
11218
11219 fi
11220
11221 if test $ac_cv_header_stdc = yes; then
11222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11225 #include <stdlib.h>
11226
11227 _ACEOF
11228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11229 $EGREP "free" >/dev/null 2>&1; then :
11230
11231 else
11232 ac_cv_header_stdc=no
11233 fi
11234 rm -f conftest*
11235
11236 fi
11237
11238 if test $ac_cv_header_stdc = yes; then
11239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11240 if test "$cross_compiling" = yes; then :
11241 :
11242 else
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245 #include <ctype.h>
11246 #include <stdlib.h>
11247 #if ((' ' & 0x0FF) == 0x020)
11248 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11249 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11250 #else
11251 # define ISLOWER(c) \
11252 (('a' <= (c) && (c) <= 'i') \
11253 || ('j' <= (c) && (c) <= 'r') \
11254 || ('s' <= (c) && (c) <= 'z'))
11255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11256 #endif
11257
11258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11259 int
11260 main ()
11261 {
11262 int i;
11263 for (i = 0; i < 256; i++)
11264 if (XOR (islower (i), ISLOWER (i))
11265 || toupper (i) != TOUPPER (i))
11266 return 2;
11267 return 0;
11268 }
11269 _ACEOF
11270 if ac_fn_c_try_run "$LINENO"; then :
11271
11272 else
11273 ac_cv_header_stdc=no
11274 fi
11275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11276 conftest.$ac_objext conftest.beam conftest.$ac_ext
11277 fi
11278
11279 fi
11280 fi
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11282 $as_echo "$ac_cv_header_stdc" >&6; }
11283 if test $ac_cv_header_stdc = yes; then
11284
11285 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11286
11287 fi
11288
11289 # elf_hp.h is for HP/UX 64-bit shared library support.
11290 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11291 # unconditionally, so what's the point in checking these?
11292 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11293 thread_db.h gnu/libc-version.h signal.h stddef.h \
11294 stdlib.h string.h memory.h strings.h sys/fault.h \
11295 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11296 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11297 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11298 sys/types.h sys/wait.h wait.h termios.h termio.h \
11299 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
11300 do :
11301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11302 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11303 eval as_val=\$$as_ac_Header
11304 if test "x$as_val" = x""yes; then :
11305 cat >>confdefs.h <<_ACEOF
11306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11307 _ACEOF
11308
11309 fi
11310
11311 done
11312
11313 for ac_header in link.h
11314 do :
11315 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11316 # include <sys/types.h>
11317 #endif
11318 #if HAVE_NLIST_H
11319 # include <nlist.h>
11320 #endif
11321
11322 "
11323 if test "x$ac_cv_header_link_h" = x""yes; then :
11324 cat >>confdefs.h <<_ACEOF
11325 #define HAVE_LINK_H 1
11326 _ACEOF
11327
11328 fi
11329
11330 done
11331
11332 for ac_header in sys/proc.h
11333 do :
11334 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11335 # include <sys/param.h>
11336 #endif
11337
11338 "
11339 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11340 cat >>confdefs.h <<_ACEOF
11341 #define HAVE_SYS_PROC_H 1
11342 _ACEOF
11343
11344 fi
11345
11346 done
11347
11348 for ac_header in sys/user.h
11349 do :
11350 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11351 # include <sys/param.h>
11352 #endif
11353
11354 "
11355 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11356 cat >>confdefs.h <<_ACEOF
11357 #define HAVE_SYS_USER_H 1
11358 _ACEOF
11359
11360 fi
11361
11362 done
11363
11364
11365 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11366 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11367 # think that we don't have <curses.h> if we're using GCC.
11368 case $host_os in
11369 solaris2.[789])
11370 if test "$GCC" = yes; then
11371
11372 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11373
11374 fi ;;
11375 esac
11376 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11377 do :
11378 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11379 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11380 eval as_val=\$$as_ac_Header
11381 if test "x$as_val" = x""yes; then :
11382 cat >>confdefs.h <<_ACEOF
11383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11384 _ACEOF
11385
11386 fi
11387
11388 done
11389
11390 for ac_header in term.h
11391 do :
11392 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11393 # include <curses.h>
11394 #endif
11395
11396 "
11397 if test "x$ac_cv_header_term_h" = x""yes; then :
11398 cat >>confdefs.h <<_ACEOF
11399 #define HAVE_TERM_H 1
11400 _ACEOF
11401
11402 fi
11403
11404 done
11405
11406
11407 # ------------------------- #
11408 # Checks for declarations. #
11409 # ------------------------- #
11410
11411 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11412 if test "x$ac_cv_have_decl_free" = x""yes; then :
11413 ac_have_decl=1
11414 else
11415 ac_have_decl=0
11416 fi
11417
11418 cat >>confdefs.h <<_ACEOF
11419 #define HAVE_DECL_FREE $ac_have_decl
11420 _ACEOF
11421 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11422 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11423 ac_have_decl=1
11424 else
11425 ac_have_decl=0
11426 fi
11427
11428 cat >>confdefs.h <<_ACEOF
11429 #define HAVE_DECL_MALLOC $ac_have_decl
11430 _ACEOF
11431 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11432 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11433 ac_have_decl=1
11434 else
11435 ac_have_decl=0
11436 fi
11437
11438 cat >>confdefs.h <<_ACEOF
11439 #define HAVE_DECL_REALLOC $ac_have_decl
11440 _ACEOF
11441 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11442 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11443 ac_have_decl=1
11444 else
11445 ac_have_decl=0
11446 fi
11447
11448 cat >>confdefs.h <<_ACEOF
11449 #define HAVE_DECL_STRERROR $ac_have_decl
11450 _ACEOF
11451 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11452 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11453 ac_have_decl=1
11454 else
11455 ac_have_decl=0
11456 fi
11457
11458 cat >>confdefs.h <<_ACEOF
11459 #define HAVE_DECL_STRSTR $ac_have_decl
11460 _ACEOF
11461 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11462 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11463 ac_have_decl=1
11464 else
11465 ac_have_decl=0
11466 fi
11467
11468 cat >>confdefs.h <<_ACEOF
11469 #define HAVE_DECL_GETOPT $ac_have_decl
11470 _ACEOF
11471 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11472 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11473 ac_have_decl=1
11474 else
11475 ac_have_decl=0
11476 fi
11477
11478 cat >>confdefs.h <<_ACEOF
11479 #define HAVE_DECL_SNPRINTF $ac_have_decl
11480 _ACEOF
11481 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11482 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11483 ac_have_decl=1
11484 else
11485 ac_have_decl=0
11486 fi
11487
11488 cat >>confdefs.h <<_ACEOF
11489 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11490 _ACEOF
11491
11492
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11494 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11495 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500 #include <locale.h>
11501 int
11502 main ()
11503 {
11504 return LC_MESSAGES
11505 ;
11506 return 0;
11507 }
11508 _ACEOF
11509 if ac_fn_c_try_link "$LINENO"; then :
11510 am_cv_val_LC_MESSAGES=yes
11511 else
11512 am_cv_val_LC_MESSAGES=no
11513 fi
11514 rm -f core conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11516 fi
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11518 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11519 if test $am_cv_val_LC_MESSAGES = yes; then
11520
11521 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11522
11523 fi
11524
11525
11526 # ----------------------- #
11527 # Checks for structures. #
11528 # ----------------------- #
11529
11530 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11531 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11532
11533 cat >>confdefs.h <<_ACEOF
11534 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11535 _ACEOF
11536
11537
11538 fi
11539 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11540 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11541
11542 cat >>confdefs.h <<_ACEOF
11543 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11544 _ACEOF
11545
11546
11547 fi
11548
11549
11550 # ------------------ #
11551 # Checks for types. #
11552 # ------------------ #
11553
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11555 $as_echo_n "checking return type of signal handlers... " >&6; }
11556 if test "${ac_cv_type_signal+set}" = set; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561 #include <sys/types.h>
11562 #include <signal.h>
11563
11564 int
11565 main ()
11566 {
11567 return *(signal (0, 0)) (0) == 1;
11568 ;
11569 return 0;
11570 }
11571 _ACEOF
11572 if ac_fn_c_try_compile "$LINENO"; then :
11573 ac_cv_type_signal=int
11574 else
11575 ac_cv_type_signal=void
11576 fi
11577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11578 fi
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11580 $as_echo "$ac_cv_type_signal" >&6; }
11581
11582 cat >>confdefs.h <<_ACEOF
11583 #define RETSIGTYPE $ac_cv_type_signal
11584 _ACEOF
11585
11586
11587 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11588 #include <sys/socket.h>
11589
11590 "
11591 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11592
11593 cat >>confdefs.h <<_ACEOF
11594 #define HAVE_SOCKLEN_T 1
11595 _ACEOF
11596
11597
11598 fi
11599
11600
11601 # ------------------------------------- #
11602 # Checks for compiler characteristics. #
11603 # ------------------------------------- #
11604
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11606 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11607 if test "${ac_cv_c_const+set}" = set; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11612
11613 int
11614 main ()
11615 {
11616 /* FIXME: Include the comments suggested by Paul. */
11617 #ifndef __cplusplus
11618 /* Ultrix mips cc rejects this. */
11619 typedef int charset[2];
11620 const charset cs;
11621 /* SunOS 4.1.1 cc rejects this. */
11622 char const *const *pcpcc;
11623 char **ppc;
11624 /* NEC SVR4.0.2 mips cc rejects this. */
11625 struct point {int x, y;};
11626 static struct point const zero = {0,0};
11627 /* AIX XL C 1.02.0.0 rejects this.
11628 It does not let you subtract one const X* pointer from another in
11629 an arm of an if-expression whose if-part is not a constant
11630 expression */
11631 const char *g = "string";
11632 pcpcc = &g + (g ? g-g : 0);
11633 /* HPUX 7.0 cc rejects these. */
11634 ++pcpcc;
11635 ppc = (char**) pcpcc;
11636 pcpcc = (char const *const *) ppc;
11637 { /* SCO 3.2v4 cc rejects this. */
11638 char *t;
11639 char const *s = 0 ? (char *) 0 : (char const *) 0;
11640
11641 *t++ = 0;
11642 if (s) return 0;
11643 }
11644 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11645 int x[] = {25, 17};
11646 const int *foo = &x[0];
11647 ++foo;
11648 }
11649 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11650 typedef const int *iptr;
11651 iptr p = 0;
11652 ++p;
11653 }
11654 { /* AIX XL C 1.02.0.0 rejects this saying
11655 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11656 struct s { int j; const int *ap[3]; };
11657 struct s *b; b->j = 5;
11658 }
11659 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11660 const int foo = 10;
11661 if (!foo) return 0;
11662 }
11663 return !cs[0] && !zero.x;
11664 #endif
11665
11666 ;
11667 return 0;
11668 }
11669 _ACEOF
11670 if ac_fn_c_try_compile "$LINENO"; then :
11671 ac_cv_c_const=yes
11672 else
11673 ac_cv_c_const=no
11674 fi
11675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11676 fi
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11678 $as_echo "$ac_cv_c_const" >&6; }
11679 if test $ac_cv_c_const = no; then
11680
11681 $as_echo "#define const /**/" >>confdefs.h
11682
11683 fi
11684
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11686 $as_echo_n "checking for inline... " >&6; }
11687 if test "${ac_cv_c_inline+set}" = set; then :
11688 $as_echo_n "(cached) " >&6
11689 else
11690 ac_cv_c_inline=no
11691 for ac_kw in inline __inline__ __inline; do
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11694 #ifndef __cplusplus
11695 typedef int foo_t;
11696 static $ac_kw foo_t static_foo () {return 0; }
11697 $ac_kw foo_t foo () {return 0; }
11698 #endif
11699
11700 _ACEOF
11701 if ac_fn_c_try_compile "$LINENO"; then :
11702 ac_cv_c_inline=$ac_kw
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705 test "$ac_cv_c_inline" != no && break
11706 done
11707
11708 fi
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11710 $as_echo "$ac_cv_c_inline" >&6; }
11711
11712 case $ac_cv_c_inline in
11713 inline | yes) ;;
11714 *)
11715 case $ac_cv_c_inline in
11716 no) ac_val=;;
11717 *) ac_val=$ac_cv_c_inline;;
11718 esac
11719 cat >>confdefs.h <<_ACEOF
11720 #ifndef __cplusplus
11721 #define inline $ac_val
11722 #endif
11723 _ACEOF
11724 ;;
11725 esac
11726
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11728 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11729 if test "${ac_cv_c_bigendian+set}" = set; then :
11730 $as_echo_n "(cached) " >&6
11731 else
11732 ac_cv_c_bigendian=unknown
11733 # See if we're dealing with a universal compiler.
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h. */
11736 #ifndef __APPLE_CC__
11737 not a universal capable compiler
11738 #endif
11739 typedef int dummy;
11740
11741 _ACEOF
11742 if ac_fn_c_try_compile "$LINENO"; then :
11743
11744 # Check for potential -arch flags. It is not universal unless
11745 # there are at least two -arch flags with different values.
11746 ac_arch=
11747 ac_prev=
11748 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11749 if test -n "$ac_prev"; then
11750 case $ac_word in
11751 i?86 | x86_64 | ppc | ppc64)
11752 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11753 ac_arch=$ac_word
11754 else
11755 ac_cv_c_bigendian=universal
11756 break
11757 fi
11758 ;;
11759 esac
11760 ac_prev=
11761 elif test "x$ac_word" = "x-arch"; then
11762 ac_prev=arch
11763 fi
11764 done
11765 fi
11766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11767 if test $ac_cv_c_bigendian = unknown; then
11768 # See if sys/param.h defines the BYTE_ORDER macro.
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770 /* end confdefs.h. */
11771 #include <sys/types.h>
11772 #include <sys/param.h>
11773
11774 int
11775 main ()
11776 {
11777 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11778 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11779 && LITTLE_ENDIAN)
11780 bogus endian macros
11781 #endif
11782
11783 ;
11784 return 0;
11785 }
11786 _ACEOF
11787 if ac_fn_c_try_compile "$LINENO"; then :
11788 # It does; now see whether it defined to BIG_ENDIAN or not.
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11791 #include <sys/types.h>
11792 #include <sys/param.h>
11793
11794 int
11795 main ()
11796 {
11797 #if BYTE_ORDER != BIG_ENDIAN
11798 not big endian
11799 #endif
11800
11801 ;
11802 return 0;
11803 }
11804 _ACEOF
11805 if ac_fn_c_try_compile "$LINENO"; then :
11806 ac_cv_c_bigendian=yes
11807 else
11808 ac_cv_c_bigendian=no
11809 fi
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811 fi
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 fi
11814 if test $ac_cv_c_bigendian = unknown; then
11815 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818 #include <limits.h>
11819
11820 int
11821 main ()
11822 {
11823 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11824 bogus endian macros
11825 #endif
11826
11827 ;
11828 return 0;
11829 }
11830 _ACEOF
11831 if ac_fn_c_try_compile "$LINENO"; then :
11832 # It does; now see whether it defined to _BIG_ENDIAN or not.
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835 #include <limits.h>
11836
11837 int
11838 main ()
11839 {
11840 #ifndef _BIG_ENDIAN
11841 not big endian
11842 #endif
11843
11844 ;
11845 return 0;
11846 }
11847 _ACEOF
11848 if ac_fn_c_try_compile "$LINENO"; then :
11849 ac_cv_c_bigendian=yes
11850 else
11851 ac_cv_c_bigendian=no
11852 fi
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 fi
11855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 fi
11857 if test $ac_cv_c_bigendian = unknown; then
11858 # Compile a test program.
11859 if test "$cross_compiling" = yes; then :
11860 # Try to guess by grepping values from an object file.
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11863 short int ascii_mm[] =
11864 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11865 short int ascii_ii[] =
11866 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11867 int use_ascii (int i) {
11868 return ascii_mm[i] + ascii_ii[i];
11869 }
11870 short int ebcdic_ii[] =
11871 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11872 short int ebcdic_mm[] =
11873 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11874 int use_ebcdic (int i) {
11875 return ebcdic_mm[i] + ebcdic_ii[i];
11876 }
11877 extern int foo;
11878
11879 int
11880 main ()
11881 {
11882 return use_ascii (foo) == use_ebcdic (foo);
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 if ac_fn_c_try_compile "$LINENO"; then :
11888 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11889 ac_cv_c_bigendian=yes
11890 fi
11891 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11892 if test "$ac_cv_c_bigendian" = unknown; then
11893 ac_cv_c_bigendian=no
11894 else
11895 # finding both strings is unlikely to happen, but who knows?
11896 ac_cv_c_bigendian=unknown
11897 fi
11898 fi
11899 fi
11900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901 else
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904 $ac_includes_default
11905 int
11906 main ()
11907 {
11908
11909 /* Are we little or big endian? From Harbison&Steele. */
11910 union
11911 {
11912 long int l;
11913 char c[sizeof (long int)];
11914 } u;
11915 u.l = 1;
11916 return u.c[sizeof (long int) - 1] == 1;
11917
11918 ;
11919 return 0;
11920 }
11921 _ACEOF
11922 if ac_fn_c_try_run "$LINENO"; then :
11923 ac_cv_c_bigendian=no
11924 else
11925 ac_cv_c_bigendian=yes
11926 fi
11927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11928 conftest.$ac_objext conftest.beam conftest.$ac_ext
11929 fi
11930
11931 fi
11932 fi
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11934 $as_echo "$ac_cv_c_bigendian" >&6; }
11935 case $ac_cv_c_bigendian in #(
11936 yes)
11937 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11938 ;; #(
11939 no)
11940 ;; #(
11941 universal)
11942
11943 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11944
11945 ;; #(
11946 *)
11947 as_fn_error "unknown endianness
11948 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11949 esac
11950
11951
11952 # ------------------------------ #
11953 # Checks for library functions. #
11954 # ------------------------------ #
11955
11956 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11957 # for constant arguments. Useless!
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11959 $as_echo_n "checking for working alloca.h... " >&6; }
11960 if test "${ac_cv_working_alloca_h+set}" = set; then :
11961 $as_echo_n "(cached) " >&6
11962 else
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11965 #include <alloca.h>
11966 int
11967 main ()
11968 {
11969 char *p = (char *) alloca (2 * sizeof (int));
11970 if (p) return 0;
11971 ;
11972 return 0;
11973 }
11974 _ACEOF
11975 if ac_fn_c_try_link "$LINENO"; then :
11976 ac_cv_working_alloca_h=yes
11977 else
11978 ac_cv_working_alloca_h=no
11979 fi
11980 rm -f core conftest.err conftest.$ac_objext \
11981 conftest$ac_exeext conftest.$ac_ext
11982 fi
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11984 $as_echo "$ac_cv_working_alloca_h" >&6; }
11985 if test $ac_cv_working_alloca_h = yes; then
11986
11987 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11988
11989 fi
11990
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11992 $as_echo_n "checking for alloca... " >&6; }
11993 if test "${ac_cv_func_alloca_works+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998 #ifdef __GNUC__
11999 # define alloca __builtin_alloca
12000 #else
12001 # ifdef _MSC_VER
12002 # include <malloc.h>
12003 # define alloca _alloca
12004 # else
12005 # ifdef HAVE_ALLOCA_H
12006 # include <alloca.h>
12007 # else
12008 # ifdef _AIX
12009 #pragma alloca
12010 # else
12011 # ifndef alloca /* predefined by HP cc +Olibcalls */
12012 char *alloca ();
12013 # endif
12014 # endif
12015 # endif
12016 # endif
12017 #endif
12018
12019 int
12020 main ()
12021 {
12022 char *p = (char *) alloca (1);
12023 if (p) return 0;
12024 ;
12025 return 0;
12026 }
12027 _ACEOF
12028 if ac_fn_c_try_link "$LINENO"; then :
12029 ac_cv_func_alloca_works=yes
12030 else
12031 ac_cv_func_alloca_works=no
12032 fi
12033 rm -f core conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12035 fi
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12037 $as_echo "$ac_cv_func_alloca_works" >&6; }
12038
12039 if test $ac_cv_func_alloca_works = yes; then
12040
12041 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12042
12043 else
12044 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12045 # that cause trouble. Some versions do not even contain alloca or
12046 # contain a buggy version. If you still want to use their alloca,
12047 # use ar to extract alloca.o from them instead of compiling alloca.c.
12048
12049 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12050
12051 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12052
12053
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12055 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12056 if test "${ac_cv_os_cray+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061 #if defined CRAY && ! defined CRAY2
12062 webecray
12063 #else
12064 wenotbecray
12065 #endif
12066
12067 _ACEOF
12068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12069 $EGREP "webecray" >/dev/null 2>&1; then :
12070 ac_cv_os_cray=yes
12071 else
12072 ac_cv_os_cray=no
12073 fi
12074 rm -f conftest*
12075
12076 fi
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12078 $as_echo "$ac_cv_os_cray" >&6; }
12079 if test $ac_cv_os_cray = yes; then
12080 for ac_func in _getb67 GETB67 getb67; do
12081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12083 eval as_val=\$$as_ac_var
12084 if test "x$as_val" = x""yes; then :
12085
12086 cat >>confdefs.h <<_ACEOF
12087 #define CRAY_STACKSEG_END $ac_func
12088 _ACEOF
12089
12090 break
12091 fi
12092
12093 done
12094 fi
12095
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12097 $as_echo_n "checking stack direction for C alloca... " >&6; }
12098 if test "${ac_cv_c_stack_direction+set}" = set; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 if test "$cross_compiling" = yes; then :
12102 ac_cv_c_stack_direction=0
12103 else
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106 $ac_includes_default
12107 int
12108 find_stack_direction ()
12109 {
12110 static char *addr = 0;
12111 auto char dummy;
12112 if (addr == 0)
12113 {
12114 addr = &dummy;
12115 return find_stack_direction ();
12116 }
12117 else
12118 return (&dummy > addr) ? 1 : -1;
12119 }
12120
12121 int
12122 main ()
12123 {
12124 return find_stack_direction () < 0;
12125 }
12126 _ACEOF
12127 if ac_fn_c_try_run "$LINENO"; then :
12128 ac_cv_c_stack_direction=1
12129 else
12130 ac_cv_c_stack_direction=-1
12131 fi
12132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12133 conftest.$ac_objext conftest.beam conftest.$ac_ext
12134 fi
12135
12136 fi
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12138 $as_echo "$ac_cv_c_stack_direction" >&6; }
12139 cat >>confdefs.h <<_ACEOF
12140 #define STACK_DIRECTION $ac_cv_c_stack_direction
12141 _ACEOF
12142
12143
12144 fi
12145
12146 for ac_header in stdlib.h unistd.h
12147 do :
12148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12149 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12150 eval as_val=\$$as_ac_Header
12151 if test "x$as_val" = x""yes; then :
12152 cat >>confdefs.h <<_ACEOF
12153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12154 _ACEOF
12155
12156 fi
12157
12158 done
12159
12160 for ac_func in getpagesize
12161 do :
12162 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12163 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12164 cat >>confdefs.h <<_ACEOF
12165 #define HAVE_GETPAGESIZE 1
12166 _ACEOF
12167
12168 fi
12169 done
12170
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12172 $as_echo_n "checking for working mmap... " >&6; }
12173 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
12175 else
12176 if test "$cross_compiling" = yes; then :
12177 ac_cv_func_mmap_fixed_mapped=no
12178 else
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h. */
12181 $ac_includes_default
12182 /* malloc might have been renamed as rpl_malloc. */
12183 #undef malloc
12184
12185 /* Thanks to Mike Haertel and Jim Avera for this test.
12186 Here is a matrix of mmap possibilities:
12187 mmap private not fixed
12188 mmap private fixed at somewhere currently unmapped
12189 mmap private fixed at somewhere already mapped
12190 mmap shared not fixed
12191 mmap shared fixed at somewhere currently unmapped
12192 mmap shared fixed at somewhere already mapped
12193 For private mappings, we should verify that changes cannot be read()
12194 back from the file, nor mmap's back from the file at a different
12195 address. (There have been systems where private was not correctly
12196 implemented like the infamous i386 svr4.0, and systems where the
12197 VM page cache was not coherent with the file system buffer cache
12198 like early versions of FreeBSD and possibly contemporary NetBSD.)
12199 For shared mappings, we should conversely verify that changes get
12200 propagated back to all the places they're supposed to be.
12201
12202 Grep wants private fixed already mapped.
12203 The main things grep needs to know about mmap are:
12204 * does it exist and is it safe to write into the mmap'd area
12205 * how to use it (BSD variants) */
12206
12207 #include <fcntl.h>
12208 #include <sys/mman.h>
12209
12210 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12211 char *malloc ();
12212 #endif
12213
12214 /* This mess was copied from the GNU getpagesize.h. */
12215 #ifndef HAVE_GETPAGESIZE
12216 /* Assume that all systems that can run configure have sys/param.h. */
12217 # ifndef HAVE_SYS_PARAM_H
12218 # define HAVE_SYS_PARAM_H 1
12219 # endif
12220
12221 # ifdef _SC_PAGESIZE
12222 # define getpagesize() sysconf(_SC_PAGESIZE)
12223 # else /* no _SC_PAGESIZE */
12224 # ifdef HAVE_SYS_PARAM_H
12225 # include <sys/param.h>
12226 # ifdef EXEC_PAGESIZE
12227 # define getpagesize() EXEC_PAGESIZE
12228 # else /* no EXEC_PAGESIZE */
12229 # ifdef NBPG
12230 # define getpagesize() NBPG * CLSIZE
12231 # ifndef CLSIZE
12232 # define CLSIZE 1
12233 # endif /* no CLSIZE */
12234 # else /* no NBPG */
12235 # ifdef NBPC
12236 # define getpagesize() NBPC
12237 # else /* no NBPC */
12238 # ifdef PAGESIZE
12239 # define getpagesize() PAGESIZE
12240 # endif /* PAGESIZE */
12241 # endif /* no NBPC */
12242 # endif /* no NBPG */
12243 # endif /* no EXEC_PAGESIZE */
12244 # else /* no HAVE_SYS_PARAM_H */
12245 # define getpagesize() 8192 /* punt totally */
12246 # endif /* no HAVE_SYS_PARAM_H */
12247 # endif /* no _SC_PAGESIZE */
12248
12249 #endif /* no HAVE_GETPAGESIZE */
12250
12251 int
12252 main ()
12253 {
12254 char *data, *data2, *data3;
12255 int i, pagesize;
12256 int fd;
12257
12258 pagesize = getpagesize ();
12259
12260 /* First, make a file with some known garbage in it. */
12261 data = (char *) malloc (pagesize);
12262 if (!data)
12263 return 1;
12264 for (i = 0; i < pagesize; ++i)
12265 *(data + i) = rand ();
12266 umask (0);
12267 fd = creat ("conftest.mmap", 0600);
12268 if (fd < 0)
12269 return 1;
12270 if (write (fd, data, pagesize) != pagesize)
12271 return 1;
12272 close (fd);
12273
12274 /* Next, try to mmap the file at a fixed address which already has
12275 something else allocated at it. If we can, also make sure that
12276 we see the same garbage. */
12277 fd = open ("conftest.mmap", O_RDWR);
12278 if (fd < 0)
12279 return 1;
12280 data2 = (char *) malloc (2 * pagesize);
12281 if (!data2)
12282 return 1;
12283 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12284 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12285 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12286 return 1;
12287 for (i = 0; i < pagesize; ++i)
12288 if (*(data + i) != *(data2 + i))
12289 return 1;
12290
12291 /* Finally, make sure that changes to the mapped area do not
12292 percolate back to the file as seen by read(). (This is a bug on
12293 some variants of i386 svr4.0.) */
12294 for (i = 0; i < pagesize; ++i)
12295 *(data2 + i) = *(data2 + i) + 1;
12296 data3 = (char *) malloc (pagesize);
12297 if (!data3)
12298 return 1;
12299 if (read (fd, data3, pagesize) != pagesize)
12300 return 1;
12301 for (i = 0; i < pagesize; ++i)
12302 if (*(data + i) != *(data3 + i))
12303 return 1;
12304 close (fd);
12305 return 0;
12306 }
12307 _ACEOF
12308 if ac_fn_c_try_run "$LINENO"; then :
12309 ac_cv_func_mmap_fixed_mapped=yes
12310 else
12311 ac_cv_func_mmap_fixed_mapped=no
12312 fi
12313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12314 conftest.$ac_objext conftest.beam conftest.$ac_ext
12315 fi
12316
12317 fi
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12319 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12320 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12321
12322 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12323
12324 fi
12325 rm -f conftest.mmap
12326
12327 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12328 if test "x$ac_cv_type_pid_t" = x""yes; then :
12329
12330 else
12331
12332 cat >>confdefs.h <<_ACEOF
12333 #define pid_t int
12334 _ACEOF
12335
12336 fi
12337
12338 for ac_header in vfork.h
12339 do :
12340 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12341 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12342 cat >>confdefs.h <<_ACEOF
12343 #define HAVE_VFORK_H 1
12344 _ACEOF
12345
12346 fi
12347
12348 done
12349
12350 for ac_func in fork vfork
12351 do :
12352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12353 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12354 eval as_val=\$$as_ac_var
12355 if test "x$as_val" = x""yes; then :
12356 cat >>confdefs.h <<_ACEOF
12357 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12358 _ACEOF
12359
12360 fi
12361 done
12362
12363 if test "x$ac_cv_func_fork" = xyes; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12365 $as_echo_n "checking for working fork... " >&6; }
12366 if test "${ac_cv_func_fork_works+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 if test "$cross_compiling" = yes; then :
12370 ac_cv_func_fork_works=cross
12371 else
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374 $ac_includes_default
12375 int
12376 main ()
12377 {
12378
12379 /* By Ruediger Kuhlmann. */
12380 return fork () < 0;
12381
12382 ;
12383 return 0;
12384 }
12385 _ACEOF
12386 if ac_fn_c_try_run "$LINENO"; then :
12387 ac_cv_func_fork_works=yes
12388 else
12389 ac_cv_func_fork_works=no
12390 fi
12391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12392 conftest.$ac_objext conftest.beam conftest.$ac_ext
12393 fi
12394
12395 fi
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12397 $as_echo "$ac_cv_func_fork_works" >&6; }
12398
12399 else
12400 ac_cv_func_fork_works=$ac_cv_func_fork
12401 fi
12402 if test "x$ac_cv_func_fork_works" = xcross; then
12403 case $host in
12404 *-*-amigaos* | *-*-msdosdjgpp*)
12405 # Override, as these systems have only a dummy fork() stub
12406 ac_cv_func_fork_works=no
12407 ;;
12408 *)
12409 ac_cv_func_fork_works=yes
12410 ;;
12411 esac
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12413 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12414 fi
12415 ac_cv_func_vfork_works=$ac_cv_func_vfork
12416 if test "x$ac_cv_func_vfork" = xyes; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12418 $as_echo_n "checking for working vfork... " >&6; }
12419 if test "${ac_cv_func_vfork_works+set}" = set; then :
12420 $as_echo_n "(cached) " >&6
12421 else
12422 if test "$cross_compiling" = yes; then :
12423 ac_cv_func_vfork_works=cross
12424 else
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12427 /* Thanks to Paul Eggert for this test. */
12428 $ac_includes_default
12429 #include <sys/wait.h>
12430 #ifdef HAVE_VFORK_H
12431 # include <vfork.h>
12432 #endif
12433 /* On some sparc systems, changes by the child to local and incoming
12434 argument registers are propagated back to the parent. The compiler
12435 is told about this with #include <vfork.h>, but some compilers
12436 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12437 static variable whose address is put into a register that is
12438 clobbered by the vfork. */
12439 static void
12440 #ifdef __cplusplus
12441 sparc_address_test (int arg)
12442 # else
12443 sparc_address_test (arg) int arg;
12444 #endif
12445 {
12446 static pid_t child;
12447 if (!child) {
12448 child = vfork ();
12449 if (child < 0) {
12450 perror ("vfork");
12451 _exit(2);
12452 }
12453 if (!child) {
12454 arg = getpid();
12455 write(-1, "", 0);
12456 _exit (arg);
12457 }
12458 }
12459 }
12460
12461 int
12462 main ()
12463 {
12464 pid_t parent = getpid ();
12465 pid_t child;
12466
12467 sparc_address_test (0);
12468
12469 child = vfork ();
12470
12471 if (child == 0) {
12472 /* Here is another test for sparc vfork register problems. This
12473 test uses lots of local variables, at least as many local
12474 variables as main has allocated so far including compiler
12475 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12476 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12477 reuse the register of parent for one of the local variables,
12478 since it will think that parent can't possibly be used any more
12479 in this routine. Assigning to the local variable will thus
12480 munge parent in the parent process. */
12481 pid_t
12482 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12483 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12484 /* Convince the compiler that p..p7 are live; otherwise, it might
12485 use the same hardware register for all 8 local variables. */
12486 if (p != p1 || p != p2 || p != p3 || p != p4
12487 || p != p5 || p != p6 || p != p7)
12488 _exit(1);
12489
12490 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12491 from child file descriptors. If the child closes a descriptor
12492 before it execs or exits, this munges the parent's descriptor
12493 as well. Test for this by closing stdout in the child. */
12494 _exit(close(fileno(stdout)) != 0);
12495 } else {
12496 int status;
12497 struct stat st;
12498
12499 while (wait(&status) != child)
12500 ;
12501 return (
12502 /* Was there some problem with vforking? */
12503 child < 0
12504
12505 /* Did the child fail? (This shouldn't happen.) */
12506 || status
12507
12508 /* Did the vfork/compiler bug occur? */
12509 || parent != getpid()
12510
12511 /* Did the file descriptor bug occur? */
12512 || fstat(fileno(stdout), &st) != 0
12513 );
12514 }
12515 }
12516 _ACEOF
12517 if ac_fn_c_try_run "$LINENO"; then :
12518 ac_cv_func_vfork_works=yes
12519 else
12520 ac_cv_func_vfork_works=no
12521 fi
12522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12523 conftest.$ac_objext conftest.beam conftest.$ac_ext
12524 fi
12525
12526 fi
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12528 $as_echo "$ac_cv_func_vfork_works" >&6; }
12529
12530 fi;
12531 if test "x$ac_cv_func_fork_works" = xcross; then
12532 ac_cv_func_vfork_works=$ac_cv_func_vfork
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12534 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12535 fi
12536
12537 if test "x$ac_cv_func_vfork_works" = xyes; then
12538
12539 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12540
12541 else
12542
12543 $as_echo "#define vfork fork" >>confdefs.h
12544
12545 fi
12546 if test "x$ac_cv_func_fork_works" = xyes; then
12547
12548 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12549
12550 fi
12551
12552 for ac_func in canonicalize_file_name realpath getrusage getuid \
12553 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
12554 sigaction sigprocmask sigsetmask socketpair syscall \
12555 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12556 setrlimit getrlimit posix_madvise waitpid
12557 do :
12558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12559 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12560 eval as_val=\$$as_ac_var
12561 if test "x$as_val" = x""yes; then :
12562 cat >>confdefs.h <<_ACEOF
12563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12564 _ACEOF
12565
12566 fi
12567 done
12568
12569
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12571 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12572 if test "${am_cv_langinfo_codeset+set}" = set; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577 #include <langinfo.h>
12578 int
12579 main ()
12580 {
12581 char* cs = nl_langinfo(CODESET);
12582 ;
12583 return 0;
12584 }
12585 _ACEOF
12586 if ac_fn_c_try_link "$LINENO"; then :
12587 am_cv_langinfo_codeset=yes
12588 else
12589 am_cv_langinfo_codeset=no
12590 fi
12591 rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12593
12594 fi
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12596 $as_echo "$am_cv_langinfo_codeset" >&6; }
12597 if test $am_cv_langinfo_codeset = yes; then
12598
12599 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12600
12601 fi
12602
12603
12604 # Check the return and argument types of ptrace. No canned test for
12605 # this, so roll our own.
12606 gdb_ptrace_headers='
12607 #if HAVE_SYS_TYPES_H
12608 # include <sys/types.h>
12609 #endif
12610 #if HAVE_SYS_PTRACE_H
12611 # include <sys/ptrace.h>
12612 #endif
12613 #if HAVE_UNISTD_H
12614 # include <unistd.h>
12615 #endif
12616 '
12617 # There is no point in checking if we don't have a prototype.
12618 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12619 "
12620 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12621 ac_have_decl=1
12622 else
12623 ac_have_decl=0
12624 fi
12625
12626 cat >>confdefs.h <<_ACEOF
12627 #define HAVE_DECL_PTRACE $ac_have_decl
12628 _ACEOF
12629 if test $ac_have_decl = 1; then :
12630
12631 else
12632
12633 : ${gdb_cv_func_ptrace_ret='int'}
12634 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12635
12636 fi
12637
12638 # Check return type. Varargs (used on GNU/Linux) conflict with the
12639 # empty argument list, so check for that explicitly.
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12641 $as_echo_n "checking return type of ptrace... " >&6; }
12642 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12643 $as_echo_n "(cached) " >&6
12644 else
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647 $gdb_ptrace_headers
12648 int
12649 main ()
12650 {
12651 extern long ptrace (enum __ptrace_request, ...);
12652 ;
12653 return 0;
12654 }
12655 _ACEOF
12656 if ac_fn_c_try_compile "$LINENO"; then :
12657 gdb_cv_func_ptrace_ret='long'
12658 else
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12661 $gdb_ptrace_headers
12662 int
12663 main ()
12664 {
12665 extern int ptrace ();
12666 ;
12667 return 0;
12668 }
12669 _ACEOF
12670 if ac_fn_c_try_compile "$LINENO"; then :
12671 gdb_cv_func_ptrace_ret='int'
12672 else
12673 gdb_cv_func_ptrace_ret='long'
12674 fi
12675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12676 fi
12677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12678 fi
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12680 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12681
12682 cat >>confdefs.h <<_ACEOF
12683 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12684 _ACEOF
12685
12686 # Check argument types.
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12688 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12689 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695 $gdb_ptrace_headers
12696 int
12697 main ()
12698 {
12699 extern long ptrace (enum __ptrace_request, ...);
12700 ;
12701 return 0;
12702 }
12703 _ACEOF
12704 if ac_fn_c_try_compile "$LINENO"; then :
12705 gdb_cv_func_ptrace_args='int,int,long,long'
12706 else
12707
12708 for gdb_arg1 in 'int' 'long'; do
12709 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12710 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12711 for gdb_arg4 in 'int' 'long'; do
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12714 $gdb_ptrace_headers
12715 int
12716 main ()
12717 {
12718
12719 extern $gdb_cv_func_ptrace_ret
12720 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12721
12722 ;
12723 return 0;
12724 }
12725 _ACEOF
12726 if ac_fn_c_try_compile "$LINENO"; then :
12727 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12728 break 4;
12729 fi
12730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12731 for gdb_arg5 in 'int *' 'int' 'long'; do
12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12734 $gdb_ptrace_headers
12735 int
12736 main ()
12737 {
12738
12739 extern $gdb_cv_func_ptrace_ret
12740 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12741
12742 ;
12743 return 0;
12744 }
12745 _ACEOF
12746 if ac_fn_c_try_compile "$LINENO"; then :
12747
12748 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12749 break 5;
12750 fi
12751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12752 done
12753 done
12754 done
12755 done
12756 done
12757 # Provide a safe default value.
12758 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12759
12760 fi
12761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12762 fi
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12764 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12765 ac_save_IFS=$IFS; IFS=','
12766 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12767 IFS=$ac_save_IFS
12768 shift
12769
12770 cat >>confdefs.h <<_ACEOF
12771 #define PTRACE_TYPE_ARG3 $3
12772 _ACEOF
12773
12774 if test -n "$5"; then
12775
12776 cat >>confdefs.h <<_ACEOF
12777 #define PTRACE_TYPE_ARG5 $5
12778 _ACEOF
12779
12780 fi
12781
12782 if test "$cross_compiling" = no; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12784 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12785 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 if test "$cross_compiling" = yes; then :
12789 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12790 else
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12793 $ac_includes_default
12794 int
12795 main ()
12796 {
12797 /* If this system has a BSD-style setpgrp which takes arguments,
12798 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12799 exit successfully. */
12800 return setpgrp (1,1) != -1;
12801 ;
12802 return 0;
12803 }
12804 _ACEOF
12805 if ac_fn_c_try_run "$LINENO"; then :
12806 ac_cv_func_setpgrp_void=no
12807 else
12808 ac_cv_func_setpgrp_void=yes
12809 fi
12810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12811 conftest.$ac_objext conftest.beam conftest.$ac_ext
12812 fi
12813
12814 fi
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12816 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12817 if test $ac_cv_func_setpgrp_void = yes; then
12818
12819 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12820
12821 fi
12822
12823 else
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12825 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12826 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12827 $as_echo_n "(cached) " >&6
12828 else
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831
12832 #include <unistd.h>
12833
12834 int
12835 main ()
12836 {
12837
12838 if (setpgrp(1,1) == -1)
12839 exit (0);
12840 else
12841 exit (1);
12842
12843 ;
12844 return 0;
12845 }
12846 _ACEOF
12847 if ac_fn_c_try_compile "$LINENO"; then :
12848 ac_cv_func_setpgrp_void=no
12849 else
12850 ac_cv_func_setpgrp_void=yes
12851 fi
12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853 fi
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12855 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12856 if test $ac_cv_func_setpgrp_void = yes; then
12857 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12858
12859 fi
12860 fi
12861
12862 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12863 # since sigsetjmp might only be defined as a macro.
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12865 $as_echo_n "checking for sigsetjmp... " >&6; }
12866 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871
12872 #include <setjmp.h>
12873
12874 int
12875 main ()
12876 {
12877 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 if ac_fn_c_try_compile "$LINENO"; then :
12883 gdb_cv_func_sigsetjmp=yes
12884 else
12885 gdb_cv_func_sigsetjmp=no
12886 fi
12887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888 fi
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12890 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12891 if test $gdb_cv_func_sigsetjmp = yes; then
12892
12893 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12894
12895 fi
12896
12897 # Assume we'll default to using the included libiberty regex.
12898 gdb_use_included_regex=yes
12899
12900 # However, if the system regex is GNU regex, then default to *not*
12901 # using the included regex.
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12903 $as_echo_n "checking for GNU regex... " >&6; }
12904 if test "${gdb_cv_have_gnu_regex+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 <gnu-versions.h>
12910 int
12911 main ()
12912 {
12913 #define REGEX_INTERFACE_VERSION 1
12914 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12915 # error "Version mismatch"
12916 #endif
12917 ;
12918 return 0;
12919 }
12920 _ACEOF
12921 if ac_fn_c_try_compile "$LINENO"; then :
12922 gdb_cv_have_gnu_regex=yes
12923 else
12924 gdb_cv_have_gnu_regex=no
12925 fi
12926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927 fi
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12929 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12930 if test $gdb_cv_have_gnu_regex = yes; then
12931 gdb_use_included_regex=no
12932 fi
12933
12934
12935 # Check whether --with-included-regex was given.
12936 if test "${with_included_regex+set}" = set; then :
12937 withval=$with_included_regex; gdb_with_regex=$withval
12938 else
12939 gdb_with_regex=$gdb_use_included_regex
12940 fi
12941
12942 if test "$gdb_with_regex" = yes; then
12943
12944 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12945
12946 fi
12947
12948 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12949 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12950 #include <sys/proc.h>
12951
12952 "
12953 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12954
12955 cat >>confdefs.h <<_ACEOF
12956 #define HAVE_STRUCT_THREAD_TD_PCB 1
12957 _ACEOF
12958
12959
12960 fi
12961
12962
12963 # See if <sys/lwp.h> defines `struct lwp`.
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12965 $as_echo_n "checking for struct lwp... " >&6; }
12966 if test "${gdb_cv_struct_lwp+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h. */
12971 #include <sys/param.h>
12972 #include <sys/lwp.h>
12973 int
12974 main ()
12975 {
12976 struct lwp l;
12977 ;
12978 return 0;
12979 }
12980 _ACEOF
12981 if ac_fn_c_try_compile "$LINENO"; then :
12982 gdb_cv_struct_lwp=yes
12983 else
12984 gdb_cv_struct_lwp=no
12985 fi
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 fi
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12989 $as_echo "$gdb_cv_struct_lwp" >&6; }
12990 if test $gdb_cv_struct_lwp = yes; then
12991
12992 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12993
12994 fi
12995
12996 # See if <machine/reg.h> degines `struct reg'.
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12998 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12999 if test "${gdb_cv_struct_reg+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13004 #include <sys/types.h>
13005 #include <machine/reg.h>
13006 int
13007 main ()
13008 {
13009 struct reg r;
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_compile "$LINENO"; then :
13015 gdb_cv_struct_reg=yes
13016 else
13017 gdb_cv_struct_reg=no
13018 fi
13019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020 fi
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13022 $as_echo "$gdb_cv_struct_reg" >&6; }
13023 if test $gdb_cv_struct_reg = yes; then
13024
13025 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13026
13027 fi
13028
13029 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13030 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13031 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13032 "
13033 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
13034
13035 cat >>confdefs.h <<_ACEOF
13036 #define HAVE_STRUCT_REG_R_FS 1
13037 _ACEOF
13038
13039
13040 fi
13041 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13042 "
13043 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
13044
13045 cat >>confdefs.h <<_ACEOF
13046 #define HAVE_STRUCT_REG_R_GS 1
13047 _ACEOF
13048
13049
13050 fi
13051
13052
13053 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13055 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13056 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061 #include <sys/ptrace.h>
13062 int
13063 main ()
13064 {
13065 PTRACE_GETREGS;
13066 ;
13067 return 0;
13068 }
13069 _ACEOF
13070 if ac_fn_c_try_compile "$LINENO"; then :
13071 gdb_cv_have_ptrace_getregs=yes
13072 else
13073 gdb_cv_have_ptrace_getregs=no
13074 fi
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 fi
13077
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13079 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13080 if test $gdb_cv_have_ptrace_getregs = yes; then
13081
13082 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13083
13084 fi
13085
13086 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13088 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13089 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13094 #include <sys/ptrace.h>
13095 int
13096 main ()
13097 {
13098 PTRACE_GETFPXREGS;
13099 ;
13100 return 0;
13101 }
13102 _ACEOF
13103 if ac_fn_c_try_compile "$LINENO"; then :
13104 gdb_cv_have_ptrace_getfpxregs=yes
13105 else
13106 gdb_cv_have_ptrace_getfpxregs=no
13107 fi
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109 fi
13110
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13112 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13113 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13114
13115 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13116
13117 fi
13118
13119 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13121 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13122 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127 #include <sys/types.h>
13128 #include <sys/ptrace.h>
13129 int
13130 main ()
13131 {
13132 PT_GETDBREGS;
13133 ;
13134 return 0;
13135 }
13136 _ACEOF
13137 if ac_fn_c_try_compile "$LINENO"; then :
13138 gdb_cv_have_pt_getdbregs=yes
13139 else
13140 gdb_cv_have_pt_getdbregs=no
13141 fi
13142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13143 fi
13144
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13146 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13147 if test $gdb_cv_have_pt_getdbregs = yes; then
13148
13149 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13150
13151 fi
13152
13153 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13155 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13156 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13161 #include <sys/types.h>
13162 #include <sys/ptrace.h>
13163 int
13164 main ()
13165 {
13166 PT_GETXMMREGS;
13167 ;
13168 return 0;
13169 }
13170 _ACEOF
13171 if ac_fn_c_try_compile "$LINENO"; then :
13172 gdb_cv_have_pt_getxmmregs=yes
13173 else
13174 gdb_cv_have_pt_getxmmregs=no
13175 fi
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177 fi
13178
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13180 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13181 if test $gdb_cv_have_pt_getxmmregs = yes; then
13182
13183 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13184
13185 fi
13186
13187 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13188
13189 if test "${target}" = "${host}"; then
13190 case "${host}" in
13191 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
13192
13193 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13194
13195 ;;
13196 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13197
13198 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13199
13200 ;;
13201 mips-sgi-irix5*)
13202 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13203
13204 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13205
13206 ;;
13207 esac
13208 fi
13209
13210 if test "$ac_cv_header_sys_procfs_h" = yes; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13212 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13213 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218
13219 #define _SYSCALL32
13220 /* Needed for new procfs interface on sparc-solaris. */
13221 #define _STRUCTURED_PROC 1
13222 #include <sys/procfs.h>
13223 int
13224 main ()
13225 {
13226 pstatus_t avar
13227 ;
13228 return 0;
13229 }
13230 _ACEOF
13231 if ac_fn_c_try_compile "$LINENO"; then :
13232 bfd_cv_have_sys_procfs_type_pstatus_t=yes
13233 else
13234 bfd_cv_have_sys_procfs_type_pstatus_t=no
13235
13236 fi
13237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13238 fi
13239
13240 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13241
13242 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13243
13244 fi
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13246 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13247
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13249 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13250 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13255
13256 #define _SYSCALL32
13257 /* Needed for new procfs interface on sparc-solaris. */
13258 #define _STRUCTURED_PROC 1
13259 #include <sys/procfs.h>
13260 int
13261 main ()
13262 {
13263 prrun_t avar
13264 ;
13265 return 0;
13266 }
13267 _ACEOF
13268 if ac_fn_c_try_compile "$LINENO"; then :
13269 bfd_cv_have_sys_procfs_type_prrun_t=yes
13270 else
13271 bfd_cv_have_sys_procfs_type_prrun_t=no
13272
13273 fi
13274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275 fi
13276
13277 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13278
13279 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13280
13281 fi
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13283 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13284
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13286 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13287 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292
13293 #define _SYSCALL32
13294 /* Needed for new procfs interface on sparc-solaris. */
13295 #define _STRUCTURED_PROC 1
13296 #include <sys/procfs.h>
13297 int
13298 main ()
13299 {
13300 gregset_t avar
13301 ;
13302 return 0;
13303 }
13304 _ACEOF
13305 if ac_fn_c_try_compile "$LINENO"; then :
13306 bfd_cv_have_sys_procfs_type_gregset_t=yes
13307 else
13308 bfd_cv_have_sys_procfs_type_gregset_t=no
13309
13310 fi
13311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13312 fi
13313
13314 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13315
13316 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13317
13318 fi
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13320 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13321
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13323 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13324 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329
13330 #define _SYSCALL32
13331 /* Needed for new procfs interface on sparc-solaris. */
13332 #define _STRUCTURED_PROC 1
13333 #include <sys/procfs.h>
13334 int
13335 main ()
13336 {
13337 fpregset_t avar
13338 ;
13339 return 0;
13340 }
13341 _ACEOF
13342 if ac_fn_c_try_compile "$LINENO"; then :
13343 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13344 else
13345 bfd_cv_have_sys_procfs_type_fpregset_t=no
13346
13347 fi
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349 fi
13350
13351 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13352
13353 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13354
13355 fi
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13357 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13358
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13360 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13361 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13362 $as_echo_n "(cached) " >&6
13363 else
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13366
13367 #define _SYSCALL32
13368 /* Needed for new procfs interface on sparc-solaris. */
13369 #define _STRUCTURED_PROC 1
13370 #include <sys/procfs.h>
13371 int
13372 main ()
13373 {
13374 prgregset_t avar
13375 ;
13376 return 0;
13377 }
13378 _ACEOF
13379 if ac_fn_c_try_compile "$LINENO"; then :
13380 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13381 else
13382 bfd_cv_have_sys_procfs_type_prgregset_t=no
13383
13384 fi
13385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13386 fi
13387
13388 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13389
13390 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13391
13392 fi
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13394 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13395
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13397 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13398 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13399 $as_echo_n "(cached) " >&6
13400 else
13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h. */
13403
13404 #define _SYSCALL32
13405 /* Needed for new procfs interface on sparc-solaris. */
13406 #define _STRUCTURED_PROC 1
13407 #include <sys/procfs.h>
13408 int
13409 main ()
13410 {
13411 prfpregset_t avar
13412 ;
13413 return 0;
13414 }
13415 _ACEOF
13416 if ac_fn_c_try_compile "$LINENO"; then :
13417 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13418 else
13419 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13420
13421 fi
13422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13423 fi
13424
13425 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13426
13427 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13428
13429 fi
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13431 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13432
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13434 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13435 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13436 $as_echo_n "(cached) " >&6
13437 else
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13440
13441 #define _SYSCALL32
13442 /* Needed for new procfs interface on sparc-solaris. */
13443 #define _STRUCTURED_PROC 1
13444 #include <sys/procfs.h>
13445 int
13446 main ()
13447 {
13448 prgregset32_t avar
13449 ;
13450 return 0;
13451 }
13452 _ACEOF
13453 if ac_fn_c_try_compile "$LINENO"; then :
13454 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13455 else
13456 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13457
13458 fi
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 fi
13461
13462 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13463
13464 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13465
13466 fi
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13468 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13469
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13471 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13472 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13473 $as_echo_n "(cached) " >&6
13474 else
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13477
13478 #define _SYSCALL32
13479 /* Needed for new procfs interface on sparc-solaris. */
13480 #define _STRUCTURED_PROC 1
13481 #include <sys/procfs.h>
13482 int
13483 main ()
13484 {
13485 prfpregset32_t avar
13486 ;
13487 return 0;
13488 }
13489 _ACEOF
13490 if ac_fn_c_try_compile "$LINENO"; then :
13491 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
13492 else
13493 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
13494
13495 fi
13496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13497 fi
13498
13499 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13500
13501 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13502
13503 fi
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13505 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13506
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13508 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13509 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13514
13515 #define _SYSCALL32
13516 /* Needed for new procfs interface on sparc-solaris. */
13517 #define _STRUCTURED_PROC 1
13518 #include <sys/procfs.h>
13519 int
13520 main ()
13521 {
13522 lwpid_t avar
13523 ;
13524 return 0;
13525 }
13526 _ACEOF
13527 if ac_fn_c_try_compile "$LINENO"; then :
13528 bfd_cv_have_sys_procfs_type_lwpid_t=yes
13529 else
13530 bfd_cv_have_sys_procfs_type_lwpid_t=no
13531
13532 fi
13533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13534 fi
13535
13536 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13537
13538 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13539
13540 fi
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13542 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13543
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13545 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13546 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13551
13552 #define _SYSCALL32
13553 /* Needed for new procfs interface on sparc-solaris. */
13554 #define _STRUCTURED_PROC 1
13555 #include <sys/procfs.h>
13556 int
13557 main ()
13558 {
13559 psaddr_t avar
13560 ;
13561 return 0;
13562 }
13563 _ACEOF
13564 if ac_fn_c_try_compile "$LINENO"; then :
13565 bfd_cv_have_sys_procfs_type_psaddr_t=yes
13566 else
13567 bfd_cv_have_sys_procfs_type_psaddr_t=no
13568
13569 fi
13570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13571 fi
13572
13573 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13574
13575 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13576
13577 fi
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13579 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13580
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13582 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13583 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13584 $as_echo_n "(cached) " >&6
13585 else
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588
13589 #define _SYSCALL32
13590 /* Needed for new procfs interface on sparc-solaris. */
13591 #define _STRUCTURED_PROC 1
13592 #include <sys/procfs.h>
13593 int
13594 main ()
13595 {
13596 prsysent_t avar
13597 ;
13598 return 0;
13599 }
13600 _ACEOF
13601 if ac_fn_c_try_compile "$LINENO"; then :
13602 bfd_cv_have_sys_procfs_type_prsysent_t=yes
13603 else
13604 bfd_cv_have_sys_procfs_type_prsysent_t=no
13605
13606 fi
13607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13608 fi
13609
13610 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13611
13612 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13613
13614 fi
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13616 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13617
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13619 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13620 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13625
13626 #define _SYSCALL32
13627 /* Needed for new procfs interface on sparc-solaris. */
13628 #define _STRUCTURED_PROC 1
13629 #include <sys/procfs.h>
13630 int
13631 main ()
13632 {
13633 pr_sigset_t avar
13634 ;
13635 return 0;
13636 }
13637 _ACEOF
13638 if ac_fn_c_try_compile "$LINENO"; then :
13639 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13640 else
13641 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13642
13643 fi
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645 fi
13646
13647 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13648
13649 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13650
13651 fi
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13653 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13654
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13656 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13657 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662
13663 #define _SYSCALL32
13664 /* Needed for new procfs interface on sparc-solaris. */
13665 #define _STRUCTURED_PROC 1
13666 #include <sys/procfs.h>
13667 int
13668 main ()
13669 {
13670 pr_sigaction64_t avar
13671 ;
13672 return 0;
13673 }
13674 _ACEOF
13675 if ac_fn_c_try_compile "$LINENO"; then :
13676 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13677 else
13678 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13679
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 fi
13683
13684 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13685
13686 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13687
13688 fi
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13690 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13691
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13693 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13694 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13695 $as_echo_n "(cached) " >&6
13696 else
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13699
13700 #define _SYSCALL32
13701 /* Needed for new procfs interface on sparc-solaris. */
13702 #define _STRUCTURED_PROC 1
13703 #include <sys/procfs.h>
13704 int
13705 main ()
13706 {
13707 pr_siginfo64_t avar
13708 ;
13709 return 0;
13710 }
13711 _ACEOF
13712 if ac_fn_c_try_compile "$LINENO"; then :
13713 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13714 else
13715 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13716
13717 fi
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13719 fi
13720
13721 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13722
13723 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13724
13725 fi
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13727 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13728
13729
13730
13731
13732
13733 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13735 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13736 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13739 if test "$cross_compiling" = yes; then :
13740 gdb_cv_prfpregset_t_broken=yes
13741 else
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13744 #include <sys/procfs.h>
13745 int main ()
13746 {
13747 if (sizeof (prfpregset_t) == sizeof (void *))
13748 return 1;
13749 return 0;
13750 }
13751 _ACEOF
13752 if ac_fn_c_try_run "$LINENO"; then :
13753 gdb_cv_prfpregset_t_broken=no
13754 else
13755 gdb_cv_prfpregset_t_broken=yes
13756 fi
13757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13758 conftest.$ac_objext conftest.beam conftest.$ac_ext
13759 fi
13760
13761 fi
13762
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13764 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13765 if test $gdb_cv_prfpregset_t_broken = yes; then
13766
13767 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13768
13769 fi
13770 fi
13771
13772
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13774 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13775 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13776 $as_echo_n "(cached) " >&6
13777 else
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13780 #include <unistd.h>
13781 #include <sys/types.h>
13782 #include <sys/procfs.h>
13783
13784 int
13785 main ()
13786 {
13787
13788 int dummy;;
13789 dummy = ioctl(0, PIOCSET, &dummy);
13790
13791 ;
13792 return 0;
13793 }
13794 _ACEOF
13795 if ac_fn_c_try_compile "$LINENO"; then :
13796 gdb_cv_have_procfs_piocset=yes
13797 else
13798 gdb_cv_have_procfs_piocset=no
13799 fi
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801 fi
13802
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13804 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13805 if test $gdb_cv_have_procfs_piocset = yes; then
13806
13807 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13808
13809 fi
13810 fi
13811
13812 if test ${host} = ${target} ; then
13813
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13815 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13816 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13817 $as_echo_n "(cached) " >&6
13818 else
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 #include <link.h>
13822 int
13823 main ()
13824 {
13825 struct link_map lm; (void) lm.l_addr;
13826 ;
13827 return 0;
13828 }
13829 _ACEOF
13830 if ac_fn_c_try_compile "$LINENO"; then :
13831 gdb_cv_have_struct_link_map_with_l_members=yes
13832 else
13833 gdb_cv_have_struct_link_map_with_l_members=no
13834 fi
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 fi
13837
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13839 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13840 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13841
13842 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13843
13844 fi
13845
13846
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13848 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13849 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 #include <sys/types.h>
13855 #include <link.h>
13856 int
13857 main ()
13858 {
13859 struct link_map lm; (void) lm.lm_addr;
13860 ;
13861 return 0;
13862 }
13863 _ACEOF
13864 if ac_fn_c_try_compile "$LINENO"; then :
13865 gdb_cv_have_struct_link_map_with_lm_members=yes
13866 else
13867 gdb_cv_have_struct_link_map_with_lm_members=no
13868 fi
13869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13870 fi
13871
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13873 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13874 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13875
13876 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13877
13878 fi
13879
13880
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13882 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13883 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888 #include <sys/types.h>
13889 #ifdef HAVE_NLIST_H
13890 #include <nlist.h>
13891 #endif
13892 #include <link.h>
13893 int
13894 main ()
13895 {
13896 struct so_map lm; (void) lm.som_addr;
13897 ;
13898 return 0;
13899 }
13900 _ACEOF
13901 if ac_fn_c_try_compile "$LINENO"; then :
13902 gdb_cv_have_struct_so_map_with_som_members=yes
13903 else
13904 gdb_cv_have_struct_so_map_with_som_members=no
13905 fi
13906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13907 fi
13908
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13910 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13911 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13912
13913 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13914
13915 fi
13916
13917
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13919 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13920 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13925 #define _SYSCALL32
13926 #include <sys/link.h>
13927 int
13928 main ()
13929 {
13930 struct link_map32 l;
13931 ;
13932 return 0;
13933 }
13934 _ACEOF
13935 if ac_fn_c_try_compile "$LINENO"; then :
13936 gdb_cv_have_struct_link_map32=yes
13937 else
13938 gdb_cv_have_struct_link_map32=no
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 fi
13942
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13944 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13945 if test $gdb_cv_have_struct_link_map32 = yes; then
13946
13947 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13948
13949
13950 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13951
13952 fi
13953 fi
13954
13955 # Check if the compiler supports the `long long' type.
13956
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13958 $as_echo_n "checking for long long support in compiler... " >&6; }
13959 if test "${gdb_cv_c_long_long+set}" = set; then :
13960 $as_echo_n "(cached) " >&6
13961 else
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13964 extern long long foo;
13965 int
13966 main ()
13967 {
13968 switch (foo & 2) { case 0: return 1; }
13969 ;
13970 return 0;
13971 }
13972 _ACEOF
13973 if ac_fn_c_try_compile "$LINENO"; then :
13974 gdb_cv_c_long_long=yes
13975 else
13976 gdb_cv_c_long_long=no
13977 fi
13978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979 fi
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13981 $as_echo "$gdb_cv_c_long_long" >&6; }
13982 if test $gdb_cv_c_long_long = yes; then
13983
13984 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
13985
13986 fi
13987
13988 # Check if the compiler and runtime support printing long longs.
13989
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13991 $as_echo_n "checking for long long support in printf... " >&6; }
13992 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13993 $as_echo_n "(cached) " >&6
13994 else
13995 if test "$cross_compiling" = yes; then :
13996 gdb_cv_printf_has_long_long=no
13997 else
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14000 $ac_includes_default
14001 int
14002 main ()
14003 {
14004 char buf[32];
14005 long long l = 0;
14006 l = (l << 16) + 0x0123;
14007 l = (l << 16) + 0x4567;
14008 l = (l << 16) + 0x89ab;
14009 l = (l << 16) + 0xcdef;
14010 sprintf (buf, "0x%016llx", l);
14011 return (strcmp ("0x0123456789abcdef", buf));
14012 ;
14013 return 0;
14014 }
14015 _ACEOF
14016 if ac_fn_c_try_run "$LINENO"; then :
14017 gdb_cv_printf_has_long_long=yes
14018 else
14019 gdb_cv_printf_has_long_long=no
14020 fi
14021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14022 conftest.$ac_objext conftest.beam conftest.$ac_ext
14023 fi
14024
14025 fi
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14027 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14028 if test $gdb_cv_printf_has_long_long = yes; then
14029
14030 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14031
14032 fi
14033
14034 # Check if the compiler and runtime support printing decfloats.
14035
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14037 $as_echo_n "checking for decfloat support in printf... " >&6; }
14038 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14040 else
14041 if test "$cross_compiling" = yes; then :
14042 gdb_cv_printf_has_decfloat=no
14043 else
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046 $ac_includes_default
14047 int
14048 main ()
14049 {
14050 char buf[64];
14051 _Decimal32 d32 = 1.2345df;
14052 _Decimal64 d64 = 1.2345dd;
14053 _Decimal128 d128 = 1.2345dl;
14054 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14055 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14056 ;
14057 return 0;
14058 }
14059 _ACEOF
14060 if ac_fn_c_try_run "$LINENO"; then :
14061 gdb_cv_printf_has_decfloat=yes
14062 else
14063 gdb_cv_printf_has_decfloat=no
14064 fi
14065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14066 conftest.$ac_objext conftest.beam conftest.$ac_ext
14067 fi
14068
14069 fi
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14071 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14072 if test $gdb_cv_printf_has_decfloat = yes; then
14073
14074 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14075
14076 fi
14077
14078 # Check if the compiler supports the `long double' type. We can't use
14079 # AC_C_LONG_DOUBLE because that one does additional checks on the
14080 # constants defined in <float.h> that fail on some systems,
14081 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14082
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14084 $as_echo_n "checking for long double support in compiler... " >&6; }
14085 if test "${gdb_cv_c_long_double+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 long double foo;
14091 _ACEOF
14092 if ac_fn_c_try_compile "$LINENO"; then :
14093 gdb_cv_c_long_double=yes
14094 else
14095 gdb_cv_c_long_double=no
14096 fi
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 fi
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14100 $as_echo "$gdb_cv_c_long_double" >&6; }
14101 if test $gdb_cv_c_long_double = yes; then
14102
14103 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14104
14105 fi
14106
14107 # Check if the compiler and runtime support printing long doubles.
14108
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14110 $as_echo_n "checking for long double support in printf... " >&6; }
14111 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14112 $as_echo_n "(cached) " >&6
14113 else
14114 if test "$cross_compiling" = yes; then :
14115 gdb_cv_printf_has_long_double=no
14116 else
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h. */
14119 $ac_includes_default
14120 int
14121 main ()
14122 {
14123 char buf[16];
14124 long double f = 3.141592653;
14125 sprintf (buf, "%Lg", f);
14126 return (strncmp ("3.14159", buf, 7));
14127 ;
14128 return 0;
14129 }
14130 _ACEOF
14131 if ac_fn_c_try_run "$LINENO"; then :
14132 gdb_cv_printf_has_long_double=yes
14133 else
14134 gdb_cv_printf_has_long_double=no
14135 fi
14136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14137 conftest.$ac_objext conftest.beam conftest.$ac_ext
14138 fi
14139
14140 fi
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14142 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14143 if test $gdb_cv_printf_has_long_double = yes; then
14144
14145 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14146
14147 fi
14148
14149 # Check if the compiler and runtime support scanning long doubles.
14150
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14152 $as_echo_n "checking for long double support in scanf... " >&6; }
14153 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14154 $as_echo_n "(cached) " >&6
14155 else
14156 if test "$cross_compiling" = yes; then :
14157 gdb_cv_scanf_has_long_double=no
14158 else
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161 #include <stdio.h>
14162 int
14163 main ()
14164 {
14165 char *buf = "3.141592653";
14166 long double f = 0;
14167 sscanf (buf, "%Lg", &f);
14168 return !(f > 3.14159 && f < 3.14160);
14169 ;
14170 return 0;
14171 }
14172 _ACEOF
14173 if ac_fn_c_try_run "$LINENO"; then :
14174 gdb_cv_scanf_has_long_double=yes
14175 else
14176 gdb_cv_scanf_has_long_double=no
14177 fi
14178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14179 conftest.$ac_objext conftest.beam conftest.$ac_ext
14180 fi
14181
14182 fi
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14184 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14185 if test $gdb_cv_scanf_has_long_double = yes; then
14186
14187 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14188
14189 fi
14190
14191 case ${host_os} in
14192 aix*)
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14194 $as_echo_n "checking for -bbigtoc option... " >&6; }
14195 if test "${gdb_cv_bigtoc+set}" = set; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198
14199 SAVE_LDFLAGS=$LDFLAGS
14200
14201 case $GCC in
14202 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14203 *) gdb_cv_bigtoc=-bbigtoc ;;
14204 esac
14205
14206 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h. */
14209
14210 int
14211 main ()
14212 {
14213 int i;
14214 ;
14215 return 0;
14216 }
14217 _ACEOF
14218 if ac_fn_c_try_link "$LINENO"; then :
14219
14220 else
14221 gdb_cv_bigtoc=
14222 fi
14223 rm -f core conftest.err conftest.$ac_objext \
14224 conftest$ac_exeext conftest.$ac_ext
14225 LDFLAGS="${SAVE_LDFLAGS}"
14226
14227 fi
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14229 $as_echo "$gdb_cv_bigtoc" >&6; }
14230 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14231 ;;
14232 esac
14233
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14235 $as_echo_n "checking for the dynamic export flag... " >&6; }
14236 dynamic_list=false
14237 if test "${gdb_native}" = yes; then
14238 # The dynamically loaded libthread_db needs access to symbols in the gdb
14239 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14240 # may not be supported there.
14241 old_LDFLAGS="$LDFLAGS"
14242 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14243 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14244 LDFLAGS="$LDFLAGS $RDYNAMIC"
14245 if test "${have_libpython}" = no; then
14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14248
14249 int
14250 main ()
14251 {
14252
14253 ;
14254 return 0;
14255 }
14256 _ACEOF
14257 if ac_fn_c_try_link "$LINENO"; then :
14258 dynamic_list=true
14259 fi
14260 rm -f core conftest.err conftest.$ac_objext \
14261 conftest$ac_exeext conftest.$ac_ext
14262 else
14263 # Workaround http://bugs.python.org/issue4434 where static
14264 # libpythonX.Y.a would get its symbols required for
14265 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14266 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14267 old_CFLAGS="$CFLAGS"
14268 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14269 if test "$cross_compiling" = yes; then :
14270 true
14271 else
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 #include "${have_libpython}/Python.h"
14275 int
14276 main ()
14277 {
14278 int err;
14279 Py_Initialize ();
14280 err = PyRun_SimpleString ("import itertools\n");
14281 Py_Finalize ();
14282 return err == 0 ? 0 : 1;
14283 ;
14284 return 0;
14285 }
14286 _ACEOF
14287 if ac_fn_c_try_run "$LINENO"; then :
14288 dynamic_list=true
14289 fi
14290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14291 conftest.$ac_objext conftest.beam conftest.$ac_ext
14292 fi
14293
14294 CFLAGS="$old_CFLAGS"
14295 fi
14296 LDFLAGS="$old_LDFLAGS"
14297 fi
14298 if $dynamic_list; then
14299 found="-Wl,--dynamic-list"
14300 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14301 else
14302 found="-rdynamic"
14303 RDYNAMIC="-rdynamic"
14304 fi
14305
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14307 $as_echo "$found" >&6; }
14308
14309
14310 if test ${build} = ${host} -a ${host} = ${target} ; then
14311 case ${host_os} in
14312 hpux*)
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
14314 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
14315 if test -f /usr/include/dce/cma_config.h ; then
14316 if test "$GCC" = "yes" ; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14318 $as_echo "yes" >&6; }
14319
14320 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
14321
14322 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
14323 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
14324 else
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
14326 $as_echo "no (suppressed because you are not using GCC)" >&6; }
14327 fi
14328 else
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330 $as_echo "no" >&6; }
14331 fi
14332 ;;
14333 solaris*)
14334 # See if thread_db library is around for Solaris thread debugging.
14335 # Note that we must explicitly test for version 1 of the library
14336 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14337 # the same API.
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14339 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14340 if test -f /usr/lib/libthread_db.so.1 ; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14342 $as_echo "yes" >&6; }
14343
14344 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14345
14346 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
14347 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14349 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14350 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14351 $as_echo_n "(cached) " >&6
14352 else
14353 ac_check_lib_save_LIBS=$LIBS
14354 LIBS="-ldl $LIBS"
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14357
14358 /* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
14361 #ifdef __cplusplus
14362 extern "C"
14363 #endif
14364 char dlopen ();
14365 int
14366 main ()
14367 {
14368 return dlopen ();
14369 ;
14370 return 0;
14371 }
14372 _ACEOF
14373 if ac_fn_c_try_link "$LINENO"; then :
14374 ac_cv_lib_dl_dlopen=yes
14375 else
14376 ac_cv_lib_dl_dlopen=no
14377 fi
14378 rm -f core conftest.err conftest.$ac_objext \
14379 conftest$ac_exeext conftest.$ac_ext
14380 LIBS=$ac_check_lib_save_LIBS
14381 fi
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14383 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14384 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14385 cat >>confdefs.h <<_ACEOF
14386 #define HAVE_LIBDL 1
14387 _ACEOF
14388
14389 LIBS="-ldl $LIBS"
14390
14391 fi
14392
14393 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
14394 # Sun randomly tweaked the prototypes in <proc_service.h>
14395 # at one point.
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14397 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14398 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14399 $as_echo_n "(cached) " >&6
14400 else
14401
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14404
14405 #include <proc_service.h>
14406 ps_err_e ps_pdwrite
14407 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14408
14409 int
14410 main ()
14411 {
14412
14413 ;
14414 return 0;
14415 }
14416 _ACEOF
14417 if ac_fn_c_try_compile "$LINENO"; then :
14418 gdb_cv_proc_service_is_old=no
14419 else
14420 gdb_cv_proc_service_is_old=yes
14421 fi
14422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423
14424 fi
14425
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14427 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14428 if test $gdb_cv_proc_service_is_old = yes; then
14429
14430 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14431
14432 fi
14433 else
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14435 $as_echo "no" >&6; }
14436 fi
14437 ;;
14438 aix*)
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14440 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14441 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 #include <sys/pthdebug.h>
14447 int
14448 main ()
14449 {
14450 #ifndef PTHDB_VERSION_3
14451 #error
14452 #endif
14453 ;
14454 return 0;
14455 }
14456 _ACEOF
14457 if ac_fn_c_try_compile "$LINENO"; then :
14458 gdb_cv_have_aix_thread_debug=yes
14459 else
14460 gdb_cv_have_aix_thread_debug=no
14461 fi
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14463 fi
14464
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14466 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14467 if test $gdb_cv_have_aix_thread_debug = yes; then
14468 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14469 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14470 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14471 fi
14472 ;;
14473 esac
14474
14475 fi
14476
14477 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14479 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14480 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14485 #include <thread_db.h>
14486 int
14487 main ()
14488 {
14489 int i = TD_NOTALLOC;
14490 ;
14491 return 0;
14492 }
14493 _ACEOF
14494 if ac_fn_c_try_compile "$LINENO"; then :
14495 gdb_cv_thread_db_h_has_td_notalloc=yes
14496 else
14497 gdb_cv_thread_db_h_has_td_notalloc=no
14498
14499 fi
14500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14501
14502 fi
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14504 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14506 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14507 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14508 $as_echo_n "(cached) " >&6
14509 else
14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h. */
14512 #include <thread_db.h>
14513 int
14514 main ()
14515 {
14516 int i = TD_VERSION;
14517 ;
14518 return 0;
14519 }
14520 _ACEOF
14521 if ac_fn_c_try_compile "$LINENO"; then :
14522 gdb_cv_thread_db_h_has_td_version=yes
14523 else
14524 gdb_cv_thread_db_h_has_td_version=no
14525
14526 fi
14527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14528
14529 fi
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14531 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14533 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14534 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14535 $as_echo_n "(cached) " >&6
14536 else
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14539 #include <thread_db.h>
14540 int
14541 main ()
14542 {
14543 int i = TD_NOTLS;
14544 ;
14545 return 0;
14546 }
14547 _ACEOF
14548 if ac_fn_c_try_compile "$LINENO"; then :
14549 gdb_cv_thread_db_h_has_td_notls=yes
14550 else
14551 gdb_cv_thread_db_h_has_td_notls=no
14552
14553 fi
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555
14556 fi
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14558 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14559 fi
14560 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14561
14562 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14563
14564 fi
14565 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14566
14567 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14568
14569 fi
14570 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14571
14572 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14573
14574 fi
14575
14576 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14578 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14579 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 #include <sys/syscall.h>
14585 int
14586 main ()
14587 {
14588 int i = __NR_tkill;
14589 ;
14590 return 0;
14591 }
14592 _ACEOF
14593 if ac_fn_c_try_compile "$LINENO"; then :
14594 gdb_cv_sys_syscall_h_has_tkill=yes
14595 else
14596 gdb_cv_sys_syscall_h_has_tkill=no
14597
14598 fi
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600
14601 fi
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14603 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14604 fi
14605 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14606
14607 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14608
14609 fi
14610
14611 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14612 "
14613 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14614 ac_have_decl=1
14615 else
14616 ac_have_decl=0
14617 fi
14618
14619 cat >>confdefs.h <<_ACEOF
14620 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14621 _ACEOF
14622
14623
14624 if test "$cross_compiling" = yes; then :
14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14627 #include <sys/personality.h>
14628 int
14629 main ()
14630 {
14631
14632 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14633 # define ADDR_NO_RANDOMIZE 0x0040000
14634 # endif
14635 /* Test the flag could be set and stays set. */
14636 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14637 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14638 return 1
14639 ;
14640 return 0;
14641 }
14642 _ACEOF
14643 if ac_fn_c_try_link "$LINENO"; then :
14644 have_personality=true
14645 else
14646 have_personality=false
14647 fi
14648 rm -f core conftest.err conftest.$ac_objext \
14649 conftest$ac_exeext conftest.$ac_ext
14650 else
14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652 /* end confdefs.h. */
14653 #include <sys/personality.h>
14654 int
14655 main ()
14656 {
14657
14658 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14659 # define ADDR_NO_RANDOMIZE 0x0040000
14660 # endif
14661 /* Test the flag could be set and stays set. */
14662 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14663 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14664 return 1
14665 ;
14666 return 0;
14667 }
14668 _ACEOF
14669 if ac_fn_c_try_run "$LINENO"; then :
14670 have_personality=true
14671 else
14672 have_personality=false
14673 fi
14674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14675 conftest.$ac_objext conftest.beam conftest.$ac_ext
14676 fi
14677
14678 if $have_personality
14679 then
14680
14681 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14682
14683 fi
14684
14685
14686 target_sysroot_reloc=0
14687
14688 # Check whether --with-sysroot was given.
14689 if test "${with_sysroot+set}" = set; then :
14690 withval=$with_sysroot;
14691 case ${with_sysroot} in
14692 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
14693 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14694 esac
14695
14696 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14697
14698 if test "x$prefix" = xNONE; then
14699 test_prefix=/usr/local
14700 else
14701 test_prefix=$prefix
14702 fi
14703 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14704 test_exec_prefix=$test_prefix
14705 else
14706 test_exec_prefix=$exec_prefix
14707 fi
14708 case ${TARGET_SYSTEM_ROOT} in
14709 "${test_prefix}"|"${test_prefix}/"*|\
14710 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14711 '${prefix}'|'${prefix}/'*|\
14712 '${exec_prefix}'|'${exec_prefix}/'*)
14713 target_sysroot_reloc=1
14714 ;;
14715 esac
14716
14717 else
14718
14719 TARGET_SYSTEM_ROOT=
14720 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14721
14722 fi
14723
14724 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14725
14726
14727
14728
14729
14730 # Check whether --with-system-gdbinit was given.
14731 if test "${with_system_gdbinit+set}" = set; then :
14732 withval=$with_system_gdbinit;
14733 SYSTEM_GDBINIT=$withval
14734 else
14735 SYSTEM_GDBINIT=
14736 fi
14737
14738
14739 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14740 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14741 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14742 ac_define_dir=`eval echo $ac_define_dir`
14743
14744 cat >>confdefs.h <<_ACEOF
14745 #define SYSTEM_GDBINIT "$ac_define_dir"
14746 _ACEOF
14747
14748
14749
14750
14751 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14752 if test "x$prefix" = xNONE; then
14753 test_prefix=/usr/local
14754 else
14755 test_prefix=$prefix
14756 fi
14757 else
14758 test_prefix=$exec_prefix
14759 fi
14760 value=0
14761 case ${ac_define_dir} in
14762 "${test_prefix}"|"${test_prefix}/"*|\
14763 '${exec_prefix}'|'${exec_prefix}/'*)
14764 value=1
14765 ;;
14766 esac
14767
14768 cat >>confdefs.h <<_ACEOF
14769 #define SYSTEM_GDBINIT_RELOCATABLE $value
14770 _ACEOF
14771
14772
14773
14774
14775 # Check whether --enable-werror was given.
14776 if test "${enable_werror+set}" = set; then :
14777 enableval=$enable_werror; case "${enableval}" in
14778 yes | y) ERROR_ON_WARNING="yes" ;;
14779 no | n) ERROR_ON_WARNING="no" ;;
14780 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14781 esac
14782 fi
14783
14784
14785 # Enable -Werror by default when using gcc
14786 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14787 ERROR_ON_WARNING=yes
14788 fi
14789
14790 WERROR_CFLAGS=""
14791 if test "${ERROR_ON_WARNING}" = yes ; then
14792 WERROR_CFLAGS="-Werror"
14793 fi
14794
14795 # The entries after -Wno-pointer-sign are disabled warnings which may
14796 # be enabled in the future, which can not currently be used to build
14797 # GDB.
14798 # NOTE: If you change this list, remember to update
14799 # gdb/doc/gdbint.texinfo.
14800 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14801 -Wformat-nonliteral -Wno-pointer-sign \
14802 -Wno-unused -Wunused-value -Wunused-function \
14803 -Wno-switch -Wno-char-subscripts"
14804
14805 # Enable -Wno-format by default when using gcc on mingw since many
14806 # GCC versions complain about %I64.
14807 case "${host}" in
14808 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14809 esac
14810
14811 # Check whether --enable-build-warnings was given.
14812 if test "${enable_build_warnings+set}" = set; then :
14813 enableval=$enable_build_warnings; case "${enableval}" in
14814 yes) ;;
14815 no) build_warnings="-w";;
14816 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14817 build_warnings="${build_warnings} ${t}";;
14818 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14819 build_warnings="${t} ${build_warnings}";;
14820 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14821 esac
14822 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14823 echo "Setting compiler warning flags = $build_warnings" 6>&1
14824 fi
14825 fi
14826 # Check whether --enable-gdb-build-warnings was given.
14827 if test "${enable_gdb_build_warnings+set}" = set; then :
14828 enableval=$enable_gdb_build_warnings; case "${enableval}" in
14829 yes) ;;
14830 no) build_warnings="-w";;
14831 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14832 build_warnings="${build_warnings} ${t}";;
14833 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14834 build_warnings="${t} ${build_warnings}";;
14835 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14836 esac
14837 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14838 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14839 fi
14840 fi
14841 WARN_CFLAGS=""
14842 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14843 then
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14845 $as_echo_n "checking compiler warning flags... " >&6; }
14846 # Separate out the -Werror flag as some files just cannot be
14847 # compiled with it enabled.
14848 for w in ${build_warnings}; do
14849 case $w in
14850 -Werr*) WERROR_CFLAGS=-Werror ;;
14851 *) # Check that GCC accepts it
14852 saved_CFLAGS="$CFLAGS"
14853 CFLAGS="$CFLAGS $w"
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14856
14857 int
14858 main ()
14859 {
14860
14861 ;
14862 return 0;
14863 }
14864 _ACEOF
14865 if ac_fn_c_try_compile "$LINENO"; then :
14866 WARN_CFLAGS="${WARN_CFLAGS} $w"
14867 fi
14868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869 CFLAGS="$saved_CFLAGS"
14870 esac
14871 done
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14873 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14874 fi
14875
14876
14877
14878 # In the Cygwin environment, we need some additional flags.
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14880 $as_echo_n "checking for cygwin... " >&6; }
14881 if test "${gdb_cv_os_cygwin+set}" = set; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886
14887 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14888 lose
14889 #endif
14890 _ACEOF
14891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14892 $EGREP "lose" >/dev/null 2>&1; then :
14893 gdb_cv_os_cygwin=yes
14894 else
14895 gdb_cv_os_cygwin=no
14896 fi
14897 rm -f conftest*
14898
14899 fi
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14901 $as_echo "$gdb_cv_os_cygwin" >&6; }
14902
14903
14904 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14905 case ${host} in
14906 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14907 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14908 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14909 esac
14910
14911
14912 # libreadline needs libuser32.a in a cygwin environment
14913 WIN32LIBS=
14914 if test x$gdb_cv_os_cygwin = xyes; then
14915 WIN32LIBS="-luser32"
14916 case "${target}" in
14917 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14918 ;;
14919 esac
14920 fi
14921
14922 # The ser-tcp.c module requires sockets.
14923 case ${host} in
14924 *mingw32*)
14925
14926 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14927
14928 WIN32LIBS="$WIN32LIBS -lws2_32"
14929 ;;
14930 esac
14931
14932
14933 # Add ELF support to GDB, but only if BFD includes ELF support.
14934 OLD_CFLAGS=$CFLAGS
14935 OLD_LDFLAGS=$LDFLAGS
14936 OLD_LIBS=$LIBS
14937 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14938 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
14939 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14940 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14941 if test "$plugins" = "yes"; then
14942 LIBS="-ldl $LIBS"
14943 fi
14944 LIBS="-lbfd -liberty $intl $LIBS"
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14946 $as_echo_n "checking for ELF support in BFD... " >&6; }
14947 if test "${gdb_cv_var_elf+set}" = set; then :
14948 $as_echo_n "(cached) " >&6
14949 else
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14952 #include <stdlib.h>
14953 #include "bfd.h"
14954 #include "elf-bfd.h"
14955
14956 int
14957 main ()
14958 {
14959 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14960 ;
14961 return 0;
14962 }
14963 _ACEOF
14964 if ac_fn_c_try_link "$LINENO"; then :
14965 gdb_cv_var_elf=yes
14966 else
14967 gdb_cv_var_elf=no
14968 fi
14969 rm -f core conftest.err conftest.$ac_objext \
14970 conftest$ac_exeext conftest.$ac_ext
14971 fi
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14973 $as_echo "$gdb_cv_var_elf" >&6; }
14974 if test $gdb_cv_var_elf = yes; then
14975 CONFIG_OBS="$CONFIG_OBS elfread.o"
14976
14977 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14978
14979 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14980 if test "$plugins" = "yes"; then
14981 OLD_LIBS="-ldl $OLD_LIBS"
14982 fi
14983 fi
14984 CFLAGS=$OLD_CFLAGS
14985 LDFLAGS=$OLD_LDFLAGS
14986 LIBS=$OLD_LIBS
14987
14988 # Add any host-specific objects to GDB.
14989 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14990
14991 LIBGUI="../libgui/src/libgui.a"
14992 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14993
14994
14995
14996 WIN32LDAPP=
14997
14998
14999
15000 case "${host}" in
15001 *-*-cygwin* | *-*-mingw* )
15002 configdir="win"
15003 ;;
15004 *)
15005 configdir="unix"
15006 ;;
15007 esac
15008
15009 GDBTKLIBS=
15010 if test "${enable_gdbtk}" = "yes"; then
15011
15012 # Gdbtk must have an absolute path to srcdir in order to run
15013 # properly when not installed.
15014 here=`pwd`
15015 cd ${srcdir}
15016 GDBTK_SRC_DIR=`pwd`
15017 cd $here
15018
15019
15020 #
15021 # Ok, lets find the tcl configuration
15022 # First, look for one uninstalled.
15023 # the alternative search directory is invoked by --with-tcl
15024 #
15025
15026 if test x"${no_tcl}" = x ; then
15027 # we reset no_tcl in case something fails here
15028 no_tcl=true
15029
15030 # Check whether --with-tcl was given.
15031 if test "${with_tcl+set}" = set; then :
15032 withval=$with_tcl; with_tclconfig=${withval}
15033 fi
15034
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15036 $as_echo_n "checking for Tcl configuration... " >&6; }
15037 if test "${ac_cv_c_tclconfig+set}" = set; then :
15038 $as_echo_n "(cached) " >&6
15039 else
15040
15041
15042 # First check to see if --with-tcl was specified.
15043 case "${host}" in
15044 *-*-cygwin*) platDir="win" ;;
15045 *) platDir="unix" ;;
15046 esac
15047 if test x"${with_tclconfig}" != x ; then
15048 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15049 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15050 else
15051 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15052 fi
15053 fi
15054
15055 # then check for a private Tcl installation
15056 if test x"${ac_cv_c_tclconfig}" = x ; then
15057 for i in \
15058 ../tcl \
15059 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15060 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15061 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15062 ../../tcl \
15063 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15064 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15065 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15066 ../../../tcl \
15067 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15068 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15069 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15070 if test -f "$i/$platDir/tclConfig.sh" ; then
15071 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15072 break
15073 fi
15074 done
15075 fi
15076
15077 # on Darwin, check in Framework installation locations
15078 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15079 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15080 `ls -d /Library/Frameworks 2>/dev/null` \
15081 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15082 `ls -d /System/Library/Frameworks 2>/dev/null` \
15083 ; do
15084 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15085 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15086 break
15087 fi
15088 done
15089 fi
15090
15091 # check in a few common install locations
15092 if test x"${ac_cv_c_tclconfig}" = x ; then
15093 for i in `ls -d ${libdir} 2>/dev/null` \
15094 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15095 `ls -d ${prefix}/lib 2>/dev/null` \
15096 `ls -d /usr/local/lib 2>/dev/null` \
15097 `ls -d /usr/contrib/lib 2>/dev/null` \
15098 `ls -d /usr/lib 2>/dev/null` \
15099 ; do
15100 if test -f "$i/tclConfig.sh" ; then
15101 ac_cv_c_tclconfig=`(cd $i; pwd)`
15102 break
15103 fi
15104 done
15105 fi
15106
15107 # check in a few other private locations
15108 if test x"${ac_cv_c_tclconfig}" = x ; then
15109 for i in \
15110 ${srcdir}/../tcl \
15111 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15112 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15113 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15114 if test -f "$i/$platDir/tclConfig.sh" ; then
15115 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15116 break
15117 fi
15118 done
15119 fi
15120
15121 fi
15122
15123
15124 if test x"${ac_cv_c_tclconfig}" = x ; then
15125 TCL_BIN_DIR="# no Tcl configs found"
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15127 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15128 else
15129 no_tcl=
15130 TCL_BIN_DIR=${ac_cv_c_tclconfig}
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15132 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15133 fi
15134 fi
15135
15136
15137 # If $no_tk is nonempty, then we can't do Tk, and there is no
15138 # point to doing Tcl.
15139
15140 #
15141 # Ok, lets find the tk configuration
15142 # First, look for one uninstalled.
15143 # the alternative search directory is invoked by --with-tk
15144 #
15145
15146 if test x"${no_tk}" = x ; then
15147 # we reset no_tk in case something fails here
15148 no_tk=true
15149
15150 # Check whether --with-tk was given.
15151 if test "${with_tk+set}" = set; then :
15152 withval=$with_tk; with_tkconfig=${withval}
15153 fi
15154
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15156 $as_echo_n "checking for Tk configuration... " >&6; }
15157 if test "${ac_cv_c_tkconfig+set}" = set; then :
15158 $as_echo_n "(cached) " >&6
15159 else
15160
15161
15162 # First check to see if --with-tkconfig was specified.
15163 if test x"${with_tkconfig}" != x ; then
15164 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15165 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15166 else
15167 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15168 fi
15169 fi
15170
15171 # then check for a private Tk library
15172 case "${host}" in
15173 *-*-cygwin*) platDir="win" ;;
15174 *) platDir="unix" ;;
15175 esac
15176 if test x"${ac_cv_c_tkconfig}" = x ; then
15177 for i in \
15178 ../tk \
15179 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15180 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15181 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15182 ../../tk \
15183 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15184 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15185 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15186 ../../../tk \
15187 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15188 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15189 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15190 if test -f "$i/$platDir/tkConfig.sh" ; then
15191 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15192 break
15193 fi
15194 done
15195 fi
15196
15197 # on Darwin, check in Framework installation locations
15198 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15199 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15200 `ls -d /Library/Frameworks 2>/dev/null` \
15201 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15202 `ls -d /System/Library/Frameworks 2>/dev/null` \
15203 ; do
15204 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15205 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15206 break
15207 fi
15208 done
15209 fi
15210
15211 # check in a few common install locations
15212 if test x"${ac_cv_c_tkconfig}" = x ; then
15213 for i in `ls -d ${libdir} 2>/dev/null` \
15214 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15215 `ls -d ${prefix}/lib 2>/dev/null` \
15216 `ls -d /usr/local/lib 2>/dev/null` \
15217 `ls -d /usr/contrib/lib 2>/dev/null` \
15218 `ls -d /usr/lib 2>/dev/null` \
15219 ; do
15220 if test -f "$i/tkConfig.sh" ; then
15221 ac_cv_c_tkconfig=`(cd $i; pwd)`
15222 break
15223 fi
15224 done
15225 fi
15226 # check in a few other private locations
15227 if test x"${ac_cv_c_tkconfig}" = x ; then
15228 for i in \
15229 ${srcdir}/../tk \
15230 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15231 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15232 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15233 if test -f "$i/$platDir/tkConfig.sh" ; then
15234 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15235 break
15236 fi
15237 done
15238 fi
15239
15240 fi
15241
15242
15243 if test x"${ac_cv_c_tkconfig}" = x ; then
15244 TK_BIN_DIR="# no Tk configs found"
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15246 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15247 else
15248 no_tk=
15249 TK_BIN_DIR=${ac_cv_c_tkconfig}
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15251 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15252 fi
15253 fi
15254
15255
15256 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15257
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15259 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15260
15261 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15263 $as_echo "loading" >&6; }
15264 . ${TCL_BIN_DIR}/tclConfig.sh
15265 else
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15267 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15268 fi
15269
15270 # eval is required to do the TCL_DBGX substitution
15271 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15272 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15273
15274 # If the TCL_BIN_DIR is the build directory (not the install directory),
15275 # then set the common variable name to the value of the build variables.
15276 # For example, the variable TCL_LIB_SPEC will be set to the value
15277 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15278 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15279 # installed and uninstalled version of Tcl.
15280 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15281 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15282 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15283 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15284 elif test "`uname -s`" = "Darwin"; then
15285 # If Tcl was built as a framework, attempt to use the libraries
15286 # from the framework at the given location so that linking works
15287 # against Tcl.framework installed in an arbitary location.
15288 case ${TCL_DEFS} in
15289 *TCL_FRAMEWORK*)
15290 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15291 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15292 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15293 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15294 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15295 break
15296 fi
15297 done
15298 fi
15299 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15300 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15301 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15302 fi
15303 ;;
15304 esac
15305 fi
15306
15307 # eval is required to do the TCL_DBGX substitution
15308 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15309 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15310 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15311 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327 # Check for in-tree tcl
15328 here=`pwd`
15329 cd ${srcdir}/..
15330 topdir=`pwd`
15331 cd ${here}
15332
15333 intree="no"
15334 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15335 intree="yes"
15336 fi
15337
15338 # Find Tcl private headers
15339 if test x"${intree}" = xno; then
15340
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15342 $as_echo_n "checking for Tcl private headers... " >&6; }
15343 private_dir=""
15344 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15345 if test -f ${dir}/tclInt.h ; then
15346 private_dir=${dir}
15347 fi
15348
15349 if test x"${private_dir}" = x; then
15350 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15351 else
15352 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15354 $as_echo "${private_dir}" >&6; }
15355 fi
15356
15357 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15358 TCL_LIBRARY="${TCL_LIB_SPEC}"
15359 TCL_DEPS=""
15360 else
15361 # If building tcl in the same src tree, private headers
15362 # are not needed, but we need to be sure to use the right
15363 # headers library
15364 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15365 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15366 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15367 fi
15368
15369
15370
15371
15372
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15374 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15375
15376 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15378 $as_echo "loading" >&6; }
15379 . ${TK_BIN_DIR}/tkConfig.sh
15380 else
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15382 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15383 fi
15384
15385 # eval is required to do the TK_DBGX substitution
15386 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15387 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15388
15389 # If the TK_BIN_DIR is the build directory (not the install directory),
15390 # then set the common variable name to the value of the build variables.
15391 # For example, the variable TK_LIB_SPEC will be set to the value
15392 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15393 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15394 # installed and uninstalled version of Tcl.
15395 if test -f "${TK_BIN_DIR}/Makefile" ; then
15396 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15397 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15398 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15399 elif test "`uname -s`" = "Darwin"; then
15400 # If Tk was built as a framework, attempt to use the libraries
15401 # from the framework at the given location so that linking works
15402 # against Tk.framework installed in an arbitary location.
15403 case ${TK_DEFS} in
15404 *TK_FRAMEWORK*)
15405 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15406 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15407 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15408 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15409 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15410 break
15411 fi
15412 done
15413 fi
15414 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15415 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15416 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15417 fi
15418 ;;
15419 esac
15420 fi
15421
15422 # eval is required to do the TK_DBGX substitution
15423 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15424 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15425 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15426 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441 # Check for in-tree Tk
15442 intree="no"
15443 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15444 intree="yes"
15445 fi
15446
15447 # Find Tk private headers
15448 if test x"${intree}" = xno; then
15449
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15451 $as_echo_n "checking for Tk private headers... " >&6; }
15452 private_dir=""
15453 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15454 if test -f ${dir}/tkInt.h; then
15455 private_dir=${dir}
15456 fi
15457
15458 if test x"${private_dir}" = x; then
15459 as_fn_error "could not find Tk private headers" "$LINENO" 5
15460 else
15461 TK_PRIVATE_INCLUDE="-I${private_dir}"
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15463 $as_echo "${private_dir}" >&6; }
15464 fi
15465
15466 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15467 TK_LIBRARY=${TK_LIB_SPEC}
15468 TK_DEPS=""
15469 else
15470 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15471 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15472 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15473 fi
15474
15475
15476
15477
15478
15479 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15480
15481 # Include some libraries that Tcl and Tk want.
15482 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15483 # Yes, the ordering seems wrong here. But it isn't.
15484 # TK_LIBS is the list of libraries that need to be linked
15485 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15486 # were in LIBS then any link tests after this point would
15487 # try to include things like `$(LIBGUI)', which wouldn't work.
15488 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15489
15490 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15491 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15492 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15493 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15494 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15495 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15496 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15497
15498 if test x$gdb_cv_os_cygwin = xyes; then
15499 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15500 WIN32LDAPP="-Wl,--subsystem,console"
15501 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15502 fi
15503
15504 subdirs="$subdirs gdbtk"
15505
15506 fi
15507 fi
15508
15509
15510
15511
15512
15513
15514
15515
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15517 $as_echo_n "checking for X... " >&6; }
15518
15519
15520 # Check whether --with-x was given.
15521 if test "${with_x+set}" = set; then :
15522 withval=$with_x;
15523 fi
15524
15525 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15526 if test "x$with_x" = xno; then
15527 # The user explicitly disabled X.
15528 have_x=disabled
15529 else
15530 case $x_includes,$x_libraries in #(
15531 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15532 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15533 $as_echo_n "(cached) " >&6
15534 else
15535 # One or both of the vars are not set, and there is no cached value.
15536 ac_x_includes=no ac_x_libraries=no
15537 rm -f -r conftest.dir
15538 if mkdir conftest.dir; then
15539 cd conftest.dir
15540 cat >Imakefile <<'_ACEOF'
15541 incroot:
15542 @echo incroot='${INCROOT}'
15543 usrlibdir:
15544 @echo usrlibdir='${USRLIBDIR}'
15545 libdir:
15546 @echo libdir='${LIBDIR}'
15547 _ACEOF
15548 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15549 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15550 for ac_var in incroot usrlibdir libdir; do
15551 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15552 done
15553 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15554 for ac_extension in a so sl dylib la dll; do
15555 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15556 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15557 ac_im_usrlibdir=$ac_im_libdir; break
15558 fi
15559 done
15560 # Screen out bogus values from the imake configuration. They are
15561 # bogus both because they are the default anyway, and because
15562 # using them would break gcc on systems where it needs fixed includes.
15563 case $ac_im_incroot in
15564 /usr/include) ac_x_includes= ;;
15565 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15566 esac
15567 case $ac_im_usrlibdir in
15568 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15569 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15570 esac
15571 fi
15572 cd ..
15573 rm -f -r conftest.dir
15574 fi
15575
15576 # Standard set of common directories for X headers.
15577 # Check X11 before X11Rn because it is often a symlink to the current release.
15578 ac_x_header_dirs='
15579 /usr/X11/include
15580 /usr/X11R7/include
15581 /usr/X11R6/include
15582 /usr/X11R5/include
15583 /usr/X11R4/include
15584
15585 /usr/include/X11
15586 /usr/include/X11R7
15587 /usr/include/X11R6
15588 /usr/include/X11R5
15589 /usr/include/X11R4
15590
15591 /usr/local/X11/include
15592 /usr/local/X11R7/include
15593 /usr/local/X11R6/include
15594 /usr/local/X11R5/include
15595 /usr/local/X11R4/include
15596
15597 /usr/local/include/X11
15598 /usr/local/include/X11R7
15599 /usr/local/include/X11R6
15600 /usr/local/include/X11R5
15601 /usr/local/include/X11R4
15602
15603 /usr/X386/include
15604 /usr/x386/include
15605 /usr/XFree86/include/X11
15606
15607 /usr/include
15608 /usr/local/include
15609 /usr/unsupported/include
15610 /usr/athena/include
15611 /usr/local/x11r5/include
15612 /usr/lpp/Xamples/include
15613
15614 /usr/openwin/include
15615 /usr/openwin/share/include'
15616
15617 if test "$ac_x_includes" = no; then
15618 # Guess where to find include files, by looking for Xlib.h.
15619 # First, try using that file with no special directory specified.
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15622 #include <X11/Xlib.h>
15623 _ACEOF
15624 if ac_fn_c_try_cpp "$LINENO"; then :
15625 # We can compile using X headers with no special include directory.
15626 ac_x_includes=
15627 else
15628 for ac_dir in $ac_x_header_dirs; do
15629 if test -r "$ac_dir/X11/Xlib.h"; then
15630 ac_x_includes=$ac_dir
15631 break
15632 fi
15633 done
15634 fi
15635 rm -f conftest.err conftest.$ac_ext
15636 fi # $ac_x_includes = no
15637
15638 if test "$ac_x_libraries" = no; then
15639 # Check for the libraries.
15640 # See if we find them without any special options.
15641 # Don't add to $LIBS permanently.
15642 ac_save_LIBS=$LIBS
15643 LIBS="-lX11 $LIBS"
15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15646 #include <X11/Xlib.h>
15647 int
15648 main ()
15649 {
15650 XrmInitialize ()
15651 ;
15652 return 0;
15653 }
15654 _ACEOF
15655 if ac_fn_c_try_link "$LINENO"; then :
15656 LIBS=$ac_save_LIBS
15657 # We can link X programs with no special library path.
15658 ac_x_libraries=
15659 else
15660 LIBS=$ac_save_LIBS
15661 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15662 do
15663 # Don't even attempt the hair of trying to link an X program!
15664 for ac_extension in a so sl dylib la dll; do
15665 if test -r "$ac_dir/libX11.$ac_extension"; then
15666 ac_x_libraries=$ac_dir
15667 break 2
15668 fi
15669 done
15670 done
15671 fi
15672 rm -f core conftest.err conftest.$ac_objext \
15673 conftest$ac_exeext conftest.$ac_ext
15674 fi # $ac_x_libraries = no
15675
15676 case $ac_x_includes,$ac_x_libraries in #(
15677 no,* | *,no | *\'*)
15678 # Didn't find X, or a directory has "'" in its name.
15679 ac_cv_have_x="have_x=no";; #(
15680 *)
15681 # Record where we found X for the cache.
15682 ac_cv_have_x="have_x=yes\
15683 ac_x_includes='$ac_x_includes'\
15684 ac_x_libraries='$ac_x_libraries'"
15685 esac
15686 fi
15687 ;; #(
15688 *) have_x=yes;;
15689 esac
15690 eval "$ac_cv_have_x"
15691 fi # $with_x != no
15692
15693 if test "$have_x" != yes; then
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15695 $as_echo "$have_x" >&6; }
15696 no_x=yes
15697 else
15698 # If each of the values was on the command line, it overrides each guess.
15699 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15700 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15701 # Update the cache value to reflect the command line values.
15702 ac_cv_have_x="have_x=yes\
15703 ac_x_includes='$x_includes'\
15704 ac_x_libraries='$x_libraries'"
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15706 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15707 fi
15708
15709
15710 # Unlike the sim directory, whether a simulator is linked is controlled by
15711 # presence of a gdb_sim definition in the target configure.tgt entry.
15712 # This code just checks for a few cases where we'd like to ignore those
15713 # definitions, even when they're present in the '.mt' file. These cases
15714 # are when --disable-sim is specified, or if the simulator directory is
15715 # not part of the source tree.
15716 #
15717 # Check whether --enable-sim was given.
15718 if test "${enable_sim+set}" = set; then :
15719 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15720 echo "enableval = ${enableval}";
15721 case "${enableval}" in
15722 yes) ignore_sim=false ;;
15723 no) ignore_sim=true ;;
15724 *) ignore_sim=false ;;
15725 esac
15726 else
15727 ignore_sim=false
15728 fi
15729
15730
15731 if test ! -d "${srcdir}/../sim"; then
15732 ignore_sim=true
15733 fi
15734
15735 SIM=
15736 SIM_OBS=
15737 if test "${ignore_sim}" = "false"; then
15738 if test x"${gdb_sim}" != x ; then
15739 SIM="${gdb_sim}"
15740 SIM_OBS="remote-sim.o"
15741
15742 $as_echo "#define WITH_SIM 1" >>confdefs.h
15743
15744 fi
15745 fi
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760 # List of host floatformats.
15761
15762 cat >>confdefs.h <<_ACEOF
15763 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15764 _ACEOF
15765
15766
15767 cat >>confdefs.h <<_ACEOF
15768 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15769 _ACEOF
15770
15771
15772 cat >>confdefs.h <<_ACEOF
15773 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15774 _ACEOF
15775
15776
15777 # target_subdir is used by the testsuite to find the target libraries.
15778 target_subdir=
15779 if test "${host}" != "${target}"; then
15780 target_subdir="${target_alias}/"
15781 fi
15782
15783
15784 frags=
15785 if test "${gdb_native}" = "yes"; then
15786 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15787 if test ! -f ${host_makefile_frag}; then
15788 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15789 fi
15790 frags="$frags $host_makefile_frag"
15791 else
15792 host_makefile_frag=/dev/null
15793 fi
15794
15795
15796
15797
15798 if test "${gdb_native}" = "yes"; then
15799 # We pick this up from the host configuration file (.mh) because we
15800 # do not have a native configuration Makefile fragment.
15801 nativefile=`sed -n '
15802 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15803 ' ${host_makefile_frag}`
15804 fi
15805
15806
15807 if test x"${gdb_osabi}" != x ; then
15808
15809 cat >>confdefs.h <<_ACEOF
15810 #define GDB_OSABI_DEFAULT $gdb_osabi
15811 _ACEOF
15812
15813 fi
15814
15815 # Enable multi-ice-gdb-server.
15816 # Check whether --enable-multi-ice was given.
15817 if test "${enable_multi_ice+set}" = set; then :
15818 enableval=$enable_multi_ice; case $enableval in
15819 yes | no)
15820 ;;
15821 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15822 esac
15823 fi
15824
15825 if test "x$enable_multi_ice" = xyes; then
15826 subdirs="$subdirs multi-ice"
15827
15828 fi
15829
15830 # Check whether --enable-gdbserver was given.
15831 if test "${enable_gdbserver+set}" = set; then :
15832 enableval=$enable_gdbserver; case "${enableval}" in
15833 yes| no|auto) ;;
15834 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15835 esac
15836 else
15837 enable_gdbserver=auto
15838 fi
15839
15840
15841 # We only build gdbserver automatically in a native configuration, and
15842 # only if the user did not explicitly disable its build.
15843 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15845 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15846 if test "x$build_gdbserver" = xyes; then
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15848 $as_echo "yes" >&6; }
15849 subdirs="$subdirs gdbserver"
15850
15851 gdbserver_build_enabled=yes
15852 else
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15854 $as_echo "no" >&6; }
15855 fi
15856 fi
15857
15858 # If the user explicitly request the gdbserver to be built, verify that
15859 # we were in fact able to enable it.
15860 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15861 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15862 fi
15863
15864 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15865 # to an empty version.
15866
15867 files=
15868 links=
15869
15870 rm -f nm.h
15871 if test "${nativefile}" != ""; then
15872 case "${nativefile}" in
15873 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15874 * ) GDB_NM_FILE="${nativefile}"
15875 esac
15876 files="${files} ${GDB_NM_FILE}"
15877 links="${links} nm.h"
15878
15879 cat >>confdefs.h <<_ACEOF
15880 #define GDB_NM_FILE "${GDB_NM_FILE}"
15881 _ACEOF
15882
15883 fi
15884
15885
15886 ac_sources="$files"
15887 ac_dests="$links"
15888 while test -n "$ac_sources"; do
15889 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15890 set $ac_sources; ac_source=$1; shift; ac_sources=$*
15891 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15892 done
15893 ac_config_links="$ac_config_links $ac_config_links_1"
15894
15895
15896
15897
15898
15899 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15900
15901
15902 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile data-directory/Makefile"
15903
15904 ac_config_commands="$ac_config_commands default"
15905
15906 cat >confcache <<\_ACEOF
15907 # This file is a shell script that caches the results of configure
15908 # tests run on this system so they can be shared between configure
15909 # scripts and configure runs, see configure's option --config-cache.
15910 # It is not useful on other systems. If it contains results you don't
15911 # want to keep, you may remove or edit it.
15912 #
15913 # config.status only pays attention to the cache file if you give it
15914 # the --recheck option to rerun configure.
15915 #
15916 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15917 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15918 # following values.
15919
15920 _ACEOF
15921
15922 # The following way of writing the cache mishandles newlines in values,
15923 # but we know of no workaround that is simple, portable, and efficient.
15924 # So, we kill variables containing newlines.
15925 # Ultrix sh set writes to stderr and can't be redirected directly,
15926 # and sets the high bit in the cache file unless we assign to the vars.
15927 (
15928 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15929 eval ac_val=\$$ac_var
15930 case $ac_val in #(
15931 *${as_nl}*)
15932 case $ac_var in #(
15933 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15934 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15935 esac
15936 case $ac_var in #(
15937 _ | IFS | as_nl) ;; #(
15938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15939 *) { eval $ac_var=; unset $ac_var;} ;;
15940 esac ;;
15941 esac
15942 done
15943
15944 (set) 2>&1 |
15945 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15946 *${as_nl}ac_space=\ *)
15947 # `set' does not quote correctly, so add quotes: double-quote
15948 # substitution turns \\\\ into \\, and sed turns \\ into \.
15949 sed -n \
15950 "s/'/'\\\\''/g;
15951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15952 ;; #(
15953 *)
15954 # `set' quotes correctly as required by POSIX, so do not add quotes.
15955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15956 ;;
15957 esac |
15958 sort
15959 ) |
15960 sed '
15961 /^ac_cv_env_/b end
15962 t clear
15963 :clear
15964 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15965 t end
15966 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15967 :end' >>confcache
15968 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15969 if test -w "$cache_file"; then
15970 test "x$cache_file" != "x/dev/null" &&
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15972 $as_echo "$as_me: updating cache $cache_file" >&6;}
15973 cat confcache >$cache_file
15974 else
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15976 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15977 fi
15978 fi
15979 rm -f confcache
15980
15981 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15982 # Let make expand exec_prefix.
15983 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15984
15985 DEFS=-DHAVE_CONFIG_H
15986
15987 ac_libobjs=
15988 ac_ltlibobjs=
15989 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15990 # 1. Remove the extension, and $U if already installed.
15991 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15992 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15993 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15994 # will be set to the directory where LIBOBJS objects are built.
15995 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15996 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15997 done
15998 LIBOBJS=$ac_libobjs
15999
16000 LTLIBOBJS=$ac_ltlibobjs
16001
16002
16003 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16004 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16006 fi
16007 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16008 as_fn_error "conditional \"GMAKE\" was never defined.
16009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16010 fi
16011 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16012 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16014 fi
16015
16016 gl_libobjs=
16017 gl_ltlibobjs=
16018 if test -n "$gl_LIBOBJS"; then
16019 # Remove the extension.
16020 sed_drop_objext='s/\.o$//;s/\.obj$//'
16021 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16022 gl_libobjs="$gl_libobjs $i.$ac_objext"
16023 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16024 done
16025 fi
16026 gl_LIBOBJS=$gl_libobjs
16027
16028 gl_LTLIBOBJS=$gl_ltlibobjs
16029
16030
16031
16032 gltests_libobjs=
16033 gltests_ltlibobjs=
16034 if test -n "$gltests_LIBOBJS"; then
16035 # Remove the extension.
16036 sed_drop_objext='s/\.o$//;s/\.obj$//'
16037 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16038 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16039 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16040 done
16041 fi
16042 gltests_LIBOBJS=$gltests_libobjs
16043
16044 gltests_LTLIBOBJS=$gltests_ltlibobjs
16045
16046
16047 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16048 as_fn_error "conditional \"AMDEP\" was never defined.
16049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16050 fi
16051 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16052 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16054 fi
16055 if test -n "$EXEEXT"; then
16056 am__EXEEXT_TRUE=
16057 am__EXEEXT_FALSE='#'
16058 else
16059 am__EXEEXT_TRUE='#'
16060 am__EXEEXT_FALSE=
16061 fi
16062
16063
16064
16065 : ${CONFIG_STATUS=./config.status}
16066 ac_write_fail=0
16067 ac_clean_files_save=$ac_clean_files
16068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16070 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16071 as_write_fail=0
16072 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16073 #! $SHELL
16074 # Generated by $as_me.
16075 # Run this file to recreate the current configuration.
16076 # Compiler output produced by configure, useful for debugging
16077 # configure, is in config.log if it exists.
16078
16079 debug=false
16080 ac_cs_recheck=false
16081 ac_cs_silent=false
16082
16083 SHELL=\${CONFIG_SHELL-$SHELL}
16084 export SHELL
16085 _ASEOF
16086 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16087 ## -------------------- ##
16088 ## M4sh Initialization. ##
16089 ## -------------------- ##
16090
16091 # Be more Bourne compatible
16092 DUALCASE=1; export DUALCASE # for MKS sh
16093 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16094 emulate sh
16095 NULLCMD=:
16096 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16097 # is contrary to our usage. Disable this feature.
16098 alias -g '${1+"$@"}'='"$@"'
16099 setopt NO_GLOB_SUBST
16100 else
16101 case `(set -o) 2>/dev/null` in #(
16102 *posix*) :
16103 set -o posix ;; #(
16104 *) :
16105 ;;
16106 esac
16107 fi
16108
16109
16110 as_nl='
16111 '
16112 export as_nl
16113 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16114 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16116 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16117 # Prefer a ksh shell builtin over an external printf program on Solaris,
16118 # but without wasting forks for bash or zsh.
16119 if test -z "$BASH_VERSION$ZSH_VERSION" \
16120 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16121 as_echo='print -r --'
16122 as_echo_n='print -rn --'
16123 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16124 as_echo='printf %s\n'
16125 as_echo_n='printf %s'
16126 else
16127 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16128 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16129 as_echo_n='/usr/ucb/echo -n'
16130 else
16131 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16132 as_echo_n_body='eval
16133 arg=$1;
16134 case $arg in #(
16135 *"$as_nl"*)
16136 expr "X$arg" : "X\\(.*\\)$as_nl";
16137 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16138 esac;
16139 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16140 '
16141 export as_echo_n_body
16142 as_echo_n='sh -c $as_echo_n_body as_echo'
16143 fi
16144 export as_echo_body
16145 as_echo='sh -c $as_echo_body as_echo'
16146 fi
16147
16148 # The user is always right.
16149 if test "${PATH_SEPARATOR+set}" != set; then
16150 PATH_SEPARATOR=:
16151 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16152 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16153 PATH_SEPARATOR=';'
16154 }
16155 fi
16156
16157
16158 # IFS
16159 # We need space, tab and new line, in precisely that order. Quoting is
16160 # there to prevent editors from complaining about space-tab.
16161 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16162 # splitting by setting IFS to empty value.)
16163 IFS=" "" $as_nl"
16164
16165 # Find who we are. Look in the path if we contain no directory separator.
16166 case $0 in #((
16167 *[\\/]* ) as_myself=$0 ;;
16168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16169 for as_dir in $PATH
16170 do
16171 IFS=$as_save_IFS
16172 test -z "$as_dir" && as_dir=.
16173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16174 done
16175 IFS=$as_save_IFS
16176
16177 ;;
16178 esac
16179 # We did not find ourselves, most probably we were run as `sh COMMAND'
16180 # in which case we are not to be found in the path.
16181 if test "x$as_myself" = x; then
16182 as_myself=$0
16183 fi
16184 if test ! -f "$as_myself"; then
16185 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16186 exit 1
16187 fi
16188
16189 # Unset variables that we do not need and which cause bugs (e.g. in
16190 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16191 # suppresses any "Segmentation fault" message there. '((' could
16192 # trigger a bug in pdksh 5.2.14.
16193 for as_var in BASH_ENV ENV MAIL MAILPATH
16194 do eval test x\${$as_var+set} = xset \
16195 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16196 done
16197 PS1='$ '
16198 PS2='> '
16199 PS4='+ '
16200
16201 # NLS nuisances.
16202 LC_ALL=C
16203 export LC_ALL
16204 LANGUAGE=C
16205 export LANGUAGE
16206
16207 # CDPATH.
16208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16209
16210
16211 # as_fn_error ERROR [LINENO LOG_FD]
16212 # ---------------------------------
16213 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16214 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16215 # script with status $?, using 1 if that was 0.
16216 as_fn_error ()
16217 {
16218 as_status=$?; test $as_status -eq 0 && as_status=1
16219 if test "$3"; then
16220 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16221 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16222 fi
16223 $as_echo "$as_me: error: $1" >&2
16224 as_fn_exit $as_status
16225 } # as_fn_error
16226
16227
16228 # as_fn_set_status STATUS
16229 # -----------------------
16230 # Set $? to STATUS, without forking.
16231 as_fn_set_status ()
16232 {
16233 return $1
16234 } # as_fn_set_status
16235
16236 # as_fn_exit STATUS
16237 # -----------------
16238 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16239 as_fn_exit ()
16240 {
16241 set +e
16242 as_fn_set_status $1
16243 exit $1
16244 } # as_fn_exit
16245
16246 # as_fn_unset VAR
16247 # ---------------
16248 # Portably unset VAR.
16249 as_fn_unset ()
16250 {
16251 { eval $1=; unset $1;}
16252 }
16253 as_unset=as_fn_unset
16254 # as_fn_append VAR VALUE
16255 # ----------------------
16256 # Append the text in VALUE to the end of the definition contained in VAR. Take
16257 # advantage of any shell optimizations that allow amortized linear growth over
16258 # repeated appends, instead of the typical quadratic growth present in naive
16259 # implementations.
16260 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16261 eval 'as_fn_append ()
16262 {
16263 eval $1+=\$2
16264 }'
16265 else
16266 as_fn_append ()
16267 {
16268 eval $1=\$$1\$2
16269 }
16270 fi # as_fn_append
16271
16272 # as_fn_arith ARG...
16273 # ------------------
16274 # Perform arithmetic evaluation on the ARGs, and store the result in the
16275 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16276 # must be portable across $(()) and expr.
16277 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16278 eval 'as_fn_arith ()
16279 {
16280 as_val=$(( $* ))
16281 }'
16282 else
16283 as_fn_arith ()
16284 {
16285 as_val=`expr "$@" || test $? -eq 1`
16286 }
16287 fi # as_fn_arith
16288
16289
16290 if expr a : '\(a\)' >/dev/null 2>&1 &&
16291 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16292 as_expr=expr
16293 else
16294 as_expr=false
16295 fi
16296
16297 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16298 as_basename=basename
16299 else
16300 as_basename=false
16301 fi
16302
16303 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16304 as_dirname=dirname
16305 else
16306 as_dirname=false
16307 fi
16308
16309 as_me=`$as_basename -- "$0" ||
16310 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16311 X"$0" : 'X\(//\)$' \| \
16312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16313 $as_echo X/"$0" |
16314 sed '/^.*\/\([^/][^/]*\)\/*$/{
16315 s//\1/
16316 q
16317 }
16318 /^X\/\(\/\/\)$/{
16319 s//\1/
16320 q
16321 }
16322 /^X\/\(\/\).*/{
16323 s//\1/
16324 q
16325 }
16326 s/.*/./; q'`
16327
16328 # Avoid depending upon Character Ranges.
16329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16332 as_cr_digits='0123456789'
16333 as_cr_alnum=$as_cr_Letters$as_cr_digits
16334
16335 ECHO_C= ECHO_N= ECHO_T=
16336 case `echo -n x` in #(((((
16337 -n*)
16338 case `echo 'xy\c'` in
16339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16340 xy) ECHO_C='\c';;
16341 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16342 ECHO_T=' ';;
16343 esac;;
16344 *)
16345 ECHO_N='-n';;
16346 esac
16347
16348 rm -f conf$$ conf$$.exe conf$$.file
16349 if test -d conf$$.dir; then
16350 rm -f conf$$.dir/conf$$.file
16351 else
16352 rm -f conf$$.dir
16353 mkdir conf$$.dir 2>/dev/null
16354 fi
16355 if (echo >conf$$.file) 2>/dev/null; then
16356 if ln -s conf$$.file conf$$ 2>/dev/null; then
16357 as_ln_s='ln -s'
16358 # ... but there are two gotchas:
16359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16361 # In both cases, we have to default to `cp -p'.
16362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16363 as_ln_s='cp -p'
16364 elif ln conf$$.file conf$$ 2>/dev/null; then
16365 as_ln_s=ln
16366 else
16367 as_ln_s='cp -p'
16368 fi
16369 else
16370 as_ln_s='cp -p'
16371 fi
16372 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16373 rmdir conf$$.dir 2>/dev/null
16374
16375
16376 # as_fn_mkdir_p
16377 # -------------
16378 # Create "$as_dir" as a directory, including parents if necessary.
16379 as_fn_mkdir_p ()
16380 {
16381
16382 case $as_dir in #(
16383 -*) as_dir=./$as_dir;;
16384 esac
16385 test -d "$as_dir" || eval $as_mkdir_p || {
16386 as_dirs=
16387 while :; do
16388 case $as_dir in #(
16389 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16390 *) as_qdir=$as_dir;;
16391 esac
16392 as_dirs="'$as_qdir' $as_dirs"
16393 as_dir=`$as_dirname -- "$as_dir" ||
16394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16395 X"$as_dir" : 'X\(//\)[^/]' \| \
16396 X"$as_dir" : 'X\(//\)$' \| \
16397 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16398 $as_echo X"$as_dir" |
16399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16400 s//\1/
16401 q
16402 }
16403 /^X\(\/\/\)[^/].*/{
16404 s//\1/
16405 q
16406 }
16407 /^X\(\/\/\)$/{
16408 s//\1/
16409 q
16410 }
16411 /^X\(\/\).*/{
16412 s//\1/
16413 q
16414 }
16415 s/.*/./; q'`
16416 test -d "$as_dir" && break
16417 done
16418 test -z "$as_dirs" || eval "mkdir $as_dirs"
16419 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16420
16421
16422 } # as_fn_mkdir_p
16423 if mkdir -p . 2>/dev/null; then
16424 as_mkdir_p='mkdir -p "$as_dir"'
16425 else
16426 test -d ./-p && rmdir ./-p
16427 as_mkdir_p=false
16428 fi
16429
16430 if test -x / >/dev/null 2>&1; then
16431 as_test_x='test -x'
16432 else
16433 if ls -dL / >/dev/null 2>&1; then
16434 as_ls_L_option=L
16435 else
16436 as_ls_L_option=
16437 fi
16438 as_test_x='
16439 eval sh -c '\''
16440 if test -d "$1"; then
16441 test -d "$1/.";
16442 else
16443 case $1 in #(
16444 -*)set "./$1";;
16445 esac;
16446 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16447 ???[sx]*):;;*)false;;esac;fi
16448 '\'' sh
16449 '
16450 fi
16451 as_executable_p=$as_test_x
16452
16453 # Sed expression to map a string onto a valid CPP name.
16454 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16455
16456 # Sed expression to map a string onto a valid variable name.
16457 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16458
16459
16460 exec 6>&1
16461 ## ----------------------------------- ##
16462 ## Main body of $CONFIG_STATUS script. ##
16463 ## ----------------------------------- ##
16464 _ASEOF
16465 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16466
16467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16468 # Save the log message, to keep $0 and so on meaningful, and to
16469 # report actual input values of CONFIG_FILES etc. instead of their
16470 # values after options handling.
16471 ac_log="
16472 This file was extended by $as_me, which was
16473 generated by GNU Autoconf 2.64. Invocation command line was
16474
16475 CONFIG_FILES = $CONFIG_FILES
16476 CONFIG_HEADERS = $CONFIG_HEADERS
16477 CONFIG_LINKS = $CONFIG_LINKS
16478 CONFIG_COMMANDS = $CONFIG_COMMANDS
16479 $ $0 $@
16480
16481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16482 "
16483
16484 _ACEOF
16485
16486 case $ac_config_files in *"
16487 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16488 esac
16489
16490 case $ac_config_headers in *"
16491 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16492 esac
16493
16494
16495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16496 # Files that config.status was made for.
16497 config_files="$ac_config_files"
16498 config_headers="$ac_config_headers"
16499 config_links="$ac_config_links"
16500 config_commands="$ac_config_commands"
16501
16502 _ACEOF
16503
16504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16505 ac_cs_usage="\
16506 \`$as_me' instantiates files and other configuration actions
16507 from templates according to the current configuration. Unless the files
16508 and actions are specified as TAGs, all are instantiated by default.
16509
16510 Usage: $0 [OPTION]... [TAG]...
16511
16512 -h, --help print this help, then exit
16513 -V, --version print version number and configuration settings, then exit
16514 -q, --quiet, --silent
16515 do not print progress messages
16516 -d, --debug don't remove temporary files
16517 --recheck update $as_me by reconfiguring in the same conditions
16518 --file=FILE[:TEMPLATE]
16519 instantiate the configuration file FILE
16520 --header=FILE[:TEMPLATE]
16521 instantiate the configuration header FILE
16522
16523 Configuration files:
16524 $config_files
16525
16526 Configuration headers:
16527 $config_headers
16528
16529 Configuration links:
16530 $config_links
16531
16532 Configuration commands:
16533 $config_commands
16534
16535 Report bugs to the package provider."
16536
16537 _ACEOF
16538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16539 ac_cs_version="\\
16540 config.status
16541 configured by $0, generated by GNU Autoconf 2.64,
16542 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16543
16544 Copyright (C) 2009 Free Software Foundation, Inc.
16545 This config.status script is free software; the Free Software Foundation
16546 gives unlimited permission to copy, distribute and modify it."
16547
16548 ac_pwd='$ac_pwd'
16549 srcdir='$srcdir'
16550 INSTALL='$INSTALL'
16551 MKDIR_P='$MKDIR_P'
16552 AWK='$AWK'
16553 test -n "\$AWK" || AWK=awk
16554 _ACEOF
16555
16556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16557 # The default lists apply if the user does not specify any file.
16558 ac_need_defaults=:
16559 while test $# != 0
16560 do
16561 case $1 in
16562 --*=*)
16563 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16564 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16565 ac_shift=:
16566 ;;
16567 *)
16568 ac_option=$1
16569 ac_optarg=$2
16570 ac_shift=shift
16571 ;;
16572 esac
16573
16574 case $ac_option in
16575 # Handling of the options.
16576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16577 ac_cs_recheck=: ;;
16578 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16579 $as_echo "$ac_cs_version"; exit ;;
16580 --debug | --debu | --deb | --de | --d | -d )
16581 debug=: ;;
16582 --file | --fil | --fi | --f )
16583 $ac_shift
16584 case $ac_optarg in
16585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16586 esac
16587 as_fn_append CONFIG_FILES " '$ac_optarg'"
16588 ac_need_defaults=false;;
16589 --header | --heade | --head | --hea )
16590 $ac_shift
16591 case $ac_optarg in
16592 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16593 esac
16594 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16595 ac_need_defaults=false;;
16596 --he | --h)
16597 # Conflict between --help and --header
16598 as_fn_error "ambiguous option: \`$1'
16599 Try \`$0 --help' for more information.";;
16600 --help | --hel | -h )
16601 $as_echo "$ac_cs_usage"; exit ;;
16602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16603 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16604 ac_cs_silent=: ;;
16605
16606 # This is an error.
16607 -*) as_fn_error "unrecognized option: \`$1'
16608 Try \`$0 --help' for more information." ;;
16609
16610 *) as_fn_append ac_config_targets " $1"
16611 ac_need_defaults=false ;;
16612
16613 esac
16614 shift
16615 done
16616
16617 ac_configure_extra_args=
16618
16619 if $ac_cs_silent; then
16620 exec 6>/dev/null
16621 ac_configure_extra_args="$ac_configure_extra_args --silent"
16622 fi
16623
16624 _ACEOF
16625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16626 if \$ac_cs_recheck; then
16627 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16628 shift
16629 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16630 CONFIG_SHELL='$SHELL'
16631 export CONFIG_SHELL
16632 exec "\$@"
16633 fi
16634
16635 _ACEOF
16636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16637 exec 5>>config.log
16638 {
16639 echo
16640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16641 ## Running $as_me. ##
16642 _ASBOX
16643 $as_echo "$ac_log"
16644 } >&5
16645
16646 _ACEOF
16647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16648 #
16649 # INIT-COMMANDS
16650 #
16651 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16652 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16653
16654 _ACEOF
16655
16656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16657
16658 # Handling of arguments.
16659 for ac_config_target in $ac_config_targets
16660 do
16661 case $ac_config_target in
16662 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16663 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16664 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16665 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16666 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16667 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16668 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
16669 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
16670 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16671
16672 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16673 esac
16674 done
16675
16676
16677 # If the user did not use the arguments to specify the items to instantiate,
16678 # then the envvar interface is used. Set only those that are not.
16679 # We use the long form for the default assignment because of an extremely
16680 # bizarre bug on SunOS 4.1.3.
16681 if $ac_need_defaults; then
16682 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16683 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16684 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16685 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16686 fi
16687
16688 # Have a temporary directory for convenience. Make it in the build tree
16689 # simply because there is no reason against having it here, and in addition,
16690 # creating and moving files from /tmp can sometimes cause problems.
16691 # Hook for its removal unless debugging.
16692 # Note that there is a small window in which the directory will not be cleaned:
16693 # after its creation but before its name has been assigned to `$tmp'.
16694 $debug ||
16695 {
16696 tmp=
16697 trap 'exit_status=$?
16698 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16699 ' 0
16700 trap 'as_fn_exit 1' 1 2 13 15
16701 }
16702 # Create a (secure) tmp directory for tmp files.
16703
16704 {
16705 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16706 test -n "$tmp" && test -d "$tmp"
16707 } ||
16708 {
16709 tmp=./conf$$-$RANDOM
16710 (umask 077 && mkdir "$tmp")
16711 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16712
16713 # Set up the scripts for CONFIG_FILES section.
16714 # No need to generate them if there are no CONFIG_FILES.
16715 # This happens for instance with `./config.status config.h'.
16716 if test -n "$CONFIG_FILES"; then
16717
16718 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16719 ac_cs_awk_getline=:
16720 ac_cs_awk_pipe_init=
16721 ac_cs_awk_read_file='
16722 while ((getline aline < (F[key])) > 0)
16723 print(aline)
16724 close(F[key])'
16725 ac_cs_awk_pipe_fini=
16726 else
16727 ac_cs_awk_getline=false
16728 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16729 ac_cs_awk_read_file='
16730 print "|#_!!_#|"
16731 print "cat " F[key] " &&"
16732 '$ac_cs_awk_pipe_init
16733 # The final `:' finishes the AND list.
16734 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16735 fi
16736 ac_cr=`echo X | tr X '\015'`
16737 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16738 # But we know of no other shell where ac_cr would be empty at this
16739 # point, so we can use a bashism as a fallback.
16740 if test "x$ac_cr" = x; then
16741 eval ac_cr=\$\'\\r\'
16742 fi
16743 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16744 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16745 ac_cs_awk_cr='\r'
16746 else
16747 ac_cs_awk_cr=$ac_cr
16748 fi
16749
16750 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16751 _ACEOF
16752
16753 # Create commands to substitute file output variables.
16754 {
16755 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16756 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16757 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16758 echo "_ACAWK" &&
16759 echo "_ACEOF"
16760 } >conf$$files.sh &&
16761 . ./conf$$files.sh ||
16762 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16763 rm -f conf$$files.sh
16764
16765 {
16766 echo "cat >conf$$subs.awk <<_ACEOF" &&
16767 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16768 echo "_ACEOF"
16769 } >conf$$subs.sh ||
16770 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16771 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16772 ac_delim='%!_!# '
16773 for ac_last_try in false false false false false :; do
16774 . ./conf$$subs.sh ||
16775 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16776
16777 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16778 if test $ac_delim_n = $ac_delim_num; then
16779 break
16780 elif $ac_last_try; then
16781 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16782 else
16783 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16784 fi
16785 done
16786 rm -f conf$$subs.sh
16787
16788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16789 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16790 _ACEOF
16791 sed -n '
16792 h
16793 s/^/S["/; s/!.*/"]=/
16794 p
16795 g
16796 s/^[^!]*!//
16797 :repl
16798 t repl
16799 s/'"$ac_delim"'$//
16800 t delim
16801 :nl
16802 h
16803 s/\(.\{148\}\).*/\1/
16804 t more1
16805 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16806 p
16807 n
16808 b repl
16809 :more1
16810 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16811 p
16812 g
16813 s/.\{148\}//
16814 t nl
16815 :delim
16816 h
16817 s/\(.\{148\}\).*/\1/
16818 t more2
16819 s/["\\]/\\&/g; s/^/"/; s/$/"/
16820 p
16821 b
16822 :more2
16823 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16824 p
16825 g
16826 s/.\{148\}//
16827 t delim
16828 ' <conf$$subs.awk | sed '
16829 /^[^""]/{
16830 N
16831 s/\n//
16832 }
16833 ' >>$CONFIG_STATUS || ac_write_fail=1
16834 rm -f conf$$subs.awk
16835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16836 _ACAWK
16837 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16838 for (key in S) S_is_set[key] = 1
16839 FS = "\a"
16840 \$ac_cs_awk_pipe_init
16841 }
16842 {
16843 line = $ 0
16844 nfields = split(line, field, "@")
16845 substed = 0
16846 len = length(field[1])
16847 for (i = 2; i < nfields; i++) {
16848 key = field[i]
16849 keylen = length(key)
16850 if (S_is_set[key]) {
16851 value = S[key]
16852 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16853 len += length(value) + length(field[++i])
16854 substed = 1
16855 } else
16856 len += 1 + keylen
16857 }
16858 if (nfields == 3 && !substed) {
16859 key = field[2]
16860 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16861 \$ac_cs_awk_read_file
16862 next
16863 }
16864 }
16865 print line
16866 }
16867 \$ac_cs_awk_pipe_fini
16868 _ACAWK
16869 _ACEOF
16870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16871 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16872 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16873 else
16874 cat
16875 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16876 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16877 _ACEOF
16878
16879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16881 # trailing colons and then remove the whole line if VPATH becomes empty
16882 # (actually we leave an empty line to preserve line numbers).
16883 if test "x$srcdir" = x.; then
16884 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16885 s/:*\$(srcdir):*/:/
16886 s/:*\${srcdir}:*/:/
16887 s/:*@srcdir@:*/:/
16888 s/^\([^=]*=[ ]*\):*/\1/
16889 s/:*$//
16890 s/^[^=]*=[ ]*$//
16891 }'
16892 fi
16893
16894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16895 fi # test -n "$CONFIG_FILES"
16896
16897 # Set up the scripts for CONFIG_HEADERS section.
16898 # No need to generate them if there are no CONFIG_HEADERS.
16899 # This happens for instance with `./config.status Makefile'.
16900 if test -n "$CONFIG_HEADERS"; then
16901 cat >"$tmp/defines.awk" <<\_ACAWK ||
16902 BEGIN {
16903 _ACEOF
16904
16905 # Transform confdefs.h into an awk script `defines.awk', embedded as
16906 # here-document in config.status, that substitutes the proper values into
16907 # config.h.in to produce config.h.
16908
16909 # Create a delimiter string that does not exist in confdefs.h, to ease
16910 # handling of long lines.
16911 ac_delim='%!_!# '
16912 for ac_last_try in false false :; do
16913 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16914 if test -z "$ac_t"; then
16915 break
16916 elif $ac_last_try; then
16917 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16918 else
16919 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16920 fi
16921 done
16922
16923 # For the awk script, D is an array of macro values keyed by name,
16924 # likewise P contains macro parameters if any. Preserve backslash
16925 # newline sequences.
16926
16927 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16928 sed -n '
16929 s/.\{148\}/&'"$ac_delim"'/g
16930 t rset
16931 :rset
16932 s/^[ ]*#[ ]*define[ ][ ]*/ /
16933 t def
16934 d
16935 :def
16936 s/\\$//
16937 t bsnl
16938 s/["\\]/\\&/g
16939 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16940 D["\1"]=" \3"/p
16941 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16942 d
16943 :bsnl
16944 s/["\\]/\\&/g
16945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16946 D["\1"]=" \3\\\\\\n"\\/p
16947 t cont
16948 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16949 t cont
16950 d
16951 :cont
16952 n
16953 s/.\{148\}/&'"$ac_delim"'/g
16954 t clear
16955 :clear
16956 s/\\$//
16957 t bsnlc
16958 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16959 d
16960 :bsnlc
16961 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16962 b cont
16963 ' <confdefs.h | sed '
16964 s/'"$ac_delim"'/"\\\
16965 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16966
16967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16968 for (key in D) D_is_set[key] = 1
16969 FS = "\a"
16970 }
16971 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16972 line = \$ 0
16973 split(line, arg, " ")
16974 if (arg[1] == "#") {
16975 defundef = arg[2]
16976 mac1 = arg[3]
16977 } else {
16978 defundef = substr(arg[1], 2)
16979 mac1 = arg[2]
16980 }
16981 split(mac1, mac2, "(") #)
16982 macro = mac2[1]
16983 prefix = substr(line, 1, index(line, defundef) - 1)
16984 if (D_is_set[macro]) {
16985 # Preserve the white space surrounding the "#".
16986 print prefix "define", macro P[macro] D[macro]
16987 next
16988 } else {
16989 # Replace #undef with comments. This is necessary, for example,
16990 # in the case of _POSIX_SOURCE, which is predefined and required
16991 # on some systems where configure will not decide to define it.
16992 if (defundef == "undef") {
16993 print "/*", prefix defundef, macro, "*/"
16994 next
16995 }
16996 }
16997 }
16998 { print }
16999 _ACAWK
17000 _ACEOF
17001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17002 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17003 fi # test -n "$CONFIG_HEADERS"
17004
17005
17006 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17007 shift
17008 for ac_tag
17009 do
17010 case $ac_tag in
17011 :[FHLC]) ac_mode=$ac_tag; continue;;
17012 esac
17013 case $ac_mode$ac_tag in
17014 :[FHL]*:*);;
17015 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17016 :[FH]-) ac_tag=-:-;;
17017 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17018 esac
17019 ac_save_IFS=$IFS
17020 IFS=:
17021 set x $ac_tag
17022 IFS=$ac_save_IFS
17023 shift
17024 ac_file=$1
17025 shift
17026
17027 case $ac_mode in
17028 :L) ac_source=$1;;
17029 :[FH])
17030 ac_file_inputs=
17031 for ac_f
17032 do
17033 case $ac_f in
17034 -) ac_f="$tmp/stdin";;
17035 *) # Look for the file first in the build tree, then in the source tree
17036 # (if the path is not absolute). The absolute path cannot be DOS-style,
17037 # because $ac_f cannot contain `:'.
17038 test -f "$ac_f" ||
17039 case $ac_f in
17040 [\\/$]*) false;;
17041 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17042 esac ||
17043 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17044 esac
17045 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17046 as_fn_append ac_file_inputs " '$ac_f'"
17047 done
17048
17049 # Let's still pretend it is `configure' which instantiates (i.e., don't
17050 # use $as_me), people would be surprised to read:
17051 # /* config.h. Generated by config.status. */
17052 configure_input='Generated from '`
17053 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17054 `' by configure.'
17055 if test x"$ac_file" != x-; then
17056 configure_input="$ac_file. $configure_input"
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17058 $as_echo "$as_me: creating $ac_file" >&6;}
17059 fi
17060 # Neutralize special characters interpreted by sed in replacement strings.
17061 case $configure_input in #(
17062 *\&* | *\|* | *\\* )
17063 ac_sed_conf_input=`$as_echo "$configure_input" |
17064 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17065 *) ac_sed_conf_input=$configure_input;;
17066 esac
17067
17068 case $ac_tag in
17069 *:-:* | *:-) cat >"$tmp/stdin" \
17070 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17071 esac
17072 ;;
17073 esac
17074
17075 ac_dir=`$as_dirname -- "$ac_file" ||
17076 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17077 X"$ac_file" : 'X\(//\)[^/]' \| \
17078 X"$ac_file" : 'X\(//\)$' \| \
17079 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17080 $as_echo X"$ac_file" |
17081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17082 s//\1/
17083 q
17084 }
17085 /^X\(\/\/\)[^/].*/{
17086 s//\1/
17087 q
17088 }
17089 /^X\(\/\/\)$/{
17090 s//\1/
17091 q
17092 }
17093 /^X\(\/\).*/{
17094 s//\1/
17095 q
17096 }
17097 s/.*/./; q'`
17098 as_dir="$ac_dir"; as_fn_mkdir_p
17099 ac_builddir=.
17100
17101 case "$ac_dir" in
17102 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17103 *)
17104 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17105 # A ".." for each directory in $ac_dir_suffix.
17106 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17107 case $ac_top_builddir_sub in
17108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17110 esac ;;
17111 esac
17112 ac_abs_top_builddir=$ac_pwd
17113 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17114 # for backward compatibility:
17115 ac_top_builddir=$ac_top_build_prefix
17116
17117 case $srcdir in
17118 .) # We are building in place.
17119 ac_srcdir=.
17120 ac_top_srcdir=$ac_top_builddir_sub
17121 ac_abs_top_srcdir=$ac_pwd ;;
17122 [\\/]* | ?:[\\/]* ) # Absolute name.
17123 ac_srcdir=$srcdir$ac_dir_suffix;
17124 ac_top_srcdir=$srcdir
17125 ac_abs_top_srcdir=$srcdir ;;
17126 *) # Relative name.
17127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17128 ac_top_srcdir=$ac_top_build_prefix$srcdir
17129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17130 esac
17131 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17132
17133
17134 case $ac_mode in
17135 :F)
17136 #
17137 # CONFIG_FILE
17138 #
17139
17140 case $INSTALL in
17141 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17142 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17143 esac
17144 ac_MKDIR_P=$MKDIR_P
17145 case $MKDIR_P in
17146 [\\/$]* | ?:[\\/]* ) ;;
17147 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17148 esac
17149 _ACEOF
17150
17151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17152 # If the template does not know about datarootdir, expand it.
17153 # FIXME: This hack should be removed a few years after 2.60.
17154 ac_datarootdir_hack=; ac_datarootdir_seen=
17155 ac_sed_dataroot='
17156 /datarootdir/ {
17157 p
17158 q
17159 }
17160 /@datadir@/p
17161 /@docdir@/p
17162 /@infodir@/p
17163 /@localedir@/p
17164 /@mandir@/p'
17165 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17166 *datarootdir*) ac_datarootdir_seen=yes;;
17167 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17169 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17170 _ACEOF
17171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17172 ac_datarootdir_hack='
17173 s&@datadir@&$datadir&g
17174 s&@docdir@&$docdir&g
17175 s&@infodir@&$infodir&g
17176 s&@localedir@&$localedir&g
17177 s&@mandir@&$mandir&g
17178 s&\\\${datarootdir}&$datarootdir&g' ;;
17179 esac
17180 _ACEOF
17181
17182 # Neutralize VPATH when `$srcdir' = `.'.
17183 # Shell code in configure.ac might set extrasub.
17184 # FIXME: do we really want to maintain this feature?
17185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17186 ac_sed_extra="$ac_vpsub
17187 $extrasub
17188 _ACEOF
17189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17190 :t
17191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17192 s|@configure_input@|$ac_sed_conf_input|;t t
17193 s&@top_builddir@&$ac_top_builddir_sub&;t t
17194 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17195 s&@srcdir@&$ac_srcdir&;t t
17196 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17197 s&@top_srcdir@&$ac_top_srcdir&;t t
17198 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17199 s&@builddir@&$ac_builddir&;t t
17200 s&@abs_builddir@&$ac_abs_builddir&;t t
17201 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17202 s&@INSTALL@&$ac_INSTALL&;t t
17203 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17204 $ac_datarootdir_hack
17205 "
17206 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17207 if $ac_cs_awk_getline; then
17208 $AWK -f "$tmp/subs.awk"
17209 else
17210 $AWK -f "$tmp/subs.awk" | $SHELL
17211 fi >$tmp/out \
17212 || as_fn_error "could not create $ac_file" "$LINENO" 5
17213
17214 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17215 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17216 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17218 which seems to be undefined. Please make sure it is defined." >&5
17219 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17220 which seems to be undefined. Please make sure it is defined." >&2;}
17221
17222 rm -f "$tmp/stdin"
17223 case $ac_file in
17224 -) cat "$tmp/out" && rm -f "$tmp/out";;
17225 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17226 esac \
17227 || as_fn_error "could not create $ac_file" "$LINENO" 5
17228 ;;
17229 :H)
17230 #
17231 # CONFIG_HEADER
17232 #
17233 if test x"$ac_file" != x-; then
17234 {
17235 $as_echo "/* $configure_input */" \
17236 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17237 } >"$tmp/config.h" \
17238 || as_fn_error "could not create $ac_file" "$LINENO" 5
17239 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17241 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17242 else
17243 rm -f "$ac_file"
17244 mv "$tmp/config.h" "$ac_file" \
17245 || as_fn_error "could not create $ac_file" "$LINENO" 5
17246 fi
17247 else
17248 $as_echo "/* $configure_input */" \
17249 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17250 || as_fn_error "could not create -" "$LINENO" 5
17251 fi
17252 # Compute "$ac_file"'s index in $config_headers.
17253 _am_arg="$ac_file"
17254 _am_stamp_count=1
17255 for _am_header in $config_headers :; do
17256 case $_am_header in
17257 $_am_arg | $_am_arg:* )
17258 break ;;
17259 * )
17260 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17261 esac
17262 done
17263 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17264 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17265 X"$_am_arg" : 'X\(//\)[^/]' \| \
17266 X"$_am_arg" : 'X\(//\)$' \| \
17267 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17268 $as_echo X"$_am_arg" |
17269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17270 s//\1/
17271 q
17272 }
17273 /^X\(\/\/\)[^/].*/{
17274 s//\1/
17275 q
17276 }
17277 /^X\(\/\/\)$/{
17278 s//\1/
17279 q
17280 }
17281 /^X\(\/\).*/{
17282 s//\1/
17283 q
17284 }
17285 s/.*/./; q'`/stamp-h$_am_stamp_count
17286 ;;
17287 :L)
17288 #
17289 # CONFIG_LINK
17290 #
17291
17292 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17293 :
17294 else
17295 # Prefer the file from the source tree if names are identical.
17296 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17297 ac_source=$srcdir/$ac_source
17298 fi
17299
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17301 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17302
17303 if test ! -r "$ac_source"; then
17304 as_fn_error "$ac_source: file not found" "$LINENO" 5
17305 fi
17306 rm -f "$ac_file"
17307
17308 # Try a relative symlink, then a hard link, then a copy.
17309 case $srcdir in
17310 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17311 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17312 esac
17313 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17314 ln "$ac_source" "$ac_file" 2>/dev/null ||
17315 cp -p "$ac_source" "$ac_file" ||
17316 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17317 fi
17318 ;;
17319 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17320 $as_echo "$as_me: executing $ac_file commands" >&6;}
17321 ;;
17322 esac
17323
17324
17325 case $ac_file$ac_mode in
17326 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17327 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17328 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17329 # are listed without --file. Let's play safe and only enable the eval
17330 # if we detect the quoting.
17331 case $CONFIG_FILES in
17332 *\'*) eval set x "$CONFIG_FILES" ;;
17333 *) set x $CONFIG_FILES ;;
17334 esac
17335 shift
17336 for mf
17337 do
17338 # Strip MF so we end up with the name of the file.
17339 mf=`echo "$mf" | sed -e 's/:.*$//'`
17340 # Check whether this is an Automake generated Makefile or not.
17341 # We used to match only the files named `Makefile.in', but
17342 # some people rename them; so instead we look at the file content.
17343 # Grep'ing the first line is not enough: some people post-process
17344 # each Makefile.in and add a new line on top of each file to say so.
17345 # Grep'ing the whole file is not good either: AIX grep has a line
17346 # limit of 2048, but all sed's we know have understand at least 4000.
17347 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17348 dirpart=`$as_dirname -- "$mf" ||
17349 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17350 X"$mf" : 'X\(//\)[^/]' \| \
17351 X"$mf" : 'X\(//\)$' \| \
17352 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17353 $as_echo X"$mf" |
17354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17355 s//\1/
17356 q
17357 }
17358 /^X\(\/\/\)[^/].*/{
17359 s//\1/
17360 q
17361 }
17362 /^X\(\/\/\)$/{
17363 s//\1/
17364 q
17365 }
17366 /^X\(\/\).*/{
17367 s//\1/
17368 q
17369 }
17370 s/.*/./; q'`
17371 else
17372 continue
17373 fi
17374 # Extract the definition of DEPDIR, am__include, and am__quote
17375 # from the Makefile without running `make'.
17376 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17377 test -z "$DEPDIR" && continue
17378 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17379 test -z "am__include" && continue
17380 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17381 # When using ansi2knr, U may be empty or an underscore; expand it
17382 U=`sed -n 's/^U = //p' < "$mf"`
17383 # Find all dependency output files, they are included files with
17384 # $(DEPDIR) in their names. We invoke sed twice because it is the
17385 # simplest approach to changing $(DEPDIR) to its actual value in the
17386 # expansion.
17387 for file in `sed -n "
17388 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17389 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17390 # Make sure the directory exists.
17391 test -f "$dirpart/$file" && continue
17392 fdir=`$as_dirname -- "$file" ||
17393 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17394 X"$file" : 'X\(//\)[^/]' \| \
17395 X"$file" : 'X\(//\)$' \| \
17396 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17397 $as_echo X"$file" |
17398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17399 s//\1/
17400 q
17401 }
17402 /^X\(\/\/\)[^/].*/{
17403 s//\1/
17404 q
17405 }
17406 /^X\(\/\/\)$/{
17407 s//\1/
17408 q
17409 }
17410 /^X\(\/\).*/{
17411 s//\1/
17412 q
17413 }
17414 s/.*/./; q'`
17415 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17416 # echo "creating $dirpart/$file"
17417 echo '# dummy' > "$dirpart/$file"
17418 done
17419 done
17420 }
17421 ;;
17422 "default":C)
17423 case x$CONFIG_HEADERS in
17424 xconfig.h:config.in)
17425 echo > stamp-h ;;
17426 esac
17427 ;;
17428
17429 esac
17430 done # for ac_tag
17431
17432
17433 as_fn_exit 0
17434 _ACEOF
17435 ac_clean_files=$ac_clean_files_save
17436
17437 test $ac_write_fail = 0 ||
17438 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17439
17440
17441 # configure is writing to config.log, and then calls config.status.
17442 # config.status does its own redirection, appending to config.log.
17443 # Unfortunately, on DOS this fails, as config.log is still kept open
17444 # by configure, so config.status won't be able to write to it; its
17445 # output is simply discarded. So we exec the FD to /dev/null,
17446 # effectively closing config.log, so it can be properly (re)opened and
17447 # appended to by config.status. When coming back to configure, we
17448 # need to make the FD available again.
17449 if test "$no_create" != yes; then
17450 ac_cs_success=:
17451 ac_config_status_args=
17452 test "$silent" = yes &&
17453 ac_config_status_args="$ac_config_status_args --quiet"
17454 exec 5>/dev/null
17455 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17456 exec 5>>config.log
17457 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17458 # would make configure fail if this is the last instruction.
17459 $ac_cs_success || as_fn_exit $?
17460 fi
17461
17462 #
17463 # CONFIG_SUBDIRS section.
17464 #
17465 if test "$no_recursion" != yes; then
17466
17467 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17468 # so they do not pile up.
17469 ac_sub_configure_args=
17470 ac_prev=
17471 eval "set x $ac_configure_args"
17472 shift
17473 for ac_arg
17474 do
17475 if test -n "$ac_prev"; then
17476 ac_prev=
17477 continue
17478 fi
17479 case $ac_arg in
17480 -cache-file | --cache-file | --cache-fil | --cache-fi \
17481 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17482 ac_prev=cache_file ;;
17483 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17484 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17485 | --c=*)
17486 ;;
17487 --config-cache | -C)
17488 ;;
17489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17490 ac_prev=srcdir ;;
17491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17492 ;;
17493 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17494 ac_prev=prefix ;;
17495 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17496 ;;
17497 --disable-option-checking)
17498 ;;
17499 *)
17500 case $ac_arg in
17501 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17502 esac
17503 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17504 esac
17505 done
17506
17507 # Always prepend --prefix to ensure using the same prefix
17508 # in subdir configurations.
17509 ac_arg="--prefix=$prefix"
17510 case $ac_arg in
17511 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17512 esac
17513 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17514
17515 # Pass --silent
17516 if test "$silent" = yes; then
17517 ac_sub_configure_args="--silent $ac_sub_configure_args"
17518 fi
17519
17520 # Always prepend --disable-option-checking to silence warnings, since
17521 # different subdirs can have different --enable and --with options.
17522 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17523
17524 ac_popdir=`pwd`
17525 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17526
17527 # Do not complain, so a configure script can configure whichever
17528 # parts of a large source tree are present.
17529 test -d "$srcdir/$ac_dir" || continue
17530
17531 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17532 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17533 $as_echo "$ac_msg" >&6
17534 as_dir="$ac_dir"; as_fn_mkdir_p
17535 ac_builddir=.
17536
17537 case "$ac_dir" in
17538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17539 *)
17540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17541 # A ".." for each directory in $ac_dir_suffix.
17542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17543 case $ac_top_builddir_sub in
17544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17546 esac ;;
17547 esac
17548 ac_abs_top_builddir=$ac_pwd
17549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17550 # for backward compatibility:
17551 ac_top_builddir=$ac_top_build_prefix
17552
17553 case $srcdir in
17554 .) # We are building in place.
17555 ac_srcdir=.
17556 ac_top_srcdir=$ac_top_builddir_sub
17557 ac_abs_top_srcdir=$ac_pwd ;;
17558 [\\/]* | ?:[\\/]* ) # Absolute name.
17559 ac_srcdir=$srcdir$ac_dir_suffix;
17560 ac_top_srcdir=$srcdir
17561 ac_abs_top_srcdir=$srcdir ;;
17562 *) # Relative name.
17563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17564 ac_top_srcdir=$ac_top_build_prefix$srcdir
17565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17566 esac
17567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17568
17569
17570 cd "$ac_dir"
17571
17572 # Check for guested configure; otherwise get Cygnus style configure.
17573 if test -f "$ac_srcdir/configure.gnu"; then
17574 ac_sub_configure=$ac_srcdir/configure.gnu
17575 elif test -f "$ac_srcdir/configure"; then
17576 ac_sub_configure=$ac_srcdir/configure
17577 elif test -f "$ac_srcdir/configure.in"; then
17578 # This should be Cygnus configure.
17579 ac_sub_configure=$ac_aux_dir/configure
17580 else
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17583 ac_sub_configure=
17584 fi
17585
17586 # The recursion is here.
17587 if test -n "$ac_sub_configure"; then
17588 # Make the cache file name correct relative to the subdirectory.
17589 case $cache_file in
17590 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17591 *) # Relative name.
17592 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17593 esac
17594
17595 { $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
17596 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17597 # The eval makes quoting arguments work.
17598 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17599 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17600 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17601 fi
17602
17603 cd "$ac_popdir"
17604 done
17605 fi
17606 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17608 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17609 fi
17610
17611
17612 exit 0
This page took 0.396254 seconds and 5 git commands to generate.