2011-05-23 Pedro Alves <pedro@codesourcery.com>
[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_LIBS
663 PYTHON_CPPFLAGS
664 PYTHON_CFLAGS
665 python_prog_path
666 LTLIBEXPAT
667 LIBEXPAT
668 HAVE_LIBEXPAT
669 READLINE_TEXI_INCFLAG
670 READLINE_CFLAGS
671 READLINE_DEPS
672 READLINE
673 MIG
674 WINDRES
675 DLLTOOL
676 AR
677 YFLAGS
678 YACC
679 LN_S
680 REPORT_BUGS_TEXI
681 REPORT_BUGS_TO
682 PKGVERSION
683 TARGET_OBS
684 subdirs
685 GDB_DATADIR
686 DEBUGDIR
687 am__fastdepCC_FALSE
688 am__fastdepCC_TRUE
689 AMDEPBACKSLASH
690 AMDEP_FALSE
691 AMDEP_TRUE
692 am__quote
693 am__include
694 am__untar
695 am__tar
696 AMTAR
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 PACKAGE
715 GNULIB_STDINT_H
716 LIBGNU_LTLIBDEPS
717 LIBGNU_LIBDEPS
718 gltests_WITNESS
719 HAVE_WINT_T
720 HAVE_WCHAR_H
721 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
722 NEXT_WCHAR_H
723 REPLACE_WCWIDTH
724 REPLACE_WCSNRTOMBS
725 REPLACE_WCSRTOMBS
726 REPLACE_WCRTOMB
727 REPLACE_MBSNRTOWCS
728 REPLACE_MBSRTOWCS
729 REPLACE_MBRLEN
730 REPLACE_MBRTOWC
731 REPLACE_MBSINIT
732 REPLACE_WCTOB
733 REPLACE_BTOWC
734 REPLACE_MBSTATE_T
735 HAVE_DECL_WCWIDTH
736 HAVE_DECL_WCTOB
737 HAVE_WCSNRTOMBS
738 HAVE_WCSRTOMBS
739 HAVE_WCRTOMB
740 HAVE_MBSNRTOWCS
741 HAVE_MBSRTOWCS
742 HAVE_MBRLEN
743 HAVE_MBRTOWC
744 HAVE_MBSINIT
745 HAVE_BTOWC
746 GNULIB_WCWIDTH
747 GNULIB_WCSNRTOMBS
748 GNULIB_WCSRTOMBS
749 GNULIB_WCRTOMB
750 GNULIB_MBSNRTOWCS
751 GNULIB_MBSRTOWCS
752 GNULIB_MBRLEN
753 GNULIB_MBRTOWC
754 GNULIB_MBSINIT
755 GNULIB_WCTOB
756 GNULIB_BTOWC
757 NEXT_AS_FIRST_DIRECTIVE_STRING_H
758 NEXT_STRING_H
759 STDINT_H
760 WINT_T_SUFFIX
761 WCHAR_T_SUFFIX
762 SIG_ATOMIC_T_SUFFIX
763 SIZE_T_SUFFIX
764 PTRDIFF_T_SUFFIX
765 HAVE_SIGNED_WINT_T
766 HAVE_SIGNED_WCHAR_T
767 HAVE_SIGNED_SIG_ATOMIC_T
768 BITSIZEOF_WINT_T
769 BITSIZEOF_WCHAR_T
770 BITSIZEOF_SIG_ATOMIC_T
771 BITSIZEOF_SIZE_T
772 BITSIZEOF_PTRDIFF_T
773 HAVE_SYS_BITYPES_H
774 HAVE_SYS_INTTYPES_H
775 HAVE_STDINT_H
776 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
777 NEXT_STDINT_H
778 HAVE_SYS_TYPES_H
779 HAVE_INTTYPES_H
780 HAVE_UNSIGNED_LONG_LONG_INT
781 HAVE_LONG_LONG_INT
782 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
783 NEXT_STDDEF_H
784 PRAGMA_SYSTEM_HEADER
785 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
786 INCLUDE_NEXT
787 STDDEF_H
788 HAVE_WCHAR_T
789 REPLACE_NULL
790 APPLE_UNIVERSAL_BUILD
791 UNDEFINE_STRTOK_R
792 REPLACE_STRTOK_R
793 REPLACE_STRSIGNAL
794 REPLACE_STRNLEN
795 REPLACE_STRNDUP
796 REPLACE_STRNCAT
797 REPLACE_STRERROR
798 REPLACE_STRCASESTR
799 REPLACE_STRSTR
800 REPLACE_STRDUP
801 REPLACE_STPNCPY
802 REPLACE_MEMMEM
803 REPLACE_MEMCHR
804 HAVE_STRVERSCMP
805 HAVE_DECL_STRSIGNAL
806 HAVE_DECL_STRTOK_R
807 HAVE_STRCASESTR
808 HAVE_STRSEP
809 HAVE_STRPBRK
810 HAVE_DECL_STRNLEN
811 HAVE_DECL_STRNDUP
812 HAVE_DECL_STRDUP
813 HAVE_STRCHRNUL
814 HAVE_STPNCPY
815 HAVE_STPCPY
816 HAVE_RAWMEMCHR
817 HAVE_DECL_MEMRCHR
818 HAVE_MEMPCPY
819 HAVE_DECL_MEMMEM
820 HAVE_MEMCHR
821 HAVE_MBSLEN
822 GNULIB_STRVERSCMP
823 GNULIB_STRSIGNAL
824 GNULIB_STRERROR
825 GNULIB_MBSTOK_R
826 GNULIB_MBSSEP
827 GNULIB_MBSSPN
828 GNULIB_MBSPBRK
829 GNULIB_MBSCSPN
830 GNULIB_MBSCASESTR
831 GNULIB_MBSPCASECMP
832 GNULIB_MBSNCASECMP
833 GNULIB_MBSCASECMP
834 GNULIB_MBSSTR
835 GNULIB_MBSRCHR
836 GNULIB_MBSCHR
837 GNULIB_MBSNLEN
838 GNULIB_MBSLEN
839 GNULIB_STRTOK_R
840 GNULIB_STRCASESTR
841 GNULIB_STRSTR
842 GNULIB_STRSEP
843 GNULIB_STRPBRK
844 GNULIB_STRNLEN
845 GNULIB_STRNDUP
846 GNULIB_STRNCAT
847 GNULIB_STRDUP
848 GNULIB_STRCHRNUL
849 GNULIB_STPNCPY
850 GNULIB_STPCPY
851 GNULIB_RAWMEMCHR
852 GNULIB_MEMRCHR
853 GNULIB_MEMPCPY
854 GNULIB_MEMMEM
855 GNULIB_MEMCHR
856 GL_COND_LIBTOOL_FALSE
857 GL_COND_LIBTOOL_TRUE
858 CATOBJEXT
859 GENCAT
860 INSTOBJEXT
861 DATADIRNAME
862 CATALOGS
863 POSUB
864 GMSGFMT
865 XGETTEXT
866 INCINTL
867 LIBINTL_DEP
868 LIBINTL
869 USE_NLS
870 SET_MAKE
871 GMAKE_FALSE
872 GMAKE_TRUE
873 MAKE
874 CCDEPMODE
875 DEPDIR
876 am__leading_dot
877 target_os
878 target_vendor
879 target_cpu
880 target
881 RANLIB
882 EGREP
883 GREP
884 CPP
885 host_os
886 host_vendor
887 host_cpu
888 host
889 build_os
890 build_vendor
891 build_cpu
892 build
893 OBJEXT
894 EXEEXT
895 ac_ct_CC
896 CPPFLAGS
897 LDFLAGS
898 CFLAGS
899 CC
900 MAINT
901 MAINTAINER_MODE_FALSE
902 MAINTAINER_MODE_TRUE
903 target_alias
904 host_alias
905 build_alias
906 LIBS
907 ECHO_T
908 ECHO_N
909 ECHO_C
910 DEFS
911 mandir
912 localedir
913 libdir
914 psdir
915 pdfdir
916 dvidir
917 htmldir
918 infodir
919 docdir
920 oldincludedir
921 includedir
922 localstatedir
923 sharedstatedir
924 sysconfdir
925 datadir
926 datarootdir
927 libexecdir
928 sbindir
929 bindir
930 program_transform_name
931 prefix
932 exec_prefix
933 PACKAGE_URL
934 PACKAGE_BUGREPORT
935 PACKAGE_STRING
936 PACKAGE_VERSION
937 PACKAGE_TARNAME
938 PACKAGE_NAME
939 PATH_SEPARATOR
940 SHELL'
941 ac_subst_files='host_makefile_frag'
942 ac_user_opts='
943 enable_option_checking
944 enable_maintainer_mode
945 enable_plugins
946 enable_largefile
947 enable_dependency_tracking
948 with_separate_debug_dir
949 with_gdb_datadir
950 with_relocated_sources
951 enable_targets
952 enable_64_bit_bfd
953 enable_gdbcli
954 enable_gdbmi
955 enable_tui
956 enable_gdbtk
957 with_libunwind
958 with_curses
959 enable_profiling
960 with_pkgversion
961 with_bugurl
962 with_zlib
963 with_libiconv_prefix
964 with_iconv_bin
965 with_system_readline
966 with_expat
967 with_gnu_ld
968 enable_rpath
969 with_libexpat_prefix
970 with_python
971 with_included_regex
972 with_sysroot
973 with_system_gdbinit
974 enable_werror
975 enable_build_warnings
976 enable_gdb_build_warnings
977 with_tcl
978 with_tk
979 with_x
980 enable_sim
981 enable_multi_ice
982 enable_gdbserver
983 '
984 ac_precious_vars='build_alias
985 host_alias
986 target_alias
987 CC
988 CFLAGS
989 LDFLAGS
990 LIBS
991 CPPFLAGS
992 CPP
993 YACC
994 YFLAGS
995 XMKMF'
996 ac_subdirs_all='testsuite
997 gdbtk
998 multi-ice
999 gdbserver'
1000
1001 # Initialize some variables set by options.
1002 ac_init_help=
1003 ac_init_version=false
1004 ac_unrecognized_opts=
1005 ac_unrecognized_sep=
1006 # The variables have the same names as the options, with
1007 # dashes changed to underlines.
1008 cache_file=/dev/null
1009 exec_prefix=NONE
1010 no_create=
1011 no_recursion=
1012 prefix=NONE
1013 program_prefix=NONE
1014 program_suffix=NONE
1015 program_transform_name=s,x,x,
1016 silent=
1017 site=
1018 srcdir=
1019 verbose=
1020 x_includes=NONE
1021 x_libraries=NONE
1022
1023 # Installation directory options.
1024 # These are left unexpanded so users can "make install exec_prefix=/foo"
1025 # and all the variables that are supposed to be based on exec_prefix
1026 # by default will actually change.
1027 # Use braces instead of parens because sh, perl, etc. also accept them.
1028 # (The list follows the same order as the GNU Coding Standards.)
1029 bindir='${exec_prefix}/bin'
1030 sbindir='${exec_prefix}/sbin'
1031 libexecdir='${exec_prefix}/libexec'
1032 datarootdir='${prefix}/share'
1033 datadir='${datarootdir}'
1034 sysconfdir='${prefix}/etc'
1035 sharedstatedir='${prefix}/com'
1036 localstatedir='${prefix}/var'
1037 includedir='${prefix}/include'
1038 oldincludedir='/usr/include'
1039 docdir='${datarootdir}/doc/${PACKAGE}'
1040 infodir='${datarootdir}/info'
1041 htmldir='${docdir}'
1042 dvidir='${docdir}'
1043 pdfdir='${docdir}'
1044 psdir='${docdir}'
1045 libdir='${exec_prefix}/lib'
1046 localedir='${datarootdir}/locale'
1047 mandir='${datarootdir}/man'
1048
1049 ac_prev=
1050 ac_dashdash=
1051 for ac_option
1052 do
1053 # If the previous option needs an argument, assign it.
1054 if test -n "$ac_prev"; then
1055 eval $ac_prev=\$ac_option
1056 ac_prev=
1057 continue
1058 fi
1059
1060 case $ac_option in
1061 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1062 *) ac_optarg=yes ;;
1063 esac
1064
1065 # Accept the important Cygnus configure options, so we can diagnose typos.
1066
1067 case $ac_dashdash$ac_option in
1068 --)
1069 ac_dashdash=yes ;;
1070
1071 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1072 ac_prev=bindir ;;
1073 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1074 bindir=$ac_optarg ;;
1075
1076 -build | --build | --buil | --bui | --bu)
1077 ac_prev=build_alias ;;
1078 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1079 build_alias=$ac_optarg ;;
1080
1081 -cache-file | --cache-file | --cache-fil | --cache-fi \
1082 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1083 ac_prev=cache_file ;;
1084 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1085 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1086 cache_file=$ac_optarg ;;
1087
1088 --config-cache | -C)
1089 cache_file=config.cache ;;
1090
1091 -datadir | --datadir | --datadi | --datad)
1092 ac_prev=datadir ;;
1093 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1094 datadir=$ac_optarg ;;
1095
1096 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1097 | --dataroo | --dataro | --datar)
1098 ac_prev=datarootdir ;;
1099 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1100 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1101 datarootdir=$ac_optarg ;;
1102
1103 -disable-* | --disable-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error "invalid feature name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112 "enable_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval enable_$ac_useropt=no ;;
1118
1119 -docdir | --docdir | --docdi | --doc | --do)
1120 ac_prev=docdir ;;
1121 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1122 docdir=$ac_optarg ;;
1123
1124 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1125 ac_prev=dvidir ;;
1126 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1127 dvidir=$ac_optarg ;;
1128
1129 -enable-* | --enable-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error "invalid feature name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "enable_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval enable_$ac_useropt=\$ac_optarg ;;
1144
1145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1147 | --exec | --exe | --ex)
1148 ac_prev=exec_prefix ;;
1149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1151 | --exec=* | --exe=* | --ex=*)
1152 exec_prefix=$ac_optarg ;;
1153
1154 -gas | --gas | --ga | --g)
1155 # Obsolete; use --with-gas.
1156 with_gas=yes ;;
1157
1158 -help | --help | --hel | --he | -h)
1159 ac_init_help=long ;;
1160 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1161 ac_init_help=recursive ;;
1162 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1163 ac_init_help=short ;;
1164
1165 -host | --host | --hos | --ho)
1166 ac_prev=host_alias ;;
1167 -host=* | --host=* | --hos=* | --ho=*)
1168 host_alias=$ac_optarg ;;
1169
1170 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1171 ac_prev=htmldir ;;
1172 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1173 | --ht=*)
1174 htmldir=$ac_optarg ;;
1175
1176 -includedir | --includedir | --includedi | --included | --include \
1177 | --includ | --inclu | --incl | --inc)
1178 ac_prev=includedir ;;
1179 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1180 | --includ=* | --inclu=* | --incl=* | --inc=*)
1181 includedir=$ac_optarg ;;
1182
1183 -infodir | --infodir | --infodi | --infod | --info | --inf)
1184 ac_prev=infodir ;;
1185 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1186 infodir=$ac_optarg ;;
1187
1188 -libdir | --libdir | --libdi | --libd)
1189 ac_prev=libdir ;;
1190 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1191 libdir=$ac_optarg ;;
1192
1193 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1194 | --libexe | --libex | --libe)
1195 ac_prev=libexecdir ;;
1196 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1197 | --libexe=* | --libex=* | --libe=*)
1198 libexecdir=$ac_optarg ;;
1199
1200 -localedir | --localedir | --localedi | --localed | --locale)
1201 ac_prev=localedir ;;
1202 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1203 localedir=$ac_optarg ;;
1204
1205 -localstatedir | --localstatedir | --localstatedi | --localstated \
1206 | --localstate | --localstat | --localsta | --localst | --locals)
1207 ac_prev=localstatedir ;;
1208 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1209 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1210 localstatedir=$ac_optarg ;;
1211
1212 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1213 ac_prev=mandir ;;
1214 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1215 mandir=$ac_optarg ;;
1216
1217 -nfp | --nfp | --nf)
1218 # Obsolete; use --without-fp.
1219 with_fp=no ;;
1220
1221 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1222 | --no-cr | --no-c | -n)
1223 no_create=yes ;;
1224
1225 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1226 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1227 no_recursion=yes ;;
1228
1229 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1230 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1231 | --oldin | --oldi | --old | --ol | --o)
1232 ac_prev=oldincludedir ;;
1233 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1234 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1235 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1236 oldincludedir=$ac_optarg ;;
1237
1238 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1239 ac_prev=prefix ;;
1240 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1241 prefix=$ac_optarg ;;
1242
1243 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1244 | --program-pre | --program-pr | --program-p)
1245 ac_prev=program_prefix ;;
1246 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1247 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1248 program_prefix=$ac_optarg ;;
1249
1250 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1251 | --program-suf | --program-su | --program-s)
1252 ac_prev=program_suffix ;;
1253 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1254 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1255 program_suffix=$ac_optarg ;;
1256
1257 -program-transform-name | --program-transform-name \
1258 | --program-transform-nam | --program-transform-na \
1259 | --program-transform-n | --program-transform- \
1260 | --program-transform | --program-transfor \
1261 | --program-transfo | --program-transf \
1262 | --program-trans | --program-tran \
1263 | --progr-tra | --program-tr | --program-t)
1264 ac_prev=program_transform_name ;;
1265 -program-transform-name=* | --program-transform-name=* \
1266 | --program-transform-nam=* | --program-transform-na=* \
1267 | --program-transform-n=* | --program-transform-=* \
1268 | --program-transform=* | --program-transfor=* \
1269 | --program-transfo=* | --program-transf=* \
1270 | --program-trans=* | --program-tran=* \
1271 | --progr-tra=* | --program-tr=* | --program-t=*)
1272 program_transform_name=$ac_optarg ;;
1273
1274 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1275 ac_prev=pdfdir ;;
1276 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1277 pdfdir=$ac_optarg ;;
1278
1279 -psdir | --psdir | --psdi | --psd | --ps)
1280 ac_prev=psdir ;;
1281 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1282 psdir=$ac_optarg ;;
1283
1284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285 | -silent | --silent | --silen | --sile | --sil)
1286 silent=yes ;;
1287
1288 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1289 ac_prev=sbindir ;;
1290 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1291 | --sbi=* | --sb=*)
1292 sbindir=$ac_optarg ;;
1293
1294 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1295 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1296 | --sharedst | --shareds | --shared | --share | --shar \
1297 | --sha | --sh)
1298 ac_prev=sharedstatedir ;;
1299 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1300 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1301 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1302 | --sha=* | --sh=*)
1303 sharedstatedir=$ac_optarg ;;
1304
1305 -site | --site | --sit)
1306 ac_prev=site ;;
1307 -site=* | --site=* | --sit=*)
1308 site=$ac_optarg ;;
1309
1310 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1311 ac_prev=srcdir ;;
1312 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313 srcdir=$ac_optarg ;;
1314
1315 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1316 | --syscon | --sysco | --sysc | --sys | --sy)
1317 ac_prev=sysconfdir ;;
1318 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1319 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1320 sysconfdir=$ac_optarg ;;
1321
1322 -target | --target | --targe | --targ | --tar | --ta | --t)
1323 ac_prev=target_alias ;;
1324 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1325 target_alias=$ac_optarg ;;
1326
1327 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1328 verbose=yes ;;
1329
1330 -version | --version | --versio | --versi | --vers | -V)
1331 ac_init_version=: ;;
1332
1333 -with-* | --with-*)
1334 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 as_fn_error "invalid package name: $ac_useropt"
1338 ac_useropt_orig=$ac_useropt
1339 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340 case $ac_user_opts in
1341 *"
1342 "with_$ac_useropt"
1343 "*) ;;
1344 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1345 ac_unrecognized_sep=', ';;
1346 esac
1347 eval with_$ac_useropt=\$ac_optarg ;;
1348
1349 -without-* | --without-*)
1350 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353 as_fn_error "invalid package name: $ac_useropt"
1354 ac_useropt_orig=$ac_useropt
1355 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1357 *"
1358 "with_$ac_useropt"
1359 "*) ;;
1360 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1361 ac_unrecognized_sep=', ';;
1362 esac
1363 eval with_$ac_useropt=no ;;
1364
1365 --x)
1366 # Obsolete; use --with-x.
1367 with_x=yes ;;
1368
1369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1370 | --x-incl | --x-inc | --x-in | --x-i)
1371 ac_prev=x_includes ;;
1372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1374 x_includes=$ac_optarg ;;
1375
1376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1378 ac_prev=x_libraries ;;
1379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1381 x_libraries=$ac_optarg ;;
1382
1383 -*) as_fn_error "unrecognized option: \`$ac_option'
1384 Try \`$0 --help' for more information."
1385 ;;
1386
1387 *=*)
1388 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1389 # Reject names that are not valid shell variable names.
1390 case $ac_envvar in #(
1391 '' | [0-9]* | *[!_$as_cr_alnum]* )
1392 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1393 esac
1394 eval $ac_envvar=\$ac_optarg
1395 export $ac_envvar ;;
1396
1397 *)
1398 # FIXME: should be removed in autoconf 3.0.
1399 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1400 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1401 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1402 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1403 ;;
1404
1405 esac
1406 done
1407
1408 if test -n "$ac_prev"; then
1409 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1410 as_fn_error "missing argument to $ac_option"
1411 fi
1412
1413 if test -n "$ac_unrecognized_opts"; then
1414 case $enable_option_checking in
1415 no) ;;
1416 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1417 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1418 esac
1419 fi
1420
1421 # Check all directory arguments for consistency.
1422 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1423 datadir sysconfdir sharedstatedir localstatedir includedir \
1424 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1425 libdir localedir mandir
1426 do
1427 eval ac_val=\$$ac_var
1428 # Remove trailing slashes.
1429 case $ac_val in
1430 */ )
1431 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1432 eval $ac_var=\$ac_val;;
1433 esac
1434 # Be sure to have absolute directory names.
1435 case $ac_val in
1436 [\\/$]* | ?:[\\/]* ) continue;;
1437 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1438 esac
1439 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1440 done
1441
1442 # There might be people who depend on the old broken behavior: `$host'
1443 # used to hold the argument of --host etc.
1444 # FIXME: To remove some day.
1445 build=$build_alias
1446 host=$host_alias
1447 target=$target_alias
1448
1449 # FIXME: To remove some day.
1450 if test "x$host_alias" != x; then
1451 if test "x$build_alias" = x; then
1452 cross_compiling=maybe
1453 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1454 If a cross compiler is detected then cross compile mode will be used." >&2
1455 elif test "x$build_alias" != "x$host_alias"; then
1456 cross_compiling=yes
1457 fi
1458 fi
1459
1460 ac_tool_prefix=
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1462
1463 test "$silent" = yes && exec 6>/dev/null
1464
1465
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469 as_fn_error "working directory cannot be determined"
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471 as_fn_error "pwd does not report name of working directory"
1472
1473
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476 ac_srcdir_defaulted=yes
1477 # Try the directory containing this script, then the parent directory.
1478 ac_confdir=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480 X"$as_myself" : 'X\(//\)[^/]' \| \
1481 X"$as_myself" : 'X\(//\)$' \| \
1482 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\/\)[^/].*/{
1489 s//\1/
1490 q
1491 }
1492 /^X\(\/\/\)$/{
1493 s//\1/
1494 q
1495 }
1496 /^X\(\/\).*/{
1497 s//\1/
1498 q
1499 }
1500 s/.*/./; q'`
1501 srcdir=$ac_confdir
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1503 srcdir=..
1504 fi
1505 else
1506 ac_srcdir_defaulted=no
1507 fi
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1511 fi
1512 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 ac_abs_confdir=`(
1514 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1515 pwd)`
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1518 srcdir=.
1519 fi
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1523 case $srcdir in
1524 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525 esac
1526 for ac_var in $ac_precious_vars; do
1527 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_env_${ac_var}_value=\$${ac_var}
1529 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1531 done
1532
1533 #
1534 # Report the --help message.
1535 #
1536 if test "$ac_init_help" = "long"; then
1537 # Omit some internal or obsolete options to make the list less imposing.
1538 # This message is too long to be a string in the A/UX 3.1 sh.
1539 cat <<_ACEOF
1540 \`configure' configures this package to adapt to many kinds of systems.
1541
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1543
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE. See below for descriptions of some of the useful variables.
1546
1547 Defaults for the options are specified in brackets.
1548
1549 Configuration:
1550 -h, --help display this help and exit
1551 --help=short display options specific to this package
1552 --help=recursive display the short help of all the included packages
1553 -V, --version display version information and exit
1554 -q, --quiet, --silent do not print \`checking...' messages
1555 --cache-file=FILE cache test results in FILE [disabled]
1556 -C, --config-cache alias for \`--cache-file=config.cache'
1557 -n, --no-create do not create output files
1558 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1559
1560 Installation directories:
1561 --prefix=PREFIX install architecture-independent files in PREFIX
1562 [$ac_default_prefix]
1563 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1564 [PREFIX]
1565
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1570
1571 For better control, use the options below.
1572
1573 Fine tuning of the installation directories:
1574 --bindir=DIR user executables [EPREFIX/bin]
1575 --sbindir=DIR system admin executables [EPREFIX/sbin]
1576 --libexecdir=DIR program executables [EPREFIX/libexec]
1577 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1578 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1579 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1580 --libdir=DIR object code libraries [EPREFIX/lib]
1581 --includedir=DIR C header files [PREFIX/include]
1582 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1583 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1584 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1585 --infodir=DIR info documentation [DATAROOTDIR/info]
1586 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1587 --mandir=DIR man documentation [DATAROOTDIR/man]
1588 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1589 --htmldir=DIR html documentation [DOCDIR]
1590 --dvidir=DIR dvi documentation [DOCDIR]
1591 --pdfdir=DIR pdf documentation [DOCDIR]
1592 --psdir=DIR ps documentation [DOCDIR]
1593 _ACEOF
1594
1595 cat <<\_ACEOF
1596
1597 Program names:
1598 --program-prefix=PREFIX prepend PREFIX to installed program names
1599 --program-suffix=SUFFIX append SUFFIX to installed program names
1600 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1601
1602 X features:
1603 --x-includes=DIR X include files are in DIR
1604 --x-libraries=DIR X library files are in DIR
1605
1606 System types:
1607 --build=BUILD configure for building on BUILD [guessed]
1608 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1609 --target=TARGET configure for building compilers for TARGET [HOST]
1610 _ACEOF
1611 fi
1612
1613 if test -n "$ac_init_help"; then
1614
1615 cat <<\_ACEOF
1616
1617 Optional Features:
1618 --disable-option-checking ignore unrecognized --enable/--with options
1619 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1620 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1621 --enable-maintainer-mode enable make rules and dependencies not useful
1622 (and sometimes confusing) to the casual installer
1623 --enable-plugins Enable support for plugins (defaults no)
1624 --disable-largefile omit support for large files
1625 --disable-dependency-tracking speeds up one-time build
1626 --enable-dependency-tracking do not reject slow dependency extractors
1627 --enable-targets=TARGETS
1628 alternative target configurations
1629 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1630 --disable-gdbcli disable command-line interface (CLI)
1631 --disable-gdbmi disable machine-interface (MI)
1632 --enable-tui enable full-screen terminal user interface (TUI)
1633 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1634 --enable-profiling enable profiling of GDB
1635 --disable-rpath do not hardcode runtime library paths
1636 --enable-werror treat compile warnings as errors
1637 --enable-build-warnings enable build-time compiler warnings if gcc is used
1638 --enable-gdb-build-warnings
1639 enable GDB specific build-time compiler warnings if
1640 gcc is used
1641 --enable-sim link gdb with simulator
1642 --enable-multi-ice build the multi-ice-gdb-server
1643 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1644 is auto)
1645
1646 Optional Packages:
1647 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1648 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1649 --with-separate-debug-dir=PATH
1650 look for global separate debug info in this path
1651 [LIBDIR/debug]
1652 --with-gdb-datadir=PATH look for global separate data files in this path
1653 [DATADIR/gdb]
1654 --with-relocated-sources=PATH
1655 automatically relocate this path for source files
1656 --with-libunwind use libunwind frame unwinding support
1657 --with-curses use the curses library instead of the termcap
1658 library
1659 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1660 --with-bugurl=URL Direct users to URL to report a bug
1661 --with-zlib include zlib support (auto/yes/no) default=auto
1662 --with-libiconv-prefix=DIR
1663 search for libiconv in DIR/include and DIR/lib
1664 --with-iconv-bin=PATH specify where to find the iconv program
1665 --with-system-readline use installed readline library
1666 --with-expat include expat support (auto/yes/no)
1667 --with-gnu-ld assume the C compiler uses GNU ld default=no
1668 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1669 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1670 --with-python[=PYTHON] include python support
1671 (auto/yes/no/<python-program>)
1672 --without-included-regex
1673 don't use included regex; this is the default on
1674 systems with version 2 of the GNU C library (use
1675 with caution on other system)
1676 --with-sysroot[=DIR] search for usr/lib et al within DIR
1677 --with-system-gdbinit=PATH
1678 automatically load a system-wide gdbinit file
1679 --with-tcl directory containing tcl configuration (tclConfig.sh)
1680 --with-tk directory containing tk configuration (tkConfig.sh)
1681 --with-x use the X Window System
1682
1683 Some influential environment variables:
1684 CC C compiler command
1685 CFLAGS C compiler flags
1686 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1687 nonstandard directory <lib dir>
1688 LIBS libraries to pass to the linker, e.g. -l<library>
1689 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1690 you have headers in a nonstandard directory <include dir>
1691 CPP C preprocessor
1692 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1693 the first program found out of: `bison -y', `byacc', `yacc'.
1694 YFLAGS The list of arguments that will be passed by default to $YACC.
1695 This script will default YFLAGS to the empty string to avoid a
1696 default value of `-d' given by some make applications.
1697 XMKMF Path to xmkmf, Makefile generator for X Window System
1698
1699 Use these variables to override the choices made by `configure' or to help
1700 it to find libraries and programs with nonstandard names/locations.
1701
1702 Report bugs to the package provider.
1703 _ACEOF
1704 ac_status=$?
1705 fi
1706
1707 if test "$ac_init_help" = "recursive"; then
1708 # If there are subdirs, report their specific --help.
1709 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1710 test -d "$ac_dir" ||
1711 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1712 continue
1713 ac_builddir=.
1714
1715 case "$ac_dir" in
1716 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *)
1718 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1719 # A ".." for each directory in $ac_dir_suffix.
1720 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1721 case $ac_top_builddir_sub in
1722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1724 esac ;;
1725 esac
1726 ac_abs_top_builddir=$ac_pwd
1727 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1728 # for backward compatibility:
1729 ac_top_builddir=$ac_top_build_prefix
1730
1731 case $srcdir in
1732 .) # We are building in place.
1733 ac_srcdir=.
1734 ac_top_srcdir=$ac_top_builddir_sub
1735 ac_abs_top_srcdir=$ac_pwd ;;
1736 [\\/]* | ?:[\\/]* ) # Absolute name.
1737 ac_srcdir=$srcdir$ac_dir_suffix;
1738 ac_top_srcdir=$srcdir
1739 ac_abs_top_srcdir=$srcdir ;;
1740 *) # Relative name.
1741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1742 ac_top_srcdir=$ac_top_build_prefix$srcdir
1743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1744 esac
1745 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746
1747 cd "$ac_dir" || { ac_status=$?; continue; }
1748 # Check for guested configure.
1749 if test -f "$ac_srcdir/configure.gnu"; then
1750 echo &&
1751 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1752 elif test -f "$ac_srcdir/configure"; then
1753 echo &&
1754 $SHELL "$ac_srcdir/configure" --help=recursive
1755 else
1756 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757 fi || ac_status=$?
1758 cd "$ac_pwd" || { ac_status=$?; break; }
1759 done
1760 fi
1761
1762 test -n "$ac_init_help" && exit $ac_status
1763 if $ac_init_version; then
1764 cat <<\_ACEOF
1765 configure
1766 generated by GNU Autoconf 2.64
1767
1768 Copyright (C) 2009 Free Software Foundation, Inc.
1769 This configure script is free software; the Free Software Foundation
1770 gives unlimited permission to copy, distribute and modify it.
1771 _ACEOF
1772 exit
1773 fi
1774
1775 ## ------------------------ ##
1776 ## Autoconf initialization. ##
1777 ## ------------------------ ##
1778
1779 # ac_fn_c_try_compile LINENO
1780 # --------------------------
1781 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_compile ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext
1786 if { { ac_try="$ac_compile"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_compile") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest.$ac_objext; then :
1805 ac_retval=0
1806 else
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=1
1811 fi
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813 return $ac_retval
1814
1815 } # ac_fn_c_try_compile
1816
1817 # ac_fn_c_try_cpp LINENO
1818 # ----------------------
1819 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_c_try_cpp ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_cpp conftest.$ac_ext"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } >/dev/null && {
1839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 }; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=1
1848 fi
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 return $ac_retval
1851
1852 } # ac_fn_c_try_cpp
1853
1854 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1855 # -------------------------------------------------------
1856 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1857 # the include files in INCLUDES and setting the cache variable VAR
1858 # accordingly.
1859 ac_fn_c_check_header_mongrel ()
1860 {
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1866 $as_echo_n "(cached) " >&6
1867 fi
1868 eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 else
1872 # Is the header compilable?
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1874 $as_echo_n "checking $2 usability... " >&6; }
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1877 $4
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881 ac_header_compiler=yes
1882 else
1883 ac_header_compiler=no
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1887 $as_echo "$ac_header_compiler" >&6; }
1888
1889 # Is the header present?
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1891 $as_echo_n "checking $2 presence... " >&6; }
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 #include <$2>
1895 _ACEOF
1896 if ac_fn_c_try_cpp "$LINENO"; then :
1897 ac_header_preproc=yes
1898 else
1899 ac_header_preproc=no
1900 fi
1901 rm -f conftest.err conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1903 $as_echo "$ac_header_preproc" >&6; }
1904
1905 # So? What about this header?
1906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1907 yes:no: )
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1909 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912 ;;
1913 no:yes:* )
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1915 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1917 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1919 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1921 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1924 ;;
1925 esac
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1929 $as_echo_n "(cached) " >&6
1930 else
1931 eval "$3=\$ac_header_compiler"
1932 fi
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 fi
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938
1939 } # ac_fn_c_check_header_mongrel
1940
1941 # ac_fn_c_try_run LINENO
1942 # ----------------------
1943 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1944 # that executables *can* be run.
1945 ac_fn_c_try_run ()
1946 {
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if { { ac_try="$ac_link"
1949 case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>&5
1956 ac_status=$?
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1959 { { case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_try") 2>&5
1966 ac_status=$?
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; }; }; then :
1969 ac_retval=0
1970 else
1971 $as_echo "$as_me: program exited with status $ac_status" >&5
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975 ac_retval=$ac_status
1976 fi
1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 return $ac_retval
1980
1981 } # ac_fn_c_try_run
1982
1983 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1984 # -------------------------------------------------------
1985 # Tests whether HEADER exists and can be compiled using the include files in
1986 # INCLUDES, setting the cache variable VAR accordingly.
1987 ac_fn_c_check_header_compile ()
1988 {
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1993 $as_echo_n "(cached) " >&6
1994 else
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1997 $4
1998 #include <$2>
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 eval "$3=yes"
2002 else
2003 eval "$3=no"
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 fi
2007 eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011
2012 } # ac_fn_c_check_header_compile
2013
2014 # ac_fn_c_try_link LINENO
2015 # -----------------------
2016 # Try to link conftest.$ac_ext, and return whether this succeeded.
2017 ac_fn_c_try_link ()
2018 {
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 rm -f conftest.$ac_objext conftest$ac_exeext
2021 if { { ac_try="$ac_link"
2022 case "(($ac_try" in
2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024 *) ac_try_echo=$ac_try;;
2025 esac
2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027 $as_echo "$ac_try_echo"; } >&5
2028 (eval "$ac_link") 2>conftest.err
2029 ac_status=$?
2030 if test -s conftest.err; then
2031 grep -v '^ *+' conftest.err >conftest.er1
2032 cat conftest.er1 >&5
2033 mv -f conftest.er1 conftest.err
2034 fi
2035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2036 test $ac_status = 0; } && {
2037 test -z "$ac_c_werror_flag" ||
2038 test ! -s conftest.err
2039 } && test -s conftest$ac_exeext && {
2040 test "$cross_compiling" = yes ||
2041 $as_test_x conftest$ac_exeext
2042 }; then :
2043 ac_retval=0
2044 else
2045 $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048 ac_retval=1
2049 fi
2050 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2051 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2052 # interfere with the next link command; also delete a directory that is
2053 # left behind by Apple's compiler. We do this before executing the actions.
2054 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056 return $ac_retval
2057
2058 } # ac_fn_c_try_link
2059
2060 # ac_fn_c_check_func LINENO FUNC VAR
2061 # ----------------------------------
2062 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2063 ac_fn_c_check_func ()
2064 {
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2075 #define $2 innocuous_$2
2076
2077 /* System header to define __stub macros and hopefully few prototypes,
2078 which can conflict with char $2 (); below.
2079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2080 <limits.h> exists even on freestanding compilers. */
2081
2082 #ifdef __STDC__
2083 # include <limits.h>
2084 #else
2085 # include <assert.h>
2086 #endif
2087
2088 #undef $2
2089
2090 /* Override any GCC internal prototype to avoid an error.
2091 Use char because int might match the return type of a GCC
2092 builtin and then its argument prototype would still apply. */
2093 #ifdef __cplusplus
2094 extern "C"
2095 #endif
2096 char $2 ();
2097 /* The GNU C library defines this for functions which it implements
2098 to always fail with ENOSYS. Some functions are actually named
2099 something starting with __ and the normal name is an alias. */
2100 #if defined __stub_$2 || defined __stub___$2
2101 choke me
2102 #endif
2103
2104 int
2105 main ()
2106 {
2107 return $2 ();
2108 ;
2109 return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_link "$LINENO"; then :
2113 eval "$3=yes"
2114 else
2115 eval "$3=no"
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext \
2118 conftest$ac_exeext conftest.$ac_ext
2119 fi
2120 eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2124
2125 } # ac_fn_c_check_func
2126
2127 # ac_fn_c_check_decl LINENO SYMBOL VAR
2128 # ------------------------------------
2129 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2130 ac_fn_c_check_decl ()
2131 {
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 as_decl_name=`echo $2|sed 's/ *(.*//'`
2134 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2136 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2137 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2138 $as_echo_n "(cached) " >&6
2139 else
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2142 $4
2143 int
2144 main ()
2145 {
2146 #ifndef $as_decl_name
2147 #ifdef __cplusplus
2148 (void) $as_decl_use;
2149 #else
2150 (void) $as_decl_name;
2151 #endif
2152 #endif
2153
2154 ;
2155 return 0;
2156 }
2157 _ACEOF
2158 if ac_fn_c_try_compile "$LINENO"; then :
2159 eval "$3=yes"
2160 else
2161 eval "$3=no"
2162 fi
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 fi
2165 eval ac_res=\$$3
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2169
2170 } # ac_fn_c_check_decl
2171
2172 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2173 # --------------------------------------------
2174 # Tries to find the compile-time value of EXPR in a program that includes
2175 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2176 # computed
2177 ac_fn_c_compute_int ()
2178 {
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 if test "$cross_compiling" = yes; then
2181 # Depending upon the size, compute the lo and hi bounds.
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 $4
2185 int
2186 main ()
2187 {
2188 static int test_array [1 - 2 * !(($2) >= 0)];
2189 test_array [0] = 0
2190
2191 ;
2192 return 0;
2193 }
2194 _ACEOF
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_lo=0 ac_mid=0
2197 while :; do
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 $4
2201 int
2202 main ()
2203 {
2204 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2205 test_array [0] = 0
2206
2207 ;
2208 return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_c_try_compile "$LINENO"; then :
2212 ac_hi=$ac_mid; break
2213 else
2214 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2215 if test $ac_lo -le $ac_mid; then
2216 ac_lo= ac_hi=
2217 break
2218 fi
2219 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2220 fi
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 done
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $4
2227 int
2228 main ()
2229 {
2230 static int test_array [1 - 2 * !(($2) < 0)];
2231 test_array [0] = 0
2232
2233 ;
2234 return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 ac_hi=-1 ac_mid=-1
2239 while :; do
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2242 $4
2243 int
2244 main ()
2245 {
2246 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2247 test_array [0] = 0
2248
2249 ;
2250 return 0;
2251 }
2252 _ACEOF
2253 if ac_fn_c_try_compile "$LINENO"; then :
2254 ac_lo=$ac_mid; break
2255 else
2256 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2257 if test $ac_mid -le $ac_hi; then
2258 ac_lo= ac_hi=
2259 break
2260 fi
2261 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2262 fi
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 done
2265 else
2266 ac_lo= ac_hi=
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 # Binary search between lo and hi bounds.
2272 while test "x$ac_lo" != "x$ac_hi"; do
2273 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2276 $4
2277 int
2278 main ()
2279 {
2280 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2281 test_array [0] = 0
2282
2283 ;
2284 return 0;
2285 }
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288 ac_hi=$ac_mid
2289 else
2290 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2291 fi
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 done
2294 case $ac_lo in #((
2295 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2296 '') ac_retval=1 ;;
2297 esac
2298 else
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2301 $4
2302 static long int longval () { return $2; }
2303 static unsigned long int ulongval () { return $2; }
2304 #include <stdio.h>
2305 #include <stdlib.h>
2306 int
2307 main ()
2308 {
2309
2310 FILE *f = fopen ("conftest.val", "w");
2311 if (! f)
2312 return 1;
2313 if (($2) < 0)
2314 {
2315 long int i = longval ();
2316 if (i != ($2))
2317 return 1;
2318 fprintf (f, "%ld", i);
2319 }
2320 else
2321 {
2322 unsigned long int i = ulongval ();
2323 if (i != ($2))
2324 return 1;
2325 fprintf (f, "%lu", i);
2326 }
2327 /* Do not output a trailing newline, as this causes \r\n confusion
2328 on some platforms. */
2329 return ferror (f) || fclose (f) != 0;
2330
2331 ;
2332 return 0;
2333 }
2334 _ACEOF
2335 if ac_fn_c_try_run "$LINENO"; then :
2336 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2337 else
2338 ac_retval=1
2339 fi
2340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2341 conftest.$ac_objext conftest.beam conftest.$ac_ext
2342 rm -f conftest.val
2343
2344 fi
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346 return $ac_retval
2347
2348 } # ac_fn_c_compute_int
2349
2350 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2351 # ----------------------------------------------------
2352 # Tries to find if the field MEMBER exists in type AGGR, after including
2353 # INCLUDES, setting cache variable VAR accordingly.
2354 ac_fn_c_check_member ()
2355 {
2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2358 $as_echo_n "checking for $2.$3... " >&6; }
2359 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2360 $as_echo_n "(cached) " >&6
2361 else
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2364 $5
2365 int
2366 main ()
2367 {
2368 static $2 ac_aggr;
2369 if (ac_aggr.$3)
2370 return 0;
2371 ;
2372 return 0;
2373 }
2374 _ACEOF
2375 if ac_fn_c_try_compile "$LINENO"; then :
2376 eval "$4=yes"
2377 else
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2380 $5
2381 int
2382 main ()
2383 {
2384 static $2 ac_aggr;
2385 if (sizeof ac_aggr.$3)
2386 return 0;
2387 ;
2388 return 0;
2389 }
2390 _ACEOF
2391 if ac_fn_c_try_compile "$LINENO"; then :
2392 eval "$4=yes"
2393 else
2394 eval "$4=no"
2395 fi
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 fi
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 fi
2400 eval ac_res=\$$4
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402 $as_echo "$ac_res" >&6; }
2403 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2404
2405 } # ac_fn_c_check_member
2406
2407 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2408 # -------------------------------------------
2409 # Tests whether TYPE exists after having included INCLUDES, setting cache
2410 # variable VAR accordingly.
2411 ac_fn_c_check_type ()
2412 {
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2415 $as_echo_n "checking for $2... " >&6; }
2416 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 eval "$3=no"
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2422 $4
2423 int
2424 main ()
2425 {
2426 if (sizeof ($2))
2427 return 0;
2428 ;
2429 return 0;
2430 }
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2435 $4
2436 int
2437 main ()
2438 {
2439 if (sizeof (($2)))
2440 return 0;
2441 ;
2442 return 0;
2443 }
2444 _ACEOF
2445 if ac_fn_c_try_compile "$LINENO"; then :
2446
2447 else
2448 eval "$3=yes"
2449 fi
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 fi
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 fi
2454 eval ac_res=\$$3
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2458
2459 } # ac_fn_c_check_type
2460 cat >config.log <<_ACEOF
2461 This file contains any messages produced by compilers while
2462 running configure, to aid debugging if configure makes a mistake.
2463
2464 It was created by $as_me, which was
2465 generated by GNU Autoconf 2.64. Invocation command line was
2466
2467 $ $0 $@
2468
2469 _ACEOF
2470 exec 5>>config.log
2471 {
2472 cat <<_ASUNAME
2473 ## --------- ##
2474 ## Platform. ##
2475 ## --------- ##
2476
2477 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2478 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2479 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2480 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2481 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2482
2483 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2484 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2485
2486 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2487 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2488 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2489 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2490 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2491 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2492 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2493
2494 _ASUNAME
2495
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 $as_echo "PATH: $as_dir"
2502 done
2503 IFS=$as_save_IFS
2504
2505 } >&5
2506
2507 cat >&5 <<_ACEOF
2508
2509
2510 ## ----------- ##
2511 ## Core tests. ##
2512 ## ----------- ##
2513
2514 _ACEOF
2515
2516
2517 # Keep a trace of the command line.
2518 # Strip out --no-create and --no-recursion so they do not pile up.
2519 # Strip out --silent because we don't want to record it for future runs.
2520 # Also quote any args containing shell meta-characters.
2521 # Make two passes to allow for proper duplicate-argument suppression.
2522 ac_configure_args=
2523 ac_configure_args0=
2524 ac_configure_args1=
2525 ac_must_keep_next=false
2526 for ac_pass in 1 2
2527 do
2528 for ac_arg
2529 do
2530 case $ac_arg in
2531 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2533 | -silent | --silent | --silen | --sile | --sil)
2534 continue ;;
2535 *\'*)
2536 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2537 esac
2538 case $ac_pass in
2539 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2540 2)
2541 as_fn_append ac_configure_args1 " '$ac_arg'"
2542 if test $ac_must_keep_next = true; then
2543 ac_must_keep_next=false # Got value, back to normal.
2544 else
2545 case $ac_arg in
2546 *=* | --config-cache | -C | -disable-* | --disable-* \
2547 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2548 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2549 | -with-* | --with-* | -without-* | --without-* | --x)
2550 case "$ac_configure_args0 " in
2551 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2552 esac
2553 ;;
2554 -* ) ac_must_keep_next=true ;;
2555 esac
2556 fi
2557 as_fn_append ac_configure_args " '$ac_arg'"
2558 ;;
2559 esac
2560 done
2561 done
2562 { ac_configure_args0=; unset ac_configure_args0;}
2563 { ac_configure_args1=; unset ac_configure_args1;}
2564
2565 # When interrupted or exit'd, cleanup temporary files, and complete
2566 # config.log. We remove comments because anyway the quotes in there
2567 # would cause problems or look ugly.
2568 # WARNING: Use '\'' to represent an apostrophe within the trap.
2569 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2570 trap 'exit_status=$?
2571 # Save into config.log some information that might help in debugging.
2572 {
2573 echo
2574
2575 cat <<\_ASBOX
2576 ## ---------------- ##
2577 ## Cache variables. ##
2578 ## ---------------- ##
2579 _ASBOX
2580 echo
2581 # The following way of writing the cache mishandles newlines in values,
2582 (
2583 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2584 eval ac_val=\$$ac_var
2585 case $ac_val in #(
2586 *${as_nl}*)
2587 case $ac_var in #(
2588 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2589 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2590 esac
2591 case $ac_var in #(
2592 _ | IFS | as_nl) ;; #(
2593 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2594 *) { eval $ac_var=; unset $ac_var;} ;;
2595 esac ;;
2596 esac
2597 done
2598 (set) 2>&1 |
2599 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2600 *${as_nl}ac_space=\ *)
2601 sed -n \
2602 "s/'\''/'\''\\\\'\'''\''/g;
2603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2604 ;; #(
2605 *)
2606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2607 ;;
2608 esac |
2609 sort
2610 )
2611 echo
2612
2613 cat <<\_ASBOX
2614 ## ----------------- ##
2615 ## Output variables. ##
2616 ## ----------------- ##
2617 _ASBOX
2618 echo
2619 for ac_var in $ac_subst_vars
2620 do
2621 eval ac_val=\$$ac_var
2622 case $ac_val in
2623 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2624 esac
2625 $as_echo "$ac_var='\''$ac_val'\''"
2626 done | sort
2627 echo
2628
2629 if test -n "$ac_subst_files"; then
2630 cat <<\_ASBOX
2631 ## ------------------- ##
2632 ## File substitutions. ##
2633 ## ------------------- ##
2634 _ASBOX
2635 echo
2636 for ac_var in $ac_subst_files
2637 do
2638 eval ac_val=\$$ac_var
2639 case $ac_val in
2640 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2641 esac
2642 $as_echo "$ac_var='\''$ac_val'\''"
2643 done | sort
2644 echo
2645 fi
2646
2647 if test -s confdefs.h; then
2648 cat <<\_ASBOX
2649 ## ----------- ##
2650 ## confdefs.h. ##
2651 ## ----------- ##
2652 _ASBOX
2653 echo
2654 cat confdefs.h
2655 echo
2656 fi
2657 test "$ac_signal" != 0 &&
2658 $as_echo "$as_me: caught signal $ac_signal"
2659 $as_echo "$as_me: exit $exit_status"
2660 } >&5
2661 rm -f core *.core core.conftest.* &&
2662 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2663 exit $exit_status
2664 ' 0
2665 for ac_signal in 1 2 13 15; do
2666 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2667 done
2668 ac_signal=0
2669
2670 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2671 rm -f -r conftest* confdefs.h
2672
2673 $as_echo "/* confdefs.h */" > confdefs.h
2674
2675 # Predefined preprocessor variables.
2676
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE_NAME "$PACKAGE_NAME"
2679 _ACEOF
2680
2681 cat >>confdefs.h <<_ACEOF
2682 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2683 _ACEOF
2684
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2687 _ACEOF
2688
2689 cat >>confdefs.h <<_ACEOF
2690 #define PACKAGE_STRING "$PACKAGE_STRING"
2691 _ACEOF
2692
2693 cat >>confdefs.h <<_ACEOF
2694 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2695 _ACEOF
2696
2697 cat >>confdefs.h <<_ACEOF
2698 #define PACKAGE_URL "$PACKAGE_URL"
2699 _ACEOF
2700
2701
2702 # Let the site file select an alternate cache file if it wants to.
2703 # Prefer an explicitly selected file to automatically selected ones.
2704 ac_site_file1=NONE
2705 ac_site_file2=NONE
2706 if test -n "$CONFIG_SITE"; then
2707 ac_site_file1=$CONFIG_SITE
2708 elif test "x$prefix" != xNONE; then
2709 ac_site_file1=$prefix/share/config.site
2710 ac_site_file2=$prefix/etc/config.site
2711 else
2712 ac_site_file1=$ac_default_prefix/share/config.site
2713 ac_site_file2=$ac_default_prefix/etc/config.site
2714 fi
2715 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2716 do
2717 test "x$ac_site_file" = xNONE && continue
2718 if test -r "$ac_site_file"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2720 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2721 sed 's/^/| /' "$ac_site_file" >&5
2722 . "$ac_site_file"
2723 fi
2724 done
2725
2726 if test -r "$cache_file"; then
2727 # Some versions of bash will fail to source /dev/null (special
2728 # files actually), so we avoid doing that.
2729 if test -f "$cache_file"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2731 $as_echo "$as_me: loading cache $cache_file" >&6;}
2732 case $cache_file in
2733 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2734 *) . "./$cache_file";;
2735 esac
2736 fi
2737 else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2739 $as_echo "$as_me: creating cache $cache_file" >&6;}
2740 >$cache_file
2741 fi
2742
2743 gl_header_list="$gl_header_list sys/mman.h"
2744 gl_func_list="$gl_func_list mprotect"
2745 gl_func_list="$gl_func_list memchr"
2746 gl_header_list="$gl_header_list stddef.h"
2747 gl_header_list="$gl_header_list stdint.h"
2748 gl_header_list="$gl_header_list wchar.h"
2749 gl_header_list="$gl_header_list string.h"
2750 # Check that the precious variables saved in the cache have kept the same
2751 # value.
2752 ac_cache_corrupted=false
2753 for ac_var in $ac_precious_vars; do
2754 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2755 eval ac_new_set=\$ac_env_${ac_var}_set
2756 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2757 eval ac_new_val=\$ac_env_${ac_var}_value
2758 case $ac_old_set,$ac_new_set in
2759 set,)
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2761 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2762 ac_cache_corrupted=: ;;
2763 ,set)
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2765 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2766 ac_cache_corrupted=: ;;
2767 ,);;
2768 *)
2769 if test "x$ac_old_val" != "x$ac_new_val"; then
2770 # differences in whitespace do not lead to failure.
2771 ac_old_val_w=`echo x $ac_old_val`
2772 ac_new_val_w=`echo x $ac_new_val`
2773 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2775 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2776 ac_cache_corrupted=:
2777 else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2779 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2780 eval $ac_var=\$ac_old_val
2781 fi
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2783 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2785 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2786 fi;;
2787 esac
2788 # Pass precious variables to config.status.
2789 if test "$ac_new_set" = set; then
2790 case $ac_new_val in
2791 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2792 *) ac_arg=$ac_var=$ac_new_val ;;
2793 esac
2794 case " $ac_configure_args " in
2795 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2796 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2797 esac
2798 fi
2799 done
2800 if $ac_cache_corrupted; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2804 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2805 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2806 fi
2807 ## -------------------- ##
2808 ## Main body of script. ##
2809 ## -------------------- ##
2810
2811 ac_ext=c
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816
2817
2818
2819
2820
2821 ac_config_headers="$ac_config_headers config.h:config.in"
2822
2823
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2825 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2826 # Check whether --enable-maintainer-mode was given.
2827 if test "${enable_maintainer_mode+set}" = set; then :
2828 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2829 else
2830 USE_MAINTAINER_MODE=no
2831 fi
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2834 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2835 if test $USE_MAINTAINER_MODE = yes; then
2836 MAINTAINER_MODE_TRUE=
2837 MAINTAINER_MODE_FALSE='#'
2838 else
2839 MAINTAINER_MODE_TRUE='#'
2840 MAINTAINER_MODE_FALSE=
2841 fi
2842
2843 MAINT=$MAINTAINER_MODE_TRUE
2844
2845
2846
2847 ac_ext=c
2848 ac_cpp='$CPP $CPPFLAGS'
2849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852 if test -n "$ac_tool_prefix"; then
2853 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2854 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if test "${ac_cv_prog_CC+set}" = set; then :
2858 $as_echo_n "(cached) " >&6
2859 else
2860 if test -n "$CC"; then
2861 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 break 2
2873 fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 CC=$ac_cv_prog_CC
2881 if test -n "$CC"; then
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2883 $as_echo "$CC" >&6; }
2884 else
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2887 fi
2888
2889
2890 fi
2891 if test -z "$ac_cv_prog_CC"; then
2892 ac_ct_CC=$CC
2893 # Extract the first word of "gcc", so it can be a program name with args.
2894 set dummy gcc; ac_word=$2
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 $as_echo_n "checking for $ac_word... " >&6; }
2897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 if test -n "$ac_ct_CC"; then
2901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910 ac_cv_prog_ac_ct_CC="gcc"
2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2913 fi
2914 done
2915 done
2916 IFS=$as_save_IFS
2917
2918 fi
2919 fi
2920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2921 if test -n "$ac_ct_CC"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2923 $as_echo "$ac_ct_CC" >&6; }
2924 else
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2927 fi
2928
2929 if test "x$ac_ct_CC" = x; then
2930 CC=""
2931 else
2932 case $cross_compiling:$ac_tool_warned in
2933 yes:)
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2936 ac_tool_warned=yes ;;
2937 esac
2938 CC=$ac_ct_CC
2939 fi
2940 else
2941 CC="$ac_cv_prog_CC"
2942 fi
2943
2944 if test -z "$CC"; then
2945 if test -n "$ac_tool_prefix"; then
2946 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2947 set dummy ${ac_tool_prefix}cc; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if test "${ac_cv_prog_CC+set}" = set; then :
2951 $as_echo_n "(cached) " >&6
2952 else
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963 ac_cv_prog_CC="${ac_tool_prefix}cc"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2970
2971 fi
2972 fi
2973 CC=$ac_cv_prog_CC
2974 if test -n "$CC"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976 $as_echo "$CC" >&6; }
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 fi
2981
2982
2983 fi
2984 fi
2985 if test -z "$CC"; then
2986 # Extract the first word of "cc", so it can be a program name with args.
2987 set dummy cc; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if test "${ac_cv_prog_CC+set}" = set; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 ac_prog_rejected=no
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3005 ac_prog_rejected=yes
3006 continue
3007 fi
3008 ac_cv_prog_CC="cc"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3011 fi
3012 done
3013 done
3014 IFS=$as_save_IFS
3015
3016 if test $ac_prog_rejected = yes; then
3017 # We found a bogon in the path, so make sure we never use it.
3018 set dummy $ac_cv_prog_CC
3019 shift
3020 if test $# != 0; then
3021 # We chose a different compiler from the bogus one.
3022 # However, it has the same basename, so the bogon will be chosen
3023 # first if we set CC to just the basename; use the full file name.
3024 shift
3025 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3026 fi
3027 fi
3028 fi
3029 fi
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3034 else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 fi
3038
3039
3040 fi
3041 if test -z "$CC"; then
3042 if test -n "$ac_tool_prefix"; then
3043 for ac_prog in cl.exe
3044 do
3045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_CC+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 CC=$ac_cv_prog_CC
3073 if test -n "$CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075 $as_echo "$CC" >&6; }
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081
3082 test -n "$CC" && break
3083 done
3084 fi
3085 if test -z "$CC"; then
3086 ac_ct_CC=$CC
3087 for ac_prog in cl.exe
3088 do
3089 # Extract the first word of "$ac_prog", so it can be a program name with args.
3090 set dummy $ac_prog; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 if test -n "$ac_ct_CC"; then
3097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_ac_ct_CC="$ac_prog"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110 done
3111 done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3117 if test -n "$ac_ct_CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3119 $as_echo "$ac_ct_CC" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126 test -n "$ac_ct_CC" && break
3127 done
3128
3129 if test "x$ac_ct_CC" = x; then
3130 CC=""
3131 else
3132 case $cross_compiling:$ac_tool_warned in
3133 yes:)
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136 ac_tool_warned=yes ;;
3137 esac
3138 CC=$ac_ct_CC
3139 fi
3140 fi
3141
3142 fi
3143
3144
3145 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147 as_fn_error "no acceptable C compiler found in \$PATH
3148 See \`config.log' for more details." "$LINENO" 5; }
3149
3150 # Provide some information about the compiler.
3151 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3152 set X $ac_compile
3153 ac_compiler=$2
3154 for ac_option in --version -v -V -qversion; do
3155 { { ac_try="$ac_compiler $ac_option >&5"
3156 case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161 $as_echo "$ac_try_echo"; } >&5
3162 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3163 ac_status=$?
3164 if test -s conftest.err; then
3165 sed '10a\
3166 ... rest of stderr output deleted ...
3167 10q' conftest.err >conftest.er1
3168 cat conftest.er1 >&5
3169 rm -f conftest.er1 conftest.err
3170 fi
3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172 test $ac_status = 0; }
3173 done
3174
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3177
3178 int
3179 main ()
3180 {
3181
3182 ;
3183 return 0;
3184 }
3185 _ACEOF
3186 ac_clean_files_save=$ac_clean_files
3187 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3188 # Try to create an executable without -o first, disregard a.out.
3189 # It will help us diagnose broken compilers, and finding out an intuition
3190 # of exeext.
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3192 $as_echo_n "checking for C compiler default output file name... " >&6; }
3193 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3194
3195 # The possible output files:
3196 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3197
3198 ac_rmfiles=
3199 for ac_file in $ac_files
3200 do
3201 case $ac_file in
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3203 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3204 esac
3205 done
3206 rm -f $ac_rmfiles
3207
3208 if { { ac_try="$ac_link_default"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_link_default") 2>&5
3216 ac_status=$?
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; then :
3219 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3220 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3221 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3222 # so that the user can short-circuit this test for compilers unknown to
3223 # Autoconf.
3224 for ac_file in $ac_files ''
3225 do
3226 test -f "$ac_file" || continue
3227 case $ac_file in
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3229 ;;
3230 [ab].out )
3231 # We found the default executable, but exeext='' is most
3232 # certainly right.
3233 break;;
3234 *.* )
3235 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3236 then :; else
3237 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3238 fi
3239 # We set ac_cv_exeext here because the later test for it is not
3240 # safe: cross compilers may not add the suffix if given an `-o'
3241 # argument, so we may need to know it at that point already.
3242 # Even if this section looks crufty: it has the advantage of
3243 # actually working.
3244 break;;
3245 * )
3246 break;;
3247 esac
3248 done
3249 test "$ac_cv_exeext" = no && ac_cv_exeext=
3250
3251 else
3252 ac_file=''
3253 fi
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3255 $as_echo "$ac_file" >&6; }
3256 if test -z "$ac_file"; then :
3257 $as_echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 { as_fn_set_status 77
3263 as_fn_error "C compiler cannot create executables
3264 See \`config.log' for more details." "$LINENO" 5; }; }
3265 fi
3266 ac_exeext=$ac_cv_exeext
3267
3268 # Check that the compiler produces executables we can run. If not, either
3269 # the compiler is broken, or we cross compile.
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3271 $as_echo_n "checking whether the C compiler works... " >&6; }
3272 # If not cross compiling, check that we can run a simple program.
3273 if test "$cross_compiling" != yes; then
3274 if { ac_try='./$ac_file'
3275 { { case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_try") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; }; then
3285 cross_compiling=no
3286 else
3287 if test "$cross_compiling" = maybe; then
3288 cross_compiling=yes
3289 else
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error "cannot run C compiled programs.
3293 If you meant to cross compile, use \`--host'.
3294 See \`config.log' for more details." "$LINENO" 5; }
3295 fi
3296 fi
3297 fi
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3300
3301 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3302 ac_clean_files=$ac_clean_files_save
3303 # Check that the compiler produces executables we can run. If not, either
3304 # the compiler is broken, or we cross compile.
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3306 $as_echo_n "checking whether we are cross compiling... " >&6; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3308 $as_echo "$cross_compiling" >&6; }
3309
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3311 $as_echo_n "checking for suffix of executables... " >&6; }
3312 if { { ac_try="$ac_link"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 $as_echo "$ac_try_echo"; } >&5
3319 (eval "$ac_link") 2>&5
3320 ac_status=$?
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }; then :
3323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3324 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3325 # work properly (i.e., refer to `conftest.exe'), while it won't with
3326 # `rm'.
3327 for ac_file in conftest.exe conftest conftest.*; do
3328 test -f "$ac_file" || continue
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 break;;
3333 * ) break;;
3334 esac
3335 done
3336 else
3337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 as_fn_error "cannot compute suffix of executables: cannot compile and link
3340 See \`config.log' for more details." "$LINENO" 5; }
3341 fi
3342 rm -f conftest$ac_cv_exeext
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3344 $as_echo "$ac_cv_exeext" >&6; }
3345
3346 rm -f conftest.$ac_ext
3347 EXEEXT=$ac_cv_exeext
3348 ac_exeext=$EXEEXT
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3350 $as_echo_n "checking for suffix of object files... " >&6; }
3351 if test "${ac_cv_objext+set}" = set; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3356
3357 int
3358 main ()
3359 {
3360
3361 ;
3362 return 0;
3363 }
3364 _ACEOF
3365 rm -f conftest.o conftest.obj
3366 if { { ac_try="$ac_compile"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372 $as_echo "$ac_try_echo"; } >&5
3373 (eval "$ac_compile") 2>&5
3374 ac_status=$?
3375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376 test $ac_status = 0; }; then :
3377 for ac_file in conftest.o conftest.obj conftest.*; do
3378 test -f "$ac_file" || continue;
3379 case $ac_file in
3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3382 break;;
3383 esac
3384 done
3385 else
3386 $as_echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error "cannot compute suffix of object files: cannot compile
3392 See \`config.log' for more details." "$LINENO" 5; }
3393 fi
3394 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3395 fi
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3397 $as_echo "$ac_cv_objext" >&6; }
3398 OBJEXT=$ac_cv_objext
3399 ac_objext=$OBJEXT
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3401 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3402 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3407
3408 int
3409 main ()
3410 {
3411 #ifndef __GNUC__
3412 choke me
3413 #endif
3414
3415 ;
3416 return 0;
3417 }
3418 _ACEOF
3419 if ac_fn_c_try_compile "$LINENO"; then :
3420 ac_compiler_gnu=yes
3421 else
3422 ac_compiler_gnu=no
3423 fi
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3426
3427 fi
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3429 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3430 if test $ac_compiler_gnu = yes; then
3431 GCC=yes
3432 else
3433 GCC=
3434 fi
3435 ac_test_CFLAGS=${CFLAGS+set}
3436 ac_save_CFLAGS=$CFLAGS
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3438 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3439 if test "${ac_cv_prog_cc_g+set}" = set; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 ac_save_c_werror_flag=$ac_c_werror_flag
3443 ac_c_werror_flag=yes
3444 ac_cv_prog_cc_g=no
3445 CFLAGS="-g"
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448
3449 int
3450 main ()
3451 {
3452
3453 ;
3454 return 0;
3455 }
3456 _ACEOF
3457 if ac_fn_c_try_compile "$LINENO"; then :
3458 ac_cv_prog_cc_g=yes
3459 else
3460 CFLAGS=""
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3463
3464 int
3465 main ()
3466 {
3467
3468 ;
3469 return 0;
3470 }
3471 _ACEOF
3472 if ac_fn_c_try_compile "$LINENO"; then :
3473
3474 else
3475 ac_c_werror_flag=$ac_save_c_werror_flag
3476 CFLAGS="-g"
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479
3480 int
3481 main ()
3482 {
3483
3484 ;
3485 return 0;
3486 }
3487 _ACEOF
3488 if ac_fn_c_try_compile "$LINENO"; then :
3489 ac_cv_prog_cc_g=yes
3490 fi
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 fi
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 fi
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3497 fi
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3499 $as_echo "$ac_cv_prog_cc_g" >&6; }
3500 if test "$ac_test_CFLAGS" = set; then
3501 CFLAGS=$ac_save_CFLAGS
3502 elif test $ac_cv_prog_cc_g = yes; then
3503 if test "$GCC" = yes; then
3504 CFLAGS="-g -O2"
3505 else
3506 CFLAGS="-g"
3507 fi
3508 else
3509 if test "$GCC" = yes; then
3510 CFLAGS="-O2"
3511 else
3512 CFLAGS=
3513 fi
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3516 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3517 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 ac_cv_prog_cc_c89=no
3521 ac_save_CC=$CC
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524 #include <stdarg.h>
3525 #include <stdio.h>
3526 #include <sys/types.h>
3527 #include <sys/stat.h>
3528 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3529 struct buf { int x; };
3530 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3531 static char *e (p, i)
3532 char **p;
3533 int i;
3534 {
3535 return p[i];
3536 }
3537 static char *f (char * (*g) (char **, int), char **p, ...)
3538 {
3539 char *s;
3540 va_list v;
3541 va_start (v,p);
3542 s = g (p, va_arg (v,int));
3543 va_end (v);
3544 return s;
3545 }
3546
3547 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3548 function prototypes and stuff, but not '\xHH' hex character constants.
3549 These don't provoke an error unfortunately, instead are silently treated
3550 as 'x'. The following induces an error, until -std is added to get
3551 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3552 array size at least. It's necessary to write '\x00'==0 to get something
3553 that's true only with -std. */
3554 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3555
3556 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3557 inside strings and character constants. */
3558 #define FOO(x) 'x'
3559 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3560
3561 int test (int i, double x);
3562 struct s1 {int (*f) (int a);};
3563 struct s2 {int (*f) (double a);};
3564 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3565 int argc;
3566 char **argv;
3567 int
3568 main ()
3569 {
3570 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3576 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3577 do
3578 CC="$ac_save_CC $ac_arg"
3579 if ac_fn_c_try_compile "$LINENO"; then :
3580 ac_cv_prog_cc_c89=$ac_arg
3581 fi
3582 rm -f core conftest.err conftest.$ac_objext
3583 test "x$ac_cv_prog_cc_c89" != "xno" && break
3584 done
3585 rm -f conftest.$ac_ext
3586 CC=$ac_save_CC
3587
3588 fi
3589 # AC_CACHE_VAL
3590 case "x$ac_cv_prog_cc_c89" in
3591 x)
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3593 $as_echo "none needed" >&6; } ;;
3594 xno)
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3596 $as_echo "unsupported" >&6; } ;;
3597 *)
3598 CC="$CC $ac_cv_prog_cc_c89"
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3600 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3601 esac
3602 if test "x$ac_cv_prog_cc_c89" != xno; then :
3603
3604 fi
3605
3606 ac_ext=c
3607 ac_cpp='$CPP $CPPFLAGS'
3608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611
3612 ac_aux_dir=
3613 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3614 for ac_t in install-sh install.sh shtool; do
3615 if test -f "$ac_dir/$ac_t"; then
3616 ac_aux_dir=$ac_dir
3617 ac_install_sh="$ac_aux_dir/$ac_t -c"
3618 break 2
3619 fi
3620 done
3621 done
3622 if test -z "$ac_aux_dir"; then
3623 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3624 fi
3625
3626 # These three variables are undocumented and unsupported,
3627 # and are intended to be withdrawn in a future Autoconf release.
3628 # They can cause serious problems if a builder's source tree is in a directory
3629 # whose full name contains unusual characters.
3630 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3631 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3632 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3633
3634
3635 # Make sure we can run config.sub.
3636 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3637 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3638
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3640 $as_echo_n "checking build system type... " >&6; }
3641 if test "${ac_cv_build+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 ac_build_alias=$build_alias
3645 test "x$ac_build_alias" = x &&
3646 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3647 test "x$ac_build_alias" = x &&
3648 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3649 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3650 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3651
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3654 $as_echo "$ac_cv_build" >&6; }
3655 case $ac_cv_build in
3656 *-*-*) ;;
3657 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3658 esac
3659 build=$ac_cv_build
3660 ac_save_IFS=$IFS; IFS='-'
3661 set x $ac_cv_build
3662 shift
3663 build_cpu=$1
3664 build_vendor=$2
3665 shift; shift
3666 # Remember, the first character of IFS is used to create $*,
3667 # except with old shells:
3668 build_os=$*
3669 IFS=$ac_save_IFS
3670 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3671
3672
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3674 $as_echo_n "checking host system type... " >&6; }
3675 if test "${ac_cv_host+set}" = set; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 if test "x$host_alias" = x; then
3679 ac_cv_host=$ac_cv_build
3680 else
3681 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3682 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3683 fi
3684
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3687 $as_echo "$ac_cv_host" >&6; }
3688 case $ac_cv_host in
3689 *-*-*) ;;
3690 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3691 esac
3692 host=$ac_cv_host
3693 ac_save_IFS=$IFS; IFS='-'
3694 set x $ac_cv_host
3695 shift
3696 host_cpu=$1
3697 host_vendor=$2
3698 shift; shift
3699 # Remember, the first character of IFS is used to create $*,
3700 # except with old shells:
3701 host_os=$*
3702 IFS=$ac_save_IFS
3703 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3704
3705
3706
3707 ac_ext=c
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3713 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3714 # On Suns, sometimes $CPP names a directory.
3715 if test -n "$CPP" && test -d "$CPP"; then
3716 CPP=
3717 fi
3718 if test -z "$CPP"; then
3719 if test "${ac_cv_prog_CPP+set}" = set; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 # Double quotes because CPP needs to be expanded
3723 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3724 do
3725 ac_preproc_ok=false
3726 for ac_c_preproc_warn_flag in '' yes
3727 do
3728 # Use a header file that comes with gcc, so configuring glibc
3729 # with a fresh cross-compiler works.
3730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3731 # <limits.h> exists even on freestanding compilers.
3732 # On the NeXT, cc -E runs the code through the compiler's parser,
3733 # not just through cpp. "Syntax error" is here to catch this case.
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3736 #ifdef __STDC__
3737 # include <limits.h>
3738 #else
3739 # include <assert.h>
3740 #endif
3741 Syntax error
3742 _ACEOF
3743 if ac_fn_c_try_cpp "$LINENO"; then :
3744
3745 else
3746 # Broken: fails on valid input.
3747 continue
3748 fi
3749 rm -f conftest.err conftest.$ac_ext
3750
3751 # OK, works on sane cases. Now check whether nonexistent headers
3752 # can be detected and how.
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755 #include <ac_nonexistent.h>
3756 _ACEOF
3757 if ac_fn_c_try_cpp "$LINENO"; then :
3758 # Broken: success on invalid input.
3759 continue
3760 else
3761 # Passes both tests.
3762 ac_preproc_ok=:
3763 break
3764 fi
3765 rm -f conftest.err conftest.$ac_ext
3766
3767 done
3768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3769 rm -f conftest.err conftest.$ac_ext
3770 if $ac_preproc_ok; then :
3771 break
3772 fi
3773
3774 done
3775 ac_cv_prog_CPP=$CPP
3776
3777 fi
3778 CPP=$ac_cv_prog_CPP
3779 else
3780 ac_cv_prog_CPP=$CPP
3781 fi
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3783 $as_echo "$CPP" >&6; }
3784 ac_preproc_ok=false
3785 for ac_c_preproc_warn_flag in '' yes
3786 do
3787 # Use a header file that comes with gcc, so configuring glibc
3788 # with a fresh cross-compiler works.
3789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790 # <limits.h> exists even on freestanding compilers.
3791 # On the NeXT, cc -E runs the code through the compiler's parser,
3792 # not just through cpp. "Syntax error" is here to catch this case.
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795 #ifdef __STDC__
3796 # include <limits.h>
3797 #else
3798 # include <assert.h>
3799 #endif
3800 Syntax error
3801 _ACEOF
3802 if ac_fn_c_try_cpp "$LINENO"; then :
3803
3804 else
3805 # Broken: fails on valid input.
3806 continue
3807 fi
3808 rm -f conftest.err conftest.$ac_ext
3809
3810 # OK, works on sane cases. Now check whether nonexistent headers
3811 # can be detected and how.
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814 #include <ac_nonexistent.h>
3815 _ACEOF
3816 if ac_fn_c_try_cpp "$LINENO"; then :
3817 # Broken: success on invalid input.
3818 continue
3819 else
3820 # Passes both tests.
3821 ac_preproc_ok=:
3822 break
3823 fi
3824 rm -f conftest.err conftest.$ac_ext
3825
3826 done
3827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3828 rm -f conftest.err conftest.$ac_ext
3829 if $ac_preproc_ok; then :
3830
3831 else
3832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3835 See \`config.log' for more details." "$LINENO" 5; }
3836 fi
3837
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
3844
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3846 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3847 if test "${ac_cv_path_GREP+set}" = set; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 if test -z "$GREP"; then
3851 ac_path_GREP_found=false
3852 # Loop through the user's path and test for each of PROGNAME-LIST
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3855 do
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_prog in grep ggrep; do
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3861 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3862 # Check for GNU ac_path_GREP and select it if it is found.
3863 # Check for GNU $ac_path_GREP
3864 case `"$ac_path_GREP" --version 2>&1` in
3865 *GNU*)
3866 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3867 *)
3868 ac_count=0
3869 $as_echo_n 0123456789 >"conftest.in"
3870 while :
3871 do
3872 cat "conftest.in" "conftest.in" >"conftest.tmp"
3873 mv "conftest.tmp" "conftest.in"
3874 cp "conftest.in" "conftest.nl"
3875 $as_echo 'GREP' >> "conftest.nl"
3876 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3877 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3878 as_fn_arith $ac_count + 1 && ac_count=$as_val
3879 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3880 # Best one so far, save it but keep looking for a better one
3881 ac_cv_path_GREP="$ac_path_GREP"
3882 ac_path_GREP_max=$ac_count
3883 fi
3884 # 10*(2^10) chars as input seems more than enough
3885 test $ac_count -gt 10 && break
3886 done
3887 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3888 esac
3889
3890 $ac_path_GREP_found && break 3
3891 done
3892 done
3893 done
3894 IFS=$as_save_IFS
3895 if test -z "$ac_cv_path_GREP"; then
3896 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3897 fi
3898 else
3899 ac_cv_path_GREP=$GREP
3900 fi
3901
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3904 $as_echo "$ac_cv_path_GREP" >&6; }
3905 GREP="$ac_cv_path_GREP"
3906
3907
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3909 $as_echo_n "checking for egrep... " >&6; }
3910 if test "${ac_cv_path_EGREP+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3914 then ac_cv_path_EGREP="$GREP -E"
3915 else
3916 if test -z "$EGREP"; then
3917 ac_path_EGREP_found=false
3918 # Loop through the user's path and test for each of PROGNAME-LIST
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3921 do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_prog in egrep; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3927 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3928 # Check for GNU ac_path_EGREP and select it if it is found.
3929 # Check for GNU $ac_path_EGREP
3930 case `"$ac_path_EGREP" --version 2>&1` in
3931 *GNU*)
3932 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3933 *)
3934 ac_count=0
3935 $as_echo_n 0123456789 >"conftest.in"
3936 while :
3937 do
3938 cat "conftest.in" "conftest.in" >"conftest.tmp"
3939 mv "conftest.tmp" "conftest.in"
3940 cp "conftest.in" "conftest.nl"
3941 $as_echo 'EGREP' >> "conftest.nl"
3942 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3944 as_fn_arith $ac_count + 1 && ac_count=$as_val
3945 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3946 # Best one so far, save it but keep looking for a better one
3947 ac_cv_path_EGREP="$ac_path_EGREP"
3948 ac_path_EGREP_max=$ac_count
3949 fi
3950 # 10*(2^10) chars as input seems more than enough
3951 test $ac_count -gt 10 && break
3952 done
3953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3954 esac
3955
3956 $ac_path_EGREP_found && break 3
3957 done
3958 done
3959 done
3960 IFS=$as_save_IFS
3961 if test -z "$ac_cv_path_EGREP"; then
3962 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3963 fi
3964 else
3965 ac_cv_path_EGREP=$EGREP
3966 fi
3967
3968 fi
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3971 $as_echo "$ac_cv_path_EGREP" >&6; }
3972 EGREP="$ac_cv_path_EGREP"
3973
3974
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3976 $as_echo_n "checking for ANSI C header files... " >&6; }
3977 if test "${ac_cv_header_stdc+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3982 #include <stdlib.h>
3983 #include <stdarg.h>
3984 #include <string.h>
3985 #include <float.h>
3986
3987 int
3988 main ()
3989 {
3990
3991 ;
3992 return 0;
3993 }
3994 _ACEOF
3995 if ac_fn_c_try_compile "$LINENO"; then :
3996 ac_cv_header_stdc=yes
3997 else
3998 ac_cv_header_stdc=no
3999 fi
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001
4002 if test $ac_cv_header_stdc = yes; then
4003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006 #include <string.h>
4007
4008 _ACEOF
4009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010 $EGREP "memchr" >/dev/null 2>&1; then :
4011
4012 else
4013 ac_cv_header_stdc=no
4014 fi
4015 rm -f conftest*
4016
4017 fi
4018
4019 if test $ac_cv_header_stdc = yes; then
4020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <stdlib.h>
4024
4025 _ACEOF
4026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4027 $EGREP "free" >/dev/null 2>&1; then :
4028
4029 else
4030 ac_cv_header_stdc=no
4031 fi
4032 rm -f conftest*
4033
4034 fi
4035
4036 if test $ac_cv_header_stdc = yes; then
4037 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4038 if test "$cross_compiling" = yes; then :
4039 :
4040 else
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043 #include <ctype.h>
4044 #include <stdlib.h>
4045 #if ((' ' & 0x0FF) == 0x020)
4046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4048 #else
4049 # define ISLOWER(c) \
4050 (('a' <= (c) && (c) <= 'i') \
4051 || ('j' <= (c) && (c) <= 'r') \
4052 || ('s' <= (c) && (c) <= 'z'))
4053 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4054 #endif
4055
4056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4057 int
4058 main ()
4059 {
4060 int i;
4061 for (i = 0; i < 256; i++)
4062 if (XOR (islower (i), ISLOWER (i))
4063 || toupper (i) != TOUPPER (i))
4064 return 2;
4065 return 0;
4066 }
4067 _ACEOF
4068 if ac_fn_c_try_run "$LINENO"; then :
4069
4070 else
4071 ac_cv_header_stdc=no
4072 fi
4073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4074 conftest.$ac_objext conftest.beam conftest.$ac_ext
4075 fi
4076
4077 fi
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4080 $as_echo "$ac_cv_header_stdc" >&6; }
4081 if test $ac_cv_header_stdc = yes; then
4082
4083 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4084
4085 fi
4086
4087 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4088 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4089 inttypes.h stdint.h unistd.h
4090 do :
4091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4092 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4093 "
4094 eval as_val=\$$as_ac_Header
4095 if test "x$as_val" = x""yes; then :
4096 cat >>confdefs.h <<_ACEOF
4097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4098 _ACEOF
4099
4100 fi
4101
4102 done
4103
4104
4105
4106
4107
4108 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4109 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4110 MINIX=yes
4111 else
4112 MINIX=
4113 fi
4114
4115
4116 if test "$MINIX" = yes; then
4117
4118 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4119
4120
4121 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4122
4123
4124 $as_echo "#define _MINIX 1" >>confdefs.h
4125
4126 fi
4127
4128 case "$host_os" in
4129 hpux*)
4130
4131 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4132
4133 ;;
4134 esac
4135
4136
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4138 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4139 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144
4145 # define __EXTENSIONS__ 1
4146 $ac_includes_default
4147 int
4148 main ()
4149 {
4150
4151 ;
4152 return 0;
4153 }
4154 _ACEOF
4155 if ac_fn_c_try_compile "$LINENO"; then :
4156 ac_cv_safe_to_define___extensions__=yes
4157 else
4158 ac_cv_safe_to_define___extensions__=no
4159 fi
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4163 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4164 test $ac_cv_safe_to_define___extensions__ = yes &&
4165 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4166
4167 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4168
4169 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4170
4171 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4172
4173 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4174
4175
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 if test -n "$RANLIB"; then
4185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4189 do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 break 2
4197 fi
4198 done
4199 done
4200 IFS=$as_save_IFS
4201
4202 fi
4203 fi
4204 RANLIB=$ac_cv_prog_RANLIB
4205 if test -n "$RANLIB"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4207 $as_echo "$RANLIB" >&6; }
4208 else
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4211 fi
4212
4213
4214 fi
4215 if test -z "$ac_cv_prog_RANLIB"; then
4216 ac_ct_RANLIB=$RANLIB
4217 # Extract the first word of "ranlib", so it can be a program name with args.
4218 set dummy ranlib; ac_word=$2
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220 $as_echo_n "checking for $ac_word... " >&6; }
4221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if test -n "$ac_ct_RANLIB"; then
4225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4229 do
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234 ac_cv_prog_ac_ct_RANLIB="ranlib"
4235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 break 2
4237 fi
4238 done
4239 done
4240 IFS=$as_save_IFS
4241
4242 fi
4243 fi
4244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4245 if test -n "$ac_ct_RANLIB"; then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4247 $as_echo "$ac_ct_RANLIB" >&6; }
4248 else
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 $as_echo "no" >&6; }
4251 fi
4252
4253 if test "x$ac_ct_RANLIB" = x; then
4254 RANLIB=":"
4255 else
4256 case $cross_compiling:$ac_tool_warned in
4257 yes:)
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4260 ac_tool_warned=yes ;;
4261 esac
4262 RANLIB=$ac_ct_RANLIB
4263 fi
4264 else
4265 RANLIB="$ac_cv_prog_RANLIB"
4266 fi
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276 # Code from module arg-nonnull:
4277 # Code from module c++defs:
4278 # Code from module extensions:
4279
4280 # Code from module include_next:
4281 # Code from module memchr:
4282 # Code from module memmem:
4283 # Code from module memmem-simple:
4284 # Code from module multiarch:
4285 # Code from module stddef:
4286 # Code from module stdint:
4287 # Code from module string:
4288 # Code from module warn-on-use:
4289 # Code from module wchar:
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4292 $as_echo_n "checking target system type... " >&6; }
4293 if test "${ac_cv_target+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if test "x$target_alias" = x; then
4297 ac_cv_target=$ac_cv_host
4298 else
4299 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4300 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4301 fi
4302
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4305 $as_echo "$ac_cv_target" >&6; }
4306 case $ac_cv_target in
4307 *-*-*) ;;
4308 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4309 esac
4310 target=$ac_cv_target
4311 ac_save_IFS=$IFS; IFS='-'
4312 set x $ac_cv_target
4313 shift
4314 target_cpu=$1
4315 target_vendor=$2
4316 shift; shift
4317 # Remember, the first character of IFS is used to create $*,
4318 # except with old shells:
4319 target_os=$*
4320 IFS=$ac_save_IFS
4321 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4322
4323
4324 # The aliases save the names the user supplied, while $host etc.
4325 # will get canonicalized.
4326 test -n "$target_alias" &&
4327 test "$program_prefix$program_suffix$program_transform_name" = \
4328 NONENONEs,x,x, &&
4329 program_prefix=${target_alias}-
4330
4331 # The tests for host and target for $enable_largefile require
4332 # canonical names.
4333
4334
4335
4336 # As the $enable_largefile decision depends on --enable-plugins we must set it
4337 # even in directories otherwise not depending on the $plugins option.
4338
4339
4340 # Check whether --enable-plugins was given.
4341 if test "${enable_plugins+set}" = set; then :
4342 enableval=$enable_plugins; case "${enableval}" in
4343 yes | "") plugins=yes ;;
4344 no) plugins=no ;;
4345 *) plugins=yes ;;
4346 esac
4347 else
4348 plugins=no
4349 fi
4350
4351
4352
4353 case "${host}" in
4354 sparc-*-solaris*|i[3-7]86-*-solaris*)
4355 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4356 # are mutually exclusive; and without procfs support, the bfd/ elf module
4357 # cannot provide certain routines such as elfcore_write_prpsinfo
4358 # or elfcore_write_prstatus. So unless the user explicitly requested
4359 # large-file support through the --enable-largefile switch, disable
4360 # large-file support in favor of procfs support.
4361 test "${target}" = "${host}" -a "x$plugins" = xno \
4362 && : ${enable_largefile="no"}
4363 ;;
4364 esac
4365
4366 # Check whether --enable-largefile was given.
4367 if test "${enable_largefile+set}" = set; then :
4368 enableval=$enable_largefile;
4369 fi
4370
4371 if test "$enable_largefile" != no; then
4372
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4374 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4375 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 ac_cv_sys_largefile_CC=no
4379 if test "$GCC" != yes; then
4380 ac_save_CC=$CC
4381 while :; do
4382 # IRIX 6.2 and later do not support large files by default,
4383 # so use the C compiler's -n32 option if that helps.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 #include <sys/types.h>
4387 /* Check that off_t can represent 2**63 - 1 correctly.
4388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4389 since some C++ compilers masquerading as C compilers
4390 incorrectly reject 9223372036854775807. */
4391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4393 && LARGE_OFF_T % 2147483647 == 1)
4394 ? 1 : -1];
4395 int
4396 main ()
4397 {
4398
4399 ;
4400 return 0;
4401 }
4402 _ACEOF
4403 if ac_fn_c_try_compile "$LINENO"; then :
4404 break
4405 fi
4406 rm -f core conftest.err conftest.$ac_objext
4407 CC="$CC -n32"
4408 if ac_fn_c_try_compile "$LINENO"; then :
4409 ac_cv_sys_largefile_CC=' -n32'; break
4410 fi
4411 rm -f core conftest.err conftest.$ac_objext
4412 break
4413 done
4414 CC=$ac_save_CC
4415 rm -f conftest.$ac_ext
4416 fi
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4419 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4420 if test "$ac_cv_sys_largefile_CC" != no; then
4421 CC=$CC$ac_cv_sys_largefile_CC
4422 fi
4423
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4425 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4426 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 while :; do
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4432 #include <sys/types.h>
4433 /* Check that off_t can represent 2**63 - 1 correctly.
4434 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4435 since some C++ compilers masquerading as C compilers
4436 incorrectly reject 9223372036854775807. */
4437 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4438 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4439 && LARGE_OFF_T % 2147483647 == 1)
4440 ? 1 : -1];
4441 int
4442 main ()
4443 {
4444
4445 ;
4446 return 0;
4447 }
4448 _ACEOF
4449 if ac_fn_c_try_compile "$LINENO"; then :
4450 ac_cv_sys_file_offset_bits=no; break
4451 fi
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4455 #define _FILE_OFFSET_BITS 64
4456 #include <sys/types.h>
4457 /* Check that off_t can represent 2**63 - 1 correctly.
4458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4459 since some C++ compilers masquerading as C compilers
4460 incorrectly reject 9223372036854775807. */
4461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4463 && LARGE_OFF_T % 2147483647 == 1)
4464 ? 1 : -1];
4465 int
4466 main ()
4467 {
4468
4469 ;
4470 return 0;
4471 }
4472 _ACEOF
4473 if ac_fn_c_try_compile "$LINENO"; then :
4474 ac_cv_sys_file_offset_bits=64; break
4475 fi
4476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 ac_cv_sys_file_offset_bits=unknown
4478 break
4479 done
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4482 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4483 case $ac_cv_sys_file_offset_bits in #(
4484 no | unknown) ;;
4485 *)
4486 cat >>confdefs.h <<_ACEOF
4487 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4488 _ACEOF
4489 ;;
4490 esac
4491 rm -rf conftest*
4492 if test $ac_cv_sys_file_offset_bits = unknown; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4494 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4495 if test "${ac_cv_sys_large_files+set}" = set; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 while :; do
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501 #include <sys/types.h>
4502 /* Check that off_t can represent 2**63 - 1 correctly.
4503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4504 since some C++ compilers masquerading as C compilers
4505 incorrectly reject 9223372036854775807. */
4506 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4508 && LARGE_OFF_T % 2147483647 == 1)
4509 ? 1 : -1];
4510 int
4511 main ()
4512 {
4513
4514 ;
4515 return 0;
4516 }
4517 _ACEOF
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519 ac_cv_sys_large_files=no; break
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #define _LARGE_FILES 1
4525 #include <sys/types.h>
4526 /* Check that off_t can represent 2**63 - 1 correctly.
4527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4528 since some C++ compilers masquerading as C compilers
4529 incorrectly reject 9223372036854775807. */
4530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4532 && LARGE_OFF_T % 2147483647 == 1)
4533 ? 1 : -1];
4534 int
4535 main ()
4536 {
4537
4538 ;
4539 return 0;
4540 }
4541 _ACEOF
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 ac_cv_sys_large_files=1; break
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 ac_cv_sys_large_files=unknown
4547 break
4548 done
4549 fi
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4551 $as_echo "$ac_cv_sys_large_files" >&6; }
4552 case $ac_cv_sys_large_files in #(
4553 no | unknown) ;;
4554 *)
4555 cat >>confdefs.h <<_ACEOF
4556 #define _LARGE_FILES $ac_cv_sys_large_files
4557 _ACEOF
4558 ;;
4559 esac
4560 rm -rf conftest*
4561 fi
4562 fi
4563
4564
4565
4566
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4569 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4570 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 am_cv_prog_cc_stdc=no
4574 ac_save_CC="$CC"
4575 # Don't try gcc -ansi; that turns off useful extensions and
4576 # breaks some systems' header files.
4577 # AIX -qlanglvl=ansi
4578 # Ultrix and OSF/1 -std1
4579 # HP-UX 10.20 and later -Ae
4580 # HP-UX older versions -Aa -D_HPUX_SOURCE
4581 # SVR4 -Xc -D__EXTENSIONS__
4582 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4583 do
4584 CC="$ac_save_CC $ac_arg"
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587 #include <stdarg.h>
4588 #include <stdio.h>
4589 #include <sys/types.h>
4590 #include <sys/stat.h>
4591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4592 struct buf { int x; };
4593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4594 static char *e (p, i)
4595 char **p;
4596 int i;
4597 {
4598 return p[i];
4599 }
4600 static char *f (char * (*g) (char **, int), char **p, ...)
4601 {
4602 char *s;
4603 va_list v;
4604 va_start (v,p);
4605 s = g (p, va_arg (v,int));
4606 va_end (v);
4607 return s;
4608 }
4609 int test (int i, double x);
4610 struct s1 {int (*f) (int a);};
4611 struct s2 {int (*f) (double a);};
4612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4613 int argc;
4614 char **argv;
4615
4616 int
4617 main ()
4618 {
4619
4620 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4621
4622 ;
4623 return 0;
4624 }
4625 _ACEOF
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627 am_cv_prog_cc_stdc="$ac_arg"; break
4628 fi
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 done
4631 CC="$ac_save_CC"
4632
4633 fi
4634
4635 if test -z "$am_cv_prog_cc_stdc"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4637 $as_echo "none needed" >&6; }
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4640 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4641 fi
4642 case "x$am_cv_prog_cc_stdc" in
4643 x|xno) ;;
4644 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4645 esac
4646
4647
4648 ac_aux_dir=
4649 for ac_dir in .. "$srcdir"/..; do
4650 for ac_t in install-sh install.sh shtool; do
4651 if test -f "$ac_dir/$ac_t"; then
4652 ac_aux_dir=$ac_dir
4653 ac_install_sh="$ac_aux_dir/$ac_t -c"
4654 break 2
4655 fi
4656 done
4657 done
4658 if test -z "$ac_aux_dir"; then
4659 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4660 fi
4661
4662 # These three variables are undocumented and unsupported,
4663 # and are intended to be withdrawn in a future Autoconf release.
4664 # They can cause serious problems if a builder's source tree is in a directory
4665 # whose full name contains unusual characters.
4666 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4667 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4668 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4669
4670
4671
4672
4673 # Dependency checking.
4674 rm -rf .tst 2>/dev/null
4675 mkdir .tst 2>/dev/null
4676 if test -d .tst; then
4677 am__leading_dot=.
4678 else
4679 am__leading_dot=_
4680 fi
4681 rmdir .tst 2>/dev/null
4682
4683 DEPDIR="${am__leading_dot}deps"
4684
4685 ac_config_commands="$ac_config_commands depdir"
4686
4687
4688 depcc="$CC" am_compiler_list=
4689
4690 am_depcomp=$ac_aux_dir/depcomp
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4692 $as_echo_n "checking dependency style of $depcc... " >&6; }
4693 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 if test -f "$am_depcomp"; then
4697 # We make a subdir and do the tests there. Otherwise we can end up
4698 # making bogus files that we don't know about and never remove. For
4699 # instance it was reported that on HP-UX the gcc test will end up
4700 # making a dummy file named `D' -- because `-MD' means `put the output
4701 # in D'.
4702 mkdir conftest.dir
4703 # Copy depcomp to subdir because otherwise we won't find it if we're
4704 # using a relative directory.
4705 cp "$am_depcomp" conftest.dir
4706 cd conftest.dir
4707 # We will build objects and dependencies in a subdirectory because
4708 # it helps to detect inapplicable dependency modes. For instance
4709 # both Tru64's cc and ICC support -MD to output dependencies as a
4710 # side effect of compilation, but ICC will put the dependencies in
4711 # the current directory while Tru64 will put them in the object
4712 # directory.
4713 mkdir sub
4714
4715 am_cv_CC_dependencies_compiler_type=none
4716 if test "$am_compiler_list" = ""; then
4717 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4718 fi
4719 for depmode in $am_compiler_list; do
4720 if test $depmode = none; then break; fi
4721
4722 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4723 # Setup a source with many dependencies, because some compilers
4724 # like to wrap large dependency lists on column 80 (with \), and
4725 # we should not choose a depcomp mode which is confused by this.
4726 #
4727 # We need to recreate these files for each test, as the compiler may
4728 # overwrite some of them when testing with obscure command lines.
4729 # This happens at least with the AIX C compiler.
4730 : > sub/conftest.c
4731 for i in 1 2 3 4 5 6; do
4732 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4733 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4734 # Solaris 8's {/usr,}/bin/sh.
4735 touch sub/conftst$i.h
4736 done
4737 echo "include sub/conftest.Po" > confmf
4738
4739 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4740 # mode. It turns out that the SunPro C++ compiler does not properly
4741 # handle `-M -o', and we need to detect this.
4742 depcmd="depmode=$depmode \
4743 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4744 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4745 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4746 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4747 if env $depcmd > conftest.err 2>&1 &&
4748 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4749 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4750 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4751 # icc doesn't choke on unknown options, it will just issue warnings
4752 # or remarks (even with -Werror). So we grep stderr for any message
4753 # that says an option was ignored or not supported.
4754 # When given -MP, icc 7.0 and 7.1 complain thusly:
4755 # icc: Command line warning: ignoring option '-M'; no argument required
4756 # The diagnosis changed in icc 8.0:
4757 # icc: Command line remark: option '-MP' not supported
4758 if (grep 'ignoring option' conftest.err ||
4759 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4760 am_cv_CC_dependencies_compiler_type=$depmode
4761 $as_echo "$as_me:$LINENO: success" >&5
4762 break
4763 fi
4764 fi
4765 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4766 sed -e 's/^/| /' < conftest.err >&5
4767 done
4768
4769 cd ..
4770 rm -rf conftest.dir
4771 else
4772 am_cv_CC_dependencies_compiler_type=none
4773 fi
4774
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4777 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4778 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4779 then as_fn_error "no usable dependency style found" "$LINENO" 5
4780 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4781
4782 fi
4783
4784
4785 # Check for the 'make' the user wants to use.
4786 for ac_prog in make
4787 do
4788 # Extract the first word of "$ac_prog", so it can be a program name with args.
4789 set dummy $ac_prog; ac_word=$2
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4791 $as_echo_n "checking for $ac_word... " >&6; }
4792 if test "${ac_cv_prog_MAKE+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 if test -n "$MAKE"; then
4796 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4797 else
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805 ac_cv_prog_MAKE="$ac_prog"
4806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 break 2
4808 fi
4809 done
4810 done
4811 IFS=$as_save_IFS
4812
4813 fi
4814 fi
4815 MAKE=$ac_cv_prog_MAKE
4816 if test -n "$MAKE"; then
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4818 $as_echo "$MAKE" >&6; }
4819 else
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821 $as_echo "no" >&6; }
4822 fi
4823
4824
4825 test -n "$MAKE" && break
4826 done
4827
4828 MAKE_IS_GNU=
4829 case "`$MAKE --version 2>&1 | sed 1q`" in
4830 *GNU*)
4831 MAKE_IS_GNU=yes
4832 ;;
4833 esac
4834 if test "$MAKE_IS_GNU" = yes; then
4835 GMAKE_TRUE=
4836 GMAKE_FALSE='#'
4837 else
4838 GMAKE_TRUE='#'
4839 GMAKE_FALSE=
4840 fi
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4843 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4844 set x ${MAKE-make}
4845 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4846 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 cat >conftest.make <<\_ACEOF
4850 SHELL = /bin/sh
4851 all:
4852 @echo '@@@%%%=$(MAKE)=@@@%%%'
4853 _ACEOF
4854 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4855 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4856 *@@@%%%=?*=@@@%%%*)
4857 eval ac_cv_prog_make_${ac_make}_set=yes;;
4858 *)
4859 eval ac_cv_prog_make_${ac_make}_set=no;;
4860 esac
4861 rm -f conftest.make
4862 fi
4863 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4865 $as_echo "yes" >&6; }
4866 SET_MAKE=
4867 else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4870 SET_MAKE="MAKE=${MAKE-make}"
4871 fi
4872
4873
4874
4875 CONFIG_OBS=
4876 CONFIG_DEPS=
4877 CONFIG_SRCS=
4878 ENABLE_CFLAGS=
4879
4880 CONFIG_ALL=
4881 CONFIG_CLEAN=
4882 CONFIG_INSTALL=
4883 CONFIG_UNINSTALL=
4884
4885 # If we haven't got the data from the intl directory,
4886 # assume NLS is disabled.
4887 USE_NLS=no
4888 LIBINTL=
4889 LIBINTL_DEP=
4890 INCINTL=
4891 XGETTEXT=
4892 GMSGFMT=
4893 POSUB=
4894
4895 if test -f ../intl/config.intl; then
4896 . ../intl/config.intl
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4899 $as_echo_n "checking whether NLS is requested... " >&6; }
4900 if test x"$USE_NLS" != xyes; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4905 $as_echo "yes" >&6; }
4906
4907 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4908
4909
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4911 $as_echo_n "checking for catalogs to be installed... " >&6; }
4912 # Look for .po and .gmo files in the source directory.
4913 CATALOGS=
4914 XLINGUAS=
4915 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4916 # If there aren't any .gmo files the shell will give us the
4917 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4918 # weeded out.
4919 case "$cat" in *\**)
4920 continue;;
4921 esac
4922 # The quadruple backslash is collapsed to a double backslash
4923 # by the backticks, then collapsed again by the double quotes,
4924 # leaving us with one backslash in the sed expression (right
4925 # before the dot that mustn't act as a wildcard).
4926 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4927 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4928 # The user is allowed to set LINGUAS to a list of languages to
4929 # install catalogs for. If it's empty that means "all of them."
4930 if test "x$LINGUAS" = x; then
4931 CATALOGS="$CATALOGS $cat"
4932 XLINGUAS="$XLINGUAS $lang"
4933 else
4934 case "$LINGUAS" in *$lang*)
4935 CATALOGS="$CATALOGS $cat"
4936 XLINGUAS="$XLINGUAS $lang"
4937 ;;
4938 esac
4939 fi
4940 done
4941 LINGUAS="$XLINGUAS"
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4943 $as_echo "$LINGUAS" >&6; }
4944
4945
4946 DATADIRNAME=share
4947
4948 INSTOBJEXT=.mo
4949
4950 GENCAT=gencat
4951
4952 CATOBJEXT=.gmo
4953
4954 fi
4955
4956 localedir='${datadir}/locale'
4957
4958
4959 if test x"$USE_NLS" = xyes; then
4960 CONFIG_ALL="$CONFIG_ALL all-po"
4961 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4962 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4963 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4964 fi
4965
4966
4967
4968
4969
4970 LIBC_FATAL_STDERR_=1
4971 export LIBC_FATAL_STDERR_
4972
4973
4974
4975
4976
4977 for ac_header in $gl_header_list
4978 do :
4979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4980 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4981 eval as_val=\$$as_ac_Header
4982 if test "x$as_val" = x""yes; then :
4983 cat >>confdefs.h <<_ACEOF
4984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4985 _ACEOF
4986
4987 fi
4988
4989 done
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999 for ac_func in $gl_func_list
5000 do :
5001 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5002 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5003 eval as_val=\$$as_ac_var
5004 if test "x$as_val" = x""yes; then :
5005 cat >>confdefs.h <<_ACEOF
5006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5007 _ACEOF
5008
5009 fi
5010 done
5011
5012
5013
5014
5015
5016
5017 GNULIB_MEMCHR=0;
5018 GNULIB_MEMMEM=0;
5019 GNULIB_MEMPCPY=0;
5020 GNULIB_MEMRCHR=0;
5021 GNULIB_RAWMEMCHR=0;
5022 GNULIB_STPCPY=0;
5023 GNULIB_STPNCPY=0;
5024 GNULIB_STRCHRNUL=0;
5025 GNULIB_STRDUP=0;
5026 GNULIB_STRNCAT=0;
5027 GNULIB_STRNDUP=0;
5028 GNULIB_STRNLEN=0;
5029 GNULIB_STRPBRK=0;
5030 GNULIB_STRSEP=0;
5031 GNULIB_STRSTR=0;
5032 GNULIB_STRCASESTR=0;
5033 GNULIB_STRTOK_R=0;
5034 GNULIB_MBSLEN=0;
5035 GNULIB_MBSNLEN=0;
5036 GNULIB_MBSCHR=0;
5037 GNULIB_MBSRCHR=0;
5038 GNULIB_MBSSTR=0;
5039 GNULIB_MBSCASECMP=0;
5040 GNULIB_MBSNCASECMP=0;
5041 GNULIB_MBSPCASECMP=0;
5042 GNULIB_MBSCASESTR=0;
5043 GNULIB_MBSCSPN=0;
5044 GNULIB_MBSPBRK=0;
5045 GNULIB_MBSSPN=0;
5046 GNULIB_MBSSEP=0;
5047 GNULIB_MBSTOK_R=0;
5048 GNULIB_STRERROR=0;
5049 GNULIB_STRSIGNAL=0;
5050 GNULIB_STRVERSCMP=0;
5051 HAVE_MBSLEN=0;
5052 HAVE_MEMCHR=1;
5053 HAVE_DECL_MEMMEM=1;
5054 HAVE_MEMPCPY=1;
5055 HAVE_DECL_MEMRCHR=1;
5056 HAVE_RAWMEMCHR=1;
5057 HAVE_STPCPY=1;
5058 HAVE_STPNCPY=1;
5059 HAVE_STRCHRNUL=1;
5060 HAVE_DECL_STRDUP=1;
5061 HAVE_DECL_STRNDUP=1;
5062 HAVE_DECL_STRNLEN=1;
5063 HAVE_STRPBRK=1;
5064 HAVE_STRSEP=1;
5065 HAVE_STRCASESTR=1;
5066 HAVE_DECL_STRTOK_R=1;
5067 HAVE_DECL_STRSIGNAL=1;
5068 HAVE_STRVERSCMP=1;
5069 REPLACE_MEMCHR=0;
5070 REPLACE_MEMMEM=0;
5071 REPLACE_STPNCPY=0;
5072 REPLACE_STRDUP=0;
5073 REPLACE_STRSTR=0;
5074 REPLACE_STRCASESTR=0;
5075 REPLACE_STRERROR=0;
5076 REPLACE_STRNCAT=0;
5077 REPLACE_STRNDUP=0;
5078 REPLACE_STRNLEN=0;
5079 REPLACE_STRSIGNAL=0;
5080 REPLACE_STRTOK_R=0;
5081 UNDEFINE_STRTOK_R=0;
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5096 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5097 # irrelevant for anonymous mappings.
5098 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5099 if test "x$ac_cv_func_mmap" = x""yes; then :
5100 gl_have_mmap=yes
5101 else
5102 gl_have_mmap=no
5103 fi
5104
5105
5106 # Try to allow MAP_ANONYMOUS.
5107 gl_have_mmap_anonymous=no
5108 if test $gl_have_mmap = yes; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5110 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113
5114 #include <sys/mman.h>
5115 #ifdef MAP_ANONYMOUS
5116 I cant identify this map.
5117 #endif
5118
5119 _ACEOF
5120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5121 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5122 gl_have_mmap_anonymous=yes
5123 fi
5124 rm -f conftest*
5125
5126 if test $gl_have_mmap_anonymous != yes; then
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129
5130 #include <sys/mman.h>
5131 #ifdef MAP_ANON
5132 I cant identify this map.
5133 #endif
5134
5135 _ACEOF
5136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5137 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5138
5139 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5140
5141 gl_have_mmap_anonymous=yes
5142 fi
5143 rm -f conftest*
5144
5145 fi
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5147 $as_echo "$gl_have_mmap_anonymous" >&6; }
5148 if test $gl_have_mmap_anonymous = yes; then
5149
5150 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5151
5152 fi
5153 fi
5154
5155
5156 :
5157
5158
5159
5160
5161
5162
5163 :
5164
5165
5166
5167
5168
5169
5170
5171
5172 :
5173
5174
5175
5176
5177
5178 if test $ac_cv_func_memchr = yes; then
5179 # Detect platform-specific bugs in some versions of glibc:
5180 # memchr should not dereference anything with length 0
5181 # http://bugzilla.redhat.com/499689
5182 # memchr should not dereference overestimated length after a match
5183 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5184 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5185 # Assume that memchr works on platforms that lack mprotect.
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5187 $as_echo_n "checking whether memchr works... " >&6; }
5188 if test "${gl_cv_func_memchr_works+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test "$cross_compiling" = yes; then :
5192 gl_cv_func_memchr_works="guessing no"
5193 else
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196
5197 #include <string.h>
5198 #if HAVE_SYS_MMAN_H
5199 # include <fcntl.h>
5200 # include <unistd.h>
5201 # include <sys/types.h>
5202 # include <sys/mman.h>
5203 # ifndef MAP_FILE
5204 # define MAP_FILE 0
5205 # endif
5206 #endif
5207
5208 int
5209 main ()
5210 {
5211
5212 char *fence = NULL;
5213 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5214 # if HAVE_MAP_ANONYMOUS
5215 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5216 const int fd = -1;
5217 # else /* !HAVE_MAP_ANONYMOUS */
5218 const int flags = MAP_FILE | MAP_PRIVATE;
5219 int fd = open ("/dev/zero", O_RDONLY, 0666);
5220 if (fd >= 0)
5221 # endif
5222 {
5223 int pagesize = getpagesize ();
5224 char *two_pages =
5225 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5226 flags, fd, 0);
5227 if (two_pages != (char *)(-1)
5228 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5229 fence = two_pages + pagesize;
5230 }
5231 #endif
5232 if (fence)
5233 {
5234 if (memchr (fence, 0, 0))
5235 return 1;
5236 strcpy (fence - 9, "12345678");
5237 if (memchr (fence - 9, 0, 79) != fence - 1)
5238 return 2;
5239 }
5240 return 0;
5241
5242 ;
5243 return 0;
5244 }
5245 _ACEOF
5246 if ac_fn_c_try_run "$LINENO"; then :
5247 gl_cv_func_memchr_works=yes
5248 else
5249 gl_cv_func_memchr_works=no
5250 fi
5251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5252 conftest.$ac_objext conftest.beam conftest.$ac_ext
5253 fi
5254
5255 fi
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5257 $as_echo "$gl_cv_func_memchr_works" >&6; }
5258 if test "$gl_cv_func_memchr_works" != yes; then
5259 REPLACE_MEMCHR=1
5260 fi
5261 else
5262 HAVE_MEMCHR=0
5263 fi
5264 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5265
5266
5267
5268
5269
5270
5271
5272
5273 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5274
5275
5276 for ac_header in bp-sym.h
5277 do :
5278 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5279 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5280 cat >>confdefs.h <<_ACEOF
5281 #define HAVE_BP_SYM_H 1
5282 _ACEOF
5283
5284 fi
5285
5286 done
5287
5288
5289 fi
5290
5291
5292 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5293 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5294 ac_have_decl=1
5295 else
5296 ac_have_decl=0
5297 fi
5298
5299 cat >>confdefs.h <<_ACEOF
5300 #define HAVE_DECL_MEMMEM $ac_have_decl
5301 _ACEOF
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316 for ac_func in memmem
5317 do :
5318 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5319 if test "x$ac_cv_func_memmem" = x""yes; then :
5320 cat >>confdefs.h <<_ACEOF
5321 #define HAVE_MEMMEM 1
5322 _ACEOF
5323
5324 else
5325
5326 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5327
5328 fi
5329 done
5330
5331
5332
5333 :
5334
5335
5336
5337
5338
5339 if test $ac_cv_have_decl_memmem = no; then
5340 HAVE_DECL_MEMMEM=0
5341 fi
5342 :
5343
5344
5345 gl_cv_c_multiarch=no
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348 #ifndef __APPLE_CC__
5349 not a universal capable compiler
5350 #endif
5351 typedef int dummy;
5352
5353 _ACEOF
5354 if ac_fn_c_try_compile "$LINENO"; then :
5355
5356 arch=
5357 prev=
5358 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5359 if test -n "$prev"; then
5360 case $word in
5361 i?86 | x86_64 | ppc | ppc64)
5362 if test -z "$arch" || test "$arch" = "$word"; then
5363 arch="$word"
5364 else
5365 gl_cv_c_multiarch=yes
5366 fi
5367 ;;
5368 esac
5369 prev=
5370 else
5371 if test "x$word" = "x-arch"; then
5372 prev=arch
5373 fi
5374 fi
5375 done
5376
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 if test $gl_cv_c_multiarch = yes; then
5380
5381 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5382
5383 APPLE_UNIVERSAL_BUILD=1
5384 else
5385 APPLE_UNIVERSAL_BUILD=0
5386 fi
5387
5388
5389
5390 REPLACE_NULL=0;
5391 HAVE_WCHAR_T=1;
5392 STDDEF_H='';
5393
5394
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5396 $as_echo_n "checking for wchar_t... " >&6; }
5397 if test "${gt_cv_c_wchar_t+set}" = set; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 #include <stddef.h>
5403 wchar_t foo = (wchar_t)'\0';
5404 int
5405 main ()
5406 {
5407
5408 ;
5409 return 0;
5410 }
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 gt_cv_c_wchar_t=yes
5414 else
5415 gt_cv_c_wchar_t=no
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 fi
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5420 $as_echo "$gt_cv_c_wchar_t" >&6; }
5421 if test $gt_cv_c_wchar_t = yes; then
5422
5423 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5424
5425 fi
5426
5427
5428
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5430 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5431 if test "${gl_cv_have_include_next+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 rm -rf conftestd1a conftestd1b conftestd2
5435 mkdir conftestd1a conftestd1b conftestd2
5436 cat <<EOF > conftestd1a/conftest.h
5437 #define DEFINED_IN_CONFTESTD1
5438 #include_next <conftest.h>
5439 #ifdef DEFINED_IN_CONFTESTD2
5440 int foo;
5441 #else
5442 #error "include_next doesn't work"
5443 #endif
5444 EOF
5445 cat <<EOF > conftestd1b/conftest.h
5446 #define DEFINED_IN_CONFTESTD1
5447 #include <stdio.h>
5448 #include_next <conftest.h>
5449 #ifdef DEFINED_IN_CONFTESTD2
5450 int foo;
5451 #else
5452 #error "include_next doesn't work"
5453 #endif
5454 EOF
5455 cat <<EOF > conftestd2/conftest.h
5456 #ifndef DEFINED_IN_CONFTESTD1
5457 #error "include_next test doesn't work"
5458 #endif
5459 #define DEFINED_IN_CONFTESTD2
5460 EOF
5461 gl_save_CPPFLAGS="$CPPFLAGS"
5462 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465 #include <conftest.h>
5466 _ACEOF
5467 if ac_fn_c_try_compile "$LINENO"; then :
5468 gl_cv_have_include_next=yes
5469 else
5470 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5473 #include <conftest.h>
5474 _ACEOF
5475 if ac_fn_c_try_compile "$LINENO"; then :
5476 gl_cv_have_include_next=buggy
5477 else
5478 gl_cv_have_include_next=no
5479 fi
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481
5482 fi
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 CPPFLAGS="$gl_save_CPPFLAGS"
5485 rm -rf conftestd1a conftestd1b conftestd2
5486
5487 fi
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5489 $as_echo "$gl_cv_have_include_next" >&6; }
5490 PRAGMA_SYSTEM_HEADER=
5491 if test $gl_cv_have_include_next = yes; then
5492 INCLUDE_NEXT=include_next
5493 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5494 if test -n "$GCC"; then
5495 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5496 fi
5497 else
5498 if test $gl_cv_have_include_next = buggy; then
5499 INCLUDE_NEXT=include
5500 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5501 else
5502 INCLUDE_NEXT=include
5503 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5504 fi
5505 fi
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5517 $as_echo_n "checking for long long int... " >&6; }
5518 if test "${ac_cv_type_long_long_int+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523
5524 /* For now, do not test the preprocessor; as of 2007 there are too many
5525 implementations with broken preprocessors. Perhaps this can
5526 be revisited in 2012. In the meantime, code should not expect
5527 #if to work with literals wider than 32 bits. */
5528 /* Test literals. */
5529 long long int ll = 9223372036854775807ll;
5530 long long int nll = -9223372036854775807LL;
5531 unsigned long long int ull = 18446744073709551615ULL;
5532 /* Test constant expressions. */
5533 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5534 ? 1 : -1)];
5535 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5536 ? 1 : -1)];
5537 int i = 63;
5538 int
5539 main ()
5540 {
5541 /* Test availability of runtime routines for shift and division. */
5542 long long int llmax = 9223372036854775807ll;
5543 unsigned long long int ullmax = 18446744073709551615ull;
5544 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5545 | (llmax / ll) | (llmax % ll)
5546 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5547 | (ullmax / ull) | (ullmax % ull));
5548 ;
5549 return 0;
5550 }
5551
5552 _ACEOF
5553 if ac_fn_c_try_link "$LINENO"; then :
5554 if test "$cross_compiling" = yes; then :
5555 ac_cv_type_long_long_int=yes
5556 else
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 #include <limits.h>
5560 #ifndef LLONG_MAX
5561 # define HALF \
5562 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5563 # define LLONG_MAX (HALF - 1 + HALF)
5564 #endif
5565 int
5566 main ()
5567 {
5568 long long int n = 1;
5569 int i;
5570 for (i = 0; ; i++)
5571 {
5572 long long int m = n << i;
5573 if (m >> i != n)
5574 return 1;
5575 if (LLONG_MAX / 2 < m)
5576 break;
5577 }
5578 return 0;
5579 ;
5580 return 0;
5581 }
5582 _ACEOF
5583 if ac_fn_c_try_run "$LINENO"; then :
5584 ac_cv_type_long_long_int=yes
5585 else
5586 ac_cv_type_long_long_int=no
5587 fi
5588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5589 conftest.$ac_objext conftest.beam conftest.$ac_ext
5590 fi
5591
5592 else
5593 ac_cv_type_long_long_int=no
5594 fi
5595 rm -f core conftest.err conftest.$ac_objext \
5596 conftest$ac_exeext conftest.$ac_ext
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5599 $as_echo "$ac_cv_type_long_long_int" >&6; }
5600 if test $ac_cv_type_long_long_int = yes; then
5601
5602 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5603
5604 fi
5605
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5608 $as_echo_n "checking for unsigned long long int... " >&6; }
5609 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614
5615 /* For now, do not test the preprocessor; as of 2007 there are too many
5616 implementations with broken preprocessors. Perhaps this can
5617 be revisited in 2012. In the meantime, code should not expect
5618 #if to work with literals wider than 32 bits. */
5619 /* Test literals. */
5620 long long int ll = 9223372036854775807ll;
5621 long long int nll = -9223372036854775807LL;
5622 unsigned long long int ull = 18446744073709551615ULL;
5623 /* Test constant expressions. */
5624 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5625 ? 1 : -1)];
5626 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5627 ? 1 : -1)];
5628 int i = 63;
5629 int
5630 main ()
5631 {
5632 /* Test availability of runtime routines for shift and division. */
5633 long long int llmax = 9223372036854775807ll;
5634 unsigned long long int ullmax = 18446744073709551615ull;
5635 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5636 | (llmax / ll) | (llmax % ll)
5637 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5638 | (ullmax / ull) | (ullmax % ull));
5639 ;
5640 return 0;
5641 }
5642
5643 _ACEOF
5644 if ac_fn_c_try_link "$LINENO"; then :
5645 ac_cv_type_unsigned_long_long_int=yes
5646 else
5647 ac_cv_type_unsigned_long_long_int=no
5648 fi
5649 rm -f core conftest.err conftest.$ac_objext \
5650 conftest$ac_exeext conftest.$ac_ext
5651 fi
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5653 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5654 if test $ac_cv_type_unsigned_long_long_int = yes; then
5655
5656 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5657
5658 fi
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5671 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5672 if test "${ac_cv_c_restrict+set}" = set; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 ac_cv_c_restrict=no
5676 # The order here caters to the fact that C++ does not require restrict.
5677 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 typedef int * int_ptr;
5681 int foo (int_ptr $ac_kw ip) {
5682 return ip[0];
5683 }
5684 int
5685 main ()
5686 {
5687 int s[1];
5688 int * $ac_kw t = s;
5689 t[0] = 0;
5690 return foo(t)
5691 ;
5692 return 0;
5693 }
5694 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 ac_cv_c_restrict=$ac_kw
5697 fi
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 test "$ac_cv_c_restrict" != no && break
5700 done
5701
5702 fi
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5704 $as_echo "$ac_cv_c_restrict" >&6; }
5705
5706 case $ac_cv_c_restrict in
5707 restrict) ;;
5708 no) $as_echo "#define restrict /**/" >>confdefs.h
5709 ;;
5710 *) cat >>confdefs.h <<_ACEOF
5711 #define restrict $ac_cv_c_restrict
5712 _ACEOF
5713 ;;
5714 esac
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728 :
5729
5730
5731
5732
5733
5734
5735
5736 if test $gl_cv_have_include_next = yes; then
5737 gl_cv_next_string_h='<'string.h'>'
5738 else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5740 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5741 if test "${gl_cv_next_string_h+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744
5745 if test $ac_cv_header_string_h = yes; then
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <string.h>
5749
5750 _ACEOF
5751 case "$host_os" in
5752 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5753 *) gl_absname_cpp="$ac_cpp" ;;
5754 esac
5755 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5756 sed -n '\#/string.h#{
5757 s#.*"\(.*/string.h\)".*#\1#
5758 s#^/[^/]#//&#
5759 p
5760 q
5761 }'`'"'
5762 else
5763 gl_cv_next_string_h='<'string.h'>'
5764 fi
5765
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5768 $as_echo "$gl_cv_next_string_h" >&6; }
5769 fi
5770 NEXT_STRING_H=$gl_cv_next_string_h
5771
5772 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5773 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5774 gl_next_as_first_directive='<'string.h'>'
5775 else
5776 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5777 gl_next_as_first_directive=$gl_cv_next_string_h
5778 fi
5779 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5780
5781
5782
5783
5784
5785 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
5786 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5788 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5789 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 #include <string.h>
5795
5796 int
5797 main ()
5798 {
5799 #undef $gl_func
5800 (void) $gl_func;
5801 ;
5802 return 0;
5803 }
5804 _ACEOF
5805 if ac_fn_c_try_compile "$LINENO"; then :
5806 eval "$as_gl_Symbol=yes"
5807 else
5808 eval "$as_gl_Symbol=no"
5809 fi
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811 fi
5812 eval ac_res=\$$as_gl_Symbol
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5814 $as_echo "$ac_res" >&6; }
5815 eval as_val=\$$as_gl_Symbol
5816 if test "x$as_val" = x""yes; then :
5817 cat >>confdefs.h <<_ACEOF
5818 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5819 _ACEOF
5820
5821 eval ac_cv_have_decl_$gl_func=yes
5822 fi
5823 done
5824
5825
5826
5827 GNULIB_BTOWC=0;
5828 GNULIB_WCTOB=0;
5829 GNULIB_MBSINIT=0;
5830 GNULIB_MBRTOWC=0;
5831 GNULIB_MBRLEN=0;
5832 GNULIB_MBSRTOWCS=0;
5833 GNULIB_MBSNRTOWCS=0;
5834 GNULIB_WCRTOMB=0;
5835 GNULIB_WCSRTOMBS=0;
5836 GNULIB_WCSNRTOMBS=0;
5837 GNULIB_WCWIDTH=0;
5838 HAVE_BTOWC=1;
5839 HAVE_MBSINIT=1;
5840 HAVE_MBRTOWC=1;
5841 HAVE_MBRLEN=1;
5842 HAVE_MBSRTOWCS=1;
5843 HAVE_MBSNRTOWCS=1;
5844 HAVE_WCRTOMB=1;
5845 HAVE_WCSRTOMBS=1;
5846 HAVE_WCSNRTOMBS=1;
5847 HAVE_DECL_WCTOB=1;
5848 HAVE_DECL_WCWIDTH=1;
5849 REPLACE_MBSTATE_T=0;
5850 REPLACE_BTOWC=0;
5851 REPLACE_WCTOB=0;
5852 REPLACE_MBSINIT=0;
5853 REPLACE_MBRTOWC=0;
5854 REPLACE_MBRLEN=0;
5855 REPLACE_MBSRTOWCS=0;
5856 REPLACE_MBSNRTOWCS=0;
5857 REPLACE_WCRTOMB=0;
5858 REPLACE_WCSRTOMBS=0;
5859 REPLACE_WCSNRTOMBS=0;
5860 REPLACE_WCWIDTH=0;
5861
5862
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5864 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5865 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 gl_cv_header_wchar_h_correct_inline=yes
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871
5872 #define wcstod renamed_wcstod
5873 #include <wchar.h>
5874 extern int zero (void);
5875 int main () { return zero(); }
5876
5877 _ACEOF
5878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5879 (eval $ac_compile) 2>&5
5880 ac_status=$?
5881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5882 test $ac_status = 0; }; then
5883 mv conftest.$ac_objext conftest1.$ac_objext
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886
5887 #define wcstod renamed_wcstod
5888 #include <wchar.h>
5889 int zero (void) { return 0; }
5890
5891 _ACEOF
5892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5893 (eval $ac_compile) 2>&5
5894 ac_status=$?
5895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5896 test $ac_status = 0; }; then
5897 mv conftest.$ac_objext conftest2.$ac_objext
5898 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5899 :
5900 else
5901 gl_cv_header_wchar_h_correct_inline=no
5902 fi
5903 fi
5904 fi
5905 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5906
5907 fi
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5909 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5910 if test $gl_cv_header_wchar_h_correct_inline = no; then
5911 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5912 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5913 C99 mode. You have four options:
5914 - Add the flag -fgnu89-inline to CC and reconfigure, or
5915 - Fix your include files, using parts of
5916 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5917 - Use a gcc version older than 4.3, or
5918 - Don't use the flags -std=c99 or -std=gnu99.
5919 Configuration aborted." "$LINENO" 5
5920 fi
5921
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5924 $as_echo_n "checking for wint_t... " >&6; }
5925 if test "${gt_cv_c_wint_t+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929 /* end confdefs.h. */
5930
5931 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5932 <wchar.h>.
5933 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5934 before <wchar.h>. */
5935 #include <stddef.h>
5936 #include <stdio.h>
5937 #include <time.h>
5938 #include <wchar.h>
5939 wint_t foo = (wchar_t)'\0';
5940 int
5941 main ()
5942 {
5943
5944 ;
5945 return 0;
5946 }
5947 _ACEOF
5948 if ac_fn_c_try_compile "$LINENO"; then :
5949 gt_cv_c_wint_t=yes
5950 else
5951 gt_cv_c_wint_t=no
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 fi
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5956 $as_echo "$gt_cv_c_wint_t" >&6; }
5957 if test $gt_cv_c_wint_t = yes; then
5958
5959 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5960
5961 fi
5962
5963
5964 if false; then
5965 GL_COND_LIBTOOL_TRUE=
5966 GL_COND_LIBTOOL_FALSE='#'
5967 else
5968 GL_COND_LIBTOOL_TRUE='#'
5969 GL_COND_LIBTOOL_FALSE=
5970 fi
5971
5972 gl_cond_libtool=false
5973 gl_libdeps=
5974 gl_ltlibdeps=
5975 gl_m4_base='gnulib/m4'
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985 gl_source_base='gnulib'
5986 # Code from module arg-nonnull:
5987 # Code from module c++defs:
5988 # Code from module extensions:
5989 # Code from module include_next:
5990 # Code from module memchr:
5991
5992
5993
5994
5995 GNULIB_MEMCHR=1
5996
5997
5998
5999 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
6000
6001
6002
6003 # Code from module memmem:
6004
6005
6006 if test $ac_cv_have_decl_memmem = yes; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6008 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6009 if test "${gl_cv_func_memmem_works+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 if test "$cross_compiling" = yes; then :
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015
6016 #include <features.h>
6017 #ifdef __GNU_LIBRARY__
6018 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6019 Lucky user
6020 #endif
6021 #endif
6022 #ifdef __CYGWIN__
6023 #include <cygwin/version.h>
6024 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6025 Lucky user
6026 #endif
6027 #endif
6028
6029 _ACEOF
6030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6031 $EGREP "Lucky user" >/dev/null 2>&1; then :
6032 gl_cv_func_memmem_works=yes
6033 else
6034 gl_cv_func_memmem_works="guessing no"
6035 fi
6036 rm -f conftest*
6037
6038
6039 else
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042
6043 #include <signal.h> /* for signal */
6044 #include <string.h> /* for memmem */
6045 #include <stdlib.h> /* for malloc */
6046 #include <unistd.h> /* for alarm */
6047
6048 int
6049 main ()
6050 {
6051 size_t m = 1000000;
6052 char *haystack = (char *) malloc (2 * m + 1);
6053 char *needle = (char *) malloc (m + 1);
6054 void *result = 0;
6055 /* Failure to compile this test due to missing alarm is okay,
6056 since all such platforms (mingw) also lack memmem. */
6057 signal (SIGALRM, SIG_DFL);
6058 alarm (5);
6059 /* Check for quadratic performance. */
6060 if (haystack && needle)
6061 {
6062 memset (haystack, 'A', 2 * m);
6063 haystack[2 * m] = 'B';
6064 memset (needle, 'A', m);
6065 needle[m] = 'B';
6066 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6067 }
6068 /* Check for empty needle behavior. */
6069 return !result || !memmem ("a", 1, 0, 0);
6070 ;
6071 return 0;
6072 }
6073 _ACEOF
6074 if ac_fn_c_try_run "$LINENO"; then :
6075 gl_cv_func_memmem_works=yes
6076 else
6077 gl_cv_func_memmem_works=no
6078 fi
6079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6080 conftest.$ac_objext conftest.beam conftest.$ac_ext
6081 fi
6082
6083
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6086 $as_echo "$gl_cv_func_memmem_works" >&6; }
6087 if test "$gl_cv_func_memmem_works" != yes; then
6088 REPLACE_MEMMEM=1
6089
6090
6091
6092
6093
6094
6095
6096
6097 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6098
6099 fi
6100 fi
6101
6102 # Code from module memmem-simple:
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115 for ac_func in memmem
6116 do :
6117 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6118 if test "x$ac_cv_func_memmem" = x""yes; then :
6119 cat >>confdefs.h <<_ACEOF
6120 #define HAVE_MEMMEM 1
6121 _ACEOF
6122
6123 else
6124
6125 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6126
6127 fi
6128 done
6129
6130
6131
6132 :
6133
6134
6135
6136
6137
6138 if test $ac_cv_have_decl_memmem = no; then
6139 HAVE_DECL_MEMMEM=0
6140 fi
6141 :
6142
6143
6144
6145
6146 GNULIB_MEMMEM=1
6147
6148
6149
6150 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6151
6152
6153
6154 # Code from module multiarch:
6155
6156 # Code from module stddef:
6157
6158
6159
6160 if test $gt_cv_c_wchar_t = no; then
6161 HAVE_WCHAR_T=0
6162 STDDEF_H=stddef.h
6163 fi
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6165 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6166 if test "${gl_cv_decl_null_works+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 #include <stddef.h>
6172 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6173
6174 int
6175 main ()
6176 {
6177
6178 ;
6179 return 0;
6180 }
6181 _ACEOF
6182 if ac_fn_c_try_compile "$LINENO"; then :
6183 gl_cv_decl_null_works=yes
6184 else
6185 gl_cv_decl_null_works=no
6186 fi
6187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188 fi
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6190 $as_echo "$gl_cv_decl_null_works" >&6; }
6191 if test $gl_cv_decl_null_works = no; then
6192 REPLACE_NULL=1
6193 STDDEF_H=stddef.h
6194 fi
6195 if test -n "$STDDEF_H"; then
6196
6197
6198
6199
6200 :
6201
6202
6203
6204
6205
6206
6207
6208 if test $gl_cv_have_include_next = yes; then
6209 gl_cv_next_stddef_h='<'stddef.h'>'
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6212 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6213 if test "${gl_cv_next_stddef_h+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216
6217 if test $ac_cv_header_stddef_h = yes; then
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 #include <stddef.h>
6221
6222 _ACEOF
6223 case "$host_os" in
6224 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6225 *) gl_absname_cpp="$ac_cpp" ;;
6226 esac
6227 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6228 sed -n '\#/stddef.h#{
6229 s#.*"\(.*/stddef.h\)".*#\1#
6230 s#^/[^/]#//&#
6231 p
6232 q
6233 }'`'"'
6234 else
6235 gl_cv_next_stddef_h='<'stddef.h'>'
6236 fi
6237
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6240 $as_echo "$gl_cv_next_stddef_h" >&6; }
6241 fi
6242 NEXT_STDDEF_H=$gl_cv_next_stddef_h
6243
6244 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6246 gl_next_as_first_directive='<'stddef.h'>'
6247 else
6248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6249 gl_next_as_first_directive=$gl_cv_next_stddef_h
6250 fi
6251 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6252
6253
6254
6255 fi
6256
6257 # Code from module stdint:
6258
6259
6260
6261 if test $ac_cv_type_long_long_int = yes; then
6262 HAVE_LONG_LONG_INT=1
6263 else
6264 HAVE_LONG_LONG_INT=0
6265 fi
6266
6267
6268 if test $ac_cv_type_unsigned_long_long_int = yes; then
6269 HAVE_UNSIGNED_LONG_LONG_INT=1
6270 else
6271 HAVE_UNSIGNED_LONG_LONG_INT=0
6272 fi
6273
6274
6275 if test $ac_cv_header_inttypes_h = yes; then
6276 HAVE_INTTYPES_H=1
6277 else
6278 HAVE_INTTYPES_H=0
6279 fi
6280
6281
6282 if test $ac_cv_header_sys_types_h = yes; then
6283 HAVE_SYS_TYPES_H=1
6284 else
6285 HAVE_SYS_TYPES_H=0
6286 fi
6287
6288
6289
6290
6291
6292
6293 :
6294
6295
6296
6297
6298
6299
6300
6301 if test $gl_cv_have_include_next = yes; then
6302 gl_cv_next_stdint_h='<'stdint.h'>'
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6305 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6306 if test "${gl_cv_next_stdint_h+set}" = set; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309
6310 if test $ac_cv_header_stdint_h = yes; then
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 #include <stdint.h>
6314
6315 _ACEOF
6316 case "$host_os" in
6317 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6318 *) gl_absname_cpp="$ac_cpp" ;;
6319 esac
6320 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6321 sed -n '\#/stdint.h#{
6322 s#.*"\(.*/stdint.h\)".*#\1#
6323 s#^/[^/]#//&#
6324 p
6325 q
6326 }'`'"'
6327 else
6328 gl_cv_next_stdint_h='<'stdint.h'>'
6329 fi
6330
6331 fi
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6333 $as_echo "$gl_cv_next_stdint_h" >&6; }
6334 fi
6335 NEXT_STDINT_H=$gl_cv_next_stdint_h
6336
6337 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6338 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6339 gl_next_as_first_directive='<'stdint.h'>'
6340 else
6341 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6342 gl_next_as_first_directive=$gl_cv_next_stdint_h
6343 fi
6344 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6345
6346
6347
6348 if test $ac_cv_header_stdint_h = yes; then
6349 HAVE_STDINT_H=1
6350 else
6351 HAVE_STDINT_H=0
6352 fi
6353
6354
6355 if test $ac_cv_header_stdint_h = yes; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6357 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6358 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6359 $as_echo_n "(cached) " >&6
6360 else
6361 gl_cv_header_working_stdint_h=no
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364
6365
6366 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6367 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6368 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6369 #include <stdint.h>
6370 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6371 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6372 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6373 #endif
6374
6375
6376 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6377 included before <wchar.h>. */
6378 #include <stddef.h>
6379 #include <signal.h>
6380 #if HAVE_WCHAR_H
6381 # include <stdio.h>
6382 # include <time.h>
6383 # include <wchar.h>
6384 #endif
6385
6386
6387 #ifdef INT8_MAX
6388 int8_t a1 = INT8_MAX;
6389 int8_t a1min = INT8_MIN;
6390 #endif
6391 #ifdef INT16_MAX
6392 int16_t a2 = INT16_MAX;
6393 int16_t a2min = INT16_MIN;
6394 #endif
6395 #ifdef INT32_MAX
6396 int32_t a3 = INT32_MAX;
6397 int32_t a3min = INT32_MIN;
6398 #endif
6399 #ifdef INT64_MAX
6400 int64_t a4 = INT64_MAX;
6401 int64_t a4min = INT64_MIN;
6402 #endif
6403 #ifdef UINT8_MAX
6404 uint8_t b1 = UINT8_MAX;
6405 #else
6406 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6407 #endif
6408 #ifdef UINT16_MAX
6409 uint16_t b2 = UINT16_MAX;
6410 #endif
6411 #ifdef UINT32_MAX
6412 uint32_t b3 = UINT32_MAX;
6413 #endif
6414 #ifdef UINT64_MAX
6415 uint64_t b4 = UINT64_MAX;
6416 #endif
6417 int_least8_t c1 = INT8_C (0x7f);
6418 int_least8_t c1max = INT_LEAST8_MAX;
6419 int_least8_t c1min = INT_LEAST8_MIN;
6420 int_least16_t c2 = INT16_C (0x7fff);
6421 int_least16_t c2max = INT_LEAST16_MAX;
6422 int_least16_t c2min = INT_LEAST16_MIN;
6423 int_least32_t c3 = INT32_C (0x7fffffff);
6424 int_least32_t c3max = INT_LEAST32_MAX;
6425 int_least32_t c3min = INT_LEAST32_MIN;
6426 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6427 int_least64_t c4max = INT_LEAST64_MAX;
6428 int_least64_t c4min = INT_LEAST64_MIN;
6429 uint_least8_t d1 = UINT8_C (0xff);
6430 uint_least8_t d1max = UINT_LEAST8_MAX;
6431 uint_least16_t d2 = UINT16_C (0xffff);
6432 uint_least16_t d2max = UINT_LEAST16_MAX;
6433 uint_least32_t d3 = UINT32_C (0xffffffff);
6434 uint_least32_t d3max = UINT_LEAST32_MAX;
6435 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6436 uint_least64_t d4max = UINT_LEAST64_MAX;
6437 int_fast8_t e1 = INT_FAST8_MAX;
6438 int_fast8_t e1min = INT_FAST8_MIN;
6439 int_fast16_t e2 = INT_FAST16_MAX;
6440 int_fast16_t e2min = INT_FAST16_MIN;
6441 int_fast32_t e3 = INT_FAST32_MAX;
6442 int_fast32_t e3min = INT_FAST32_MIN;
6443 int_fast64_t e4 = INT_FAST64_MAX;
6444 int_fast64_t e4min = INT_FAST64_MIN;
6445 uint_fast8_t f1 = UINT_FAST8_MAX;
6446 uint_fast16_t f2 = UINT_FAST16_MAX;
6447 uint_fast32_t f3 = UINT_FAST32_MAX;
6448 uint_fast64_t f4 = UINT_FAST64_MAX;
6449 #ifdef INTPTR_MAX
6450 intptr_t g = INTPTR_MAX;
6451 intptr_t gmin = INTPTR_MIN;
6452 #endif
6453 #ifdef UINTPTR_MAX
6454 uintptr_t h = UINTPTR_MAX;
6455 #endif
6456 intmax_t i = INTMAX_MAX;
6457 uintmax_t j = UINTMAX_MAX;
6458
6459 #include <limits.h> /* for CHAR_BIT */
6460 #define TYPE_MINIMUM(t) \
6461 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6462 #define TYPE_MAXIMUM(t) \
6463 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6464 struct s {
6465 int check_PTRDIFF:
6466 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6467 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6468 ? 1 : -1;
6469 /* Detect bug in FreeBSD 6.0 / ia64. */
6470 int check_SIG_ATOMIC:
6471 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6472 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6473 ? 1 : -1;
6474 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6475 int check_WCHAR:
6476 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6477 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6478 ? 1 : -1;
6479 /* Detect bug in mingw. */
6480 int check_WINT:
6481 WINT_MIN == TYPE_MINIMUM (wint_t)
6482 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6483 ? 1 : -1;
6484
6485 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6486 int check_UINT8_C:
6487 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6488 int check_UINT16_C:
6489 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6490
6491 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6492 #ifdef UINT8_MAX
6493 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6494 #endif
6495 #ifdef UINT16_MAX
6496 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6497 #endif
6498 #ifdef UINT32_MAX
6499 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6500 #endif
6501 #ifdef UINT64_MAX
6502 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6503 #endif
6504 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6505 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6506 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6507 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6508 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6509 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6510 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6511 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6512 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6513 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6514 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6515 };
6516
6517 int
6518 main ()
6519 {
6520
6521 ;
6522 return 0;
6523 }
6524 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 if test "$cross_compiling" = yes; then :
6527 gl_cv_header_working_stdint_h=yes
6528
6529 else
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6532
6533
6534 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6535 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6536 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6537 #include <stdint.h>
6538
6539
6540 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6541 included before <wchar.h>. */
6542 #include <stddef.h>
6543 #include <signal.h>
6544 #if HAVE_WCHAR_H
6545 # include <stdio.h>
6546 # include <time.h>
6547 # include <wchar.h>
6548 #endif
6549
6550
6551 #include <stdio.h>
6552 #include <string.h>
6553 #define MVAL(macro) MVAL1(macro)
6554 #define MVAL1(expression) #expression
6555 static const char *macro_values[] =
6556 {
6557 #ifdef INT8_MAX
6558 MVAL (INT8_MAX),
6559 #endif
6560 #ifdef INT16_MAX
6561 MVAL (INT16_MAX),
6562 #endif
6563 #ifdef INT32_MAX
6564 MVAL (INT32_MAX),
6565 #endif
6566 #ifdef INT64_MAX
6567 MVAL (INT64_MAX),
6568 #endif
6569 #ifdef UINT8_MAX
6570 MVAL (UINT8_MAX),
6571 #endif
6572 #ifdef UINT16_MAX
6573 MVAL (UINT16_MAX),
6574 #endif
6575 #ifdef UINT32_MAX
6576 MVAL (UINT32_MAX),
6577 #endif
6578 #ifdef UINT64_MAX
6579 MVAL (UINT64_MAX),
6580 #endif
6581 NULL
6582 };
6583
6584 int
6585 main ()
6586 {
6587
6588 const char **mv;
6589 for (mv = macro_values; *mv != NULL; mv++)
6590 {
6591 const char *value = *mv;
6592 /* Test whether it looks like a cast expression. */
6593 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6594 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6595 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6596 || strncmp (value, "((int)"/*)*/, 6) == 0
6597 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6598 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6599 return 1;
6600 }
6601 return 0;
6602
6603 ;
6604 return 0;
6605 }
6606 _ACEOF
6607 if ac_fn_c_try_run "$LINENO"; then :
6608 gl_cv_header_working_stdint_h=yes
6609 fi
6610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6611 conftest.$ac_objext conftest.beam conftest.$ac_ext
6612 fi
6613
6614
6615 fi
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617
6618 fi
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6620 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6621 fi
6622 if test "$gl_cv_header_working_stdint_h" = yes; then
6623 STDINT_H=
6624 else
6625 for ac_header in sys/inttypes.h sys/bitypes.h
6626 do :
6627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6628 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6629 eval as_val=\$$as_ac_Header
6630 if test "x$as_val" = x""yes; then :
6631 cat >>confdefs.h <<_ACEOF
6632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6633 _ACEOF
6634
6635 fi
6636
6637 done
6638
6639 if test $ac_cv_header_sys_inttypes_h = yes; then
6640 HAVE_SYS_INTTYPES_H=1
6641 else
6642 HAVE_SYS_INTTYPES_H=0
6643 fi
6644
6645 if test $ac_cv_header_sys_bitypes_h = yes; then
6646 HAVE_SYS_BITYPES_H=1
6647 else
6648 HAVE_SYS_BITYPES_H=0
6649 fi
6650
6651
6652
6653 :
6654
6655
6656
6657
6658
6659
6660
6661
6662 if test $APPLE_UNIVERSAL_BUILD = 0; then
6663
6664
6665 for gltype in ptrdiff_t size_t ; do
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6667 $as_echo_n "checking for bit size of $gltype... " >&6; }
6668 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6672 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6673 included before <wchar.h>. */
6674 #include <stddef.h>
6675 #include <signal.h>
6676 #if HAVE_WCHAR_H
6677 # include <stdio.h>
6678 # include <time.h>
6679 # include <wchar.h>
6680 #endif
6681
6682 #include <limits.h>"; then :
6683
6684 else
6685 result=unknown
6686 fi
6687
6688 eval gl_cv_bitsizeof_${gltype}=\$result
6689
6690 fi
6691 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6693 $as_echo "$ac_res" >&6; }
6694 eval result=\$gl_cv_bitsizeof_${gltype}
6695 if test $result = unknown; then
6696 result=0
6697 fi
6698 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6699 cat >>confdefs.h <<_ACEOF
6700 #define BITSIZEOF_${GLTYPE} $result
6701 _ACEOF
6702
6703 eval BITSIZEOF_${GLTYPE}=\$result
6704 done
6705
6706
6707 fi
6708
6709
6710 for gltype in sig_atomic_t wchar_t wint_t ; do
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6712 $as_echo_n "checking for bit size of $gltype... " >&6; }
6713 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6714 $as_echo_n "(cached) " >&6
6715 else
6716 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6717 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6718 included before <wchar.h>. */
6719 #include <stddef.h>
6720 #include <signal.h>
6721 #if HAVE_WCHAR_H
6722 # include <stdio.h>
6723 # include <time.h>
6724 # include <wchar.h>
6725 #endif
6726
6727 #include <limits.h>"; then :
6728
6729 else
6730 result=unknown
6731 fi
6732
6733 eval gl_cv_bitsizeof_${gltype}=\$result
6734
6735 fi
6736 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6738 $as_echo "$ac_res" >&6; }
6739 eval result=\$gl_cv_bitsizeof_${gltype}
6740 if test $result = unknown; then
6741 result=0
6742 fi
6743 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6744 cat >>confdefs.h <<_ACEOF
6745 #define BITSIZEOF_${GLTYPE} $result
6746 _ACEOF
6747
6748 eval BITSIZEOF_${GLTYPE}=\$result
6749 done
6750
6751
6752
6753
6754 for gltype in sig_atomic_t wchar_t wint_t ; do
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6756 $as_echo_n "checking whether $gltype is signed... " >&6; }
6757 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762
6763 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6764 included before <wchar.h>. */
6765 #include <stddef.h>
6766 #include <signal.h>
6767 #if HAVE_WCHAR_H
6768 # include <stdio.h>
6769 # include <time.h>
6770 # include <wchar.h>
6771 #endif
6772
6773 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6774 int
6775 main ()
6776 {
6777
6778 ;
6779 return 0;
6780 }
6781 _ACEOF
6782 if ac_fn_c_try_compile "$LINENO"; then :
6783 result=yes
6784 else
6785 result=no
6786 fi
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 eval gl_cv_type_${gltype}_signed=\$result
6789
6790 fi
6791 eval ac_res=\$gl_cv_type_${gltype}_signed
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6793 $as_echo "$ac_res" >&6; }
6794 eval result=\$gl_cv_type_${gltype}_signed
6795 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6796 if test "$result" = yes; then
6797 cat >>confdefs.h <<_ACEOF
6798 #define HAVE_SIGNED_${GLTYPE} 1
6799 _ACEOF
6800
6801 eval HAVE_SIGNED_${GLTYPE}=1
6802 else
6803 eval HAVE_SIGNED_${GLTYPE}=0
6804 fi
6805 done
6806
6807
6808 gl_cv_type_ptrdiff_t_signed=yes
6809 gl_cv_type_size_t_signed=no
6810 if test $APPLE_UNIVERSAL_BUILD = 0; then
6811
6812
6813 for gltype in ptrdiff_t size_t ; do
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6815 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6816 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 eval gl_cv_type_${gltype}_suffix=no
6820 eval result=\$gl_cv_type_${gltype}_signed
6821 if test "$result" = yes; then
6822 glsufu=
6823 else
6824 glsufu=u
6825 fi
6826 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6827 case $glsuf in
6828 '') gltype1='int';;
6829 l) gltype1='long int';;
6830 ll) gltype1='long long int';;
6831 i64) gltype1='__int64';;
6832 u) gltype1='unsigned int';;
6833 ul) gltype1='unsigned long int';;
6834 ull) gltype1='unsigned long long int';;
6835 ui64)gltype1='unsigned __int64';;
6836 esac
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839
6840 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6841 included before <wchar.h>. */
6842 #include <stddef.h>
6843 #include <signal.h>
6844 #if HAVE_WCHAR_H
6845 # include <stdio.h>
6846 # include <time.h>
6847 # include <wchar.h>
6848 #endif
6849
6850 extern $gltype foo;
6851 extern $gltype1 foo;
6852 int
6853 main ()
6854 {
6855
6856 ;
6857 return 0;
6858 }
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861 eval gl_cv_type_${gltype}_suffix=\$glsuf
6862 fi
6863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864 eval result=\$gl_cv_type_${gltype}_suffix
6865 test "$result" != no && break
6866 done
6867 fi
6868 eval ac_res=\$gl_cv_type_${gltype}_suffix
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6870 $as_echo "$ac_res" >&6; }
6871 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6872 eval result=\$gl_cv_type_${gltype}_suffix
6873 test "$result" = no && result=
6874 eval ${GLTYPE}_SUFFIX=\$result
6875 cat >>confdefs.h <<_ACEOF
6876 #define ${GLTYPE}_SUFFIX $result
6877 _ACEOF
6878
6879 done
6880
6881
6882 fi
6883
6884
6885 for gltype in sig_atomic_t wchar_t wint_t ; do
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6887 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6888 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 eval gl_cv_type_${gltype}_suffix=no
6892 eval result=\$gl_cv_type_${gltype}_signed
6893 if test "$result" = yes; then
6894 glsufu=
6895 else
6896 glsufu=u
6897 fi
6898 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6899 case $glsuf in
6900 '') gltype1='int';;
6901 l) gltype1='long int';;
6902 ll) gltype1='long long int';;
6903 i64) gltype1='__int64';;
6904 u) gltype1='unsigned int';;
6905 ul) gltype1='unsigned long int';;
6906 ull) gltype1='unsigned long long int';;
6907 ui64)gltype1='unsigned __int64';;
6908 esac
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911
6912 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6913 included before <wchar.h>. */
6914 #include <stddef.h>
6915 #include <signal.h>
6916 #if HAVE_WCHAR_H
6917 # include <stdio.h>
6918 # include <time.h>
6919 # include <wchar.h>
6920 #endif
6921
6922 extern $gltype foo;
6923 extern $gltype1 foo;
6924 int
6925 main ()
6926 {
6927
6928 ;
6929 return 0;
6930 }
6931 _ACEOF
6932 if ac_fn_c_try_compile "$LINENO"; then :
6933 eval gl_cv_type_${gltype}_suffix=\$glsuf
6934 fi
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936 eval result=\$gl_cv_type_${gltype}_suffix
6937 test "$result" != no && break
6938 done
6939 fi
6940 eval ac_res=\$gl_cv_type_${gltype}_suffix
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6942 $as_echo "$ac_res" >&6; }
6943 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6944 eval result=\$gl_cv_type_${gltype}_suffix
6945 test "$result" = no && result=
6946 eval ${GLTYPE}_SUFFIX=\$result
6947 cat >>confdefs.h <<_ACEOF
6948 #define ${GLTYPE}_SUFFIX $result
6949 _ACEOF
6950
6951 done
6952
6953
6954
6955 STDINT_H=stdint.h
6956 fi
6957
6958
6959 # Code from module string:
6960
6961
6962
6963 # Code from module warn-on-use:
6964 # Code from module wchar:
6965
6966
6967
6968
6969 :
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979 :
6980
6981
6982
6983
6984
6985
6986
6987 if test $gl_cv_have_include_next = yes; then
6988 gl_cv_next_wchar_h='<'wchar.h'>'
6989 else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6991 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6992 if test "${gl_cv_next_wchar_h+set}" = set; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995
6996 if test $ac_cv_header_wchar_h = yes; then
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999 #include <wchar.h>
7000
7001 _ACEOF
7002 case "$host_os" in
7003 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7004 *) gl_absname_cpp="$ac_cpp" ;;
7005 esac
7006 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7007 sed -n '\#/wchar.h#{
7008 s#.*"\(.*/wchar.h\)".*#\1#
7009 s#^/[^/]#//&#
7010 p
7011 q
7012 }'`'"'
7013 else
7014 gl_cv_next_wchar_h='<'wchar.h'>'
7015 fi
7016
7017 fi
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7019 $as_echo "$gl_cv_next_wchar_h" >&6; }
7020 fi
7021 NEXT_WCHAR_H=$gl_cv_next_wchar_h
7022
7023 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7024 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7025 gl_next_as_first_directive='<'wchar.h'>'
7026 else
7027 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7028 gl_next_as_first_directive=$gl_cv_next_wchar_h
7029 fi
7030 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7031
7032
7033
7034 if test $ac_cv_header_wchar_h = yes; then
7035 HAVE_WCHAR_H=1
7036 else
7037 HAVE_WCHAR_H=0
7038 fi
7039
7040
7041
7042 if test $gt_cv_c_wint_t = yes; then
7043 HAVE_WINT_T=1
7044 else
7045 HAVE_WINT_T=0
7046 fi
7047
7048
7049
7050 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
7051 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7053 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7054 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059
7060 /* Some systems require additional headers. */
7061 #ifndef __GLIBC__
7062 # include <stddef.h>
7063 # include <stdio.h>
7064 # include <time.h>
7065 #endif
7066 #include <wchar.h>
7067
7068 int
7069 main ()
7070 {
7071 #undef $gl_func
7072 (void) $gl_func;
7073 ;
7074 return 0;
7075 }
7076 _ACEOF
7077 if ac_fn_c_try_compile "$LINENO"; then :
7078 eval "$as_gl_Symbol=yes"
7079 else
7080 eval "$as_gl_Symbol=no"
7081 fi
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 fi
7084 eval ac_res=\$$as_gl_Symbol
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7086 $as_echo "$ac_res" >&6; }
7087 eval as_val=\$$as_gl_Symbol
7088 if test "x$as_val" = x""yes; then :
7089 cat >>confdefs.h <<_ACEOF
7090 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7091 _ACEOF
7092
7093 eval ac_cv_have_decl_$gl_func=yes
7094 fi
7095 done
7096
7097
7098 # Code from module dummy:
7099 # End of code from modules
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 gltests_libdeps=
7110 gltests_ltlibdeps=
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120 gl_source_base='tests'
7121 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
7122
7123 gl_module_indicator_condition=$gltests_WITNESS
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133 LIBGNU_LIBDEPS="$gl_libdeps"
7134
7135 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7136
7137
7138
7139 # For Makefile dependencies.
7140 GNULIB_STDINT_H=
7141 if test x"$STDINT_H" != x; then
7142 GNULIB_STDINT_H=gnulib/$STDINT_H
7143 fi
7144
7145
7146 PACKAGE=gdb
7147
7148 cat >>confdefs.h <<_ACEOF
7149 #define PACKAGE "$PACKAGE"
7150 _ACEOF
7151
7152
7153
7154 # GDB does not use automake, but gnulib does. This line lets us
7155 # generate its Makefile.in.
7156 am__api_version='1.11'
7157
7158 # Find a good install program. We prefer a C program (faster),
7159 # so one script is as good as another. But avoid the broken or
7160 # incompatible versions:
7161 # SysV /etc/install, /usr/sbin/install
7162 # SunOS /usr/etc/install
7163 # IRIX /sbin/install
7164 # AIX /bin/install
7165 # AmigaOS /C/install, which installs bootblocks on floppy discs
7166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7169 # OS/2's system install, which has a completely different semantic
7170 # ./install, which can be erroneously created by make from ./install.sh.
7171 # Reject install programs that cannot install multiple files.
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7173 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7174 if test -z "$INSTALL"; then
7175 if test "${ac_cv_path_install+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 # Account for people who put trailing slashes in PATH elements.
7184 case $as_dir/ in #((
7185 ./ | .// | /[cC]/* | \
7186 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7187 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7188 /usr/ucb/* ) ;;
7189 *)
7190 # OSF1 and SCO ODT 3.0 have their own names for install.
7191 # Don't use installbsd from OSF since it installs stuff as root
7192 # by default.
7193 for ac_prog in ginstall scoinst install; do
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7196 if test $ac_prog = install &&
7197 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7198 # AIX install. It has an incompatible calling convention.
7199 :
7200 elif test $ac_prog = install &&
7201 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7202 # program-specific install script used by HP pwplus--don't use.
7203 :
7204 else
7205 rm -rf conftest.one conftest.two conftest.dir
7206 echo one > conftest.one
7207 echo two > conftest.two
7208 mkdir conftest.dir
7209 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7210 test -s conftest.one && test -s conftest.two &&
7211 test -s conftest.dir/conftest.one &&
7212 test -s conftest.dir/conftest.two
7213 then
7214 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7215 break 3
7216 fi
7217 fi
7218 fi
7219 done
7220 done
7221 ;;
7222 esac
7223
7224 done
7225 IFS=$as_save_IFS
7226
7227 rm -rf conftest.one conftest.two conftest.dir
7228
7229 fi
7230 if test "${ac_cv_path_install+set}" = set; then
7231 INSTALL=$ac_cv_path_install
7232 else
7233 # As a last resort, use the slow shell script. Don't cache a
7234 # value for INSTALL within a source directory, because that will
7235 # break other packages using the cache if that directory is
7236 # removed, or if the value is a relative name.
7237 INSTALL=$ac_install_sh
7238 fi
7239 fi
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7241 $as_echo "$INSTALL" >&6; }
7242
7243 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7244 # It thinks the first close brace ends the variable substitution.
7245 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7246
7247 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7248
7249 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7250
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7252 $as_echo_n "checking whether build environment is sane... " >&6; }
7253 # Just in case
7254 sleep 1
7255 echo timestamp > conftest.file
7256 # Reject unsafe characters in $srcdir or the absolute working directory
7257 # name. Accept space and tab only in the latter.
7258 am_lf='
7259 '
7260 case `pwd` in
7261 *[\\\"\#\$\&\'\`$am_lf]*)
7262 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7263 esac
7264 case $srcdir in
7265 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7266 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7267 esac
7268
7269 # Do `set' in a subshell so we don't clobber the current shell's
7270 # arguments. Must try -L first in case configure is actually a
7271 # symlink; some systems play weird games with the mod time of symlinks
7272 # (eg FreeBSD returns the mod time of the symlink's containing
7273 # directory).
7274 if (
7275 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7276 if test "$*" = "X"; then
7277 # -L didn't work.
7278 set X `ls -t "$srcdir/configure" conftest.file`
7279 fi
7280 rm -f conftest.file
7281 if test "$*" != "X $srcdir/configure conftest.file" \
7282 && test "$*" != "X conftest.file $srcdir/configure"; then
7283
7284 # If neither matched, then we have a broken ls. This can happen
7285 # if, for instance, CONFIG_SHELL is bash and it inherits a
7286 # broken ls alias from the environment. This has actually
7287 # happened. Such a system could not be considered "sane".
7288 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7289 alias in your environment" "$LINENO" 5
7290 fi
7291
7292 test "$2" = conftest.file
7293 )
7294 then
7295 # Ok.
7296 :
7297 else
7298 as_fn_error "newly created file is older than distributed files!
7299 Check your system clock" "$LINENO" 5
7300 fi
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7302 $as_echo "yes" >&6; }
7303 test "$program_prefix" != NONE &&
7304 program_transform_name="s&^&$program_prefix&;$program_transform_name"
7305 # Use a double $ so make ignores it.
7306 test "$program_suffix" != NONE &&
7307 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7308 # Double any \ or $.
7309 # By default was `s,x,x', remove it if useless.
7310 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7311 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7312
7313 # expand $ac_aux_dir to an absolute path
7314 am_aux_dir=`cd $ac_aux_dir && pwd`
7315
7316 if test x"${MISSING+set}" != xset; then
7317 case $am_aux_dir in
7318 *\ * | *\ *)
7319 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7320 *)
7321 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7322 esac
7323 fi
7324 # Use eval to expand $SHELL
7325 if eval "$MISSING --run true"; then
7326 am_missing_run="$MISSING --run "
7327 else
7328 am_missing_run=
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7330 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7331 fi
7332
7333 if test x"${install_sh}" != xset; then
7334 case $am_aux_dir in
7335 *\ * | *\ *)
7336 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7337 *)
7338 install_sh="\${SHELL} $am_aux_dir/install-sh"
7339 esac
7340 fi
7341
7342 # Installed binaries are usually stripped using `strip' when the user
7343 # run `make install-strip'. However `strip' might not be the right
7344 # tool to use in cross-compilation environments, therefore Automake
7345 # will honor the `STRIP' environment variable to overrule this program.
7346 if test "$cross_compiling" != no; then
7347 if test -n "$ac_tool_prefix"; then
7348 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7349 set dummy ${ac_tool_prefix}strip; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if test "${ac_cv_prog_STRIP+set}" = set; then :
7353 $as_echo_n "(cached) " >&6
7354 else
7355 if test -n "$STRIP"; then
7356 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7360 do
7361 IFS=$as_save_IFS
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7365 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 break 2
7368 fi
7369 done
7370 done
7371 IFS=$as_save_IFS
7372
7373 fi
7374 fi
7375 STRIP=$ac_cv_prog_STRIP
7376 if test -n "$STRIP"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7378 $as_echo "$STRIP" >&6; }
7379 else
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7382 fi
7383
7384
7385 fi
7386 if test -z "$ac_cv_prog_STRIP"; then
7387 ac_ct_STRIP=$STRIP
7388 # Extract the first word of "strip", so it can be a program name with args.
7389 set dummy strip; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 if test -n "$ac_ct_STRIP"; then
7396 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401 IFS=$as_save_IFS
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7405 ac_cv_prog_ac_ct_STRIP="strip"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 break 2
7408 fi
7409 done
7410 done
7411 IFS=$as_save_IFS
7412
7413 fi
7414 fi
7415 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7416 if test -n "$ac_ct_STRIP"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7418 $as_echo "$ac_ct_STRIP" >&6; }
7419 else
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422 fi
7423
7424 if test "x$ac_ct_STRIP" = x; then
7425 STRIP=":"
7426 else
7427 case $cross_compiling:$ac_tool_warned in
7428 yes:)
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431 ac_tool_warned=yes ;;
7432 esac
7433 STRIP=$ac_ct_STRIP
7434 fi
7435 else
7436 STRIP="$ac_cv_prog_STRIP"
7437 fi
7438
7439 fi
7440 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7441
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7443 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7444 if test -z "$MKDIR_P"; then
7445 if test "${ac_cv_path_mkdir+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7450 do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_prog in mkdir gmkdir; do
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7456 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7457 'mkdir (GNU coreutils) '* | \
7458 'mkdir (coreutils) '* | \
7459 'mkdir (fileutils) '4.1*)
7460 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7461 break 3;;
7462 esac
7463 done
7464 done
7465 done
7466 IFS=$as_save_IFS
7467
7468 fi
7469
7470 if test "${ac_cv_path_mkdir+set}" = set; then
7471 MKDIR_P="$ac_cv_path_mkdir -p"
7472 else
7473 # As a last resort, use the slow shell script. Don't cache a
7474 # value for MKDIR_P within a source directory, because that will
7475 # break other packages using the cache if that directory is
7476 # removed, or if the value is a relative name.
7477 test -d ./--version && rmdir ./--version
7478 MKDIR_P="$ac_install_sh -d"
7479 fi
7480 fi
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7482 $as_echo "$MKDIR_P" >&6; }
7483
7484
7485 mkdir_p="$MKDIR_P"
7486 case $mkdir_p in
7487 [\\/$]* | ?:[\\/]*) ;;
7488 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7489 esac
7490
7491 for ac_prog in gawk mawk nawk awk
7492 do
7493 # Extract the first word of "$ac_prog", so it can be a program name with args.
7494 set dummy $ac_prog; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if test "${ac_cv_prog_AWK+set}" = set; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 if test -n "$AWK"; then
7501 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_prog_AWK="$ac_prog"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 AWK=$ac_cv_prog_AWK
7521 if test -n "$AWK"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7523 $as_echo "$AWK" >&6; }
7524 else
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530 test -n "$AWK" && break
7531 done
7532
7533 ac_config_commands="$ac_config_commands depfiles"
7534
7535
7536 am_make=${MAKE-make}
7537 cat > confinc << 'END'
7538 am__doit:
7539 @echo this is the am__doit target
7540 .PHONY: am__doit
7541 END
7542 # If we don't find an include directive, just comment out the code.
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7544 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7545 am__include="#"
7546 am__quote=
7547 _am_result=none
7548 # First try GNU make style include.
7549 echo "include confinc" > confmf
7550 # Ignore all kinds of additional output from `make'.
7551 case `$am_make -s -f confmf 2> /dev/null` in #(
7552 *the\ am__doit\ target*)
7553 am__include=include
7554 am__quote=
7555 _am_result=GNU
7556 ;;
7557 esac
7558 # Now try BSD make style include.
7559 if test "$am__include" = "#"; then
7560 echo '.include "confinc"' > confmf
7561 case `$am_make -s -f confmf 2> /dev/null` in #(
7562 *the\ am__doit\ target*)
7563 am__include=.include
7564 am__quote="\""
7565 _am_result=BSD
7566 ;;
7567 esac
7568 fi
7569
7570
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7572 $as_echo "$_am_result" >&6; }
7573 rm -f confinc confmf
7574
7575 # Check whether --enable-dependency-tracking was given.
7576 if test "${enable_dependency_tracking+set}" = set; then :
7577 enableval=$enable_dependency_tracking;
7578 fi
7579
7580 if test "x$enable_dependency_tracking" != xno; then
7581 am_depcomp="$ac_aux_dir/depcomp"
7582 AMDEPBACKSLASH='\'
7583 fi
7584 if test "x$enable_dependency_tracking" != xno; then
7585 AMDEP_TRUE=
7586 AMDEP_FALSE='#'
7587 else
7588 AMDEP_TRUE='#'
7589 AMDEP_FALSE=
7590 fi
7591
7592
7593 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7594 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7595 # is not polluted with repeated "-I."
7596 am__isrc=' -I$(srcdir)'
7597 # test to see if srcdir already configured
7598 if test -f $srcdir/config.status; then
7599 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7600 fi
7601 fi
7602
7603 # test whether we have cygpath
7604 if test -z "$CYGPATH_W"; then
7605 if (cygpath --version) >/dev/null 2>/dev/null; then
7606 CYGPATH_W='cygpath -w'
7607 else
7608 CYGPATH_W=echo
7609 fi
7610 fi
7611
7612
7613 # Define the identity of the package.
7614 PACKAGE=gdb
7615 VERSION=UNUSED-VERSION
7616
7617
7618 # Some tools Automake needs.
7619
7620 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7621
7622
7623 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7624
7625
7626 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7627
7628
7629 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7630
7631
7632 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7633
7634 # We need awk for the "check" target. The system "awk" is bad on
7635 # some platforms.
7636 # Always define AMTAR for backward compatibility.
7637
7638 AMTAR=${AMTAR-"${am_missing_run}tar"}
7639
7640 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7641
7642
7643
7644
7645 depcc="$CC" am_compiler_list=
7646
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7648 $as_echo_n "checking dependency style of $depcc... " >&6; }
7649 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7652 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7653 # We make a subdir and do the tests there. Otherwise we can end up
7654 # making bogus files that we don't know about and never remove. For
7655 # instance it was reported that on HP-UX the gcc test will end up
7656 # making a dummy file named `D' -- because `-MD' means `put the output
7657 # in D'.
7658 mkdir conftest.dir
7659 # Copy depcomp to subdir because otherwise we won't find it if we're
7660 # using a relative directory.
7661 cp "$am_depcomp" conftest.dir
7662 cd conftest.dir
7663 # We will build objects and dependencies in a subdirectory because
7664 # it helps to detect inapplicable dependency modes. For instance
7665 # both Tru64's cc and ICC support -MD to output dependencies as a
7666 # side effect of compilation, but ICC will put the dependencies in
7667 # the current directory while Tru64 will put them in the object
7668 # directory.
7669 mkdir sub
7670
7671 am_cv_CC_dependencies_compiler_type=none
7672 if test "$am_compiler_list" = ""; then
7673 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7674 fi
7675 am__universal=false
7676 case " $depcc " in #(
7677 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7678 esac
7679
7680 for depmode in $am_compiler_list; do
7681 # Setup a source with many dependencies, because some compilers
7682 # like to wrap large dependency lists on column 80 (with \), and
7683 # we should not choose a depcomp mode which is confused by this.
7684 #
7685 # We need to recreate these files for each test, as the compiler may
7686 # overwrite some of them when testing with obscure command lines.
7687 # This happens at least with the AIX C compiler.
7688 : > sub/conftest.c
7689 for i in 1 2 3 4 5 6; do
7690 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7691 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7692 # Solaris 8's {/usr,}/bin/sh.
7693 touch sub/conftst$i.h
7694 done
7695 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7696
7697 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7698 # mode. It turns out that the SunPro C++ compiler does not properly
7699 # handle `-M -o', and we need to detect this. Also, some Intel
7700 # versions had trouble with output in subdirs
7701 am__obj=sub/conftest.${OBJEXT-o}
7702 am__minus_obj="-o $am__obj"
7703 case $depmode in
7704 gcc)
7705 # This depmode causes a compiler race in universal mode.
7706 test "$am__universal" = false || continue
7707 ;;
7708 nosideeffect)
7709 # after this tag, mechanisms are not by side-effect, so they'll
7710 # only be used when explicitly requested
7711 if test "x$enable_dependency_tracking" = xyes; then
7712 continue
7713 else
7714 break
7715 fi
7716 ;;
7717 msvisualcpp | msvcmsys)
7718 # This compiler won't grok `-c -o', but also, the minuso test has
7719 # not run yet. These depmodes are late enough in the game, and
7720 # so weak that their functioning should not be impacted.
7721 am__obj=conftest.${OBJEXT-o}
7722 am__minus_obj=
7723 ;;
7724 none) break ;;
7725 esac
7726 if depmode=$depmode \
7727 source=sub/conftest.c object=$am__obj \
7728 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7729 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7730 >/dev/null 2>conftest.err &&
7731 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7732 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7733 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7734 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7735 # icc doesn't choke on unknown options, it will just issue warnings
7736 # or remarks (even with -Werror). So we grep stderr for any message
7737 # that says an option was ignored or not supported.
7738 # When given -MP, icc 7.0 and 7.1 complain thusly:
7739 # icc: Command line warning: ignoring option '-M'; no argument required
7740 # The diagnosis changed in icc 8.0:
7741 # icc: Command line remark: option '-MP' not supported
7742 if (grep 'ignoring option' conftest.err ||
7743 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7744 am_cv_CC_dependencies_compiler_type=$depmode
7745 break
7746 fi
7747 fi
7748 done
7749
7750 cd ..
7751 rm -rf conftest.dir
7752 else
7753 am_cv_CC_dependencies_compiler_type=none
7754 fi
7755
7756 fi
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7758 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7759 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7760
7761 if
7762 test "x$enable_dependency_tracking" != xno \
7763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7764 am__fastdepCC_TRUE=
7765 am__fastdepCC_FALSE='#'
7766 else
7767 am__fastdepCC_TRUE='#'
7768 am__fastdepCC_FALSE=
7769 fi
7770
7771
7772
7773
7774
7775
7776 # Check whether --with-separate-debug-dir was given.
7777 if test "${with_separate_debug_dir+set}" = set; then :
7778 withval=$with_separate_debug_dir;
7779 DEBUGDIR=$withval
7780 else
7781 DEBUGDIR=${libdir}/debug
7782 fi
7783
7784
7785 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7786 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7787 ac_define_dir=`eval echo $DEBUGDIR`
7788 ac_define_dir=`eval echo $ac_define_dir`
7789
7790 cat >>confdefs.h <<_ACEOF
7791 #define DEBUGDIR "$ac_define_dir"
7792 _ACEOF
7793
7794
7795
7796
7797 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7798 if test "x$prefix" = xNONE; then
7799 test_prefix=/usr/local
7800 else
7801 test_prefix=$prefix
7802 fi
7803 else
7804 test_prefix=$exec_prefix
7805 fi
7806 value=0
7807 case ${ac_define_dir} in
7808 "${test_prefix}"|"${test_prefix}/"*|\
7809 '${exec_prefix}'|'${exec_prefix}/'*)
7810 value=1
7811 ;;
7812 esac
7813
7814 cat >>confdefs.h <<_ACEOF
7815 #define DEBUGDIR_RELOCATABLE $value
7816 _ACEOF
7817
7818
7819
7820
7821 # GDB's datadir relocation
7822
7823
7824
7825 # Check whether --with-gdb-datadir was given.
7826 if test "${with_gdb_datadir+set}" = set; then :
7827 withval=$with_gdb_datadir;
7828 GDB_DATADIR=$withval
7829 else
7830 GDB_DATADIR=${datadir}/gdb
7831 fi
7832
7833
7834 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7835 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7836 ac_define_dir=`eval echo $GDB_DATADIR`
7837 ac_define_dir=`eval echo $ac_define_dir`
7838
7839 cat >>confdefs.h <<_ACEOF
7840 #define GDB_DATADIR "$ac_define_dir"
7841 _ACEOF
7842
7843
7844
7845
7846 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7847 if test "x$prefix" = xNONE; then
7848 test_prefix=/usr/local
7849 else
7850 test_prefix=$prefix
7851 fi
7852 else
7853 test_prefix=$exec_prefix
7854 fi
7855 value=0
7856 case ${ac_define_dir} in
7857 "${test_prefix}"|"${test_prefix}/"*|\
7858 '${exec_prefix}'|'${exec_prefix}/'*)
7859 value=1
7860 ;;
7861 esac
7862
7863 cat >>confdefs.h <<_ACEOF
7864 #define GDB_DATADIR_RELOCATABLE $value
7865 _ACEOF
7866
7867
7868
7869
7870
7871 # Check whether --with-relocated-sources was given.
7872 if test "${with_relocated_sources+set}" = set; then :
7873 withval=$with_relocated_sources; reloc_srcdir="${withval}"
7874
7875 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7876 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7877 ac_define_dir=`eval echo $reloc_srcdir`
7878 ac_define_dir=`eval echo $ac_define_dir`
7879
7880 cat >>confdefs.h <<_ACEOF
7881 #define RELOC_SRCDIR "$ac_define_dir"
7882 _ACEOF
7883
7884
7885
7886 fi
7887
7888
7889
7890
7891 subdirs="$subdirs testsuite"
7892
7893
7894 # Check whether to support alternative target configurations
7895 # Check whether --enable-targets was given.
7896 if test "${enable_targets+set}" = set; then :
7897 enableval=$enable_targets; case "${enableval}" in
7898 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7899 ;;
7900 no) enable_targets= ;;
7901 *) enable_targets=$enableval ;;
7902 esac
7903 fi
7904
7905
7906 # Check whether to enable 64-bit support on 32-bit hosts
7907 # Check whether --enable-64-bit-bfd was given.
7908 if test "${enable_64_bit_bfd+set}" = set; then :
7909 enableval=$enable_64_bit_bfd; case "${enableval}" in
7910 yes) want64=true ;;
7911 no) want64=false ;;
7912 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7913 esac
7914 else
7915 want64=false
7916 fi
7917
7918 # Provide defaults for some variables set by the per-host and per-target
7919 # configuration.
7920 gdb_host_obs=posix-hdep.o
7921
7922 if test "${target}" = "${host}"; then
7923 gdb_native=yes
7924 else
7925 gdb_native=no
7926 fi
7927
7928 . $srcdir/configure.host
7929
7930 # Accumulate some settings from configure.tgt over all enabled targets
7931
7932 TARGET_OBS=
7933 all_targets=
7934
7935 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7936 do
7937 if test "$targ_alias" = "all"; then
7938 all_targets=true
7939 else
7940 # Canonicalize the secondary target names.
7941 result=`$ac_config_sub $targ_alias 2>/dev/null`
7942 if test -n "$result"; then
7943 targ=$result
7944 else
7945 targ=$targ_alias
7946 fi
7947
7948 . ${srcdir}/configure.tgt
7949
7950 if test -z "${gdb_target_obs}"; then :
7951 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
7952 fi
7953
7954 # Target-specific object files
7955 for i in ${gdb_target_obs}; do
7956 case " $TARGET_OBS " in
7957 *" ${i} "*) ;;
7958 *)
7959 TARGET_OBS="$TARGET_OBS ${i}"
7960 ;;
7961 esac
7962 done
7963
7964 # Check whether this target needs 64-bit CORE_ADDR
7965 if test x${want64} = xfalse; then
7966 . ${srcdir}/../bfd/config.bfd
7967 fi
7968 fi
7969 done
7970
7971 if test x${all_targets} = xtrue; then
7972
7973 # We want all 64-bit targets if we either:
7974 # - run on a 64-bit host or
7975 # - already require 64-bit support for some other target or
7976 # - the --enable-64-bit-bfd option was supplied
7977 # Otherwise we only support all 32-bit targets.
7978 #
7979 # NOTE: This test must be in sync with the corresponding
7980 # tests in BFD!
7981
7982 if test x${want64} = xfalse; then
7983 # The cast to long int works around a bug in the HP C Compiler
7984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7986 # This bug is HP SR number 8606223364.
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7988 $as_echo_n "checking size of long... " >&6; }
7989 if test "${ac_cv_sizeof_long+set}" = set; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7993
7994 else
7995 if test "$ac_cv_type_long" = yes; then
7996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7998 { as_fn_set_status 77
7999 as_fn_error "cannot compute sizeof (long)
8000 See \`config.log' for more details." "$LINENO" 5; }; }
8001 else
8002 ac_cv_sizeof_long=0
8003 fi
8004 fi
8005
8006 fi
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8008 $as_echo "$ac_cv_sizeof_long" >&6; }
8009
8010
8011
8012 cat >>confdefs.h <<_ACEOF
8013 #define SIZEOF_LONG $ac_cv_sizeof_long
8014 _ACEOF
8015
8016
8017 if test "x${ac_cv_sizeof_long}" = "x8"; then
8018 want64=true
8019 fi
8020 fi
8021 if test x${want64} = xtrue; then
8022 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8023 else
8024 TARGET_OBS='$(ALL_TARGET_OBS)'
8025 fi
8026 fi
8027
8028
8029
8030 # For other settings, only the main target counts.
8031 gdb_sim=
8032 gdb_osabi=
8033 build_gdbserver=
8034 targ=$target; . ${srcdir}/configure.tgt
8035
8036 # Fetch the default architecture and default target vector from BFD.
8037 targ=$target; . $srcdir/../bfd/config.bfd
8038
8039 # We only want the first architecture, so strip off the others if
8040 # there is more than one.
8041 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8042
8043 if test "x$targ_archs" != x; then
8044
8045 cat >>confdefs.h <<_ACEOF
8046 #define DEFAULT_BFD_ARCH $targ_archs
8047 _ACEOF
8048
8049 fi
8050 if test "x$targ_defvec" != x; then
8051
8052 cat >>confdefs.h <<_ACEOF
8053 #define DEFAULT_BFD_VEC $targ_defvec
8054 _ACEOF
8055
8056 fi
8057
8058 # The CLI cannot be disabled yet, but may be in the future.
8059
8060 # Enable CLI.
8061 # Check whether --enable-gdbcli was given.
8062 if test "${enable_gdbcli+set}" = set; then :
8063 enableval=$enable_gdbcli; case $enableval in
8064 yes)
8065 ;;
8066 no)
8067 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8068 *)
8069 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8070 esac
8071 else
8072 enable_gdbcli=yes
8073 fi
8074
8075 if test x"$enable_gdbcli" = xyes; then
8076 if test -d $srcdir/cli; then
8077 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8078 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8079 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8080 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8081 fi
8082 fi
8083
8084 # Enable MI.
8085 # Check whether --enable-gdbmi was given.
8086 if test "${enable_gdbmi+set}" = set; then :
8087 enableval=$enable_gdbmi; case $enableval in
8088 yes | no)
8089 ;;
8090 *)
8091 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8092 esac
8093 else
8094 enable_gdbmi=yes
8095 fi
8096
8097 if test x"$enable_gdbmi" = xyes; then
8098 if test -d $srcdir/mi; then
8099 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8100 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8101 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8102 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8103 fi
8104 fi
8105
8106 # Enable TUI.
8107 # Check whether --enable-tui was given.
8108 if test "${enable_tui+set}" = set; then :
8109 enableval=$enable_tui; case $enableval in
8110 yes | no | auto)
8111 ;;
8112 *)
8113 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8114 esac
8115 else
8116 enable_tui=auto
8117 fi
8118
8119
8120 # Enable gdbtk.
8121 # Check whether --enable-gdbtk was given.
8122 if test "${enable_gdbtk+set}" = set; then :
8123 enableval=$enable_gdbtk; case $enableval in
8124 yes | no)
8125 ;;
8126 *)
8127 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8128 esac
8129 else
8130 if test -d $srcdir/gdbtk; then
8131 enable_gdbtk=yes
8132 else
8133 enable_gdbtk=no
8134 fi
8135 fi
8136
8137 # We unconditionally disable gdbtk tests on selected platforms.
8138 case $host_os in
8139 go32* | windows*)
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8141 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8142 enable_gdbtk=no ;;
8143 esac
8144
8145 # Libunwind support.
8146
8147 # Check whether --with-libunwind was given.
8148 if test "${with_libunwind+set}" = set; then :
8149 withval=$with_libunwind; case "${withval}" in
8150 yes) enable_libunwind=yes ;;
8151 no) enable_libunwind=no ;;
8152 *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8153 esac
8154 else
8155
8156 for ac_header in libunwind.h libunwind-ia64.h
8157 do :
8158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8159 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8160 eval as_val=\$$as_ac_Header
8161 if test "x$as_val" = x""yes; then :
8162 cat >>confdefs.h <<_ACEOF
8163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8164 _ACEOF
8165
8166 fi
8167
8168 done
8169
8170 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8171 enable_libunwind=yes;
8172 fi
8173
8174 fi
8175
8176
8177 if test x"$enable_libunwind" = xyes; then
8178 for ac_header in libunwind.h libunwind-ia64.h
8179 do :
8180 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8181 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8182 eval as_val=\$$as_ac_Header
8183 if test "x$as_val" = x""yes; then :
8184 cat >>confdefs.h <<_ACEOF
8185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8186 _ACEOF
8187
8188 fi
8189
8190 done
8191
8192
8193 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8194
8195 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8196 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8197 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8198 fi
8199
8200 opt_curses=no
8201
8202 # Check whether --with-curses was given.
8203 if test "${with_curses+set}" = set; then :
8204 withval=$with_curses; opt_curses=$withval
8205 fi
8206
8207
8208 prefer_curses=no
8209 if test "$opt_curses" = "yes"; then
8210 prefer_curses=yes
8211 fi
8212
8213 # Profiling support.
8214 # Check whether --enable-profiling was given.
8215 if test "${enable_profiling+set}" = set; then :
8216 enableval=$enable_profiling; case $enableval in
8217 yes | no)
8218 ;;
8219 *)
8220 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8221 esac
8222 else
8223 enable_profiling=no
8224 fi
8225
8226
8227 for ac_func in monstartup _mcleanup
8228 do :
8229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8231 eval as_val=\$$as_ac_var
8232 if test "x$as_val" = x""yes; then :
8233 cat >>confdefs.h <<_ACEOF
8234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8235 _ACEOF
8236
8237 fi
8238 done
8239
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8241 $as_echo_n "checking for _etext... " >&6; }
8242 if test "${ac_cv_var__etext+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8247 #include <stdlib.h>
8248 extern char _etext;
8249
8250 int
8251 main ()
8252 {
8253 free (&_etext);
8254 ;
8255 return 0;
8256 }
8257 _ACEOF
8258 if ac_fn_c_try_link "$LINENO"; then :
8259 ac_cv_var__etext=yes
8260 else
8261 ac_cv_var__etext=no
8262 fi
8263 rm -f core conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8265 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8267 $as_echo "$ac_cv_var__etext" >&6; }
8268 if test $ac_cv_var__etext = yes; then
8269
8270 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8271
8272 fi
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8274 $as_echo_n "checking for etext... " >&6; }
8275 if test "${ac_cv_var_etext+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 #include <stdlib.h>
8281 extern char etext;
8282
8283 int
8284 main ()
8285 {
8286 free (&etext);
8287 ;
8288 return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_link "$LINENO"; then :
8292 ac_cv_var_etext=yes
8293 else
8294 ac_cv_var_etext=no
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext \
8297 conftest$ac_exeext conftest.$ac_ext
8298 fi
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8300 $as_echo "$ac_cv_var_etext" >&6; }
8301 if test $ac_cv_var_etext = yes; then
8302
8303 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8304
8305 fi
8306 if test "$enable_profiling" = yes ; then
8307 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8308 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8309 fi
8310 PROFILE_CFLAGS=-pg
8311 OLD_CFLAGS="$CFLAGS"
8312 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8313
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8315 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8316 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321
8322 int
8323 main ()
8324 {
8325 int x;
8326 ;
8327 return 0;
8328 }
8329 _ACEOF
8330 if ac_fn_c_try_compile "$LINENO"; then :
8331 ac_cv_cc_supports_pg=yes
8332 else
8333 ac_cv_cc_supports_pg=no
8334 fi
8335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 fi
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8338 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8339
8340 if test $ac_cv_cc_supports_pg = no; then
8341 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8342 fi
8343
8344 CFLAGS="$OLD_CFLAGS"
8345 fi
8346
8347
8348
8349 # Check whether --with-pkgversion was given.
8350 if test "${with_pkgversion+set}" = set; then :
8351 withval=$with_pkgversion; case "$withval" in
8352 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8353 no) PKGVERSION= ;;
8354 *) PKGVERSION="($withval) " ;;
8355 esac
8356 else
8357 PKGVERSION="(GDB) "
8358
8359 fi
8360
8361
8362
8363
8364
8365 # Check whether --with-bugurl was given.
8366 if test "${with_bugurl+set}" = set; then :
8367 withval=$with_bugurl; case "$withval" in
8368 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8369 no) BUGURL=
8370 ;;
8371 *) BUGURL="$withval"
8372 ;;
8373 esac
8374 else
8375 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8376
8377 fi
8378
8379 case ${BUGURL} in
8380 "")
8381 REPORT_BUGS_TO=
8382 REPORT_BUGS_TEXI=
8383 ;;
8384 *)
8385 REPORT_BUGS_TO="<$BUGURL>"
8386 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8387 ;;
8388 esac;
8389
8390
8391
8392
8393 cat >>confdefs.h <<_ACEOF
8394 #define PKGVERSION "$PKGVERSION"
8395 _ACEOF
8396
8397
8398 cat >>confdefs.h <<_ACEOF
8399 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8400 _ACEOF
8401
8402
8403 # --------------------- #
8404 # Checks for programs. #
8405 # --------------------- #
8406
8407 for ac_prog in gawk mawk nawk awk
8408 do
8409 # Extract the first word of "$ac_prog", so it can be a program name with args.
8410 set dummy $ac_prog; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if test "${ac_cv_prog_AWK+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 if test -n "$AWK"; then
8417 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8418 else
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8421 do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_prog_AWK="$ac_prog"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8429 fi
8430 done
8431 done
8432 IFS=$as_save_IFS
8433
8434 fi
8435 fi
8436 AWK=$ac_cv_prog_AWK
8437 if test -n "$AWK"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8439 $as_echo "$AWK" >&6; }
8440 else
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8443 fi
8444
8445
8446 test -n "$AWK" && break
8447 done
8448
8449
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8451 $as_echo_n "checking whether ln -s works... " >&6; }
8452 LN_S=$as_ln_s
8453 if test "$LN_S" = "ln -s"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8455 $as_echo "yes" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8458 $as_echo "no, using $LN_S" >&6; }
8459 fi
8460
8461 if test -n "$ac_tool_prefix"; then
8462 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8463 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 $as_echo_n "checking for $ac_word... " >&6; }
8466 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8467 $as_echo_n "(cached) " >&6
8468 else
8469 if test -n "$RANLIB"; then
8470 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8471 else
8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473 for as_dir in $PATH
8474 do
8475 IFS=$as_save_IFS
8476 test -z "$as_dir" && as_dir=.
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8479 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 break 2
8482 fi
8483 done
8484 done
8485 IFS=$as_save_IFS
8486
8487 fi
8488 fi
8489 RANLIB=$ac_cv_prog_RANLIB
8490 if test -n "$RANLIB"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8492 $as_echo "$RANLIB" >&6; }
8493 else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8496 fi
8497
8498
8499 fi
8500 if test -z "$ac_cv_prog_RANLIB"; then
8501 ac_ct_RANLIB=$RANLIB
8502 # Extract the first word of "ranlib", so it can be a program name with args.
8503 set dummy ranlib; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 if test -n "$ac_ct_RANLIB"; then
8510 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8511 else
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 for as_dir in $PATH
8514 do
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8519 ac_cv_prog_ac_ct_RANLIB="ranlib"
8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8521 break 2
8522 fi
8523 done
8524 done
8525 IFS=$as_save_IFS
8526
8527 fi
8528 fi
8529 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8530 if test -n "$ac_ct_RANLIB"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8532 $as_echo "$ac_ct_RANLIB" >&6; }
8533 else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8536 fi
8537
8538 if test "x$ac_ct_RANLIB" = x; then
8539 RANLIB=":"
8540 else
8541 case $cross_compiling:$ac_tool_warned in
8542 yes:)
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8545 ac_tool_warned=yes ;;
8546 esac
8547 RANLIB=$ac_ct_RANLIB
8548 fi
8549 else
8550 RANLIB="$ac_cv_prog_RANLIB"
8551 fi
8552
8553 for ac_prog in 'bison -y' byacc
8554 do
8555 # Extract the first word of "$ac_prog", so it can be a program name with args.
8556 set dummy $ac_prog; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if test "${ac_cv_prog_YACC+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 if test -n "$YACC"; then
8563 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8564 else
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 for as_dir in $PATH
8567 do
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8572 ac_cv_prog_YACC="$ac_prog"
8573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 break 2
8575 fi
8576 done
8577 done
8578 IFS=$as_save_IFS
8579
8580 fi
8581 fi
8582 YACC=$ac_cv_prog_YACC
8583 if test -n "$YACC"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8585 $as_echo "$YACC" >&6; }
8586 else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8589 fi
8590
8591
8592 test -n "$YACC" && break
8593 done
8594 test -n "$YACC" || YACC="yacc"
8595
8596
8597 if test -n "$ac_tool_prefix"; then
8598 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8599 set dummy ${ac_tool_prefix}ar; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if test "${ac_cv_prog_AR+set}" = set; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 if test -n "$AR"; then
8606 ac_cv_prog_AR="$AR" # Let the user override the test.
8607 else
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 for as_dir in $PATH
8610 do
8611 IFS=$as_save_IFS
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8615 ac_cv_prog_AR="${ac_tool_prefix}ar"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617 break 2
8618 fi
8619 done
8620 done
8621 IFS=$as_save_IFS
8622
8623 fi
8624 fi
8625 AR=$ac_cv_prog_AR
8626 if test -n "$AR"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8628 $as_echo "$AR" >&6; }
8629 else
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8632 fi
8633
8634
8635 fi
8636 if test -z "$ac_cv_prog_AR"; then
8637 ac_ct_AR=$AR
8638 # Extract the first word of "ar", so it can be a program name with args.
8639 set dummy ar; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
8644 else
8645 if test -n "$ac_ct_AR"; then
8646 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8647 else
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $PATH
8650 do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8655 ac_cv_prog_ac_ct_AR="ar"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 break 2
8658 fi
8659 done
8660 done
8661 IFS=$as_save_IFS
8662
8663 fi
8664 fi
8665 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8666 if test -n "$ac_ct_AR"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8668 $as_echo "$ac_ct_AR" >&6; }
8669 else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8672 fi
8673
8674 if test "x$ac_ct_AR" = x; then
8675 AR=""
8676 else
8677 case $cross_compiling:$ac_tool_warned in
8678 yes:)
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8681 ac_tool_warned=yes ;;
8682 esac
8683 AR=$ac_ct_AR
8684 fi
8685 else
8686 AR="$ac_cv_prog_AR"
8687 fi
8688
8689 if test -n "$ac_tool_prefix"; then
8690 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8691 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 if test -n "$DLLTOOL"; then
8698 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8699 else
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8702 do
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8707 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8710 fi
8711 done
8712 done
8713 IFS=$as_save_IFS
8714
8715 fi
8716 fi
8717 DLLTOOL=$ac_cv_prog_DLLTOOL
8718 if test -n "$DLLTOOL"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8720 $as_echo "$DLLTOOL" >&6; }
8721 else
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8724 fi
8725
8726
8727 fi
8728 if test -z "$ac_cv_prog_DLLTOOL"; then
8729 ac_ct_DLLTOOL=$DLLTOOL
8730 # Extract the first word of "dlltool", so it can be a program name with args.
8731 set dummy dlltool; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 if test -n "$ac_ct_DLLTOOL"; then
8738 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743 IFS=$as_save_IFS
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8747 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 break 2
8750 fi
8751 done
8752 done
8753 IFS=$as_save_IFS
8754
8755 fi
8756 fi
8757 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8758 if test -n "$ac_ct_DLLTOOL"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8760 $as_echo "$ac_ct_DLLTOOL" >&6; }
8761 else
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8764 fi
8765
8766 if test "x$ac_ct_DLLTOOL" = x; then
8767 DLLTOOL=""
8768 else
8769 case $cross_compiling:$ac_tool_warned in
8770 yes:)
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8773 ac_tool_warned=yes ;;
8774 esac
8775 DLLTOOL=$ac_ct_DLLTOOL
8776 fi
8777 else
8778 DLLTOOL="$ac_cv_prog_DLLTOOL"
8779 fi
8780
8781 if test -n "$ac_tool_prefix"; then
8782 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8783 set dummy ${ac_tool_prefix}windres; ac_word=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 if test -n "$WINDRES"; then
8790 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8794 do
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8799 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 break 2
8802 fi
8803 done
8804 done
8805 IFS=$as_save_IFS
8806
8807 fi
8808 fi
8809 WINDRES=$ac_cv_prog_WINDRES
8810 if test -n "$WINDRES"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8812 $as_echo "$WINDRES" >&6; }
8813 else
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8816 fi
8817
8818
8819 fi
8820 if test -z "$ac_cv_prog_WINDRES"; then
8821 ac_ct_WINDRES=$WINDRES
8822 # Extract the first word of "windres", so it can be a program name with args.
8823 set dummy windres; ac_word=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 $as_echo_n "checking for $ac_word... " >&6; }
8826 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 if test -n "$ac_ct_WINDRES"; then
8830 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8831 else
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8834 do
8835 IFS=$as_save_IFS
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8839 ac_cv_prog_ac_ct_WINDRES="windres"
8840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 break 2
8842 fi
8843 done
8844 done
8845 IFS=$as_save_IFS
8846
8847 fi
8848 fi
8849 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8850 if test -n "$ac_ct_WINDRES"; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8852 $as_echo "$ac_ct_WINDRES" >&6; }
8853 else
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8856 fi
8857
8858 if test "x$ac_ct_WINDRES" = x; then
8859 WINDRES=""
8860 else
8861 case $cross_compiling:$ac_tool_warned in
8862 yes:)
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8865 ac_tool_warned=yes ;;
8866 esac
8867 WINDRES=$ac_ct_WINDRES
8868 fi
8869 else
8870 WINDRES="$ac_cv_prog_WINDRES"
8871 fi
8872
8873
8874 # Needed for GNU/Hurd.
8875 if test -n "$ac_tool_prefix"; then
8876 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8877 set dummy ${ac_tool_prefix}mig; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if test "${ac_cv_prog_MIG+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 if test -n "$MIG"; then
8884 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8885 else
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in $PATH
8888 do
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 break 2
8896 fi
8897 done
8898 done
8899 IFS=$as_save_IFS
8900
8901 fi
8902 fi
8903 MIG=$ac_cv_prog_MIG
8904 if test -n "$MIG"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8906 $as_echo "$MIG" >&6; }
8907 else
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909 $as_echo "no" >&6; }
8910 fi
8911
8912
8913 fi
8914 if test -z "$ac_cv_prog_MIG"; then
8915 ac_ct_MIG=$MIG
8916 # Extract the first word of "mig", so it can be a program name with args.
8917 set dummy mig; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 if test -n "$ac_ct_MIG"; then
8924 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8928 do
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8933 ac_cv_prog_ac_ct_MIG="mig"
8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8936 fi
8937 done
8938 done
8939 IFS=$as_save_IFS
8940
8941 fi
8942 fi
8943 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8944 if test -n "$ac_ct_MIG"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8946 $as_echo "$ac_ct_MIG" >&6; }
8947 else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8950 fi
8951
8952 if test "x$ac_ct_MIG" = x; then
8953 MIG=""
8954 else
8955 case $cross_compiling:$ac_tool_warned in
8956 yes:)
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8959 ac_tool_warned=yes ;;
8960 esac
8961 MIG=$ac_ct_MIG
8962 fi
8963 else
8964 MIG="$ac_cv_prog_MIG"
8965 fi
8966
8967
8968 # ---------------------- #
8969 # Checks for libraries. #
8970 # ---------------------- #
8971
8972 # We might need to link with -lm; most simulators need it.
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8974 $as_echo_n "checking for main in -lm... " >&6; }
8975 if test "${ac_cv_lib_m_main+set}" = set; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 ac_check_lib_save_LIBS=$LIBS
8979 LIBS="-lm $LIBS"
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982
8983
8984 int
8985 main ()
8986 {
8987 return main ();
8988 ;
8989 return 0;
8990 }
8991 _ACEOF
8992 if ac_fn_c_try_link "$LINENO"; then :
8993 ac_cv_lib_m_main=yes
8994 else
8995 ac_cv_lib_m_main=no
8996 fi
8997 rm -f core conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999 LIBS=$ac_check_lib_save_LIBS
9000 fi
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9002 $as_echo "$ac_cv_lib_m_main" >&6; }
9003 if test "x$ac_cv_lib_m_main" = x""yes; then :
9004 cat >>confdefs.h <<_ACEOF
9005 #define HAVE_LIBM 1
9006 _ACEOF
9007
9008 LIBS="-lm $LIBS"
9009
9010 fi
9011
9012
9013 # We need to link with -lw to get `wctype' on Solaris before Solaris
9014 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9015 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9016 # is known to have this problem). Therefore we avoid libw if we can.
9017 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9018 if test "x$ac_cv_func_wctype" = x""yes; then :
9019
9020 else
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9022 $as_echo_n "checking for wctype in -lw... " >&6; }
9023 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 ac_check_lib_save_LIBS=$LIBS
9027 LIBS="-lw $LIBS"
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9030
9031 /* Override any GCC internal prototype to avoid an error.
9032 Use char because int might match the return type of a GCC
9033 builtin and then its argument prototype would still apply. */
9034 #ifdef __cplusplus
9035 extern "C"
9036 #endif
9037 char wctype ();
9038 int
9039 main ()
9040 {
9041 return wctype ();
9042 ;
9043 return 0;
9044 }
9045 _ACEOF
9046 if ac_fn_c_try_link "$LINENO"; then :
9047 ac_cv_lib_w_wctype=yes
9048 else
9049 ac_cv_lib_w_wctype=no
9050 fi
9051 rm -f core conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9053 LIBS=$ac_check_lib_save_LIBS
9054 fi
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9056 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9057 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9058 cat >>confdefs.h <<_ACEOF
9059 #define HAVE_LIBW 1
9060 _ACEOF
9061
9062 LIBS="-lw $LIBS"
9063
9064 fi
9065
9066 fi
9067
9068
9069 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9071 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9072 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 ac_func_search_save_LIBS=$LIBS
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078
9079 /* Override any GCC internal prototype to avoid an error.
9080 Use char because int might match the return type of a GCC
9081 builtin and then its argument prototype would still apply. */
9082 #ifdef __cplusplus
9083 extern "C"
9084 #endif
9085 char gethostbyname ();
9086 int
9087 main ()
9088 {
9089 return gethostbyname ();
9090 ;
9091 return 0;
9092 }
9093 _ACEOF
9094 for ac_lib in '' nsl; do
9095 if test -z "$ac_lib"; then
9096 ac_res="none required"
9097 else
9098 ac_res=-l$ac_lib
9099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9100 fi
9101 if ac_fn_c_try_link "$LINENO"; then :
9102 ac_cv_search_gethostbyname=$ac_res
9103 fi
9104 rm -f core conftest.err conftest.$ac_objext \
9105 conftest$ac_exeext
9106 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9107 break
9108 fi
9109 done
9110 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9111
9112 else
9113 ac_cv_search_gethostbyname=no
9114 fi
9115 rm conftest.$ac_ext
9116 LIBS=$ac_func_search_save_LIBS
9117 fi
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9119 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9120 ac_res=$ac_cv_search_gethostbyname
9121 if test "$ac_res" != no; then :
9122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9123
9124 fi
9125
9126
9127 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9129 $as_echo_n "checking for library containing socketpair... " >&6; }
9130 if test "${ac_cv_search_socketpair+set}" = set; then :
9131 $as_echo_n "(cached) " >&6
9132 else
9133 ac_func_search_save_LIBS=$LIBS
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9136
9137 /* Override any GCC internal prototype to avoid an error.
9138 Use char because int might match the return type of a GCC
9139 builtin and then its argument prototype would still apply. */
9140 #ifdef __cplusplus
9141 extern "C"
9142 #endif
9143 char socketpair ();
9144 int
9145 main ()
9146 {
9147 return socketpair ();
9148 ;
9149 return 0;
9150 }
9151 _ACEOF
9152 for ac_lib in '' socket; do
9153 if test -z "$ac_lib"; then
9154 ac_res="none required"
9155 else
9156 ac_res=-l$ac_lib
9157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9158 fi
9159 if ac_fn_c_try_link "$LINENO"; then :
9160 ac_cv_search_socketpair=$ac_res
9161 fi
9162 rm -f core conftest.err conftest.$ac_objext \
9163 conftest$ac_exeext
9164 if test "${ac_cv_search_socketpair+set}" = set; then :
9165 break
9166 fi
9167 done
9168 if test "${ac_cv_search_socketpair+set}" = set; then :
9169
9170 else
9171 ac_cv_search_socketpair=no
9172 fi
9173 rm conftest.$ac_ext
9174 LIBS=$ac_func_search_save_LIBS
9175 fi
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9177 $as_echo "$ac_cv_search_socketpair" >&6; }
9178 ac_res=$ac_cv_search_socketpair
9179 if test "$ac_res" != no; then :
9180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9181
9182 fi
9183
9184
9185 # Link in zlib if we can. This allows us to read compressed debug sections.
9186
9187 # See if the user specified whether he wants zlib support or not.
9188
9189 # Check whether --with-zlib was given.
9190 if test "${with_zlib+set}" = set; then :
9191 withval=$with_zlib;
9192 else
9193 with_zlib=auto
9194 fi
9195
9196
9197 if test "$with_zlib" != "no"; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9199 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9200 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203 ac_func_search_save_LIBS=$LIBS
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9206
9207 /* Override any GCC internal prototype to avoid an error.
9208 Use char because int might match the return type of a GCC
9209 builtin and then its argument prototype would still apply. */
9210 #ifdef __cplusplus
9211 extern "C"
9212 #endif
9213 char zlibVersion ();
9214 int
9215 main ()
9216 {
9217 return zlibVersion ();
9218 ;
9219 return 0;
9220 }
9221 _ACEOF
9222 for ac_lib in '' z; do
9223 if test -z "$ac_lib"; then
9224 ac_res="none required"
9225 else
9226 ac_res=-l$ac_lib
9227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9228 fi
9229 if ac_fn_c_try_link "$LINENO"; then :
9230 ac_cv_search_zlibVersion=$ac_res
9231 fi
9232 rm -f core conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext
9234 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9235 break
9236 fi
9237 done
9238 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9239
9240 else
9241 ac_cv_search_zlibVersion=no
9242 fi
9243 rm conftest.$ac_ext
9244 LIBS=$ac_func_search_save_LIBS
9245 fi
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9247 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9248 ac_res=$ac_cv_search_zlibVersion
9249 if test "$ac_res" != no; then :
9250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9251 for ac_header in zlib.h
9252 do :
9253 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9254 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9255 cat >>confdefs.h <<_ACEOF
9256 #define HAVE_ZLIB_H 1
9257 _ACEOF
9258
9259 fi
9260
9261 done
9262
9263 fi
9264
9265 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9266 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9267 fi
9268 fi
9269
9270
9271 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9273 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9274 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9277 ac_func_search_save_LIBS=$LIBS
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280
9281 /* Override any GCC internal prototype to avoid an error.
9282 Use char because int might match the return type of a GCC
9283 builtin and then its argument prototype would still apply. */
9284 #ifdef __cplusplus
9285 extern "C"
9286 #endif
9287 char dlgetmodinfo ();
9288 int
9289 main ()
9290 {
9291 return dlgetmodinfo ();
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 for ac_lib in '' dl xpdl; do
9297 if test -z "$ac_lib"; then
9298 ac_res="none required"
9299 else
9300 ac_res=-l$ac_lib
9301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9302 fi
9303 if ac_fn_c_try_link "$LINENO"; then :
9304 ac_cv_search_dlgetmodinfo=$ac_res
9305 fi
9306 rm -f core conftest.err conftest.$ac_objext \
9307 conftest$ac_exeext
9308 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9309 break
9310 fi
9311 done
9312 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9313
9314 else
9315 ac_cv_search_dlgetmodinfo=no
9316 fi
9317 rm conftest.$ac_ext
9318 LIBS=$ac_func_search_save_LIBS
9319 fi
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9321 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9322 ac_res=$ac_cv_search_dlgetmodinfo
9323 if test "$ac_res" != no; then :
9324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9325
9326 fi
9327
9328
9329
9330
9331
9332 # Check whether --with-libiconv-prefix was given.
9333 if test "${with_libiconv_prefix+set}" = set; then :
9334 withval=$with_libiconv_prefix;
9335 for dir in `echo "$withval" | tr : ' '`; do
9336 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9337 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9338 done
9339
9340 fi
9341
9342
9343 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9344 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9345
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9347 $as_echo_n "checking for iconv... " >&6; }
9348 if test "${am_cv_func_iconv+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351
9352 am_cv_func_iconv="no, consider installing GNU libiconv"
9353 am_cv_lib_iconv=no
9354 am_cv_use_build_libiconv=no
9355 am_cv_build_libiconv_path=
9356
9357 # If libiconv is part of the build tree, then try using it over
9358 # any system iconv.
9359 if test -d ../libiconv; then
9360 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9361 am_save_LIBS="$LIBS"
9362 am_save_CPPFLAGS="$CPPFLAGS"
9363 LIBS="$LIBS $lib_dir/libiconv.a"
9364 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9367 #include <stdlib.h>
9368 #include <iconv.h>
9369 int
9370 main ()
9371 {
9372 iconv_t cd = iconv_open("","");
9373 iconv(cd,NULL,NULL,NULL,NULL);
9374 iconv_close(cd);
9375 ;
9376 return 0;
9377 }
9378 _ACEOF
9379 if ac_fn_c_try_link "$LINENO"; then :
9380 am_cv_use_build_libiconv=yes
9381 am_cv_build_libiconv_path=$lib_dir/libiconv.a
9382 am_cv_lib_iconv=yes
9383 am_cv_func_iconv=yes
9384 fi
9385 rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9387 LIBS="$am_save_LIBS"
9388 CPPFLAGS="$am_save_CPPFLAGS"
9389 if test "$am_cv_use_build_libiconv" = "yes"; then
9390 break
9391 fi
9392 done
9393 fi
9394
9395 # Next, try to find iconv in libc.
9396 if test "$am_cv_func_iconv" != yes; then
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 #include <stdlib.h>
9400 #include <iconv.h>
9401 int
9402 main ()
9403 {
9404 iconv_t cd = iconv_open("","");
9405 iconv(cd,NULL,NULL,NULL,NULL);
9406 iconv_close(cd);
9407 ;
9408 return 0;
9409 }
9410 _ACEOF
9411 if ac_fn_c_try_link "$LINENO"; then :
9412 am_cv_func_iconv=yes
9413 fi
9414 rm -f core conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 fi
9417
9418 # If iconv was not in libc, try -liconv. In this case, arrange to
9419 # look in the libiconv prefix, if it was specified by the user.
9420 if test "$am_cv_func_iconv" != yes; then
9421 am_save_CPPFLAGS="$CPPFLAGS"
9422 am_save_LIBS="$LIBS"
9423 if test -n "$LIBICONV_INCLUDE"; then
9424 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9425 LIBS="$LIBS $LIBICONV_LIBDIR"
9426 fi
9427 LIBS="$LIBS -liconv"
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9430 #include <stdlib.h>
9431 #include <iconv.h>
9432 int
9433 main ()
9434 {
9435 iconv_t cd = iconv_open("","");
9436 iconv(cd,NULL,NULL,NULL,NULL);
9437 iconv_close(cd);
9438 ;
9439 return 0;
9440 }
9441 _ACEOF
9442 if ac_fn_c_try_link "$LINENO"; then :
9443 am_cv_lib_iconv=yes
9444 am_cv_func_iconv=yes
9445 fi
9446 rm -f core conftest.err conftest.$ac_objext \
9447 conftest$ac_exeext conftest.$ac_ext
9448 LIBS="$am_save_LIBS"
9449 CPPFLAGS="$am_save_CPPFLAGS"
9450 fi
9451
9452 fi
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9454 $as_echo "$am_cv_func_iconv" >&6; }
9455
9456 # Set the various flags based on the cache variables. We can't rely
9457 # on the flags to remain set from the above code, due to caching.
9458 LIBICONV=
9459 if test "$am_cv_lib_iconv" = yes; then
9460 LIBICONV="-liconv"
9461 else
9462 LIBICONV_LIBDIR=
9463 LIBICONV_INCLUDE=
9464 fi
9465 if test "$am_cv_use_build_libiconv" = yes; then
9466 LIBICONV="$am_cv_build_libiconv_path"
9467 LIBICONV_LIBDIR=""
9468 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9469 fi
9470 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9471 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9472
9473 if test "$am_cv_func_iconv" = yes; then
9474
9475 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9476
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9478 $as_echo_n "checking for iconv declaration... " >&6; }
9479 if test "${am_cv_proto_iconv+set}" = set; then :
9480 $as_echo_n "(cached) " >&6
9481 else
9482
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485
9486 #include <stdlib.h>
9487 #include <iconv.h>
9488 extern
9489 #ifdef __cplusplus
9490 "C"
9491 #endif
9492 #if defined(__STDC__) || defined(__cplusplus)
9493 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9494 #else
9495 size_t iconv();
9496 #endif
9497
9498 int
9499 main ()
9500 {
9501
9502 ;
9503 return 0;
9504 }
9505 _ACEOF
9506 if ac_fn_c_try_compile "$LINENO"; then :
9507 am_cv_proto_iconv_arg1=""
9508 else
9509 am_cv_proto_iconv_arg1="const"
9510 fi
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 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);"
9513 fi
9514
9515 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9517 }$am_cv_proto_iconv" >&5
9518 $as_echo "${ac_t:-
9519 }$am_cv_proto_iconv" >&6; }
9520
9521 cat >>confdefs.h <<_ACEOF
9522 #define ICONV_CONST $am_cv_proto_iconv_arg1
9523 _ACEOF
9524
9525 fi
9526
9527
9528 # GDB may fork/exec the iconv program to get the list of supported character
9529 # sets. Allow the user to specify where to find it.
9530 # There are several factors affecting the choice of option name:
9531 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9532 # the build-time location of libiconv files.
9533 # - The program we need to find is iconv, which comes with glibc. The user
9534 # doesn't necessarily have libiconv installed. Therefore naming this
9535 # --with-libiconv-foo feels wrong.
9536 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9537 # defined to work on directories not files (though it really doesn't know
9538 # the difference).
9539 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9540 # with --with-libiconv-prefix.
9541 # Putting these together is why the option name is --with-iconv-bin.
9542
9543
9544 # Check whether --with-iconv-bin was given.
9545 if test "${with_iconv_bin+set}" = set; then :
9546 withval=$with_iconv_bin; iconv_bin="${withval}"
9547
9548 cat >>confdefs.h <<_ACEOF
9549 #define ICONV_BIN "${iconv_bin}"
9550 _ACEOF
9551
9552
9553 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9554 if test "x$prefix" = xNONE; then
9555 test_prefix=/usr/local
9556 else
9557 test_prefix=$prefix
9558 fi
9559 else
9560 test_prefix=$exec_prefix
9561 fi
9562 value=0
9563 case ${iconv_bin} in
9564 "${test_prefix}"|"${test_prefix}/"*|\
9565 '${exec_prefix}'|'${exec_prefix}/'*)
9566 value=1
9567 ;;
9568 esac
9569
9570 cat >>confdefs.h <<_ACEOF
9571 #define ICONV_BIN_RELOCATABLE $value
9572 _ACEOF
9573
9574
9575
9576 fi
9577
9578
9579 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9580 # There is a very specific comment in /usr/include/curses.h explaining that
9581 # termcap routines built into libcurses must not be used.
9582 #
9583 # The symptoms we observed so far is GDB unexpectedly changing
9584 # the terminal settings when tgetent is called - this is particularly
9585 # visible as the output is missing carriage returns, and so rapidly
9586 # becomes very hard to read.
9587 #
9588 # The readline configure script has already decided that libtermcap
9589 # was enough for its purposes, and so decided to build readline using
9590 # libtermcap. Since the TUI mode requires curses, building GDB with
9591 # TUI enabled results in both libraries to be used at the same time,
9592 # which is not allowed. This basically means that GDB with TUI is
9593 # broken on alpha-osf.
9594
9595 case $host_os in
9596 osf* )
9597 if test x"$enable_tui" = xyes; then
9598 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9599 fi
9600 if test x"$enable_tui" = xauto; then
9601 enable_tui=no
9602 fi
9603 ;;
9604 esac
9605
9606 # For the TUI, we need enhanced curses functionality.
9607 if test x"$enable_tui" != xno; then
9608 prefer_curses=yes
9609 fi
9610
9611 curses_found=no
9612 if test x"$prefer_curses" = xyes; then
9613 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9614 # curses library because the latter might not provide all the
9615 # functionality we need. However, this leads to problems on systems
9616 # where the linker searches /usr/local/lib, but the compiler doesn't
9617 # search /usr/local/include, if ncurses is installed in /usr/local. A
9618 # default installation of ncurses on alpha*-dec-osf* will lead to such
9619 # a situation.
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9621 $as_echo_n "checking for library containing waddstr... " >&6; }
9622 if test "${ac_cv_search_waddstr+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9624 else
9625 ac_func_search_save_LIBS=$LIBS
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628
9629 /* Override any GCC internal prototype to avoid an error.
9630 Use char because int might match the return type of a GCC
9631 builtin and then its argument prototype would still apply. */
9632 #ifdef __cplusplus
9633 extern "C"
9634 #endif
9635 char waddstr ();
9636 int
9637 main ()
9638 {
9639 return waddstr ();
9640 ;
9641 return 0;
9642 }
9643 _ACEOF
9644 for ac_lib in '' ncurses cursesX curses; do
9645 if test -z "$ac_lib"; then
9646 ac_res="none required"
9647 else
9648 ac_res=-l$ac_lib
9649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9650 fi
9651 if ac_fn_c_try_link "$LINENO"; then :
9652 ac_cv_search_waddstr=$ac_res
9653 fi
9654 rm -f core conftest.err conftest.$ac_objext \
9655 conftest$ac_exeext
9656 if test "${ac_cv_search_waddstr+set}" = set; then :
9657 break
9658 fi
9659 done
9660 if test "${ac_cv_search_waddstr+set}" = set; then :
9661
9662 else
9663 ac_cv_search_waddstr=no
9664 fi
9665 rm conftest.$ac_ext
9666 LIBS=$ac_func_search_save_LIBS
9667 fi
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9669 $as_echo "$ac_cv_search_waddstr" >&6; }
9670 ac_res=$ac_cv_search_waddstr
9671 if test "$ac_res" != no; then :
9672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9673
9674 fi
9675
9676
9677 if test "$ac_cv_search_waddstr" != no; then
9678 curses_found=yes
9679 fi
9680 fi
9681
9682 # Check whether we should enable the TUI, but only do so if we really
9683 # can.
9684 if test x"$enable_tui" != xno; then
9685 if test -d $srcdir/tui; then
9686 if test "$curses_found" != no; then
9687 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9688 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9689 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9690 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9691 CONFIG_ALL="${CONFIG_ALL} all-tui"
9692 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9693 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9694 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9695 else
9696 if test x"$enable_tui" = xyes; then
9697 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9698 else
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9700 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9701 fi
9702 fi
9703 fi
9704 fi
9705
9706 # Since GDB uses Readline, we need termcap functionality. In many
9707 # cases this will be provided by the curses library, but some systems
9708 # have a seperate termcap library, or no curses library at all.
9709
9710 case $host_os in
9711 cygwin*)
9712 if test -d $srcdir/libtermcap; then
9713 LIBS="../libtermcap/libtermcap.a $LIBS"
9714 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9715 fi ;;
9716 go32* | *djgpp*)
9717 ac_cv_search_tgetent="none required"
9718 ;;
9719 *mingw32*)
9720 ac_cv_search_tgetent="none required"
9721 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9722 ;;
9723 esac
9724
9725 # These are the libraries checked by Readline.
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9727 $as_echo_n "checking for library containing tgetent... " >&6; }
9728 if test "${ac_cv_search_tgetent+set}" = set; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731 ac_func_search_save_LIBS=$LIBS
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9734
9735 /* Override any GCC internal prototype to avoid an error.
9736 Use char because int might match the return type of a GCC
9737 builtin and then its argument prototype would still apply. */
9738 #ifdef __cplusplus
9739 extern "C"
9740 #endif
9741 char tgetent ();
9742 int
9743 main ()
9744 {
9745 return tgetent ();
9746 ;
9747 return 0;
9748 }
9749 _ACEOF
9750 for ac_lib in '' termcap tinfo curses ncurses; do
9751 if test -z "$ac_lib"; then
9752 ac_res="none required"
9753 else
9754 ac_res=-l$ac_lib
9755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9756 fi
9757 if ac_fn_c_try_link "$LINENO"; then :
9758 ac_cv_search_tgetent=$ac_res
9759 fi
9760 rm -f core conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext
9762 if test "${ac_cv_search_tgetent+set}" = set; then :
9763 break
9764 fi
9765 done
9766 if test "${ac_cv_search_tgetent+set}" = set; then :
9767
9768 else
9769 ac_cv_search_tgetent=no
9770 fi
9771 rm conftest.$ac_ext
9772 LIBS=$ac_func_search_save_LIBS
9773 fi
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9775 $as_echo "$ac_cv_search_tgetent" >&6; }
9776 ac_res=$ac_cv_search_tgetent
9777 if test "$ac_res" != no; then :
9778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9779
9780 fi
9781
9782
9783 if test "$ac_cv_search_tgetent" = no; then
9784 as_fn_error "no termcap library found" "$LINENO" 5
9785 fi
9786
9787
9788 # Check whether --with-system-readline was given.
9789 if test "${with_system_readline+set}" = set; then :
9790 withval=$with_system_readline;
9791 fi
9792
9793
9794 if test "$with_system_readline" = yes; then
9795 READLINE=-lreadline
9796 READLINE_DEPS=
9797 READLINE_CFLAGS=
9798 READLINE_TEXI_INCFLAG=
9799 else
9800 READLINE='$(READLINE_DIR)/libreadline.a'
9801 READLINE_DEPS='$(READLINE)'
9802 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9803 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
9804 fi
9805
9806
9807
9808
9809
9810
9811 # Check whether --with-expat was given.
9812 if test "${with_expat+set}" = set; then :
9813 withval=$with_expat;
9814 else
9815 with_expat=auto
9816 fi
9817
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9819 $as_echo_n "checking whether to use expat... " >&6; }
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9821 $as_echo "$with_expat" >&6; }
9822
9823 if test "${with_expat}" = no; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9825 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9826 HAVE_LIBEXPAT=no
9827 else
9828
9829 if test "X$prefix" = "XNONE"; then
9830 acl_final_prefix="$ac_default_prefix"
9831 else
9832 acl_final_prefix="$prefix"
9833 fi
9834 if test "X$exec_prefix" = "XNONE"; then
9835 acl_final_exec_prefix='${prefix}'
9836 else
9837 acl_final_exec_prefix="$exec_prefix"
9838 fi
9839 acl_save_prefix="$prefix"
9840 prefix="$acl_final_prefix"
9841 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9842 prefix="$acl_save_prefix"
9843
9844
9845 # Check whether --with-gnu-ld was given.
9846 if test "${with_gnu_ld+set}" = set; then :
9847 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9848 else
9849 with_gnu_ld=no
9850 fi
9851
9852 # Prepare PATH_SEPARATOR.
9853 # The user is always right.
9854 if test "${PATH_SEPARATOR+set}" != set; then
9855 echo "#! /bin/sh" >conf$$.sh
9856 echo "exit 0" >>conf$$.sh
9857 chmod +x conf$$.sh
9858 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9859 PATH_SEPARATOR=';'
9860 else
9861 PATH_SEPARATOR=:
9862 fi
9863 rm -f conf$$.sh
9864 fi
9865 ac_prog=ld
9866 if test "$GCC" = yes; then
9867 # Check if gcc -print-prog-name=ld gives a path.
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9869 $as_echo_n "checking for ld used by GCC... " >&6; }
9870 case $host in
9871 *-*-mingw*)
9872 # gcc leaves a trailing carriage return which upsets mingw
9873 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9874 *)
9875 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9876 esac
9877 case $ac_prog in
9878 # Accept absolute paths.
9879 [\\/]* | [A-Za-z]:[\\/]*)
9880 re_direlt='/[^/][^/]*/\.\./'
9881 # Canonicalize the path of ld
9882 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9883 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9884 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9885 done
9886 test -z "$LD" && LD="$ac_prog"
9887 ;;
9888 "")
9889 # If it fails, then pretend we aren't using GCC.
9890 ac_prog=ld
9891 ;;
9892 *)
9893 # If it is relative, then search for the first ld in PATH.
9894 with_gnu_ld=unknown
9895 ;;
9896 esac
9897 elif test "$with_gnu_ld" = yes; then
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9899 $as_echo_n "checking for GNU ld... " >&6; }
9900 else
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9902 $as_echo_n "checking for non-GNU ld... " >&6; }
9903 fi
9904 if test "${acl_cv_path_LD+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 if test -z "$LD"; then
9908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9909 for ac_dir in $PATH; do
9910 test -z "$ac_dir" && ac_dir=.
9911 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9912 acl_cv_path_LD="$ac_dir/$ac_prog"
9913 # Check to see if the program is GNU ld. I'd rather use --version,
9914 # but apparently some GNU ld's only accept -v.
9915 # Break only if it was the GNU/non-GNU ld that we prefer.
9916 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9917 test "$with_gnu_ld" != no && break
9918 else
9919 test "$with_gnu_ld" != yes && break
9920 fi
9921 fi
9922 done
9923 IFS="$ac_save_ifs"
9924 else
9925 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9926 fi
9927 fi
9928
9929 LD="$acl_cv_path_LD"
9930 if test -n "$LD"; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9932 $as_echo "$LD" >&6; }
9933 else
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9936 fi
9937 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9939 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9940 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9941 $as_echo_n "(cached) " >&6
9942 else
9943 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9944 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9945 acl_cv_prog_gnu_ld=yes
9946 else
9947 acl_cv_prog_gnu_ld=no
9948 fi
9949 fi
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9951 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9952 with_gnu_ld=$acl_cv_prog_gnu_ld
9953
9954
9955
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9957 $as_echo_n "checking for shared library run path origin... " >&6; }
9958 if test "${acl_cv_rpath+set}" = set; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961
9962 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9963 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9964 . ./conftest.sh
9965 rm -f ./conftest.sh
9966 acl_cv_rpath=done
9967
9968 fi
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9970 $as_echo "$acl_cv_rpath" >&6; }
9971 wl="$acl_cv_wl"
9972 libext="$acl_cv_libext"
9973 shlibext="$acl_cv_shlibext"
9974 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9975 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9976 hardcode_direct="$acl_cv_hardcode_direct"
9977 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9978 # Check whether --enable-rpath was given.
9979 if test "${enable_rpath+set}" = set; then :
9980 enableval=$enable_rpath; :
9981 else
9982 enable_rpath=yes
9983 fi
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994 use_additional=yes
9995
9996 acl_save_prefix="$prefix"
9997 prefix="$acl_final_prefix"
9998 acl_save_exec_prefix="$exec_prefix"
9999 exec_prefix="$acl_final_exec_prefix"
10000
10001 eval additional_includedir=\"$includedir\"
10002 eval additional_libdir=\"$libdir\"
10003
10004 exec_prefix="$acl_save_exec_prefix"
10005 prefix="$acl_save_prefix"
10006
10007
10008 # Check whether --with-libexpat-prefix was given.
10009 if test "${with_libexpat_prefix+set}" = set; then :
10010 withval=$with_libexpat_prefix;
10011 if test "X$withval" = "Xno"; then
10012 use_additional=no
10013 else
10014 if test "X$withval" = "X"; then
10015
10016 acl_save_prefix="$prefix"
10017 prefix="$acl_final_prefix"
10018 acl_save_exec_prefix="$exec_prefix"
10019 exec_prefix="$acl_final_exec_prefix"
10020
10021 eval additional_includedir=\"$includedir\"
10022 eval additional_libdir=\"$libdir\"
10023
10024 exec_prefix="$acl_save_exec_prefix"
10025 prefix="$acl_save_prefix"
10026
10027 else
10028 additional_includedir="$withval/include"
10029 additional_libdir="$withval/lib"
10030 fi
10031 fi
10032
10033 fi
10034
10035 LIBEXPAT=
10036 LTLIBEXPAT=
10037 INCEXPAT=
10038 rpathdirs=
10039 ltrpathdirs=
10040 names_already_handled=
10041 names_next_round='expat '
10042 while test -n "$names_next_round"; do
10043 names_this_round="$names_next_round"
10044 names_next_round=
10045 for name in $names_this_round; do
10046 already_handled=
10047 for n in $names_already_handled; do
10048 if test "$n" = "$name"; then
10049 already_handled=yes
10050 break
10051 fi
10052 done
10053 if test -z "$already_handled"; then
10054 names_already_handled="$names_already_handled $name"
10055 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10056 eval value=\"\$HAVE_LIB$uppername\"
10057 if test -n "$value"; then
10058 if test "$value" = yes; then
10059 eval value=\"\$LIB$uppername\"
10060 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10061 eval value=\"\$LTLIB$uppername\"
10062 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10063 else
10064 :
10065 fi
10066 else
10067 found_dir=
10068 found_la=
10069 found_so=
10070 found_a=
10071 if test $use_additional = yes; then
10072 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10073 found_dir="$additional_libdir"
10074 found_so="$additional_libdir/lib$name.$shlibext"
10075 if test -f "$additional_libdir/lib$name.la"; then
10076 found_la="$additional_libdir/lib$name.la"
10077 fi
10078 else
10079 if test -f "$additional_libdir/lib$name.$libext"; then
10080 found_dir="$additional_libdir"
10081 found_a="$additional_libdir/lib$name.$libext"
10082 if test -f "$additional_libdir/lib$name.la"; then
10083 found_la="$additional_libdir/lib$name.la"
10084 fi
10085 fi
10086 fi
10087 fi
10088 if test "X$found_dir" = "X"; then
10089 for x in $LDFLAGS $LTLIBEXPAT; do
10090
10091 acl_save_prefix="$prefix"
10092 prefix="$acl_final_prefix"
10093 acl_save_exec_prefix="$exec_prefix"
10094 exec_prefix="$acl_final_exec_prefix"
10095 eval x=\"$x\"
10096 exec_prefix="$acl_save_exec_prefix"
10097 prefix="$acl_save_prefix"
10098
10099 case "$x" in
10100 -L*)
10101 dir=`echo "X$x" | sed -e 's/^X-L//'`
10102 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10103 found_dir="$dir"
10104 found_so="$dir/lib$name.$shlibext"
10105 if test -f "$dir/lib$name.la"; then
10106 found_la="$dir/lib$name.la"
10107 fi
10108 else
10109 if test -f "$dir/lib$name.$libext"; then
10110 found_dir="$dir"
10111 found_a="$dir/lib$name.$libext"
10112 if test -f "$dir/lib$name.la"; then
10113 found_la="$dir/lib$name.la"
10114 fi
10115 fi
10116 fi
10117 ;;
10118 esac
10119 if test "X$found_dir" != "X"; then
10120 break
10121 fi
10122 done
10123 fi
10124 if test "X$found_dir" != "X"; then
10125 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10126 if test "X$found_so" != "X"; then
10127 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10128 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10129 else
10130 haveit=
10131 for x in $ltrpathdirs; do
10132 if test "X$x" = "X$found_dir"; then
10133 haveit=yes
10134 break
10135 fi
10136 done
10137 if test -z "$haveit"; then
10138 ltrpathdirs="$ltrpathdirs $found_dir"
10139 fi
10140 if test "$hardcode_direct" = yes; then
10141 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10142 else
10143 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10144 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10145 haveit=
10146 for x in $rpathdirs; do
10147 if test "X$x" = "X$found_dir"; then
10148 haveit=yes
10149 break
10150 fi
10151 done
10152 if test -z "$haveit"; then
10153 rpathdirs="$rpathdirs $found_dir"
10154 fi
10155 else
10156 haveit=
10157 for x in $LDFLAGS $LIBEXPAT; do
10158
10159 acl_save_prefix="$prefix"
10160 prefix="$acl_final_prefix"
10161 acl_save_exec_prefix="$exec_prefix"
10162 exec_prefix="$acl_final_exec_prefix"
10163 eval x=\"$x\"
10164 exec_prefix="$acl_save_exec_prefix"
10165 prefix="$acl_save_prefix"
10166
10167 if test "X$x" = "X-L$found_dir"; then
10168 haveit=yes
10169 break
10170 fi
10171 done
10172 if test -z "$haveit"; then
10173 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10174 fi
10175 if test "$hardcode_minus_L" != no; then
10176 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10177 else
10178 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10179 fi
10180 fi
10181 fi
10182 fi
10183 else
10184 if test "X$found_a" != "X"; then
10185 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10186 else
10187 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10188 fi
10189 fi
10190 additional_includedir=
10191 case "$found_dir" in
10192 */lib | */lib/)
10193 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10194 additional_includedir="$basedir/include"
10195 ;;
10196 esac
10197 if test "X$additional_includedir" != "X"; then
10198 if test "X$additional_includedir" != "X/usr/include"; then
10199 haveit=
10200 if test "X$additional_includedir" = "X/usr/local/include"; then
10201 if test -n "$GCC"; then
10202 case $host_os in
10203 linux*) haveit=yes;;
10204 esac
10205 fi
10206 fi
10207 if test -z "$haveit"; then
10208 for x in $CPPFLAGS $INCEXPAT; do
10209
10210 acl_save_prefix="$prefix"
10211 prefix="$acl_final_prefix"
10212 acl_save_exec_prefix="$exec_prefix"
10213 exec_prefix="$acl_final_exec_prefix"
10214 eval x=\"$x\"
10215 exec_prefix="$acl_save_exec_prefix"
10216 prefix="$acl_save_prefix"
10217
10218 if test "X$x" = "X-I$additional_includedir"; then
10219 haveit=yes
10220 break
10221 fi
10222 done
10223 if test -z "$haveit"; then
10224 if test -d "$additional_includedir"; then
10225 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10226 fi
10227 fi
10228 fi
10229 fi
10230 fi
10231 if test -n "$found_la"; then
10232 save_libdir="$libdir"
10233 case "$found_la" in
10234 */* | *\\*) . "$found_la" ;;
10235 *) . "./$found_la" ;;
10236 esac
10237 libdir="$save_libdir"
10238 for dep in $dependency_libs; do
10239 case "$dep" in
10240 -L*)
10241 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10242 if test "X$additional_libdir" != "X/usr/lib"; then
10243 haveit=
10244 if test "X$additional_libdir" = "X/usr/local/lib"; then
10245 if test -n "$GCC"; then
10246 case $host_os in
10247 linux*) haveit=yes;;
10248 esac
10249 fi
10250 fi
10251 if test -z "$haveit"; then
10252 haveit=
10253 for x in $LDFLAGS $LIBEXPAT; do
10254
10255 acl_save_prefix="$prefix"
10256 prefix="$acl_final_prefix"
10257 acl_save_exec_prefix="$exec_prefix"
10258 exec_prefix="$acl_final_exec_prefix"
10259 eval x=\"$x\"
10260 exec_prefix="$acl_save_exec_prefix"
10261 prefix="$acl_save_prefix"
10262
10263 if test "X$x" = "X-L$additional_libdir"; then
10264 haveit=yes
10265 break
10266 fi
10267 done
10268 if test -z "$haveit"; then
10269 if test -d "$additional_libdir"; then
10270 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10271 fi
10272 fi
10273 haveit=
10274 for x in $LDFLAGS $LTLIBEXPAT; do
10275
10276 acl_save_prefix="$prefix"
10277 prefix="$acl_final_prefix"
10278 acl_save_exec_prefix="$exec_prefix"
10279 exec_prefix="$acl_final_exec_prefix"
10280 eval x=\"$x\"
10281 exec_prefix="$acl_save_exec_prefix"
10282 prefix="$acl_save_prefix"
10283
10284 if test "X$x" = "X-L$additional_libdir"; then
10285 haveit=yes
10286 break
10287 fi
10288 done
10289 if test -z "$haveit"; then
10290 if test -d "$additional_libdir"; then
10291 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10292 fi
10293 fi
10294 fi
10295 fi
10296 ;;
10297 -R*)
10298 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10299 if test "$enable_rpath" != no; then
10300 haveit=
10301 for x in $rpathdirs; do
10302 if test "X$x" = "X$dir"; then
10303 haveit=yes
10304 break
10305 fi
10306 done
10307 if test -z "$haveit"; then
10308 rpathdirs="$rpathdirs $dir"
10309 fi
10310 haveit=
10311 for x in $ltrpathdirs; do
10312 if test "X$x" = "X$dir"; then
10313 haveit=yes
10314 break
10315 fi
10316 done
10317 if test -z "$haveit"; then
10318 ltrpathdirs="$ltrpathdirs $dir"
10319 fi
10320 fi
10321 ;;
10322 -l*)
10323 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10324 ;;
10325 *.la)
10326 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10327 ;;
10328 *)
10329 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10330 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10331 ;;
10332 esac
10333 done
10334 fi
10335 else
10336 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10337 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10338 fi
10339 fi
10340 fi
10341 done
10342 done
10343 if test "X$rpathdirs" != "X"; then
10344 if test -n "$hardcode_libdir_separator"; then
10345 alldirs=
10346 for found_dir in $rpathdirs; do
10347 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10348 done
10349 acl_save_libdir="$libdir"
10350 libdir="$alldirs"
10351 eval flag=\"$hardcode_libdir_flag_spec\"
10352 libdir="$acl_save_libdir"
10353 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10354 else
10355 for found_dir in $rpathdirs; do
10356 acl_save_libdir="$libdir"
10357 libdir="$found_dir"
10358 eval flag=\"$hardcode_libdir_flag_spec\"
10359 libdir="$acl_save_libdir"
10360 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10361 done
10362 fi
10363 fi
10364 if test "X$ltrpathdirs" != "X"; then
10365 for found_dir in $ltrpathdirs; do
10366 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10367 done
10368 fi
10369
10370
10371 ac_save_CPPFLAGS="$CPPFLAGS"
10372
10373 for element in $INCEXPAT; do
10374 haveit=
10375 for x in $CPPFLAGS; do
10376
10377 acl_save_prefix="$prefix"
10378 prefix="$acl_final_prefix"
10379 acl_save_exec_prefix="$exec_prefix"
10380 exec_prefix="$acl_final_exec_prefix"
10381 eval x=\"$x\"
10382 exec_prefix="$acl_save_exec_prefix"
10383 prefix="$acl_save_prefix"
10384
10385 if test "X$x" = "X$element"; then
10386 haveit=yes
10387 break
10388 fi
10389 done
10390 if test -z "$haveit"; then
10391 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10392 fi
10393 done
10394
10395
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10397 $as_echo_n "checking for libexpat... " >&6; }
10398 if test "${ac_cv_libexpat+set}" = set; then :
10399 $as_echo_n "(cached) " >&6
10400 else
10401
10402 ac_save_LIBS="$LIBS"
10403 LIBS="$LIBS $LIBEXPAT"
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10406 #include "expat.h"
10407 int
10408 main ()
10409 {
10410 XML_Parser p = XML_ParserCreate (0);
10411 ;
10412 return 0;
10413 }
10414 _ACEOF
10415 if ac_fn_c_try_link "$LINENO"; then :
10416 ac_cv_libexpat=yes
10417 else
10418 ac_cv_libexpat=no
10419 fi
10420 rm -f core conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext conftest.$ac_ext
10422 LIBS="$ac_save_LIBS"
10423
10424 fi
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10426 $as_echo "$ac_cv_libexpat" >&6; }
10427 if test "$ac_cv_libexpat" = yes; then
10428 HAVE_LIBEXPAT=yes
10429
10430 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10431
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10433 $as_echo_n "checking how to link with libexpat... " >&6; }
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10435 $as_echo "$LIBEXPAT" >&6; }
10436 else
10437 HAVE_LIBEXPAT=no
10438 CPPFLAGS="$ac_save_CPPFLAGS"
10439 LIBEXPAT=
10440 LTLIBEXPAT=
10441 fi
10442
10443
10444
10445
10446
10447
10448 if test "$HAVE_LIBEXPAT" != yes; then
10449 if test "$with_expat" = yes; then
10450 as_fn_error "expat is missing or unusable" "$LINENO" 5
10451 else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10453 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10454 fi
10455 else
10456 save_LIBS=$LIBS
10457 LIBS="$LIBS $LIBEXPAT"
10458 for ac_func in XML_StopParser
10459 do :
10460 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10461 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10462 cat >>confdefs.h <<_ACEOF
10463 #define HAVE_XML_STOPPARSER 1
10464 _ACEOF
10465
10466 fi
10467 done
10468
10469 LIBS=$save_LIBS
10470 fi
10471 fi
10472
10473
10474
10475
10476
10477
10478 # Check whether --with-python was given.
10479 if test "${with_python+set}" = set; then :
10480 withval=$with_python;
10481 else
10482 with_python=auto
10483 fi
10484
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10486 $as_echo_n "checking whether to use python... " >&6; }
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10488 $as_echo "$with_python" >&6; }
10489
10490 if test "${with_python}" = no; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10492 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10493 have_libpython=no
10494 else
10495 case "${with_python}" in
10496 /*)
10497 if test -d ${with_python}; then
10498 # Assume the python binary is ${with_python}/bin/python.
10499 python_prog="${with_python}/bin/python"
10500 python_prefix=
10501 # If python does not exit ${with_python}/bin, then try in
10502 # ${with_python}. On Windows/MinGW, this is where the Python
10503 # executable is.
10504 if test ! -x "${python_prog}"; then
10505 python_prog="${with_python}/python"
10506 python_prefix=
10507 fi
10508 if test ! -x "${python_prog}"; then
10509 # Fall back to gdb 7.0/7.1 behaviour.
10510 python_prog=missing
10511 python_prefix=${with_python}
10512 fi
10513 elif test -x "${with_python}"; then
10514 # While we can't run python compiled for $host (unless host == build),
10515 # the user could write a script that provides the needed information,
10516 # so we support that.
10517 python_prog=${with_python}
10518 python_prefix=
10519 else
10520 as_fn_error "invalid value for --with-python" "$LINENO" 5
10521 fi
10522 ;;
10523 */*)
10524 # Disallow --with-python=foo/bar.
10525 as_fn_error "invalid value for --with-python" "$LINENO" 5
10526 ;;
10527 *)
10528 # The user has either specified auto, yes, or the name of the python
10529 # program assumed to be in $PATH.
10530 python_prefix=
10531 case "${with_python}" in
10532 yes | auto)
10533 if test ${build} = ${host}; then
10534 # Extract the first word of "python", so it can be a program name with args.
10535 set dummy python; ac_word=$2
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10537 $as_echo_n "checking for $ac_word... " >&6; }
10538 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10539 $as_echo_n "(cached) " >&6
10540 else
10541 case $python_prog_path in
10542 [\\/]* | ?:[\\/]*)
10543 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10544 ;;
10545 *)
10546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547 for as_dir in $PATH
10548 do
10549 IFS=$as_save_IFS
10550 test -z "$as_dir" && as_dir=.
10551 for ac_exec_ext in '' $ac_executable_extensions; do
10552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10553 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10555 break 2
10556 fi
10557 done
10558 done
10559 IFS=$as_save_IFS
10560
10561 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10562 ;;
10563 esac
10564 fi
10565 python_prog_path=$ac_cv_path_python_prog_path
10566 if test -n "$python_prog_path"; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10568 $as_echo "$python_prog_path" >&6; }
10569 else
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571 $as_echo "no" >&6; }
10572 fi
10573
10574
10575 if test "${python_prog_path}" = missing; then
10576 python_prog=missing
10577 else
10578 python_prog=${python_prog_path}
10579 fi
10580 else
10581 # Not much we can do except assume the cross-compiler will find the
10582 # right files.
10583 python_prog=missing
10584 fi
10585 ;;
10586 *)
10587 # While we can't run python compiled for $host (unless host == build),
10588 # the user could write a script that provides the needed information,
10589 # so we support that.
10590 python_prog="${with_python}"
10591 # Extract the first word of "${python_prog}", so it can be a program name with args.
10592 set dummy ${python_prog}; ac_word=$2
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10594 $as_echo_n "checking for $ac_word... " >&6; }
10595 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 case $python_prog_path in
10599 [\\/]* | ?:[\\/]*)
10600 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10601 ;;
10602 *)
10603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10604 for as_dir in $PATH
10605 do
10606 IFS=$as_save_IFS
10607 test -z "$as_dir" && as_dir=.
10608 for ac_exec_ext in '' $ac_executable_extensions; do
10609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10610 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10612 break 2
10613 fi
10614 done
10615 done
10616 IFS=$as_save_IFS
10617
10618 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10619 ;;
10620 esac
10621 fi
10622 python_prog_path=$ac_cv_path_python_prog_path
10623 if test -n "$python_prog_path"; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10625 $as_echo "$python_prog_path" >&6; }
10626 else
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628 $as_echo "no" >&6; }
10629 fi
10630
10631
10632 if test "${python_prog_path}" = missing; then
10633 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10634 fi
10635 ;;
10636 esac
10637 esac
10638
10639 if test "${python_prog}" != missing; then
10640 # We have a python program to use, but it may be too old.
10641 # Don't flag an error for --with-python=auto (the default).
10642 have_python_config=yes
10643 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10644 if test $? != 0; then
10645 have_python_config=failed
10646 if test "${with_python}" != auto; then
10647 as_fn_error "failure running python-config --includes" "$LINENO" 5
10648 fi
10649 fi
10650 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10651 if test $? != 0; then
10652 have_python_config=failed
10653 if test "${with_python}" != auto; then
10654 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
10655 fi
10656 fi
10657 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10658 if test $? != 0; then
10659 have_python_config=failed
10660 if test "${with_python}" != auto; then
10661 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10662 fi
10663 fi
10664 else
10665 # We do not have a python executable we can use to determine where
10666 # to find the Python headers and libs. We cannot guess the include
10667 # path from the python_prefix either, because that include path
10668 # depends on the Python version. So, there is nothing much we can
10669 # do except assume that the compiler will be able to find those files.
10670 python_includes=
10671 python_libs=
10672 have_python_config=no
10673 fi
10674
10675 # If we have python-config, only try the configuration it provides.
10676 # Otherwise fallback on the old way of trying different versions of
10677 # python in turn.
10678
10679 have_libpython=no
10680 if test "${have_python_config}" = yes; then
10681 # Determine the Python version by extracting "-lpython<version>"
10682 # part of the python_libs. <version> is usually X.Y with X and Y
10683 # being decimal numbers, but can also be XY (seen on Windows).
10684 #
10685 # The extraction is performed using sed with a regular expression.
10686 # Initially, the regexp used was using the '?' quantifier to make
10687 # the dot in the version number optional. Unfortunately, this
10688 # does not work with non-GNU versions of sed because, because of
10689 # what looks like a limitation (the '?' quantifier does not work
10690 # with back-references). We work around this limitation by using
10691 # the '*' quantifier instead. It means that, in theory, we might
10692 # match unexpected version strings such as "-lpython2..7", but
10693 # this seems unlikely in practice. And even if that happens,
10694 # an error will be triggered later on, when checking that version
10695 # number.
10696 python_version=`echo " ${python_libs} " \
10697 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10698 case "${python_version}" in
10699 python*)
10700
10701 version=${python_version}
10702
10703 new_CPPFLAGS=${python_includes}
10704 new_LIBS=${python_libs}
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10706 $as_echo_n "checking for ${version}... " >&6; }
10707 save_CPPFLAGS=$CPPFLAGS
10708 save_LIBS=$LIBS
10709 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10710 LIBS="$LIBS $new_LIBS"
10711 found_usable_python=no
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10714 #include "Python.h"
10715 int
10716 main ()
10717 {
10718 Py_Initialize ();
10719 ;
10720 return 0;
10721 }
10722 _ACEOF
10723 if ac_fn_c_try_link "$LINENO"; then :
10724 have_libpython=${version}
10725 found_usable_python=yes
10726 PYTHON_CPPFLAGS=$new_CPPFLAGS
10727 PYTHON_LIBS=$new_LIBS
10728 fi
10729 rm -f core conftest.err conftest.$ac_objext \
10730 conftest$ac_exeext conftest.$ac_ext
10731 CPPFLAGS=$save_CPPFLAGS
10732 LIBS=$save_LIBS
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10734 $as_echo "${found_usable_python}" >&6; }
10735
10736 ;;
10737 *)
10738 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
10739 ;;
10740 esac
10741 elif test "${have_python_config}" != failed; then
10742 if test "${have_libpython}" = no; then
10743
10744 version=python2.7
10745
10746 new_CPPFLAGS=${python_includes}
10747 new_LIBS="${python_libs} -lpython2.7"
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10749 $as_echo_n "checking for ${version}... " >&6; }
10750 save_CPPFLAGS=$CPPFLAGS
10751 save_LIBS=$LIBS
10752 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10753 LIBS="$LIBS $new_LIBS"
10754 found_usable_python=no
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757 #include "Python.h"
10758 int
10759 main ()
10760 {
10761 Py_Initialize ();
10762 ;
10763 return 0;
10764 }
10765 _ACEOF
10766 if ac_fn_c_try_link "$LINENO"; then :
10767 have_libpython=${version}
10768 found_usable_python=yes
10769 PYTHON_CPPFLAGS=$new_CPPFLAGS
10770 PYTHON_LIBS=$new_LIBS
10771 fi
10772 rm -f core conftest.err conftest.$ac_objext \
10773 conftest$ac_exeext conftest.$ac_ext
10774 CPPFLAGS=$save_CPPFLAGS
10775 LIBS=$save_LIBS
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10777 $as_echo "${found_usable_python}" >&6; }
10778
10779 fi
10780 if test "${have_libpython}" = no; then
10781
10782 version=python2.6
10783
10784 new_CPPFLAGS=${python_includes}
10785 new_LIBS="${python_libs} -lpython2.6"
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10787 $as_echo_n "checking for ${version}... " >&6; }
10788 save_CPPFLAGS=$CPPFLAGS
10789 save_LIBS=$LIBS
10790 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10791 LIBS="$LIBS $new_LIBS"
10792 found_usable_python=no
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795 #include "Python.h"
10796 int
10797 main ()
10798 {
10799 Py_Initialize ();
10800 ;
10801 return 0;
10802 }
10803 _ACEOF
10804 if ac_fn_c_try_link "$LINENO"; then :
10805 have_libpython=${version}
10806 found_usable_python=yes
10807 PYTHON_CPPFLAGS=$new_CPPFLAGS
10808 PYTHON_LIBS=$new_LIBS
10809 fi
10810 rm -f core conftest.err conftest.$ac_objext \
10811 conftest$ac_exeext conftest.$ac_ext
10812 CPPFLAGS=$save_CPPFLAGS
10813 LIBS=$save_LIBS
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10815 $as_echo "${found_usable_python}" >&6; }
10816
10817 fi
10818 if test ${have_libpython} = no; then
10819
10820 version=python2.5
10821
10822 new_CPPFLAGS=${python_includes}
10823 new_LIBS="${python_libs} -lpython2.5"
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10825 $as_echo_n "checking for ${version}... " >&6; }
10826 save_CPPFLAGS=$CPPFLAGS
10827 save_LIBS=$LIBS
10828 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10829 LIBS="$LIBS $new_LIBS"
10830 found_usable_python=no
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833 #include "Python.h"
10834 int
10835 main ()
10836 {
10837 Py_Initialize ();
10838 ;
10839 return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"; then :
10843 have_libpython=${version}
10844 found_usable_python=yes
10845 PYTHON_CPPFLAGS=$new_CPPFLAGS
10846 PYTHON_LIBS=$new_LIBS
10847 fi
10848 rm -f core conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10850 CPPFLAGS=$save_CPPFLAGS
10851 LIBS=$save_LIBS
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10853 $as_echo "${found_usable_python}" >&6; }
10854
10855 fi
10856 if test ${have_libpython} = no; then
10857
10858 version=python2.4
10859
10860 new_CPPFLAGS=${python_includes}
10861 new_LIBS="${python_libs} -lpython2.4"
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10863 $as_echo_n "checking for ${version}... " >&6; }
10864 save_CPPFLAGS=$CPPFLAGS
10865 save_LIBS=$LIBS
10866 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10867 LIBS="$LIBS $new_LIBS"
10868 found_usable_python=no
10869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870 /* end confdefs.h. */
10871 #include "Python.h"
10872 int
10873 main ()
10874 {
10875 Py_Initialize ();
10876 ;
10877 return 0;
10878 }
10879 _ACEOF
10880 if ac_fn_c_try_link "$LINENO"; then :
10881 have_libpython=${version}
10882 found_usable_python=yes
10883 PYTHON_CPPFLAGS=$new_CPPFLAGS
10884 PYTHON_LIBS=$new_LIBS
10885 fi
10886 rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
10888 CPPFLAGS=$save_CPPFLAGS
10889 LIBS=$save_LIBS
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10891 $as_echo "${found_usable_python}" >&6; }
10892
10893 fi
10894 fi
10895 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
10896
10897 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10898
10899 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
10900
10901 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10902
10903 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
10904
10905 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10906
10907 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
10908
10909 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10910
10911 fi
10912
10913 if test "${have_libpython}" = no; then
10914 case "${with_python}" in
10915 yes)
10916 as_fn_error "python is missing or unusable" "$LINENO" 5
10917 ;;
10918 auto)
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10920 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10921 ;;
10922 *)
10923 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
10924 ;;
10925 esac
10926 else
10927 if test -n "${python_prefix}"; then
10928
10929 cat >>confdefs.h <<_ACEOF
10930 #define WITH_PYTHON_PATH "${python_prefix}"
10931 _ACEOF
10932
10933
10934 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10935 if test "x$prefix" = xNONE; then
10936 test_prefix=/usr/local
10937 else
10938 test_prefix=$prefix
10939 fi
10940 else
10941 test_prefix=$exec_prefix
10942 fi
10943 value=0
10944 case ${python_prefix} in
10945 "${test_prefix}"|"${test_prefix}/"*|\
10946 '${exec_prefix}'|'${exec_prefix}/'*)
10947 value=1
10948 ;;
10949 esac
10950
10951 cat >>confdefs.h <<_ACEOF
10952 #define PYTHON_PATH_RELOCATABLE $value
10953 _ACEOF
10954
10955
10956 fi
10957 fi
10958 fi
10959
10960 if test "${have_libpython}" != no; then
10961
10962 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10963
10964 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10965 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10966 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10967 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
10968 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10969
10970 # Flags needed to compile Python code (taken from python-config --cflags).
10971 # We cannot call python-config directly because it will output whatever was
10972 # used when compiling the Python interpreter itself, including flags which
10973 # would make the python-related objects be compiled differently from the
10974 # rest of GDB (e.g., -O2 and -fPIC).
10975 if test "${GCC}" = yes; then
10976 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10977 fi
10978
10979 if test "x${tentative_python_cflags}" != x; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10981 $as_echo_n "checking compiler flags for python code... " >&6; }
10982 for flag in ${tentative_python_cflags}; do
10983 # Check that the compiler accepts it
10984 saved_CFLAGS="$CFLAGS"
10985 CFLAGS="$CFLAGS $flag"
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10988
10989 int
10990 main ()
10991 {
10992
10993 ;
10994 return 0;
10995 }
10996 _ACEOF
10997 if ac_fn_c_try_compile "$LINENO"; then :
10998 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10999 fi
11000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11001 CFLAGS="$saved_CFLAGS"
11002 done
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11004 $as_echo "${PYTHON_CFLAGS}" >&6; }
11005 fi
11006
11007 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
11008 # #if _SGIAPI
11009 # #define siginfo __siginfo
11010 # #endif
11011 # The problem is that including Python causes some XOPEN macros to be
11012 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
11013 # to false. So, we work around this issue by defining siginfo ourself
11014 # though the command-line.
11015 case "$gdb_host" in
11016 irix*) if test "${GCC}" = yes; then
11017 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
11018 fi
11019 ;;
11020 esac
11021 else
11022 # Even if Python support is not compiled in, we need to have these files
11023 # included.
11024 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
11025 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
11026 python/py-prettyprint.c python/py-auto-load.c"
11027 fi
11028
11029
11030
11031
11032 # ------------------------- #
11033 # Checks for header files. #
11034 # ------------------------- #
11035
11036 ac_header_dirent=no
11037 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11038 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11040 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11042 $as_echo_n "(cached) " >&6
11043 else
11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11046 #include <sys/types.h>
11047 #include <$ac_hdr>
11048
11049 int
11050 main ()
11051 {
11052 if ((DIR *) 0)
11053 return 0;
11054 ;
11055 return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_c_try_compile "$LINENO"; then :
11059 eval "$as_ac_Header=yes"
11060 else
11061 eval "$as_ac_Header=no"
11062 fi
11063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064 fi
11065 eval ac_res=\$$as_ac_Header
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11067 $as_echo "$ac_res" >&6; }
11068 eval as_val=\$$as_ac_Header
11069 if test "x$as_val" = x""yes; then :
11070 cat >>confdefs.h <<_ACEOF
11071 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11072 _ACEOF
11073
11074 ac_header_dirent=$ac_hdr; break
11075 fi
11076
11077 done
11078 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11079 if test $ac_header_dirent = dirent.h; then
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11081 $as_echo_n "checking for library containing opendir... " >&6; }
11082 if test "${ac_cv_search_opendir+set}" = set; then :
11083 $as_echo_n "(cached) " >&6
11084 else
11085 ac_func_search_save_LIBS=$LIBS
11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11088
11089 /* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */
11092 #ifdef __cplusplus
11093 extern "C"
11094 #endif
11095 char opendir ();
11096 int
11097 main ()
11098 {
11099 return opendir ();
11100 ;
11101 return 0;
11102 }
11103 _ACEOF
11104 for ac_lib in '' dir; do
11105 if test -z "$ac_lib"; then
11106 ac_res="none required"
11107 else
11108 ac_res=-l$ac_lib
11109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11110 fi
11111 if ac_fn_c_try_link "$LINENO"; then :
11112 ac_cv_search_opendir=$ac_res
11113 fi
11114 rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext
11116 if test "${ac_cv_search_opendir+set}" = set; then :
11117 break
11118 fi
11119 done
11120 if test "${ac_cv_search_opendir+set}" = set; then :
11121
11122 else
11123 ac_cv_search_opendir=no
11124 fi
11125 rm conftest.$ac_ext
11126 LIBS=$ac_func_search_save_LIBS
11127 fi
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11129 $as_echo "$ac_cv_search_opendir" >&6; }
11130 ac_res=$ac_cv_search_opendir
11131 if test "$ac_res" != no; then :
11132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11133
11134 fi
11135
11136 else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11138 $as_echo_n "checking for library containing opendir... " >&6; }
11139 if test "${ac_cv_search_opendir+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 ac_func_search_save_LIBS=$LIBS
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11145
11146 /* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
11149 #ifdef __cplusplus
11150 extern "C"
11151 #endif
11152 char opendir ();
11153 int
11154 main ()
11155 {
11156 return opendir ();
11157 ;
11158 return 0;
11159 }
11160 _ACEOF
11161 for ac_lib in '' x; do
11162 if test -z "$ac_lib"; then
11163 ac_res="none required"
11164 else
11165 ac_res=-l$ac_lib
11166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11167 fi
11168 if ac_fn_c_try_link "$LINENO"; then :
11169 ac_cv_search_opendir=$ac_res
11170 fi
11171 rm -f core conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext
11173 if test "${ac_cv_search_opendir+set}" = set; then :
11174 break
11175 fi
11176 done
11177 if test "${ac_cv_search_opendir+set}" = set; then :
11178
11179 else
11180 ac_cv_search_opendir=no
11181 fi
11182 rm conftest.$ac_ext
11183 LIBS=$ac_func_search_save_LIBS
11184 fi
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11186 $as_echo "$ac_cv_search_opendir" >&6; }
11187 ac_res=$ac_cv_search_opendir
11188 if test "$ac_res" != no; then :
11189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11190
11191 fi
11192
11193 fi
11194
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11196 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11197 if test "${ac_cv_header_stat_broken+set}" = set; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11202 #include <sys/types.h>
11203 #include <sys/stat.h>
11204
11205 #if defined S_ISBLK && defined S_IFDIR
11206 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11207 #endif
11208
11209 #if defined S_ISBLK && defined S_IFCHR
11210 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11211 #endif
11212
11213 #if defined S_ISLNK && defined S_IFREG
11214 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11215 #endif
11216
11217 #if defined S_ISSOCK && defined S_IFREG
11218 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11219 #endif
11220
11221 _ACEOF
11222 if ac_fn_c_try_compile "$LINENO"; then :
11223 ac_cv_header_stat_broken=no
11224 else
11225 ac_cv_header_stat_broken=yes
11226 fi
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228 fi
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11230 $as_echo "$ac_cv_header_stat_broken" >&6; }
11231 if test $ac_cv_header_stat_broken = yes; then
11232
11233 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11234
11235 fi
11236
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11238 $as_echo_n "checking for ANSI C header files... " >&6; }
11239 if test "${ac_cv_header_stdc+set}" = set; then :
11240 $as_echo_n "(cached) " >&6
11241 else
11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11244 #include <stdlib.h>
11245 #include <stdarg.h>
11246 #include <string.h>
11247 #include <float.h>
11248
11249 int
11250 main ()
11251 {
11252
11253 ;
11254 return 0;
11255 }
11256 _ACEOF
11257 if ac_fn_c_try_compile "$LINENO"; then :
11258 ac_cv_header_stdc=yes
11259 else
11260 ac_cv_header_stdc=no
11261 fi
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263
11264 if test $ac_cv_header_stdc = yes; then
11265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268 #include <string.h>
11269
11270 _ACEOF
11271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11272 $EGREP "memchr" >/dev/null 2>&1; then :
11273
11274 else
11275 ac_cv_header_stdc=no
11276 fi
11277 rm -f conftest*
11278
11279 fi
11280
11281 if test $ac_cv_header_stdc = yes; then
11282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11285 #include <stdlib.h>
11286
11287 _ACEOF
11288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11289 $EGREP "free" >/dev/null 2>&1; then :
11290
11291 else
11292 ac_cv_header_stdc=no
11293 fi
11294 rm -f conftest*
11295
11296 fi
11297
11298 if test $ac_cv_header_stdc = yes; then
11299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11300 if test "$cross_compiling" = yes; then :
11301 :
11302 else
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11305 #include <ctype.h>
11306 #include <stdlib.h>
11307 #if ((' ' & 0x0FF) == 0x020)
11308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11310 #else
11311 # define ISLOWER(c) \
11312 (('a' <= (c) && (c) <= 'i') \
11313 || ('j' <= (c) && (c) <= 'r') \
11314 || ('s' <= (c) && (c) <= 'z'))
11315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11316 #endif
11317
11318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11319 int
11320 main ()
11321 {
11322 int i;
11323 for (i = 0; i < 256; i++)
11324 if (XOR (islower (i), ISLOWER (i))
11325 || toupper (i) != TOUPPER (i))
11326 return 2;
11327 return 0;
11328 }
11329 _ACEOF
11330 if ac_fn_c_try_run "$LINENO"; then :
11331
11332 else
11333 ac_cv_header_stdc=no
11334 fi
11335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11336 conftest.$ac_objext conftest.beam conftest.$ac_ext
11337 fi
11338
11339 fi
11340 fi
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11342 $as_echo "$ac_cv_header_stdc" >&6; }
11343 if test $ac_cv_header_stdc = yes; then
11344
11345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11346
11347 fi
11348
11349 # elf_hp.h is for HP/UX 64-bit shared library support.
11350 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11351 # unconditionally, so what's the point in checking these?
11352 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11353 thread_db.h gnu/libc-version.h signal.h stddef.h \
11354 stdlib.h string.h memory.h strings.h sys/fault.h \
11355 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11356 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11357 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11358 sys/types.h sys/wait.h wait.h termios.h termio.h \
11359 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
11360 do :
11361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11362 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11363 eval as_val=\$$as_ac_Header
11364 if test "x$as_val" = x""yes; then :
11365 cat >>confdefs.h <<_ACEOF
11366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11367 _ACEOF
11368
11369 fi
11370
11371 done
11372
11373 for ac_header in link.h
11374 do :
11375 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11376 # include <sys/types.h>
11377 #endif
11378 #if HAVE_NLIST_H
11379 # include <nlist.h>
11380 #endif
11381
11382 "
11383 if test "x$ac_cv_header_link_h" = x""yes; then :
11384 cat >>confdefs.h <<_ACEOF
11385 #define HAVE_LINK_H 1
11386 _ACEOF
11387
11388 fi
11389
11390 done
11391
11392 for ac_header in sys/proc.h
11393 do :
11394 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11395 # include <sys/param.h>
11396 #endif
11397
11398 "
11399 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11400 cat >>confdefs.h <<_ACEOF
11401 #define HAVE_SYS_PROC_H 1
11402 _ACEOF
11403
11404 fi
11405
11406 done
11407
11408 for ac_header in sys/user.h
11409 do :
11410 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11411 # include <sys/param.h>
11412 #endif
11413
11414 "
11415 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11416 cat >>confdefs.h <<_ACEOF
11417 #define HAVE_SYS_USER_H 1
11418 _ACEOF
11419
11420 fi
11421
11422 done
11423
11424
11425 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11426 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11427 # think that we don't have <curses.h> if we're using GCC.
11428 case $host_os in
11429 solaris2.[789])
11430 if test "$GCC" = yes; then
11431
11432 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11433
11434 fi ;;
11435 esac
11436 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11437 do :
11438 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11439 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11440 eval as_val=\$$as_ac_Header
11441 if test "x$as_val" = x""yes; then :
11442 cat >>confdefs.h <<_ACEOF
11443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11444 _ACEOF
11445
11446 fi
11447
11448 done
11449
11450 for ac_header in term.h
11451 do :
11452 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11453 # include <curses.h>
11454 #endif
11455
11456 "
11457 if test "x$ac_cv_header_term_h" = x""yes; then :
11458 cat >>confdefs.h <<_ACEOF
11459 #define HAVE_TERM_H 1
11460 _ACEOF
11461
11462 fi
11463
11464 done
11465
11466
11467 # ------------------------- #
11468 # Checks for declarations. #
11469 # ------------------------- #
11470
11471 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11472 if test "x$ac_cv_have_decl_free" = 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_FREE $ac_have_decl
11480 _ACEOF
11481 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11482 if test "x$ac_cv_have_decl_malloc" = 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_MALLOC $ac_have_decl
11490 _ACEOF
11491 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11492 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11493 ac_have_decl=1
11494 else
11495 ac_have_decl=0
11496 fi
11497
11498 cat >>confdefs.h <<_ACEOF
11499 #define HAVE_DECL_REALLOC $ac_have_decl
11500 _ACEOF
11501 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11502 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11503 ac_have_decl=1
11504 else
11505 ac_have_decl=0
11506 fi
11507
11508 cat >>confdefs.h <<_ACEOF
11509 #define HAVE_DECL_STRERROR $ac_have_decl
11510 _ACEOF
11511 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11512 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11513 ac_have_decl=1
11514 else
11515 ac_have_decl=0
11516 fi
11517
11518 cat >>confdefs.h <<_ACEOF
11519 #define HAVE_DECL_STRSTR $ac_have_decl
11520 _ACEOF
11521 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11522 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11523 ac_have_decl=1
11524 else
11525 ac_have_decl=0
11526 fi
11527
11528 cat >>confdefs.h <<_ACEOF
11529 #define HAVE_DECL_GETOPT $ac_have_decl
11530 _ACEOF
11531 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11532 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11533 ac_have_decl=1
11534 else
11535 ac_have_decl=0
11536 fi
11537
11538 cat >>confdefs.h <<_ACEOF
11539 #define HAVE_DECL_SNPRINTF $ac_have_decl
11540 _ACEOF
11541 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11542 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11543 ac_have_decl=1
11544 else
11545 ac_have_decl=0
11546 fi
11547
11548 cat >>confdefs.h <<_ACEOF
11549 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11550 _ACEOF
11551
11552
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11554 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11555 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11560 #include <locale.h>
11561 int
11562 main ()
11563 {
11564 return LC_MESSAGES
11565 ;
11566 return 0;
11567 }
11568 _ACEOF
11569 if ac_fn_c_try_link "$LINENO"; then :
11570 am_cv_val_LC_MESSAGES=yes
11571 else
11572 am_cv_val_LC_MESSAGES=no
11573 fi
11574 rm -f core conftest.err conftest.$ac_objext \
11575 conftest$ac_exeext conftest.$ac_ext
11576 fi
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11578 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11579 if test $am_cv_val_LC_MESSAGES = yes; then
11580
11581 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11582
11583 fi
11584
11585
11586 # ----------------------- #
11587 # Checks for structures. #
11588 # ----------------------- #
11589
11590 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11591 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11592
11593 cat >>confdefs.h <<_ACEOF
11594 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11595 _ACEOF
11596
11597
11598 fi
11599 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11600 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11601
11602 cat >>confdefs.h <<_ACEOF
11603 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11604 _ACEOF
11605
11606
11607 fi
11608
11609
11610 # ------------------ #
11611 # Checks for types. #
11612 # ------------------ #
11613
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11615 $as_echo_n "checking return type of signal handlers... " >&6; }
11616 if test "${ac_cv_type_signal+set}" = set; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620 /* end confdefs.h. */
11621 #include <sys/types.h>
11622 #include <signal.h>
11623
11624 int
11625 main ()
11626 {
11627 return *(signal (0, 0)) (0) == 1;
11628 ;
11629 return 0;
11630 }
11631 _ACEOF
11632 if ac_fn_c_try_compile "$LINENO"; then :
11633 ac_cv_type_signal=int
11634 else
11635 ac_cv_type_signal=void
11636 fi
11637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638 fi
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11640 $as_echo "$ac_cv_type_signal" >&6; }
11641
11642 cat >>confdefs.h <<_ACEOF
11643 #define RETSIGTYPE $ac_cv_type_signal
11644 _ACEOF
11645
11646
11647 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11648 #include <sys/socket.h>
11649
11650 "
11651 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11652
11653 cat >>confdefs.h <<_ACEOF
11654 #define HAVE_SOCKLEN_T 1
11655 _ACEOF
11656
11657
11658 fi
11659
11660
11661 # ------------------------------------- #
11662 # Checks for compiler characteristics. #
11663 # ------------------------------------- #
11664
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11666 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11667 if test "${ac_cv_c_const+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11672
11673 int
11674 main ()
11675 {
11676 /* FIXME: Include the comments suggested by Paul. */
11677 #ifndef __cplusplus
11678 /* Ultrix mips cc rejects this. */
11679 typedef int charset[2];
11680 const charset cs;
11681 /* SunOS 4.1.1 cc rejects this. */
11682 char const *const *pcpcc;
11683 char **ppc;
11684 /* NEC SVR4.0.2 mips cc rejects this. */
11685 struct point {int x, y;};
11686 static struct point const zero = {0,0};
11687 /* AIX XL C 1.02.0.0 rejects this.
11688 It does not let you subtract one const X* pointer from another in
11689 an arm of an if-expression whose if-part is not a constant
11690 expression */
11691 const char *g = "string";
11692 pcpcc = &g + (g ? g-g : 0);
11693 /* HPUX 7.0 cc rejects these. */
11694 ++pcpcc;
11695 ppc = (char**) pcpcc;
11696 pcpcc = (char const *const *) ppc;
11697 { /* SCO 3.2v4 cc rejects this. */
11698 char *t;
11699 char const *s = 0 ? (char *) 0 : (char const *) 0;
11700
11701 *t++ = 0;
11702 if (s) return 0;
11703 }
11704 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11705 int x[] = {25, 17};
11706 const int *foo = &x[0];
11707 ++foo;
11708 }
11709 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11710 typedef const int *iptr;
11711 iptr p = 0;
11712 ++p;
11713 }
11714 { /* AIX XL C 1.02.0.0 rejects this saying
11715 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11716 struct s { int j; const int *ap[3]; };
11717 struct s *b; b->j = 5;
11718 }
11719 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11720 const int foo = 10;
11721 if (!foo) return 0;
11722 }
11723 return !cs[0] && !zero.x;
11724 #endif
11725
11726 ;
11727 return 0;
11728 }
11729 _ACEOF
11730 if ac_fn_c_try_compile "$LINENO"; then :
11731 ac_cv_c_const=yes
11732 else
11733 ac_cv_c_const=no
11734 fi
11735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11738 $as_echo "$ac_cv_c_const" >&6; }
11739 if test $ac_cv_c_const = no; then
11740
11741 $as_echo "#define const /**/" >>confdefs.h
11742
11743 fi
11744
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11746 $as_echo_n "checking for inline... " >&6; }
11747 if test "${ac_cv_c_inline+set}" = set; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 ac_cv_c_inline=no
11751 for ac_kw in inline __inline__ __inline; do
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h. */
11754 #ifndef __cplusplus
11755 typedef int foo_t;
11756 static $ac_kw foo_t static_foo () {return 0; }
11757 $ac_kw foo_t foo () {return 0; }
11758 #endif
11759
11760 _ACEOF
11761 if ac_fn_c_try_compile "$LINENO"; then :
11762 ac_cv_c_inline=$ac_kw
11763 fi
11764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11765 test "$ac_cv_c_inline" != no && break
11766 done
11767
11768 fi
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11770 $as_echo "$ac_cv_c_inline" >&6; }
11771
11772 case $ac_cv_c_inline in
11773 inline | yes) ;;
11774 *)
11775 case $ac_cv_c_inline in
11776 no) ac_val=;;
11777 *) ac_val=$ac_cv_c_inline;;
11778 esac
11779 cat >>confdefs.h <<_ACEOF
11780 #ifndef __cplusplus
11781 #define inline $ac_val
11782 #endif
11783 _ACEOF
11784 ;;
11785 esac
11786
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11788 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11789 if test "${ac_cv_c_bigendian+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11792 ac_cv_c_bigendian=unknown
11793 # See if we're dealing with a universal compiler.
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11796 #ifndef __APPLE_CC__
11797 not a universal capable compiler
11798 #endif
11799 typedef int dummy;
11800
11801 _ACEOF
11802 if ac_fn_c_try_compile "$LINENO"; then :
11803
11804 # Check for potential -arch flags. It is not universal unless
11805 # there are at least two -arch flags with different values.
11806 ac_arch=
11807 ac_prev=
11808 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11809 if test -n "$ac_prev"; then
11810 case $ac_word in
11811 i?86 | x86_64 | ppc | ppc64)
11812 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11813 ac_arch=$ac_word
11814 else
11815 ac_cv_c_bigendian=universal
11816 break
11817 fi
11818 ;;
11819 esac
11820 ac_prev=
11821 elif test "x$ac_word" = "x-arch"; then
11822 ac_prev=arch
11823 fi
11824 done
11825 fi
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 if test $ac_cv_c_bigendian = unknown; then
11828 # See if sys/param.h defines the BYTE_ORDER macro.
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831 #include <sys/types.h>
11832 #include <sys/param.h>
11833
11834 int
11835 main ()
11836 {
11837 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11838 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11839 && LITTLE_ENDIAN)
11840 bogus endian macros
11841 #endif
11842
11843 ;
11844 return 0;
11845 }
11846 _ACEOF
11847 if ac_fn_c_try_compile "$LINENO"; then :
11848 # It does; now see whether it defined to BIG_ENDIAN or not.
11849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850 /* end confdefs.h. */
11851 #include <sys/types.h>
11852 #include <sys/param.h>
11853
11854 int
11855 main ()
11856 {
11857 #if BYTE_ORDER != BIG_ENDIAN
11858 not big endian
11859 #endif
11860
11861 ;
11862 return 0;
11863 }
11864 _ACEOF
11865 if ac_fn_c_try_compile "$LINENO"; then :
11866 ac_cv_c_bigendian=yes
11867 else
11868 ac_cv_c_bigendian=no
11869 fi
11870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871 fi
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873 fi
11874 if test $ac_cv_c_bigendian = unknown; then
11875 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878 #include <limits.h>
11879
11880 int
11881 main ()
11882 {
11883 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11884 bogus endian macros
11885 #endif
11886
11887 ;
11888 return 0;
11889 }
11890 _ACEOF
11891 if ac_fn_c_try_compile "$LINENO"; then :
11892 # It does; now see whether it defined to _BIG_ENDIAN or not.
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11895 #include <limits.h>
11896
11897 int
11898 main ()
11899 {
11900 #ifndef _BIG_ENDIAN
11901 not big endian
11902 #endif
11903
11904 ;
11905 return 0;
11906 }
11907 _ACEOF
11908 if ac_fn_c_try_compile "$LINENO"; then :
11909 ac_cv_c_bigendian=yes
11910 else
11911 ac_cv_c_bigendian=no
11912 fi
11913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11914 fi
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11916 fi
11917 if test $ac_cv_c_bigendian = unknown; then
11918 # Compile a test program.
11919 if test "$cross_compiling" = yes; then :
11920 # Try to guess by grepping values from an object file.
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 short int ascii_mm[] =
11924 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11925 short int ascii_ii[] =
11926 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11927 int use_ascii (int i) {
11928 return ascii_mm[i] + ascii_ii[i];
11929 }
11930 short int ebcdic_ii[] =
11931 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11932 short int ebcdic_mm[] =
11933 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11934 int use_ebcdic (int i) {
11935 return ebcdic_mm[i] + ebcdic_ii[i];
11936 }
11937 extern int foo;
11938
11939 int
11940 main ()
11941 {
11942 return use_ascii (foo) == use_ebcdic (foo);
11943 ;
11944 return 0;
11945 }
11946 _ACEOF
11947 if ac_fn_c_try_compile "$LINENO"; then :
11948 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11949 ac_cv_c_bigendian=yes
11950 fi
11951 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11952 if test "$ac_cv_c_bigendian" = unknown; then
11953 ac_cv_c_bigendian=no
11954 else
11955 # finding both strings is unlikely to happen, but who knows?
11956 ac_cv_c_bigendian=unknown
11957 fi
11958 fi
11959 fi
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 else
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11964 $ac_includes_default
11965 int
11966 main ()
11967 {
11968
11969 /* Are we little or big endian? From Harbison&Steele. */
11970 union
11971 {
11972 long int l;
11973 char c[sizeof (long int)];
11974 } u;
11975 u.l = 1;
11976 return u.c[sizeof (long int) - 1] == 1;
11977
11978 ;
11979 return 0;
11980 }
11981 _ACEOF
11982 if ac_fn_c_try_run "$LINENO"; then :
11983 ac_cv_c_bigendian=no
11984 else
11985 ac_cv_c_bigendian=yes
11986 fi
11987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11988 conftest.$ac_objext conftest.beam conftest.$ac_ext
11989 fi
11990
11991 fi
11992 fi
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11994 $as_echo "$ac_cv_c_bigendian" >&6; }
11995 case $ac_cv_c_bigendian in #(
11996 yes)
11997 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11998 ;; #(
11999 no)
12000 ;; #(
12001 universal)
12002
12003 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12004
12005 ;; #(
12006 *)
12007 as_fn_error "unknown endianness
12008 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12009 esac
12010
12011
12012 # ------------------------------ #
12013 # Checks for library functions. #
12014 # ------------------------------ #
12015
12016 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12017 # for constant arguments. Useless!
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12019 $as_echo_n "checking for working alloca.h... " >&6; }
12020 if test "${ac_cv_working_alloca_h+set}" = set; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12025 #include <alloca.h>
12026 int
12027 main ()
12028 {
12029 char *p = (char *) alloca (2 * sizeof (int));
12030 if (p) return 0;
12031 ;
12032 return 0;
12033 }
12034 _ACEOF
12035 if ac_fn_c_try_link "$LINENO"; then :
12036 ac_cv_working_alloca_h=yes
12037 else
12038 ac_cv_working_alloca_h=no
12039 fi
12040 rm -f core conftest.err conftest.$ac_objext \
12041 conftest$ac_exeext conftest.$ac_ext
12042 fi
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12044 $as_echo "$ac_cv_working_alloca_h" >&6; }
12045 if test $ac_cv_working_alloca_h = yes; then
12046
12047 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12048
12049 fi
12050
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12052 $as_echo_n "checking for alloca... " >&6; }
12053 if test "${ac_cv_func_alloca_works+set}" = set; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h. */
12058 #ifdef __GNUC__
12059 # define alloca __builtin_alloca
12060 #else
12061 # ifdef _MSC_VER
12062 # include <malloc.h>
12063 # define alloca _alloca
12064 # else
12065 # ifdef HAVE_ALLOCA_H
12066 # include <alloca.h>
12067 # else
12068 # ifdef _AIX
12069 #pragma alloca
12070 # else
12071 # ifndef alloca /* predefined by HP cc +Olibcalls */
12072 char *alloca ();
12073 # endif
12074 # endif
12075 # endif
12076 # endif
12077 #endif
12078
12079 int
12080 main ()
12081 {
12082 char *p = (char *) alloca (1);
12083 if (p) return 0;
12084 ;
12085 return 0;
12086 }
12087 _ACEOF
12088 if ac_fn_c_try_link "$LINENO"; then :
12089 ac_cv_func_alloca_works=yes
12090 else
12091 ac_cv_func_alloca_works=no
12092 fi
12093 rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12097 $as_echo "$ac_cv_func_alloca_works" >&6; }
12098
12099 if test $ac_cv_func_alloca_works = yes; then
12100
12101 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12102
12103 else
12104 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12105 # that cause trouble. Some versions do not even contain alloca or
12106 # contain a buggy version. If you still want to use their alloca,
12107 # use ar to extract alloca.o from them instead of compiling alloca.c.
12108
12109 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12110
12111 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12112
12113
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12115 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12116 if test "${ac_cv_os_cray+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12121 #if defined CRAY && ! defined CRAY2
12122 webecray
12123 #else
12124 wenotbecray
12125 #endif
12126
12127 _ACEOF
12128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12129 $EGREP "webecray" >/dev/null 2>&1; then :
12130 ac_cv_os_cray=yes
12131 else
12132 ac_cv_os_cray=no
12133 fi
12134 rm -f conftest*
12135
12136 fi
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12138 $as_echo "$ac_cv_os_cray" >&6; }
12139 if test $ac_cv_os_cray = yes; then
12140 for ac_func in _getb67 GETB67 getb67; do
12141 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12142 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12143 eval as_val=\$$as_ac_var
12144 if test "x$as_val" = x""yes; then :
12145
12146 cat >>confdefs.h <<_ACEOF
12147 #define CRAY_STACKSEG_END $ac_func
12148 _ACEOF
12149
12150 break
12151 fi
12152
12153 done
12154 fi
12155
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12157 $as_echo_n "checking stack direction for C alloca... " >&6; }
12158 if test "${ac_cv_c_stack_direction+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 if test "$cross_compiling" = yes; then :
12162 ac_cv_c_stack_direction=0
12163 else
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 $ac_includes_default
12167 int
12168 find_stack_direction ()
12169 {
12170 static char *addr = 0;
12171 auto char dummy;
12172 if (addr == 0)
12173 {
12174 addr = &dummy;
12175 return find_stack_direction ();
12176 }
12177 else
12178 return (&dummy > addr) ? 1 : -1;
12179 }
12180
12181 int
12182 main ()
12183 {
12184 return find_stack_direction () < 0;
12185 }
12186 _ACEOF
12187 if ac_fn_c_try_run "$LINENO"; then :
12188 ac_cv_c_stack_direction=1
12189 else
12190 ac_cv_c_stack_direction=-1
12191 fi
12192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12193 conftest.$ac_objext conftest.beam conftest.$ac_ext
12194 fi
12195
12196 fi
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12198 $as_echo "$ac_cv_c_stack_direction" >&6; }
12199 cat >>confdefs.h <<_ACEOF
12200 #define STACK_DIRECTION $ac_cv_c_stack_direction
12201 _ACEOF
12202
12203
12204 fi
12205
12206 for ac_header in stdlib.h unistd.h
12207 do :
12208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12209 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12210 eval as_val=\$$as_ac_Header
12211 if test "x$as_val" = x""yes; then :
12212 cat >>confdefs.h <<_ACEOF
12213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12214 _ACEOF
12215
12216 fi
12217
12218 done
12219
12220 for ac_func in getpagesize
12221 do :
12222 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12223 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12224 cat >>confdefs.h <<_ACEOF
12225 #define HAVE_GETPAGESIZE 1
12226 _ACEOF
12227
12228 fi
12229 done
12230
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12232 $as_echo_n "checking for working mmap... " >&6; }
12233 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12236 if test "$cross_compiling" = yes; then :
12237 ac_cv_func_mmap_fixed_mapped=no
12238 else
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241 $ac_includes_default
12242 /* malloc might have been renamed as rpl_malloc. */
12243 #undef malloc
12244
12245 /* Thanks to Mike Haertel and Jim Avera for this test.
12246 Here is a matrix of mmap possibilities:
12247 mmap private not fixed
12248 mmap private fixed at somewhere currently unmapped
12249 mmap private fixed at somewhere already mapped
12250 mmap shared not fixed
12251 mmap shared fixed at somewhere currently unmapped
12252 mmap shared fixed at somewhere already mapped
12253 For private mappings, we should verify that changes cannot be read()
12254 back from the file, nor mmap's back from the file at a different
12255 address. (There have been systems where private was not correctly
12256 implemented like the infamous i386 svr4.0, and systems where the
12257 VM page cache was not coherent with the file system buffer cache
12258 like early versions of FreeBSD and possibly contemporary NetBSD.)
12259 For shared mappings, we should conversely verify that changes get
12260 propagated back to all the places they're supposed to be.
12261
12262 Grep wants private fixed already mapped.
12263 The main things grep needs to know about mmap are:
12264 * does it exist and is it safe to write into the mmap'd area
12265 * how to use it (BSD variants) */
12266
12267 #include <fcntl.h>
12268 #include <sys/mman.h>
12269
12270 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12271 char *malloc ();
12272 #endif
12273
12274 /* This mess was copied from the GNU getpagesize.h. */
12275 #ifndef HAVE_GETPAGESIZE
12276 /* Assume that all systems that can run configure have sys/param.h. */
12277 # ifndef HAVE_SYS_PARAM_H
12278 # define HAVE_SYS_PARAM_H 1
12279 # endif
12280
12281 # ifdef _SC_PAGESIZE
12282 # define getpagesize() sysconf(_SC_PAGESIZE)
12283 # else /* no _SC_PAGESIZE */
12284 # ifdef HAVE_SYS_PARAM_H
12285 # include <sys/param.h>
12286 # ifdef EXEC_PAGESIZE
12287 # define getpagesize() EXEC_PAGESIZE
12288 # else /* no EXEC_PAGESIZE */
12289 # ifdef NBPG
12290 # define getpagesize() NBPG * CLSIZE
12291 # ifndef CLSIZE
12292 # define CLSIZE 1
12293 # endif /* no CLSIZE */
12294 # else /* no NBPG */
12295 # ifdef NBPC
12296 # define getpagesize() NBPC
12297 # else /* no NBPC */
12298 # ifdef PAGESIZE
12299 # define getpagesize() PAGESIZE
12300 # endif /* PAGESIZE */
12301 # endif /* no NBPC */
12302 # endif /* no NBPG */
12303 # endif /* no EXEC_PAGESIZE */
12304 # else /* no HAVE_SYS_PARAM_H */
12305 # define getpagesize() 8192 /* punt totally */
12306 # endif /* no HAVE_SYS_PARAM_H */
12307 # endif /* no _SC_PAGESIZE */
12308
12309 #endif /* no HAVE_GETPAGESIZE */
12310
12311 int
12312 main ()
12313 {
12314 char *data, *data2, *data3;
12315 int i, pagesize;
12316 int fd;
12317
12318 pagesize = getpagesize ();
12319
12320 /* First, make a file with some known garbage in it. */
12321 data = (char *) malloc (pagesize);
12322 if (!data)
12323 return 1;
12324 for (i = 0; i < pagesize; ++i)
12325 *(data + i) = rand ();
12326 umask (0);
12327 fd = creat ("conftest.mmap", 0600);
12328 if (fd < 0)
12329 return 1;
12330 if (write (fd, data, pagesize) != pagesize)
12331 return 1;
12332 close (fd);
12333
12334 /* Next, try to mmap the file at a fixed address which already has
12335 something else allocated at it. If we can, also make sure that
12336 we see the same garbage. */
12337 fd = open ("conftest.mmap", O_RDWR);
12338 if (fd < 0)
12339 return 1;
12340 data2 = (char *) malloc (2 * pagesize);
12341 if (!data2)
12342 return 1;
12343 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12344 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12345 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12346 return 1;
12347 for (i = 0; i < pagesize; ++i)
12348 if (*(data + i) != *(data2 + i))
12349 return 1;
12350
12351 /* Finally, make sure that changes to the mapped area do not
12352 percolate back to the file as seen by read(). (This is a bug on
12353 some variants of i386 svr4.0.) */
12354 for (i = 0; i < pagesize; ++i)
12355 *(data2 + i) = *(data2 + i) + 1;
12356 data3 = (char *) malloc (pagesize);
12357 if (!data3)
12358 return 1;
12359 if (read (fd, data3, pagesize) != pagesize)
12360 return 1;
12361 for (i = 0; i < pagesize; ++i)
12362 if (*(data + i) != *(data3 + i))
12363 return 1;
12364 close (fd);
12365 return 0;
12366 }
12367 _ACEOF
12368 if ac_fn_c_try_run "$LINENO"; then :
12369 ac_cv_func_mmap_fixed_mapped=yes
12370 else
12371 ac_cv_func_mmap_fixed_mapped=no
12372 fi
12373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12374 conftest.$ac_objext conftest.beam conftest.$ac_ext
12375 fi
12376
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12379 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12380 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12381
12382 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12383
12384 fi
12385 rm -f conftest.mmap
12386
12387 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12388 if test "x$ac_cv_type_pid_t" = x""yes; then :
12389
12390 else
12391
12392 cat >>confdefs.h <<_ACEOF
12393 #define pid_t int
12394 _ACEOF
12395
12396 fi
12397
12398 for ac_header in vfork.h
12399 do :
12400 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12401 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12402 cat >>confdefs.h <<_ACEOF
12403 #define HAVE_VFORK_H 1
12404 _ACEOF
12405
12406 fi
12407
12408 done
12409
12410 for ac_func in fork vfork
12411 do :
12412 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12413 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12414 eval as_val=\$$as_ac_var
12415 if test "x$as_val" = x""yes; then :
12416 cat >>confdefs.h <<_ACEOF
12417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12418 _ACEOF
12419
12420 fi
12421 done
12422
12423 if test "x$ac_cv_func_fork" = xyes; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12425 $as_echo_n "checking for working fork... " >&6; }
12426 if test "${ac_cv_func_fork_works+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 if test "$cross_compiling" = yes; then :
12430 ac_cv_func_fork_works=cross
12431 else
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434 $ac_includes_default
12435 int
12436 main ()
12437 {
12438
12439 /* By Ruediger Kuhlmann. */
12440 return fork () < 0;
12441
12442 ;
12443 return 0;
12444 }
12445 _ACEOF
12446 if ac_fn_c_try_run "$LINENO"; then :
12447 ac_cv_func_fork_works=yes
12448 else
12449 ac_cv_func_fork_works=no
12450 fi
12451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12452 conftest.$ac_objext conftest.beam conftest.$ac_ext
12453 fi
12454
12455 fi
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12457 $as_echo "$ac_cv_func_fork_works" >&6; }
12458
12459 else
12460 ac_cv_func_fork_works=$ac_cv_func_fork
12461 fi
12462 if test "x$ac_cv_func_fork_works" = xcross; then
12463 case $host in
12464 *-*-amigaos* | *-*-msdosdjgpp*)
12465 # Override, as these systems have only a dummy fork() stub
12466 ac_cv_func_fork_works=no
12467 ;;
12468 *)
12469 ac_cv_func_fork_works=yes
12470 ;;
12471 esac
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12473 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12474 fi
12475 ac_cv_func_vfork_works=$ac_cv_func_vfork
12476 if test "x$ac_cv_func_vfork" = xyes; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12478 $as_echo_n "checking for working vfork... " >&6; }
12479 if test "${ac_cv_func_vfork_works+set}" = set; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 if test "$cross_compiling" = yes; then :
12483 ac_cv_func_vfork_works=cross
12484 else
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 /* Thanks to Paul Eggert for this test. */
12488 $ac_includes_default
12489 #include <sys/wait.h>
12490 #ifdef HAVE_VFORK_H
12491 # include <vfork.h>
12492 #endif
12493 /* On some sparc systems, changes by the child to local and incoming
12494 argument registers are propagated back to the parent. The compiler
12495 is told about this with #include <vfork.h>, but some compilers
12496 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12497 static variable whose address is put into a register that is
12498 clobbered by the vfork. */
12499 static void
12500 #ifdef __cplusplus
12501 sparc_address_test (int arg)
12502 # else
12503 sparc_address_test (arg) int arg;
12504 #endif
12505 {
12506 static pid_t child;
12507 if (!child) {
12508 child = vfork ();
12509 if (child < 0) {
12510 perror ("vfork");
12511 _exit(2);
12512 }
12513 if (!child) {
12514 arg = getpid();
12515 write(-1, "", 0);
12516 _exit (arg);
12517 }
12518 }
12519 }
12520
12521 int
12522 main ()
12523 {
12524 pid_t parent = getpid ();
12525 pid_t child;
12526
12527 sparc_address_test (0);
12528
12529 child = vfork ();
12530
12531 if (child == 0) {
12532 /* Here is another test for sparc vfork register problems. This
12533 test uses lots of local variables, at least as many local
12534 variables as main has allocated so far including compiler
12535 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12536 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12537 reuse the register of parent for one of the local variables,
12538 since it will think that parent can't possibly be used any more
12539 in this routine. Assigning to the local variable will thus
12540 munge parent in the parent process. */
12541 pid_t
12542 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12543 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12544 /* Convince the compiler that p..p7 are live; otherwise, it might
12545 use the same hardware register for all 8 local variables. */
12546 if (p != p1 || p != p2 || p != p3 || p != p4
12547 || p != p5 || p != p6 || p != p7)
12548 _exit(1);
12549
12550 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12551 from child file descriptors. If the child closes a descriptor
12552 before it execs or exits, this munges the parent's descriptor
12553 as well. Test for this by closing stdout in the child. */
12554 _exit(close(fileno(stdout)) != 0);
12555 } else {
12556 int status;
12557 struct stat st;
12558
12559 while (wait(&status) != child)
12560 ;
12561 return (
12562 /* Was there some problem with vforking? */
12563 child < 0
12564
12565 /* Did the child fail? (This shouldn't happen.) */
12566 || status
12567
12568 /* Did the vfork/compiler bug occur? */
12569 || parent != getpid()
12570
12571 /* Did the file descriptor bug occur? */
12572 || fstat(fileno(stdout), &st) != 0
12573 );
12574 }
12575 }
12576 _ACEOF
12577 if ac_fn_c_try_run "$LINENO"; then :
12578 ac_cv_func_vfork_works=yes
12579 else
12580 ac_cv_func_vfork_works=no
12581 fi
12582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12583 conftest.$ac_objext conftest.beam conftest.$ac_ext
12584 fi
12585
12586 fi
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12588 $as_echo "$ac_cv_func_vfork_works" >&6; }
12589
12590 fi;
12591 if test "x$ac_cv_func_fork_works" = xcross; then
12592 ac_cv_func_vfork_works=$ac_cv_func_vfork
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12594 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12595 fi
12596
12597 if test "x$ac_cv_func_vfork_works" = xyes; then
12598
12599 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12600
12601 else
12602
12603 $as_echo "#define vfork fork" >>confdefs.h
12604
12605 fi
12606 if test "x$ac_cv_func_fork_works" = xyes; then
12607
12608 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12609
12610 fi
12611
12612 for ac_func in canonicalize_file_name realpath getrusage getuid \
12613 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
12614 sigaction sigprocmask sigsetmask socketpair syscall \
12615 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12616 setrlimit getrlimit posix_madvise waitpid
12617 do :
12618 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12619 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12620 eval as_val=\$$as_ac_var
12621 if test "x$as_val" = x""yes; then :
12622 cat >>confdefs.h <<_ACEOF
12623 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12624 _ACEOF
12625
12626 fi
12627 done
12628
12629
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12631 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12632 if test "${am_cv_langinfo_codeset+set}" = set; then :
12633 $as_echo_n "(cached) " >&6
12634 else
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12637 #include <langinfo.h>
12638 int
12639 main ()
12640 {
12641 char* cs = nl_langinfo(CODESET);
12642 ;
12643 return 0;
12644 }
12645 _ACEOF
12646 if ac_fn_c_try_link "$LINENO"; then :
12647 am_cv_langinfo_codeset=yes
12648 else
12649 am_cv_langinfo_codeset=no
12650 fi
12651 rm -f core conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12653
12654 fi
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12656 $as_echo "$am_cv_langinfo_codeset" >&6; }
12657 if test $am_cv_langinfo_codeset = yes; then
12658
12659 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12660
12661 fi
12662
12663
12664 # Check the return and argument types of ptrace. No canned test for
12665 # this, so roll our own.
12666 gdb_ptrace_headers='
12667 #if HAVE_SYS_TYPES_H
12668 # include <sys/types.h>
12669 #endif
12670 #if HAVE_SYS_PTRACE_H
12671 # include <sys/ptrace.h>
12672 #endif
12673 #if HAVE_UNISTD_H
12674 # include <unistd.h>
12675 #endif
12676 '
12677 # There is no point in checking if we don't have a prototype.
12678 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12679 "
12680 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12681 ac_have_decl=1
12682 else
12683 ac_have_decl=0
12684 fi
12685
12686 cat >>confdefs.h <<_ACEOF
12687 #define HAVE_DECL_PTRACE $ac_have_decl
12688 _ACEOF
12689 if test $ac_have_decl = 1; then :
12690
12691 else
12692
12693 : ${gdb_cv_func_ptrace_ret='int'}
12694 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12695
12696 fi
12697
12698 # Check return type. Varargs (used on GNU/Linux) conflict with the
12699 # empty argument list, so check for that explicitly.
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12701 $as_echo_n "checking return type of ptrace... " >&6; }
12702 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12707 $gdb_ptrace_headers
12708 int
12709 main ()
12710 {
12711 extern long ptrace (enum __ptrace_request, ...);
12712 ;
12713 return 0;
12714 }
12715 _ACEOF
12716 if ac_fn_c_try_compile "$LINENO"; then :
12717 gdb_cv_func_ptrace_ret='long'
12718 else
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721 $gdb_ptrace_headers
12722 int
12723 main ()
12724 {
12725 extern int ptrace ();
12726 ;
12727 return 0;
12728 }
12729 _ACEOF
12730 if ac_fn_c_try_compile "$LINENO"; then :
12731 gdb_cv_func_ptrace_ret='int'
12732 else
12733 gdb_cv_func_ptrace_ret='long'
12734 fi
12735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736 fi
12737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12738 fi
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12740 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12741
12742 cat >>confdefs.h <<_ACEOF
12743 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12744 _ACEOF
12745
12746 # Check argument types.
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12748 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12749 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755 $gdb_ptrace_headers
12756 int
12757 main ()
12758 {
12759 extern long ptrace (enum __ptrace_request, ...);
12760 ;
12761 return 0;
12762 }
12763 _ACEOF
12764 if ac_fn_c_try_compile "$LINENO"; then :
12765 gdb_cv_func_ptrace_args='int,int,long,long'
12766 else
12767
12768 for gdb_arg1 in 'int' 'long'; do
12769 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12770 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12771 for gdb_arg4 in 'int' 'long'; do
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12774 $gdb_ptrace_headers
12775 int
12776 main ()
12777 {
12778
12779 extern $gdb_cv_func_ptrace_ret
12780 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12781
12782 ;
12783 return 0;
12784 }
12785 _ACEOF
12786 if ac_fn_c_try_compile "$LINENO"; then :
12787 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12788 break 4;
12789 fi
12790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12791 for gdb_arg5 in 'int *' 'int' 'long'; do
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12794 $gdb_ptrace_headers
12795 int
12796 main ()
12797 {
12798
12799 extern $gdb_cv_func_ptrace_ret
12800 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12801
12802 ;
12803 return 0;
12804 }
12805 _ACEOF
12806 if ac_fn_c_try_compile "$LINENO"; then :
12807
12808 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12809 break 5;
12810 fi
12811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12812 done
12813 done
12814 done
12815 done
12816 done
12817 # Provide a safe default value.
12818 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12819
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 fi
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12824 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12825 ac_save_IFS=$IFS; IFS=','
12826 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12827 IFS=$ac_save_IFS
12828 shift
12829
12830 cat >>confdefs.h <<_ACEOF
12831 #define PTRACE_TYPE_ARG3 $3
12832 _ACEOF
12833
12834 if test -n "$5"; then
12835
12836 cat >>confdefs.h <<_ACEOF
12837 #define PTRACE_TYPE_ARG5 $5
12838 _ACEOF
12839
12840 fi
12841
12842 if test "$cross_compiling" = no; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12844 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12845 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12846 $as_echo_n "(cached) " >&6
12847 else
12848 if test "$cross_compiling" = yes; then :
12849 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12850 else
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12853 $ac_includes_default
12854 int
12855 main ()
12856 {
12857 /* If this system has a BSD-style setpgrp which takes arguments,
12858 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12859 exit successfully. */
12860 return setpgrp (1,1) != -1;
12861 ;
12862 return 0;
12863 }
12864 _ACEOF
12865 if ac_fn_c_try_run "$LINENO"; then :
12866 ac_cv_func_setpgrp_void=no
12867 else
12868 ac_cv_func_setpgrp_void=yes
12869 fi
12870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12871 conftest.$ac_objext conftest.beam conftest.$ac_ext
12872 fi
12873
12874 fi
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12876 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12877 if test $ac_cv_func_setpgrp_void = yes; then
12878
12879 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12880
12881 fi
12882
12883 else
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12885 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12886 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12887 $as_echo_n "(cached) " >&6
12888 else
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12891
12892 #include <unistd.h>
12893
12894 int
12895 main ()
12896 {
12897
12898 if (setpgrp(1,1) == -1)
12899 exit (0);
12900 else
12901 exit (1);
12902
12903 ;
12904 return 0;
12905 }
12906 _ACEOF
12907 if ac_fn_c_try_compile "$LINENO"; then :
12908 ac_cv_func_setpgrp_void=no
12909 else
12910 ac_cv_func_setpgrp_void=yes
12911 fi
12912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913 fi
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12915 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12916 if test $ac_cv_func_setpgrp_void = yes; then
12917 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12918
12919 fi
12920 fi
12921
12922 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12923 # since sigsetjmp might only be defined as a macro.
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12925 $as_echo_n "checking for sigsetjmp... " >&6; }
12926 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12931
12932 #include <setjmp.h>
12933
12934 int
12935 main ()
12936 {
12937 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12938 ;
12939 return 0;
12940 }
12941 _ACEOF
12942 if ac_fn_c_try_compile "$LINENO"; then :
12943 gdb_cv_func_sigsetjmp=yes
12944 else
12945 gdb_cv_func_sigsetjmp=no
12946 fi
12947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12948 fi
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12950 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12951 if test $gdb_cv_func_sigsetjmp = yes; then
12952
12953 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12954
12955 fi
12956
12957 # Assume we'll default to using the included libiberty regex.
12958 gdb_use_included_regex=yes
12959
12960 # However, if the system regex is GNU regex, then default to *not*
12961 # using the included regex.
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12963 $as_echo_n "checking for GNU regex... " >&6; }
12964 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12965 $as_echo_n "(cached) " >&6
12966 else
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12969 #include <gnu-versions.h>
12970 int
12971 main ()
12972 {
12973 #define REGEX_INTERFACE_VERSION 1
12974 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12975 # error "Version mismatch"
12976 #endif
12977 ;
12978 return 0;
12979 }
12980 _ACEOF
12981 if ac_fn_c_try_compile "$LINENO"; then :
12982 gdb_cv_have_gnu_regex=yes
12983 else
12984 gdb_cv_have_gnu_regex=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_have_gnu_regex" >&5
12989 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12990 if test $gdb_cv_have_gnu_regex = yes; then
12991 gdb_use_included_regex=no
12992 fi
12993
12994
12995 # Check whether --with-included-regex was given.
12996 if test "${with_included_regex+set}" = set; then :
12997 withval=$with_included_regex; gdb_with_regex=$withval
12998 else
12999 gdb_with_regex=$gdb_use_included_regex
13000 fi
13001
13002 if test "$gdb_with_regex" = yes; then
13003
13004 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13005
13006 fi
13007
13008 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13009 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13010 #include <sys/proc.h>
13011
13012 "
13013 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
13014
13015 cat >>confdefs.h <<_ACEOF
13016 #define HAVE_STRUCT_THREAD_TD_PCB 1
13017 _ACEOF
13018
13019
13020 fi
13021
13022
13023 # See if <sys/lwp.h> defines `struct lwp`.
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13025 $as_echo_n "checking for struct lwp... " >&6; }
13026 if test "${gdb_cv_struct_lwp+set}" = set; then :
13027 $as_echo_n "(cached) " >&6
13028 else
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13031 #include <sys/param.h>
13032 #include <sys/lwp.h>
13033 int
13034 main ()
13035 {
13036 struct lwp l;
13037 ;
13038 return 0;
13039 }
13040 _ACEOF
13041 if ac_fn_c_try_compile "$LINENO"; then :
13042 gdb_cv_struct_lwp=yes
13043 else
13044 gdb_cv_struct_lwp=no
13045 fi
13046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13047 fi
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13049 $as_echo "$gdb_cv_struct_lwp" >&6; }
13050 if test $gdb_cv_struct_lwp = yes; then
13051
13052 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13053
13054 fi
13055
13056 # See if <machine/reg.h> degines `struct reg'.
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13058 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13059 if test "${gdb_cv_struct_reg+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064 #include <sys/types.h>
13065 #include <machine/reg.h>
13066 int
13067 main ()
13068 {
13069 struct reg r;
13070 ;
13071 return 0;
13072 }
13073 _ACEOF
13074 if ac_fn_c_try_compile "$LINENO"; then :
13075 gdb_cv_struct_reg=yes
13076 else
13077 gdb_cv_struct_reg=no
13078 fi
13079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080 fi
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13082 $as_echo "$gdb_cv_struct_reg" >&6; }
13083 if test $gdb_cv_struct_reg = yes; then
13084
13085 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13086
13087 fi
13088
13089 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13090 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13091 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13092 "
13093 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
13094
13095 cat >>confdefs.h <<_ACEOF
13096 #define HAVE_STRUCT_REG_R_FS 1
13097 _ACEOF
13098
13099
13100 fi
13101 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13102 "
13103 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
13104
13105 cat >>confdefs.h <<_ACEOF
13106 #define HAVE_STRUCT_REG_R_GS 1
13107 _ACEOF
13108
13109
13110 fi
13111
13112
13113 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13115 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13116 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h. */
13121 #include <sys/ptrace.h>
13122 int
13123 main ()
13124 {
13125 PTRACE_GETREGS;
13126 ;
13127 return 0;
13128 }
13129 _ACEOF
13130 if ac_fn_c_try_compile "$LINENO"; then :
13131 gdb_cv_have_ptrace_getregs=yes
13132 else
13133 gdb_cv_have_ptrace_getregs=no
13134 fi
13135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13136 fi
13137
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13139 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13140 if test $gdb_cv_have_ptrace_getregs = yes; then
13141
13142 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13143
13144 fi
13145
13146 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13148 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13149 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13150 $as_echo_n "(cached) " >&6
13151 else
13152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h. */
13154 #include <sys/ptrace.h>
13155 int
13156 main ()
13157 {
13158 PTRACE_GETFPXREGS;
13159 ;
13160 return 0;
13161 }
13162 _ACEOF
13163 if ac_fn_c_try_compile "$LINENO"; then :
13164 gdb_cv_have_ptrace_getfpxregs=yes
13165 else
13166 gdb_cv_have_ptrace_getfpxregs=no
13167 fi
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169 fi
13170
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13172 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13173 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13174
13175 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13176
13177 fi
13178
13179 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13181 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13182 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13187 #include <sys/types.h>
13188 #include <sys/ptrace.h>
13189 int
13190 main ()
13191 {
13192 PT_GETDBREGS;
13193 ;
13194 return 0;
13195 }
13196 _ACEOF
13197 if ac_fn_c_try_compile "$LINENO"; then :
13198 gdb_cv_have_pt_getdbregs=yes
13199 else
13200 gdb_cv_have_pt_getdbregs=no
13201 fi
13202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13203 fi
13204
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13206 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13207 if test $gdb_cv_have_pt_getdbregs = yes; then
13208
13209 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13210
13211 fi
13212
13213 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13215 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13216 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13221 #include <sys/types.h>
13222 #include <sys/ptrace.h>
13223 int
13224 main ()
13225 {
13226 PT_GETXMMREGS;
13227 ;
13228 return 0;
13229 }
13230 _ACEOF
13231 if ac_fn_c_try_compile "$LINENO"; then :
13232 gdb_cv_have_pt_getxmmregs=yes
13233 else
13234 gdb_cv_have_pt_getxmmregs=no
13235 fi
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 fi
13238
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13240 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13241 if test $gdb_cv_have_pt_getxmmregs = yes; then
13242
13243 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13244
13245 fi
13246
13247 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13248
13249 if test "${target}" = "${host}"; then
13250 case "${host}" in
13251 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
13252
13253 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13254
13255 ;;
13256 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13257
13258 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13259
13260 ;;
13261 mips-sgi-irix5*)
13262 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13263
13264 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13265
13266 ;;
13267 esac
13268 fi
13269
13270 if test "$ac_cv_header_sys_procfs_h" = yes; then
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13272 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13273 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13274 $as_echo_n "(cached) " >&6
13275 else
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278
13279 #define _SYSCALL32
13280 /* Needed for new procfs interface on sparc-solaris. */
13281 #define _STRUCTURED_PROC 1
13282 #include <sys/procfs.h>
13283 int
13284 main ()
13285 {
13286 pstatus_t avar
13287 ;
13288 return 0;
13289 }
13290 _ACEOF
13291 if ac_fn_c_try_compile "$LINENO"; then :
13292 bfd_cv_have_sys_procfs_type_pstatus_t=yes
13293 else
13294 bfd_cv_have_sys_procfs_type_pstatus_t=no
13295
13296 fi
13297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13298 fi
13299
13300 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13301
13302 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13303
13304 fi
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13306 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13307
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13309 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13310 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13311 $as_echo_n "(cached) " >&6
13312 else
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13315
13316 #define _SYSCALL32
13317 /* Needed for new procfs interface on sparc-solaris. */
13318 #define _STRUCTURED_PROC 1
13319 #include <sys/procfs.h>
13320 int
13321 main ()
13322 {
13323 prrun_t avar
13324 ;
13325 return 0;
13326 }
13327 _ACEOF
13328 if ac_fn_c_try_compile "$LINENO"; then :
13329 bfd_cv_have_sys_procfs_type_prrun_t=yes
13330 else
13331 bfd_cv_have_sys_procfs_type_prrun_t=no
13332
13333 fi
13334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13335 fi
13336
13337 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13338
13339 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13340
13341 fi
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13343 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13344
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13346 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13347 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13348 $as_echo_n "(cached) " >&6
13349 else
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13352
13353 #define _SYSCALL32
13354 /* Needed for new procfs interface on sparc-solaris. */
13355 #define _STRUCTURED_PROC 1
13356 #include <sys/procfs.h>
13357 int
13358 main ()
13359 {
13360 gregset_t avar
13361 ;
13362 return 0;
13363 }
13364 _ACEOF
13365 if ac_fn_c_try_compile "$LINENO"; then :
13366 bfd_cv_have_sys_procfs_type_gregset_t=yes
13367 else
13368 bfd_cv_have_sys_procfs_type_gregset_t=no
13369
13370 fi
13371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13372 fi
13373
13374 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13375
13376 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13377
13378 fi
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13380 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13381
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13383 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13384 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
13386 else
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h. */
13389
13390 #define _SYSCALL32
13391 /* Needed for new procfs interface on sparc-solaris. */
13392 #define _STRUCTURED_PROC 1
13393 #include <sys/procfs.h>
13394 int
13395 main ()
13396 {
13397 fpregset_t avar
13398 ;
13399 return 0;
13400 }
13401 _ACEOF
13402 if ac_fn_c_try_compile "$LINENO"; then :
13403 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13404 else
13405 bfd_cv_have_sys_procfs_type_fpregset_t=no
13406
13407 fi
13408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409 fi
13410
13411 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13412
13413 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13414
13415 fi
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13417 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13418
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13420 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13421 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426
13427 #define _SYSCALL32
13428 /* Needed for new procfs interface on sparc-solaris. */
13429 #define _STRUCTURED_PROC 1
13430 #include <sys/procfs.h>
13431 int
13432 main ()
13433 {
13434 prgregset_t avar
13435 ;
13436 return 0;
13437 }
13438 _ACEOF
13439 if ac_fn_c_try_compile "$LINENO"; then :
13440 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13441 else
13442 bfd_cv_have_sys_procfs_type_prgregset_t=no
13443
13444 fi
13445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13446 fi
13447
13448 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13449
13450 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13451
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13454 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13455
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13457 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13458 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13459 $as_echo_n "(cached) " >&6
13460 else
13461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13462 /* end confdefs.h. */
13463
13464 #define _SYSCALL32
13465 /* Needed for new procfs interface on sparc-solaris. */
13466 #define _STRUCTURED_PROC 1
13467 #include <sys/procfs.h>
13468 int
13469 main ()
13470 {
13471 prfpregset_t avar
13472 ;
13473 return 0;
13474 }
13475 _ACEOF
13476 if ac_fn_c_try_compile "$LINENO"; then :
13477 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13478 else
13479 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13480
13481 fi
13482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13483 fi
13484
13485 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13486
13487 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13488
13489 fi
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13491 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13492
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13494 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13495 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13500
13501 #define _SYSCALL32
13502 /* Needed for new procfs interface on sparc-solaris. */
13503 #define _STRUCTURED_PROC 1
13504 #include <sys/procfs.h>
13505 int
13506 main ()
13507 {
13508 prgregset32_t avar
13509 ;
13510 return 0;
13511 }
13512 _ACEOF
13513 if ac_fn_c_try_compile "$LINENO"; then :
13514 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13515 else
13516 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13517
13518 fi
13519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 fi
13521
13522 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13523
13524 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13525
13526 fi
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13528 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13529
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13531 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13532 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13537
13538 #define _SYSCALL32
13539 /* Needed for new procfs interface on sparc-solaris. */
13540 #define _STRUCTURED_PROC 1
13541 #include <sys/procfs.h>
13542 int
13543 main ()
13544 {
13545 prfpregset32_t avar
13546 ;
13547 return 0;
13548 }
13549 _ACEOF
13550 if ac_fn_c_try_compile "$LINENO"; then :
13551 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
13552 else
13553 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
13554
13555 fi
13556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13557 fi
13558
13559 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13560
13561 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13562
13563 fi
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13565 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13566
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13568 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13569 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
13571 else
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574
13575 #define _SYSCALL32
13576 /* Needed for new procfs interface on sparc-solaris. */
13577 #define _STRUCTURED_PROC 1
13578 #include <sys/procfs.h>
13579 int
13580 main ()
13581 {
13582 lwpid_t avar
13583 ;
13584 return 0;
13585 }
13586 _ACEOF
13587 if ac_fn_c_try_compile "$LINENO"; then :
13588 bfd_cv_have_sys_procfs_type_lwpid_t=yes
13589 else
13590 bfd_cv_have_sys_procfs_type_lwpid_t=no
13591
13592 fi
13593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13594 fi
13595
13596 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13597
13598 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13599
13600 fi
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13602 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13603
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13605 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13606 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13607 $as_echo_n "(cached) " >&6
13608 else
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13611
13612 #define _SYSCALL32
13613 /* Needed for new procfs interface on sparc-solaris. */
13614 #define _STRUCTURED_PROC 1
13615 #include <sys/procfs.h>
13616 int
13617 main ()
13618 {
13619 psaddr_t avar
13620 ;
13621 return 0;
13622 }
13623 _ACEOF
13624 if ac_fn_c_try_compile "$LINENO"; then :
13625 bfd_cv_have_sys_procfs_type_psaddr_t=yes
13626 else
13627 bfd_cv_have_sys_procfs_type_psaddr_t=no
13628
13629 fi
13630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631 fi
13632
13633 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13634
13635 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13636
13637 fi
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13639 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13640
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13642 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13643 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13648
13649 #define _SYSCALL32
13650 /* Needed for new procfs interface on sparc-solaris. */
13651 #define _STRUCTURED_PROC 1
13652 #include <sys/procfs.h>
13653 int
13654 main ()
13655 {
13656 prsysent_t avar
13657 ;
13658 return 0;
13659 }
13660 _ACEOF
13661 if ac_fn_c_try_compile "$LINENO"; then :
13662 bfd_cv_have_sys_procfs_type_prsysent_t=yes
13663 else
13664 bfd_cv_have_sys_procfs_type_prsysent_t=no
13665
13666 fi
13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668 fi
13669
13670 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13671
13672 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13673
13674 fi
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13676 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13677
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13679 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13680 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685
13686 #define _SYSCALL32
13687 /* Needed for new procfs interface on sparc-solaris. */
13688 #define _STRUCTURED_PROC 1
13689 #include <sys/procfs.h>
13690 int
13691 main ()
13692 {
13693 pr_sigset_t avar
13694 ;
13695 return 0;
13696 }
13697 _ACEOF
13698 if ac_fn_c_try_compile "$LINENO"; then :
13699 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13700 else
13701 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13702
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705 fi
13706
13707 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13708
13709 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13710
13711 fi
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13713 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13714
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13716 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13717 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722
13723 #define _SYSCALL32
13724 /* Needed for new procfs interface on sparc-solaris. */
13725 #define _STRUCTURED_PROC 1
13726 #include <sys/procfs.h>
13727 int
13728 main ()
13729 {
13730 pr_sigaction64_t avar
13731 ;
13732 return 0;
13733 }
13734 _ACEOF
13735 if ac_fn_c_try_compile "$LINENO"; then :
13736 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13737 else
13738 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13739
13740 fi
13741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13742 fi
13743
13744 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13745
13746 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13747
13748 fi
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13750 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13751
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13753 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13754 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13759
13760 #define _SYSCALL32
13761 /* Needed for new procfs interface on sparc-solaris. */
13762 #define _STRUCTURED_PROC 1
13763 #include <sys/procfs.h>
13764 int
13765 main ()
13766 {
13767 pr_siginfo64_t avar
13768 ;
13769 return 0;
13770 }
13771 _ACEOF
13772 if ac_fn_c_try_compile "$LINENO"; then :
13773 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13774 else
13775 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13776
13777 fi
13778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779 fi
13780
13781 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13782
13783 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13784
13785 fi
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13787 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13788
13789
13790
13791
13792
13793 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13795 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13796 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 if test "$cross_compiling" = yes; then :
13800 gdb_cv_prfpregset_t_broken=yes
13801 else
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 #include <sys/procfs.h>
13805 int main ()
13806 {
13807 if (sizeof (prfpregset_t) == sizeof (void *))
13808 return 1;
13809 return 0;
13810 }
13811 _ACEOF
13812 if ac_fn_c_try_run "$LINENO"; then :
13813 gdb_cv_prfpregset_t_broken=no
13814 else
13815 gdb_cv_prfpregset_t_broken=yes
13816 fi
13817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13818 conftest.$ac_objext conftest.beam conftest.$ac_ext
13819 fi
13820
13821 fi
13822
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13824 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13825 if test $gdb_cv_prfpregset_t_broken = yes; then
13826
13827 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13828
13829 fi
13830 fi
13831
13832
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13834 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13835 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13836 $as_echo_n "(cached) " >&6
13837 else
13838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839 /* end confdefs.h. */
13840 #include <unistd.h>
13841 #include <sys/types.h>
13842 #include <sys/procfs.h>
13843
13844 int
13845 main ()
13846 {
13847
13848 int dummy;;
13849 dummy = ioctl(0, PIOCSET, &dummy);
13850
13851 ;
13852 return 0;
13853 }
13854 _ACEOF
13855 if ac_fn_c_try_compile "$LINENO"; then :
13856 gdb_cv_have_procfs_piocset=yes
13857 else
13858 gdb_cv_have_procfs_piocset=no
13859 fi
13860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861 fi
13862
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13864 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13865 if test $gdb_cv_have_procfs_piocset = yes; then
13866
13867 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13868
13869 fi
13870 fi
13871
13872 if test ${host} = ${target} ; then
13873
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13875 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13876 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13881 #include <link.h>
13882 int
13883 main ()
13884 {
13885 struct link_map lm; (void) lm.l_addr;
13886 ;
13887 return 0;
13888 }
13889 _ACEOF
13890 if ac_fn_c_try_compile "$LINENO"; then :
13891 gdb_cv_have_struct_link_map_with_l_members=yes
13892 else
13893 gdb_cv_have_struct_link_map_with_l_members=no
13894 fi
13895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13896 fi
13897
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13899 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13900 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13901
13902 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13903
13904 fi
13905
13906
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13908 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13909 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13910 $as_echo_n "(cached) " >&6
13911 else
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13914 #include <sys/types.h>
13915 #include <link.h>
13916 int
13917 main ()
13918 {
13919 struct link_map lm; (void) lm.lm_addr;
13920 ;
13921 return 0;
13922 }
13923 _ACEOF
13924 if ac_fn_c_try_compile "$LINENO"; then :
13925 gdb_cv_have_struct_link_map_with_lm_members=yes
13926 else
13927 gdb_cv_have_struct_link_map_with_lm_members=no
13928 fi
13929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13930 fi
13931
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13933 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13934 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13935
13936 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13937
13938 fi
13939
13940
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13942 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13943 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13944 $as_echo_n "(cached) " >&6
13945 else
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13948 #include <sys/types.h>
13949 #ifdef HAVE_NLIST_H
13950 #include <nlist.h>
13951 #endif
13952 #include <link.h>
13953 int
13954 main ()
13955 {
13956 struct so_map lm; (void) lm.som_addr;
13957 ;
13958 return 0;
13959 }
13960 _ACEOF
13961 if ac_fn_c_try_compile "$LINENO"; then :
13962 gdb_cv_have_struct_so_map_with_som_members=yes
13963 else
13964 gdb_cv_have_struct_so_map_with_som_members=no
13965 fi
13966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13967 fi
13968
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13970 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13971 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13972
13973 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13974
13975 fi
13976
13977
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13979 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13980 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13981 $as_echo_n "(cached) " >&6
13982 else
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13985 #define _SYSCALL32
13986 #include <sys/link.h>
13987 int
13988 main ()
13989 {
13990 struct link_map32 l;
13991 ;
13992 return 0;
13993 }
13994 _ACEOF
13995 if ac_fn_c_try_compile "$LINENO"; then :
13996 gdb_cv_have_struct_link_map32=yes
13997 else
13998 gdb_cv_have_struct_link_map32=no
13999 fi
14000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001 fi
14002
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
14004 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
14005 if test $gdb_cv_have_struct_link_map32 = yes; then
14006
14007 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
14008
14009
14010 $as_echo "#define _SYSCALL32 1" >>confdefs.h
14011
14012 fi
14013 fi
14014
14015 # Check if the compiler supports the `long long' type.
14016
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14018 $as_echo_n "checking for long long support in compiler... " >&6; }
14019 if test "${gdb_cv_c_long_long+set}" = set; then :
14020 $as_echo_n "(cached) " >&6
14021 else
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14024 extern long long foo;
14025 int
14026 main ()
14027 {
14028 switch (foo & 2) { case 0: return 1; }
14029 ;
14030 return 0;
14031 }
14032 _ACEOF
14033 if ac_fn_c_try_compile "$LINENO"; then :
14034 gdb_cv_c_long_long=yes
14035 else
14036 gdb_cv_c_long_long=no
14037 fi
14038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14039 fi
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14041 $as_echo "$gdb_cv_c_long_long" >&6; }
14042 if test $gdb_cv_c_long_long = yes; then
14043
14044 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
14045
14046 fi
14047
14048 # Check if the compiler and runtime support printing long longs.
14049
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14051 $as_echo_n "checking for long long support in printf... " >&6; }
14052 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14053 $as_echo_n "(cached) " >&6
14054 else
14055 if test "$cross_compiling" = yes; then :
14056 gdb_cv_printf_has_long_long=no
14057 else
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14060 $ac_includes_default
14061 int
14062 main ()
14063 {
14064 char buf[32];
14065 long long l = 0;
14066 l = (l << 16) + 0x0123;
14067 l = (l << 16) + 0x4567;
14068 l = (l << 16) + 0x89ab;
14069 l = (l << 16) + 0xcdef;
14070 sprintf (buf, "0x%016llx", l);
14071 return (strcmp ("0x0123456789abcdef", buf));
14072 ;
14073 return 0;
14074 }
14075 _ACEOF
14076 if ac_fn_c_try_run "$LINENO"; then :
14077 gdb_cv_printf_has_long_long=yes
14078 else
14079 gdb_cv_printf_has_long_long=no
14080 fi
14081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14082 conftest.$ac_objext conftest.beam conftest.$ac_ext
14083 fi
14084
14085 fi
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14087 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14088 if test $gdb_cv_printf_has_long_long = yes; then
14089
14090 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14091
14092 fi
14093
14094 # Check if the compiler and runtime support printing decfloats.
14095
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14097 $as_echo_n "checking for decfloat support in printf... " >&6; }
14098 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14099 $as_echo_n "(cached) " >&6
14100 else
14101 if test "$cross_compiling" = yes; then :
14102 gdb_cv_printf_has_decfloat=no
14103 else
14104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14105 /* end confdefs.h. */
14106 $ac_includes_default
14107 int
14108 main ()
14109 {
14110 char buf[64];
14111 _Decimal32 d32 = 1.2345df;
14112 _Decimal64 d64 = 1.2345dd;
14113 _Decimal128 d128 = 1.2345dl;
14114 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14115 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14116 ;
14117 return 0;
14118 }
14119 _ACEOF
14120 if ac_fn_c_try_run "$LINENO"; then :
14121 gdb_cv_printf_has_decfloat=yes
14122 else
14123 gdb_cv_printf_has_decfloat=no
14124 fi
14125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14126 conftest.$ac_objext conftest.beam conftest.$ac_ext
14127 fi
14128
14129 fi
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14131 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14132 if test $gdb_cv_printf_has_decfloat = yes; then
14133
14134 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14135
14136 fi
14137
14138 # Check if the compiler supports the `long double' type. We can't use
14139 # AC_C_LONG_DOUBLE because that one does additional checks on the
14140 # constants defined in <float.h> that fail on some systems,
14141 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14142
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14144 $as_echo_n "checking for long double support in compiler... " >&6; }
14145 if test "${gdb_cv_c_long_double+set}" = set; then :
14146 $as_echo_n "(cached) " >&6
14147 else
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 long double foo;
14151 _ACEOF
14152 if ac_fn_c_try_compile "$LINENO"; then :
14153 gdb_cv_c_long_double=yes
14154 else
14155 gdb_cv_c_long_double=no
14156 fi
14157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14158 fi
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14160 $as_echo "$gdb_cv_c_long_double" >&6; }
14161 if test $gdb_cv_c_long_double = yes; then
14162
14163 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14164
14165 fi
14166
14167 # Check if the compiler and runtime support printing long doubles.
14168
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14170 $as_echo_n "checking for long double support in printf... " >&6; }
14171 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 if test "$cross_compiling" = yes; then :
14175 gdb_cv_printf_has_long_double=no
14176 else
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179 $ac_includes_default
14180 int
14181 main ()
14182 {
14183 char buf[16];
14184 long double f = 3.141592653;
14185 sprintf (buf, "%Lg", f);
14186 return (strncmp ("3.14159", buf, 7));
14187 ;
14188 return 0;
14189 }
14190 _ACEOF
14191 if ac_fn_c_try_run "$LINENO"; then :
14192 gdb_cv_printf_has_long_double=yes
14193 else
14194 gdb_cv_printf_has_long_double=no
14195 fi
14196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14197 conftest.$ac_objext conftest.beam conftest.$ac_ext
14198 fi
14199
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14202 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14203 if test $gdb_cv_printf_has_long_double = yes; then
14204
14205 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14206
14207 fi
14208
14209 # Check if the compiler and runtime support scanning long doubles.
14210
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14212 $as_echo_n "checking for long double support in scanf... " >&6; }
14213 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14214 $as_echo_n "(cached) " >&6
14215 else
14216 if test "$cross_compiling" = yes; then :
14217 gdb_cv_scanf_has_long_double=no
14218 else
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14221 #include <stdio.h>
14222 int
14223 main ()
14224 {
14225 char *buf = "3.141592653";
14226 long double f = 0;
14227 sscanf (buf, "%Lg", &f);
14228 return !(f > 3.14159 && f < 3.14160);
14229 ;
14230 return 0;
14231 }
14232 _ACEOF
14233 if ac_fn_c_try_run "$LINENO"; then :
14234 gdb_cv_scanf_has_long_double=yes
14235 else
14236 gdb_cv_scanf_has_long_double=no
14237 fi
14238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14239 conftest.$ac_objext conftest.beam conftest.$ac_ext
14240 fi
14241
14242 fi
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14244 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14245 if test $gdb_cv_scanf_has_long_double = yes; then
14246
14247 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14248
14249 fi
14250
14251 case ${host_os} in
14252 aix*)
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14254 $as_echo_n "checking for -bbigtoc option... " >&6; }
14255 if test "${gdb_cv_bigtoc+set}" = set; then :
14256 $as_echo_n "(cached) " >&6
14257 else
14258
14259 SAVE_LDFLAGS=$LDFLAGS
14260
14261 case $GCC in
14262 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14263 *) gdb_cv_bigtoc=-bbigtoc ;;
14264 esac
14265
14266 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14269
14270 int
14271 main ()
14272 {
14273 int i;
14274 ;
14275 return 0;
14276 }
14277 _ACEOF
14278 if ac_fn_c_try_link "$LINENO"; then :
14279
14280 else
14281 gdb_cv_bigtoc=
14282 fi
14283 rm -f core conftest.err conftest.$ac_objext \
14284 conftest$ac_exeext conftest.$ac_ext
14285 LDFLAGS="${SAVE_LDFLAGS}"
14286
14287 fi
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14289 $as_echo "$gdb_cv_bigtoc" >&6; }
14290 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14291 ;;
14292 esac
14293
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14295 $as_echo_n "checking for the dynamic export flag... " >&6; }
14296 dynamic_list=false
14297 if test "${gdb_native}" = yes; then
14298 # The dynamically loaded libthread_db needs access to symbols in the gdb
14299 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14300 # may not be supported there.
14301 old_LDFLAGS="$LDFLAGS"
14302 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14303 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14304 LDFLAGS="$LDFLAGS $RDYNAMIC"
14305 if test "${have_libpython}" = no; then
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h. */
14308
14309 int
14310 main ()
14311 {
14312
14313 ;
14314 return 0;
14315 }
14316 _ACEOF
14317 if ac_fn_c_try_link "$LINENO"; then :
14318 dynamic_list=true
14319 fi
14320 rm -f core conftest.err conftest.$ac_objext \
14321 conftest$ac_exeext conftest.$ac_ext
14322 else
14323 # Workaround http://bugs.python.org/issue4434 where static
14324 # libpythonX.Y.a would get its symbols required for
14325 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14326 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14327 old_CFLAGS="$CFLAGS"
14328 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14329 if test "$cross_compiling" = yes; then :
14330 true
14331 else
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334 #include "${have_libpython}/Python.h"
14335 int
14336 main ()
14337 {
14338 int err;
14339 Py_Initialize ();
14340 err = PyRun_SimpleString ("import itertools\n");
14341 Py_Finalize ();
14342 return err == 0 ? 0 : 1;
14343 ;
14344 return 0;
14345 }
14346 _ACEOF
14347 if ac_fn_c_try_run "$LINENO"; then :
14348 dynamic_list=true
14349 fi
14350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14351 conftest.$ac_objext conftest.beam conftest.$ac_ext
14352 fi
14353
14354 CFLAGS="$old_CFLAGS"
14355 fi
14356 LDFLAGS="$old_LDFLAGS"
14357 fi
14358 if $dynamic_list; then
14359 found="-Wl,--dynamic-list"
14360 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14361 else
14362 found="-rdynamic"
14363 RDYNAMIC="-rdynamic"
14364 fi
14365
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14367 $as_echo "$found" >&6; }
14368
14369
14370 if test ${build} = ${host} -a ${host} = ${target} ; then
14371 case ${host_os} in
14372 solaris*)
14373 # See if thread_db library is around for Solaris thread debugging.
14374 # Note that we must explicitly test for version 1 of the library
14375 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14376 # the same API.
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14378 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14379 if test -f /usr/lib/libthread_db.so.1 ; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14381 $as_echo "yes" >&6; }
14382
14383 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14384
14385 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
14386 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14388 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14389 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14390 $as_echo_n "(cached) " >&6
14391 else
14392 ac_check_lib_save_LIBS=$LIBS
14393 LIBS="-ldl $LIBS"
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14396
14397 /* Override any GCC internal prototype to avoid an error.
14398 Use char because int might match the return type of a GCC
14399 builtin and then its argument prototype would still apply. */
14400 #ifdef __cplusplus
14401 extern "C"
14402 #endif
14403 char dlopen ();
14404 int
14405 main ()
14406 {
14407 return dlopen ();
14408 ;
14409 return 0;
14410 }
14411 _ACEOF
14412 if ac_fn_c_try_link "$LINENO"; then :
14413 ac_cv_lib_dl_dlopen=yes
14414 else
14415 ac_cv_lib_dl_dlopen=no
14416 fi
14417 rm -f core conftest.err conftest.$ac_objext \
14418 conftest$ac_exeext conftest.$ac_ext
14419 LIBS=$ac_check_lib_save_LIBS
14420 fi
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14422 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14423 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14424 cat >>confdefs.h <<_ACEOF
14425 #define HAVE_LIBDL 1
14426 _ACEOF
14427
14428 LIBS="-ldl $LIBS"
14429
14430 fi
14431
14432 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
14433 # Sun randomly tweaked the prototypes in <proc_service.h>
14434 # at one point.
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14436 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14437 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14438 $as_echo_n "(cached) " >&6
14439 else
14440
14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h. */
14443
14444 #include <proc_service.h>
14445 ps_err_e ps_pdwrite
14446 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14447
14448 int
14449 main ()
14450 {
14451
14452 ;
14453 return 0;
14454 }
14455 _ACEOF
14456 if ac_fn_c_try_compile "$LINENO"; then :
14457 gdb_cv_proc_service_is_old=no
14458 else
14459 gdb_cv_proc_service_is_old=yes
14460 fi
14461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462
14463 fi
14464
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14466 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14467 if test $gdb_cv_proc_service_is_old = yes; then
14468
14469 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14470
14471 fi
14472 else
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14474 $as_echo "no" >&6; }
14475 fi
14476 ;;
14477 aix*)
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14479 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14480 if test "${gdb_cv_have_aix_thread_debug+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 <sys/pthdebug.h>
14486 int
14487 main ()
14488 {
14489 #ifndef PTHDB_VERSION_3
14490 #error
14491 #endif
14492 ;
14493 return 0;
14494 }
14495 _ACEOF
14496 if ac_fn_c_try_compile "$LINENO"; then :
14497 gdb_cv_have_aix_thread_debug=yes
14498 else
14499 gdb_cv_have_aix_thread_debug=no
14500 fi
14501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14502 fi
14503
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14505 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14506 if test $gdb_cv_have_aix_thread_debug = yes; then
14507 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14508 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14509 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14510
14511 # Older versions of AIX do not provide the declaration for
14512 # the getthrds function (it appears that it was introduced
14513 # with AIX 6.x).
14514 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14515 "
14516 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
14517 ac_have_decl=1
14518 else
14519 ac_have_decl=0
14520 fi
14521
14522 cat >>confdefs.h <<_ACEOF
14523 #define HAVE_DECL_GETTHRDS $ac_have_decl
14524 _ACEOF
14525
14526 fi
14527 ;;
14528 esac
14529
14530 fi
14531
14532 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14534 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14535 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14536 $as_echo_n "(cached) " >&6
14537 else
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14540 #include <thread_db.h>
14541 int
14542 main ()
14543 {
14544 int i = TD_NOTALLOC;
14545 ;
14546 return 0;
14547 }
14548 _ACEOF
14549 if ac_fn_c_try_compile "$LINENO"; then :
14550 gdb_cv_thread_db_h_has_td_notalloc=yes
14551 else
14552 gdb_cv_thread_db_h_has_td_notalloc=no
14553
14554 fi
14555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14556
14557 fi
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14559 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14561 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14562 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14563 $as_echo_n "(cached) " >&6
14564 else
14565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h. */
14567 #include <thread_db.h>
14568 int
14569 main ()
14570 {
14571 int i = TD_VERSION;
14572 ;
14573 return 0;
14574 }
14575 _ACEOF
14576 if ac_fn_c_try_compile "$LINENO"; then :
14577 gdb_cv_thread_db_h_has_td_version=yes
14578 else
14579 gdb_cv_thread_db_h_has_td_version=no
14580
14581 fi
14582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14583
14584 fi
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14586 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14588 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14589 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14590 $as_echo_n "(cached) " >&6
14591 else
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14594 #include <thread_db.h>
14595 int
14596 main ()
14597 {
14598 int i = TD_NOTLS;
14599 ;
14600 return 0;
14601 }
14602 _ACEOF
14603 if ac_fn_c_try_compile "$LINENO"; then :
14604 gdb_cv_thread_db_h_has_td_notls=yes
14605 else
14606 gdb_cv_thread_db_h_has_td_notls=no
14607
14608 fi
14609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14610
14611 fi
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14613 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14614 fi
14615 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14616
14617 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14618
14619 fi
14620 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14621
14622 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14623
14624 fi
14625 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14626
14627 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14628
14629 fi
14630
14631 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14633 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14634 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14635 $as_echo_n "(cached) " >&6
14636 else
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14639 #include <sys/syscall.h>
14640 int
14641 main ()
14642 {
14643 int i = __NR_tkill;
14644 ;
14645 return 0;
14646 }
14647 _ACEOF
14648 if ac_fn_c_try_compile "$LINENO"; then :
14649 gdb_cv_sys_syscall_h_has_tkill=yes
14650 else
14651 gdb_cv_sys_syscall_h_has_tkill=no
14652
14653 fi
14654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655
14656 fi
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14658 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14659 fi
14660 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14661
14662 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14663
14664 fi
14665
14666 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14667 "
14668 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14669 ac_have_decl=1
14670 else
14671 ac_have_decl=0
14672 fi
14673
14674 cat >>confdefs.h <<_ACEOF
14675 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14676 _ACEOF
14677
14678
14679 if test "$cross_compiling" = yes; then :
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14682 #include <sys/personality.h>
14683 int
14684 main ()
14685 {
14686
14687 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14688 # define ADDR_NO_RANDOMIZE 0x0040000
14689 # endif
14690 /* Test the flag could be set and stays set. */
14691 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14692 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14693 return 1
14694 ;
14695 return 0;
14696 }
14697 _ACEOF
14698 if ac_fn_c_try_link "$LINENO"; then :
14699 have_personality=true
14700 else
14701 have_personality=false
14702 fi
14703 rm -f core conftest.err conftest.$ac_objext \
14704 conftest$ac_exeext conftest.$ac_ext
14705 else
14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h. */
14708 #include <sys/personality.h>
14709 int
14710 main ()
14711 {
14712
14713 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14714 # define ADDR_NO_RANDOMIZE 0x0040000
14715 # endif
14716 /* Test the flag could be set and stays set. */
14717 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14718 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14719 return 1
14720 ;
14721 return 0;
14722 }
14723 _ACEOF
14724 if ac_fn_c_try_run "$LINENO"; then :
14725 have_personality=true
14726 else
14727 have_personality=false
14728 fi
14729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14730 conftest.$ac_objext conftest.beam conftest.$ac_ext
14731 fi
14732
14733 if $have_personality
14734 then
14735
14736 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14737
14738 fi
14739
14740
14741 target_sysroot_reloc=0
14742
14743 # Check whether --with-sysroot was given.
14744 if test "${with_sysroot+set}" = set; then :
14745 withval=$with_sysroot;
14746 case ${with_sysroot} in
14747 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
14748 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14749 esac
14750
14751 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14752
14753 if test "x$prefix" = xNONE; then
14754 test_prefix=/usr/local
14755 else
14756 test_prefix=$prefix
14757 fi
14758 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14759 test_exec_prefix=$test_prefix
14760 else
14761 test_exec_prefix=$exec_prefix
14762 fi
14763 case ${TARGET_SYSTEM_ROOT} in
14764 "${test_prefix}"|"${test_prefix}/"*|\
14765 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14766 '${prefix}'|'${prefix}/'*|\
14767 '${exec_prefix}'|'${exec_prefix}/'*)
14768 target_sysroot_reloc=1
14769 ;;
14770 esac
14771
14772 else
14773
14774 TARGET_SYSTEM_ROOT=
14775 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14776
14777 fi
14778
14779 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14780
14781
14782
14783
14784
14785 # Check whether --with-system-gdbinit was given.
14786 if test "${with_system_gdbinit+set}" = set; then :
14787 withval=$with_system_gdbinit;
14788 SYSTEM_GDBINIT=$withval
14789 else
14790 SYSTEM_GDBINIT=
14791 fi
14792
14793
14794 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14796 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14797 ac_define_dir=`eval echo $ac_define_dir`
14798
14799 cat >>confdefs.h <<_ACEOF
14800 #define SYSTEM_GDBINIT "$ac_define_dir"
14801 _ACEOF
14802
14803
14804
14805
14806 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14807 if test "x$prefix" = xNONE; then
14808 test_prefix=/usr/local
14809 else
14810 test_prefix=$prefix
14811 fi
14812 else
14813 test_prefix=$exec_prefix
14814 fi
14815 value=0
14816 case ${ac_define_dir} in
14817 "${test_prefix}"|"${test_prefix}/"*|\
14818 '${exec_prefix}'|'${exec_prefix}/'*)
14819 value=1
14820 ;;
14821 esac
14822
14823 cat >>confdefs.h <<_ACEOF
14824 #define SYSTEM_GDBINIT_RELOCATABLE $value
14825 _ACEOF
14826
14827
14828
14829
14830 # Check whether --enable-werror was given.
14831 if test "${enable_werror+set}" = set; then :
14832 enableval=$enable_werror; case "${enableval}" in
14833 yes | y) ERROR_ON_WARNING="yes" ;;
14834 no | n) ERROR_ON_WARNING="no" ;;
14835 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14836 esac
14837 fi
14838
14839
14840 # Enable -Werror by default when using gcc
14841 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14842 ERROR_ON_WARNING=yes
14843 fi
14844
14845 WERROR_CFLAGS=""
14846 if test "${ERROR_ON_WARNING}" = yes ; then
14847 WERROR_CFLAGS="-Werror"
14848 fi
14849
14850 # The entries after -Wno-pointer-sign are disabled warnings which may
14851 # be enabled in the future, which can not currently be used to build
14852 # GDB.
14853 # NOTE: If you change this list, remember to update
14854 # gdb/doc/gdbint.texinfo.
14855 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14856 -Wformat-nonliteral -Wno-pointer-sign \
14857 -Wno-unused -Wunused-value -Wunused-function \
14858 -Wno-switch -Wno-char-subscripts"
14859
14860 # Enable -Wno-format by default when using gcc on mingw since many
14861 # GCC versions complain about %I64.
14862 case "${host}" in
14863 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14864 esac
14865
14866 # Check whether --enable-build-warnings was given.
14867 if test "${enable_build_warnings+set}" = set; then :
14868 enableval=$enable_build_warnings; case "${enableval}" in
14869 yes) ;;
14870 no) build_warnings="-w";;
14871 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14872 build_warnings="${build_warnings} ${t}";;
14873 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14874 build_warnings="${t} ${build_warnings}";;
14875 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14876 esac
14877 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14878 echo "Setting compiler warning flags = $build_warnings" 6>&1
14879 fi
14880 fi
14881 # Check whether --enable-gdb-build-warnings was given.
14882 if test "${enable_gdb_build_warnings+set}" = set; then :
14883 enableval=$enable_gdb_build_warnings; case "${enableval}" in
14884 yes) ;;
14885 no) build_warnings="-w";;
14886 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14887 build_warnings="${build_warnings} ${t}";;
14888 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14889 build_warnings="${t} ${build_warnings}";;
14890 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14891 esac
14892 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14893 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14894 fi
14895 fi
14896 WARN_CFLAGS=""
14897 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14898 then
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14900 $as_echo_n "checking compiler warning flags... " >&6; }
14901 # Separate out the -Werror flag as some files just cannot be
14902 # compiled with it enabled.
14903 for w in ${build_warnings}; do
14904 case $w in
14905 -Werr*) WERROR_CFLAGS=-Werror ;;
14906 *) # Check that GCC accepts it
14907 saved_CFLAGS="$CFLAGS"
14908 CFLAGS="$CFLAGS $w"
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14911
14912 int
14913 main ()
14914 {
14915
14916 ;
14917 return 0;
14918 }
14919 _ACEOF
14920 if ac_fn_c_try_compile "$LINENO"; then :
14921 WARN_CFLAGS="${WARN_CFLAGS} $w"
14922 fi
14923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924 CFLAGS="$saved_CFLAGS"
14925 esac
14926 done
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14928 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14929 fi
14930
14931
14932
14933 # In the Cygwin environment, we need some additional flags.
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14935 $as_echo_n "checking for cygwin... " >&6; }
14936 if test "${gdb_cv_os_cygwin+set}" = set; then :
14937 $as_echo_n "(cached) " >&6
14938 else
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941
14942 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14943 lose
14944 #endif
14945 _ACEOF
14946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14947 $EGREP "lose" >/dev/null 2>&1; then :
14948 gdb_cv_os_cygwin=yes
14949 else
14950 gdb_cv_os_cygwin=no
14951 fi
14952 rm -f conftest*
14953
14954 fi
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14956 $as_echo "$gdb_cv_os_cygwin" >&6; }
14957
14958
14959 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14960 case ${host} in
14961 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14962 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14963 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14964 esac
14965
14966
14967 # libreadline needs libuser32.a in a cygwin environment
14968 WIN32LIBS=
14969 if test x$gdb_cv_os_cygwin = xyes; then
14970 WIN32LIBS="-luser32"
14971 case "${target}" in
14972 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14973 ;;
14974 esac
14975 fi
14976
14977 # The ser-tcp.c module requires sockets.
14978 case ${host} in
14979 *mingw32*)
14980
14981 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14982
14983 WIN32LIBS="$WIN32LIBS -lws2_32"
14984 ;;
14985 esac
14986
14987
14988 # Add ELF support to GDB, but only if BFD includes ELF support.
14989 OLD_CFLAGS=$CFLAGS
14990 OLD_LDFLAGS=$LDFLAGS
14991 OLD_LIBS=$LIBS
14992 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14993 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
14994 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14995 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14996 if test "$plugins" = "yes"; then
14997 LIBS="-ldl $LIBS"
14998 fi
14999 LIBS="-lbfd -liberty $intl $LIBS"
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15001 $as_echo_n "checking for ELF support in BFD... " >&6; }
15002 if test "${gdb_cv_var_elf+set}" = set; then :
15003 $as_echo_n "(cached) " >&6
15004 else
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15007 #include <stdlib.h>
15008 #include "bfd.h"
15009 #include "elf-bfd.h"
15010
15011 int
15012 main ()
15013 {
15014 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
15015 ;
15016 return 0;
15017 }
15018 _ACEOF
15019 if ac_fn_c_try_link "$LINENO"; then :
15020 gdb_cv_var_elf=yes
15021 else
15022 gdb_cv_var_elf=no
15023 fi
15024 rm -f core conftest.err conftest.$ac_objext \
15025 conftest$ac_exeext conftest.$ac_ext
15026 fi
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15028 $as_echo "$gdb_cv_var_elf" >&6; }
15029 if test $gdb_cv_var_elf = yes; then
15030 CONFIG_OBS="$CONFIG_OBS elfread.o"
15031
15032 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15033
15034 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15035 if test "$plugins" = "yes"; then
15036 OLD_LIBS="-ldl $OLD_LIBS"
15037 fi
15038 fi
15039 CFLAGS=$OLD_CFLAGS
15040 LDFLAGS=$OLD_LDFLAGS
15041 LIBS=$OLD_LIBS
15042
15043 # Add any host-specific objects to GDB.
15044 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
15045
15046 LIBGUI="../libgui/src/libgui.a"
15047 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
15048
15049
15050
15051 WIN32LDAPP=
15052
15053
15054
15055 case "${host}" in
15056 *-*-cygwin* | *-*-mingw* )
15057 configdir="win"
15058 ;;
15059 *)
15060 configdir="unix"
15061 ;;
15062 esac
15063
15064 GDBTKLIBS=
15065 if test "${enable_gdbtk}" = "yes"; then
15066
15067 # Gdbtk must have an absolute path to srcdir in order to run
15068 # properly when not installed.
15069 here=`pwd`
15070 cd ${srcdir}
15071 GDBTK_SRC_DIR=`pwd`
15072 cd $here
15073
15074
15075 #
15076 # Ok, lets find the tcl configuration
15077 # First, look for one uninstalled.
15078 # the alternative search directory is invoked by --with-tcl
15079 #
15080
15081 if test x"${no_tcl}" = x ; then
15082 # we reset no_tcl in case something fails here
15083 no_tcl=true
15084
15085 # Check whether --with-tcl was given.
15086 if test "${with_tcl+set}" = set; then :
15087 withval=$with_tcl; with_tclconfig=${withval}
15088 fi
15089
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15091 $as_echo_n "checking for Tcl configuration... " >&6; }
15092 if test "${ac_cv_c_tclconfig+set}" = set; then :
15093 $as_echo_n "(cached) " >&6
15094 else
15095
15096
15097 # First check to see if --with-tcl was specified.
15098 case "${host}" in
15099 *-*-cygwin*) platDir="win" ;;
15100 *) platDir="unix" ;;
15101 esac
15102 if test x"${with_tclconfig}" != x ; then
15103 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15104 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15105 else
15106 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15107 fi
15108 fi
15109
15110 # then check for a private Tcl installation
15111 if test x"${ac_cv_c_tclconfig}" = x ; then
15112 for i in \
15113 ../tcl \
15114 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15115 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15116 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15117 ../../tcl \
15118 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15119 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15120 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15121 ../../../tcl \
15122 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15123 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15124 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15125 if test -f "$i/$platDir/tclConfig.sh" ; then
15126 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15127 break
15128 fi
15129 done
15130 fi
15131
15132 # on Darwin, check in Framework installation locations
15133 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15134 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15135 `ls -d /Library/Frameworks 2>/dev/null` \
15136 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15137 `ls -d /System/Library/Frameworks 2>/dev/null` \
15138 ; do
15139 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15140 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15141 break
15142 fi
15143 done
15144 fi
15145
15146 # check in a few common install locations
15147 if test x"${ac_cv_c_tclconfig}" = x ; then
15148 for i in `ls -d ${libdir} 2>/dev/null` \
15149 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15150 `ls -d ${prefix}/lib 2>/dev/null` \
15151 `ls -d /usr/local/lib 2>/dev/null` \
15152 `ls -d /usr/contrib/lib 2>/dev/null` \
15153 `ls -d /usr/lib 2>/dev/null` \
15154 ; do
15155 if test -f "$i/tclConfig.sh" ; then
15156 ac_cv_c_tclconfig=`(cd $i; pwd)`
15157 break
15158 fi
15159 done
15160 fi
15161
15162 # check in a few other private locations
15163 if test x"${ac_cv_c_tclconfig}" = x ; then
15164 for i in \
15165 ${srcdir}/../tcl \
15166 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15167 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15168 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15169 if test -f "$i/$platDir/tclConfig.sh" ; then
15170 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15171 break
15172 fi
15173 done
15174 fi
15175
15176 fi
15177
15178
15179 if test x"${ac_cv_c_tclconfig}" = x ; then
15180 TCL_BIN_DIR="# no Tcl configs found"
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15182 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15183 else
15184 no_tcl=
15185 TCL_BIN_DIR=${ac_cv_c_tclconfig}
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15187 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15188 fi
15189 fi
15190
15191
15192 # If $no_tk is nonempty, then we can't do Tk, and there is no
15193 # point to doing Tcl.
15194
15195 #
15196 # Ok, lets find the tk configuration
15197 # First, look for one uninstalled.
15198 # the alternative search directory is invoked by --with-tk
15199 #
15200
15201 if test x"${no_tk}" = x ; then
15202 # we reset no_tk in case something fails here
15203 no_tk=true
15204
15205 # Check whether --with-tk was given.
15206 if test "${with_tk+set}" = set; then :
15207 withval=$with_tk; with_tkconfig=${withval}
15208 fi
15209
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15211 $as_echo_n "checking for Tk configuration... " >&6; }
15212 if test "${ac_cv_c_tkconfig+set}" = set; then :
15213 $as_echo_n "(cached) " >&6
15214 else
15215
15216
15217 # First check to see if --with-tkconfig was specified.
15218 if test x"${with_tkconfig}" != x ; then
15219 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15220 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15221 else
15222 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15223 fi
15224 fi
15225
15226 # then check for a private Tk library
15227 case "${host}" in
15228 *-*-cygwin*) platDir="win" ;;
15229 *) platDir="unix" ;;
15230 esac
15231 if test x"${ac_cv_c_tkconfig}" = x ; then
15232 for i in \
15233 ../tk \
15234 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15235 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15236 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15237 ../../tk \
15238 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15239 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15240 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15241 ../../../tk \
15242 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15243 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15244 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15245 if test -f "$i/$platDir/tkConfig.sh" ; then
15246 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15247 break
15248 fi
15249 done
15250 fi
15251
15252 # on Darwin, check in Framework installation locations
15253 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15254 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15255 `ls -d /Library/Frameworks 2>/dev/null` \
15256 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15257 `ls -d /System/Library/Frameworks 2>/dev/null` \
15258 ; do
15259 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15260 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15261 break
15262 fi
15263 done
15264 fi
15265
15266 # check in a few common install locations
15267 if test x"${ac_cv_c_tkconfig}" = x ; then
15268 for i in `ls -d ${libdir} 2>/dev/null` \
15269 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15270 `ls -d ${prefix}/lib 2>/dev/null` \
15271 `ls -d /usr/local/lib 2>/dev/null` \
15272 `ls -d /usr/contrib/lib 2>/dev/null` \
15273 `ls -d /usr/lib 2>/dev/null` \
15274 ; do
15275 if test -f "$i/tkConfig.sh" ; then
15276 ac_cv_c_tkconfig=`(cd $i; pwd)`
15277 break
15278 fi
15279 done
15280 fi
15281 # check in a few other private locations
15282 if test x"${ac_cv_c_tkconfig}" = x ; then
15283 for i in \
15284 ${srcdir}/../tk \
15285 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15286 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15287 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15288 if test -f "$i/$platDir/tkConfig.sh" ; then
15289 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15290 break
15291 fi
15292 done
15293 fi
15294
15295 fi
15296
15297
15298 if test x"${ac_cv_c_tkconfig}" = x ; then
15299 TK_BIN_DIR="# no Tk configs found"
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15301 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15302 else
15303 no_tk=
15304 TK_BIN_DIR=${ac_cv_c_tkconfig}
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15306 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15307 fi
15308 fi
15309
15310
15311 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15312
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15314 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15315
15316 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15318 $as_echo "loading" >&6; }
15319 . ${TCL_BIN_DIR}/tclConfig.sh
15320 else
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15322 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15323 fi
15324
15325 # eval is required to do the TCL_DBGX substitution
15326 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15327 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15328
15329 # If the TCL_BIN_DIR is the build directory (not the install directory),
15330 # then set the common variable name to the value of the build variables.
15331 # For example, the variable TCL_LIB_SPEC will be set to the value
15332 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15333 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15334 # installed and uninstalled version of Tcl.
15335 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15336 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15337 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15338 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15339 elif test "`uname -s`" = "Darwin"; then
15340 # If Tcl was built as a framework, attempt to use the libraries
15341 # from the framework at the given location so that linking works
15342 # against Tcl.framework installed in an arbitary location.
15343 case ${TCL_DEFS} in
15344 *TCL_FRAMEWORK*)
15345 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15346 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15347 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15348 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15349 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15350 break
15351 fi
15352 done
15353 fi
15354 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15355 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15356 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15357 fi
15358 ;;
15359 esac
15360 fi
15361
15362 # eval is required to do the TCL_DBGX substitution
15363 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15364 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15365 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15366 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382 # Check for in-tree tcl
15383 here=`pwd`
15384 cd ${srcdir}/..
15385 topdir=`pwd`
15386 cd ${here}
15387
15388 intree="no"
15389 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15390 intree="yes"
15391 fi
15392
15393 # Find Tcl private headers
15394 if test x"${intree}" = xno; then
15395
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15397 $as_echo_n "checking for Tcl private headers... " >&6; }
15398 private_dir=""
15399 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15400 if test -f ${dir}/tclInt.h ; then
15401 private_dir=${dir}
15402 fi
15403
15404 if test x"${private_dir}" = x; then
15405 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15406 else
15407 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15409 $as_echo "${private_dir}" >&6; }
15410 fi
15411
15412 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15413 TCL_LIBRARY="${TCL_LIB_SPEC}"
15414 TCL_DEPS=""
15415 else
15416 # If building tcl in the same src tree, private headers
15417 # are not needed, but we need to be sure to use the right
15418 # headers library
15419 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15420 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15421 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15422 fi
15423
15424
15425
15426
15427
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15429 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15430
15431 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15433 $as_echo "loading" >&6; }
15434 . ${TK_BIN_DIR}/tkConfig.sh
15435 else
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15437 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15438 fi
15439
15440 # eval is required to do the TK_DBGX substitution
15441 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15442 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15443
15444 # If the TK_BIN_DIR is the build directory (not the install directory),
15445 # then set the common variable name to the value of the build variables.
15446 # For example, the variable TK_LIB_SPEC will be set to the value
15447 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15448 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15449 # installed and uninstalled version of Tcl.
15450 if test -f "${TK_BIN_DIR}/Makefile" ; then
15451 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15452 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15453 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15454 elif test "`uname -s`" = "Darwin"; then
15455 # If Tk was built as a framework, attempt to use the libraries
15456 # from the framework at the given location so that linking works
15457 # against Tk.framework installed in an arbitary location.
15458 case ${TK_DEFS} in
15459 *TK_FRAMEWORK*)
15460 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15461 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15462 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15463 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15464 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15465 break
15466 fi
15467 done
15468 fi
15469 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15470 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15471 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15472 fi
15473 ;;
15474 esac
15475 fi
15476
15477 # eval is required to do the TK_DBGX substitution
15478 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15479 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15480 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15481 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496 # Check for in-tree Tk
15497 intree="no"
15498 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15499 intree="yes"
15500 fi
15501
15502 # Find Tk private headers
15503 if test x"${intree}" = xno; then
15504
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15506 $as_echo_n "checking for Tk private headers... " >&6; }
15507 private_dir=""
15508 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15509 if test -f ${dir}/tkInt.h; then
15510 private_dir=${dir}
15511 fi
15512
15513 if test x"${private_dir}" = x; then
15514 as_fn_error "could not find Tk private headers" "$LINENO" 5
15515 else
15516 TK_PRIVATE_INCLUDE="-I${private_dir}"
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15518 $as_echo "${private_dir}" >&6; }
15519 fi
15520
15521 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15522 TK_LIBRARY=${TK_LIB_SPEC}
15523 TK_DEPS=""
15524 else
15525 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15526 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15527 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15528 fi
15529
15530
15531
15532
15533
15534 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15535
15536 # Include some libraries that Tcl and Tk want.
15537 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15538 # Yes, the ordering seems wrong here. But it isn't.
15539 # TK_LIBS is the list of libraries that need to be linked
15540 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15541 # were in LIBS then any link tests after this point would
15542 # try to include things like `$(LIBGUI)', which wouldn't work.
15543 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15544
15545 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15546 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15547 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15548 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15549 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15550 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15551 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15552
15553 if test x$gdb_cv_os_cygwin = xyes; then
15554 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15555 WIN32LDAPP="-Wl,--subsystem,console"
15556 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15557 fi
15558
15559 subdirs="$subdirs gdbtk"
15560
15561 fi
15562 fi
15563
15564
15565
15566
15567
15568
15569
15570
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15572 $as_echo_n "checking for X... " >&6; }
15573
15574
15575 # Check whether --with-x was given.
15576 if test "${with_x+set}" = set; then :
15577 withval=$with_x;
15578 fi
15579
15580 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15581 if test "x$with_x" = xno; then
15582 # The user explicitly disabled X.
15583 have_x=disabled
15584 else
15585 case $x_includes,$x_libraries in #(
15586 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15587 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15588 $as_echo_n "(cached) " >&6
15589 else
15590 # One or both of the vars are not set, and there is no cached value.
15591 ac_x_includes=no ac_x_libraries=no
15592 rm -f -r conftest.dir
15593 if mkdir conftest.dir; then
15594 cd conftest.dir
15595 cat >Imakefile <<'_ACEOF'
15596 incroot:
15597 @echo incroot='${INCROOT}'
15598 usrlibdir:
15599 @echo usrlibdir='${USRLIBDIR}'
15600 libdir:
15601 @echo libdir='${LIBDIR}'
15602 _ACEOF
15603 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15604 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15605 for ac_var in incroot usrlibdir libdir; do
15606 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15607 done
15608 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15609 for ac_extension in a so sl dylib la dll; do
15610 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15611 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15612 ac_im_usrlibdir=$ac_im_libdir; break
15613 fi
15614 done
15615 # Screen out bogus values from the imake configuration. They are
15616 # bogus both because they are the default anyway, and because
15617 # using them would break gcc on systems where it needs fixed includes.
15618 case $ac_im_incroot in
15619 /usr/include) ac_x_includes= ;;
15620 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15621 esac
15622 case $ac_im_usrlibdir in
15623 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15624 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15625 esac
15626 fi
15627 cd ..
15628 rm -f -r conftest.dir
15629 fi
15630
15631 # Standard set of common directories for X headers.
15632 # Check X11 before X11Rn because it is often a symlink to the current release.
15633 ac_x_header_dirs='
15634 /usr/X11/include
15635 /usr/X11R7/include
15636 /usr/X11R6/include
15637 /usr/X11R5/include
15638 /usr/X11R4/include
15639
15640 /usr/include/X11
15641 /usr/include/X11R7
15642 /usr/include/X11R6
15643 /usr/include/X11R5
15644 /usr/include/X11R4
15645
15646 /usr/local/X11/include
15647 /usr/local/X11R7/include
15648 /usr/local/X11R6/include
15649 /usr/local/X11R5/include
15650 /usr/local/X11R4/include
15651
15652 /usr/local/include/X11
15653 /usr/local/include/X11R7
15654 /usr/local/include/X11R6
15655 /usr/local/include/X11R5
15656 /usr/local/include/X11R4
15657
15658 /usr/X386/include
15659 /usr/x386/include
15660 /usr/XFree86/include/X11
15661
15662 /usr/include
15663 /usr/local/include
15664 /usr/unsupported/include
15665 /usr/athena/include
15666 /usr/local/x11r5/include
15667 /usr/lpp/Xamples/include
15668
15669 /usr/openwin/include
15670 /usr/openwin/share/include'
15671
15672 if test "$ac_x_includes" = no; then
15673 # Guess where to find include files, by looking for Xlib.h.
15674 # First, try using that file with no special directory specified.
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15677 #include <X11/Xlib.h>
15678 _ACEOF
15679 if ac_fn_c_try_cpp "$LINENO"; then :
15680 # We can compile using X headers with no special include directory.
15681 ac_x_includes=
15682 else
15683 for ac_dir in $ac_x_header_dirs; do
15684 if test -r "$ac_dir/X11/Xlib.h"; then
15685 ac_x_includes=$ac_dir
15686 break
15687 fi
15688 done
15689 fi
15690 rm -f conftest.err conftest.$ac_ext
15691 fi # $ac_x_includes = no
15692
15693 if test "$ac_x_libraries" = no; then
15694 # Check for the libraries.
15695 # See if we find them without any special options.
15696 # Don't add to $LIBS permanently.
15697 ac_save_LIBS=$LIBS
15698 LIBS="-lX11 $LIBS"
15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15701 #include <X11/Xlib.h>
15702 int
15703 main ()
15704 {
15705 XrmInitialize ()
15706 ;
15707 return 0;
15708 }
15709 _ACEOF
15710 if ac_fn_c_try_link "$LINENO"; then :
15711 LIBS=$ac_save_LIBS
15712 # We can link X programs with no special library path.
15713 ac_x_libraries=
15714 else
15715 LIBS=$ac_save_LIBS
15716 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15717 do
15718 # Don't even attempt the hair of trying to link an X program!
15719 for ac_extension in a so sl dylib la dll; do
15720 if test -r "$ac_dir/libX11.$ac_extension"; then
15721 ac_x_libraries=$ac_dir
15722 break 2
15723 fi
15724 done
15725 done
15726 fi
15727 rm -f core conftest.err conftest.$ac_objext \
15728 conftest$ac_exeext conftest.$ac_ext
15729 fi # $ac_x_libraries = no
15730
15731 case $ac_x_includes,$ac_x_libraries in #(
15732 no,* | *,no | *\'*)
15733 # Didn't find X, or a directory has "'" in its name.
15734 ac_cv_have_x="have_x=no";; #(
15735 *)
15736 # Record where we found X for the cache.
15737 ac_cv_have_x="have_x=yes\
15738 ac_x_includes='$ac_x_includes'\
15739 ac_x_libraries='$ac_x_libraries'"
15740 esac
15741 fi
15742 ;; #(
15743 *) have_x=yes;;
15744 esac
15745 eval "$ac_cv_have_x"
15746 fi # $with_x != no
15747
15748 if test "$have_x" != yes; then
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15750 $as_echo "$have_x" >&6; }
15751 no_x=yes
15752 else
15753 # If each of the values was on the command line, it overrides each guess.
15754 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15755 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15756 # Update the cache value to reflect the command line values.
15757 ac_cv_have_x="have_x=yes\
15758 ac_x_includes='$x_includes'\
15759 ac_x_libraries='$x_libraries'"
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15761 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15762 fi
15763
15764
15765 # Unlike the sim directory, whether a simulator is linked is controlled by
15766 # presence of a gdb_sim definition in the target configure.tgt entry.
15767 # This code just checks for a few cases where we'd like to ignore those
15768 # definitions, even when they're present in the '.mt' file. These cases
15769 # are when --disable-sim is specified, or if the simulator directory is
15770 # not part of the source tree.
15771 #
15772 # Check whether --enable-sim was given.
15773 if test "${enable_sim+set}" = set; then :
15774 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15775 echo "enableval = ${enableval}";
15776 case "${enableval}" in
15777 yes) ignore_sim=false ;;
15778 no) ignore_sim=true ;;
15779 *) ignore_sim=false ;;
15780 esac
15781 else
15782 ignore_sim=false
15783 fi
15784
15785
15786 if test ! -d "${srcdir}/../sim"; then
15787 ignore_sim=true
15788 fi
15789
15790 SIM=
15791 SIM_OBS=
15792 if test "${ignore_sim}" = "false"; then
15793 if test x"${gdb_sim}" != x ; then
15794 SIM="${gdb_sim}"
15795 SIM_OBS="remote-sim.o"
15796
15797 $as_echo "#define WITH_SIM 1" >>confdefs.h
15798
15799 fi
15800 fi
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815 # List of host floatformats.
15816
15817 cat >>confdefs.h <<_ACEOF
15818 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15819 _ACEOF
15820
15821
15822 cat >>confdefs.h <<_ACEOF
15823 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15824 _ACEOF
15825
15826
15827 cat >>confdefs.h <<_ACEOF
15828 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15829 _ACEOF
15830
15831
15832 # target_subdir is used by the testsuite to find the target libraries.
15833 target_subdir=
15834 if test "${host}" != "${target}"; then
15835 target_subdir="${target_alias}/"
15836 fi
15837
15838
15839 frags=
15840 if test "${gdb_native}" = "yes"; then
15841 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15842 if test ! -f ${host_makefile_frag}; then
15843 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15844 fi
15845 frags="$frags $host_makefile_frag"
15846 else
15847 host_makefile_frag=/dev/null
15848 fi
15849
15850
15851
15852
15853 if test "${gdb_native}" = "yes"; then
15854 # We pick this up from the host configuration file (.mh) because we
15855 # do not have a native configuration Makefile fragment.
15856 nativefile=`sed -n '
15857 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15858 ' ${host_makefile_frag}`
15859 fi
15860
15861
15862 if test x"${gdb_osabi}" != x ; then
15863
15864 cat >>confdefs.h <<_ACEOF
15865 #define GDB_OSABI_DEFAULT $gdb_osabi
15866 _ACEOF
15867
15868 fi
15869
15870 # Enable multi-ice-gdb-server.
15871 # Check whether --enable-multi-ice was given.
15872 if test "${enable_multi_ice+set}" = set; then :
15873 enableval=$enable_multi_ice; case $enableval in
15874 yes | no)
15875 ;;
15876 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15877 esac
15878 fi
15879
15880 if test "x$enable_multi_ice" = xyes; then
15881 subdirs="$subdirs multi-ice"
15882
15883 fi
15884
15885 # Check whether --enable-gdbserver was given.
15886 if test "${enable_gdbserver+set}" = set; then :
15887 enableval=$enable_gdbserver; case "${enableval}" in
15888 yes| no|auto) ;;
15889 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15890 esac
15891 else
15892 enable_gdbserver=auto
15893 fi
15894
15895
15896 # We only build gdbserver automatically in a native configuration, and
15897 # only if the user did not explicitly disable its build.
15898 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15900 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15901 if test "x$build_gdbserver" = xyes; then
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15903 $as_echo "yes" >&6; }
15904 subdirs="$subdirs gdbserver"
15905
15906 gdbserver_build_enabled=yes
15907 else
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15909 $as_echo "no" >&6; }
15910 fi
15911 fi
15912
15913 # If the user explicitly request the gdbserver to be built, verify that
15914 # we were in fact able to enable it.
15915 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15916 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15917 fi
15918
15919 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15920 # to an empty version.
15921
15922 files=
15923 links=
15924
15925 rm -f nm.h
15926 if test "${nativefile}" != ""; then
15927 case "${nativefile}" in
15928 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15929 * ) GDB_NM_FILE="${nativefile}"
15930 esac
15931 files="${files} ${GDB_NM_FILE}"
15932 links="${links} nm.h"
15933
15934 cat >>confdefs.h <<_ACEOF
15935 #define GDB_NM_FILE "${GDB_NM_FILE}"
15936 _ACEOF
15937
15938 fi
15939
15940
15941 ac_sources="$files"
15942 ac_dests="$links"
15943 while test -n "$ac_sources"; do
15944 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15945 set $ac_sources; ac_source=$1; shift; ac_sources=$*
15946 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15947 done
15948 ac_config_links="$ac_config_links $ac_config_links_1"
15949
15950
15951
15952
15953
15954 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15955
15956
15957 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile"
15958
15959 ac_config_commands="$ac_config_commands default"
15960
15961 cat >confcache <<\_ACEOF
15962 # This file is a shell script that caches the results of configure
15963 # tests run on this system so they can be shared between configure
15964 # scripts and configure runs, see configure's option --config-cache.
15965 # It is not useful on other systems. If it contains results you don't
15966 # want to keep, you may remove or edit it.
15967 #
15968 # config.status only pays attention to the cache file if you give it
15969 # the --recheck option to rerun configure.
15970 #
15971 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15972 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15973 # following values.
15974
15975 _ACEOF
15976
15977 # The following way of writing the cache mishandles newlines in values,
15978 # but we know of no workaround that is simple, portable, and efficient.
15979 # So, we kill variables containing newlines.
15980 # Ultrix sh set writes to stderr and can't be redirected directly,
15981 # and sets the high bit in the cache file unless we assign to the vars.
15982 (
15983 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15984 eval ac_val=\$$ac_var
15985 case $ac_val in #(
15986 *${as_nl}*)
15987 case $ac_var in #(
15988 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15989 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15990 esac
15991 case $ac_var in #(
15992 _ | IFS | as_nl) ;; #(
15993 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15994 *) { eval $ac_var=; unset $ac_var;} ;;
15995 esac ;;
15996 esac
15997 done
15998
15999 (set) 2>&1 |
16000 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16001 *${as_nl}ac_space=\ *)
16002 # `set' does not quote correctly, so add quotes: double-quote
16003 # substitution turns \\\\ into \\, and sed turns \\ into \.
16004 sed -n \
16005 "s/'/'\\\\''/g;
16006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16007 ;; #(
16008 *)
16009 # `set' quotes correctly as required by POSIX, so do not add quotes.
16010 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16011 ;;
16012 esac |
16013 sort
16014 ) |
16015 sed '
16016 /^ac_cv_env_/b end
16017 t clear
16018 :clear
16019 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16020 t end
16021 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16022 :end' >>confcache
16023 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16024 if test -w "$cache_file"; then
16025 test "x$cache_file" != "x/dev/null" &&
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16027 $as_echo "$as_me: updating cache $cache_file" >&6;}
16028 cat confcache >$cache_file
16029 else
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16031 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16032 fi
16033 fi
16034 rm -f confcache
16035
16036 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16037 # Let make expand exec_prefix.
16038 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16039
16040 DEFS=-DHAVE_CONFIG_H
16041
16042 ac_libobjs=
16043 ac_ltlibobjs=
16044 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16045 # 1. Remove the extension, and $U if already installed.
16046 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16047 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16048 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16049 # will be set to the directory where LIBOBJS objects are built.
16050 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16051 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16052 done
16053 LIBOBJS=$ac_libobjs
16054
16055 LTLIBOBJS=$ac_ltlibobjs
16056
16057
16058 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16059 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16061 fi
16062 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16063 as_fn_error "conditional \"GMAKE\" was never defined.
16064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16065 fi
16066 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16067 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16069 fi
16070
16071 gl_libobjs=
16072 gl_ltlibobjs=
16073 if test -n "$gl_LIBOBJS"; then
16074 # Remove the extension.
16075 sed_drop_objext='s/\.o$//;s/\.obj$//'
16076 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16077 gl_libobjs="$gl_libobjs $i.$ac_objext"
16078 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16079 done
16080 fi
16081 gl_LIBOBJS=$gl_libobjs
16082
16083 gl_LTLIBOBJS=$gl_ltlibobjs
16084
16085
16086
16087 gltests_libobjs=
16088 gltests_ltlibobjs=
16089 if test -n "$gltests_LIBOBJS"; then
16090 # Remove the extension.
16091 sed_drop_objext='s/\.o$//;s/\.obj$//'
16092 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16093 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16094 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16095 done
16096 fi
16097 gltests_LIBOBJS=$gltests_libobjs
16098
16099 gltests_LTLIBOBJS=$gltests_ltlibobjs
16100
16101
16102 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16103 as_fn_error "conditional \"AMDEP\" was never defined.
16104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16105 fi
16106 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16107 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16109 fi
16110 if test -n "$EXEEXT"; then
16111 am__EXEEXT_TRUE=
16112 am__EXEEXT_FALSE='#'
16113 else
16114 am__EXEEXT_TRUE='#'
16115 am__EXEEXT_FALSE=
16116 fi
16117
16118
16119
16120 : ${CONFIG_STATUS=./config.status}
16121 ac_write_fail=0
16122 ac_clean_files_save=$ac_clean_files
16123 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16125 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16126 as_write_fail=0
16127 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16128 #! $SHELL
16129 # Generated by $as_me.
16130 # Run this file to recreate the current configuration.
16131 # Compiler output produced by configure, useful for debugging
16132 # configure, is in config.log if it exists.
16133
16134 debug=false
16135 ac_cs_recheck=false
16136 ac_cs_silent=false
16137
16138 SHELL=\${CONFIG_SHELL-$SHELL}
16139 export SHELL
16140 _ASEOF
16141 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16142 ## -------------------- ##
16143 ## M4sh Initialization. ##
16144 ## -------------------- ##
16145
16146 # Be more Bourne compatible
16147 DUALCASE=1; export DUALCASE # for MKS sh
16148 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16149 emulate sh
16150 NULLCMD=:
16151 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16152 # is contrary to our usage. Disable this feature.
16153 alias -g '${1+"$@"}'='"$@"'
16154 setopt NO_GLOB_SUBST
16155 else
16156 case `(set -o) 2>/dev/null` in #(
16157 *posix*) :
16158 set -o posix ;; #(
16159 *) :
16160 ;;
16161 esac
16162 fi
16163
16164
16165 as_nl='
16166 '
16167 export as_nl
16168 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16169 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16172 # Prefer a ksh shell builtin over an external printf program on Solaris,
16173 # but without wasting forks for bash or zsh.
16174 if test -z "$BASH_VERSION$ZSH_VERSION" \
16175 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16176 as_echo='print -r --'
16177 as_echo_n='print -rn --'
16178 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16179 as_echo='printf %s\n'
16180 as_echo_n='printf %s'
16181 else
16182 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16183 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16184 as_echo_n='/usr/ucb/echo -n'
16185 else
16186 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16187 as_echo_n_body='eval
16188 arg=$1;
16189 case $arg in #(
16190 *"$as_nl"*)
16191 expr "X$arg" : "X\\(.*\\)$as_nl";
16192 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16193 esac;
16194 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16195 '
16196 export as_echo_n_body
16197 as_echo_n='sh -c $as_echo_n_body as_echo'
16198 fi
16199 export as_echo_body
16200 as_echo='sh -c $as_echo_body as_echo'
16201 fi
16202
16203 # The user is always right.
16204 if test "${PATH_SEPARATOR+set}" != set; then
16205 PATH_SEPARATOR=:
16206 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16207 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16208 PATH_SEPARATOR=';'
16209 }
16210 fi
16211
16212
16213 # IFS
16214 # We need space, tab and new line, in precisely that order. Quoting is
16215 # there to prevent editors from complaining about space-tab.
16216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16217 # splitting by setting IFS to empty value.)
16218 IFS=" "" $as_nl"
16219
16220 # Find who we are. Look in the path if we contain no directory separator.
16221 case $0 in #((
16222 *[\\/]* ) as_myself=$0 ;;
16223 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16224 for as_dir in $PATH
16225 do
16226 IFS=$as_save_IFS
16227 test -z "$as_dir" && as_dir=.
16228 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16229 done
16230 IFS=$as_save_IFS
16231
16232 ;;
16233 esac
16234 # We did not find ourselves, most probably we were run as `sh COMMAND'
16235 # in which case we are not to be found in the path.
16236 if test "x$as_myself" = x; then
16237 as_myself=$0
16238 fi
16239 if test ! -f "$as_myself"; then
16240 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16241 exit 1
16242 fi
16243
16244 # Unset variables that we do not need and which cause bugs (e.g. in
16245 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16246 # suppresses any "Segmentation fault" message there. '((' could
16247 # trigger a bug in pdksh 5.2.14.
16248 for as_var in BASH_ENV ENV MAIL MAILPATH
16249 do eval test x\${$as_var+set} = xset \
16250 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16251 done
16252 PS1='$ '
16253 PS2='> '
16254 PS4='+ '
16255
16256 # NLS nuisances.
16257 LC_ALL=C
16258 export LC_ALL
16259 LANGUAGE=C
16260 export LANGUAGE
16261
16262 # CDPATH.
16263 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16264
16265
16266 # as_fn_error ERROR [LINENO LOG_FD]
16267 # ---------------------------------
16268 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16269 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16270 # script with status $?, using 1 if that was 0.
16271 as_fn_error ()
16272 {
16273 as_status=$?; test $as_status -eq 0 && as_status=1
16274 if test "$3"; then
16275 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16276 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16277 fi
16278 $as_echo "$as_me: error: $1" >&2
16279 as_fn_exit $as_status
16280 } # as_fn_error
16281
16282
16283 # as_fn_set_status STATUS
16284 # -----------------------
16285 # Set $? to STATUS, without forking.
16286 as_fn_set_status ()
16287 {
16288 return $1
16289 } # as_fn_set_status
16290
16291 # as_fn_exit STATUS
16292 # -----------------
16293 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16294 as_fn_exit ()
16295 {
16296 set +e
16297 as_fn_set_status $1
16298 exit $1
16299 } # as_fn_exit
16300
16301 # as_fn_unset VAR
16302 # ---------------
16303 # Portably unset VAR.
16304 as_fn_unset ()
16305 {
16306 { eval $1=; unset $1;}
16307 }
16308 as_unset=as_fn_unset
16309 # as_fn_append VAR VALUE
16310 # ----------------------
16311 # Append the text in VALUE to the end of the definition contained in VAR. Take
16312 # advantage of any shell optimizations that allow amortized linear growth over
16313 # repeated appends, instead of the typical quadratic growth present in naive
16314 # implementations.
16315 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16316 eval 'as_fn_append ()
16317 {
16318 eval $1+=\$2
16319 }'
16320 else
16321 as_fn_append ()
16322 {
16323 eval $1=\$$1\$2
16324 }
16325 fi # as_fn_append
16326
16327 # as_fn_arith ARG...
16328 # ------------------
16329 # Perform arithmetic evaluation on the ARGs, and store the result in the
16330 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16331 # must be portable across $(()) and expr.
16332 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16333 eval 'as_fn_arith ()
16334 {
16335 as_val=$(( $* ))
16336 }'
16337 else
16338 as_fn_arith ()
16339 {
16340 as_val=`expr "$@" || test $? -eq 1`
16341 }
16342 fi # as_fn_arith
16343
16344
16345 if expr a : '\(a\)' >/dev/null 2>&1 &&
16346 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16347 as_expr=expr
16348 else
16349 as_expr=false
16350 fi
16351
16352 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16353 as_basename=basename
16354 else
16355 as_basename=false
16356 fi
16357
16358 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16359 as_dirname=dirname
16360 else
16361 as_dirname=false
16362 fi
16363
16364 as_me=`$as_basename -- "$0" ||
16365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16366 X"$0" : 'X\(//\)$' \| \
16367 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16368 $as_echo X/"$0" |
16369 sed '/^.*\/\([^/][^/]*\)\/*$/{
16370 s//\1/
16371 q
16372 }
16373 /^X\/\(\/\/\)$/{
16374 s//\1/
16375 q
16376 }
16377 /^X\/\(\/\).*/{
16378 s//\1/
16379 q
16380 }
16381 s/.*/./; q'`
16382
16383 # Avoid depending upon Character Ranges.
16384 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16387 as_cr_digits='0123456789'
16388 as_cr_alnum=$as_cr_Letters$as_cr_digits
16389
16390 ECHO_C= ECHO_N= ECHO_T=
16391 case `echo -n x` in #(((((
16392 -n*)
16393 case `echo 'xy\c'` in
16394 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16395 xy) ECHO_C='\c';;
16396 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16397 ECHO_T=' ';;
16398 esac;;
16399 *)
16400 ECHO_N='-n';;
16401 esac
16402
16403 rm -f conf$$ conf$$.exe conf$$.file
16404 if test -d conf$$.dir; then
16405 rm -f conf$$.dir/conf$$.file
16406 else
16407 rm -f conf$$.dir
16408 mkdir conf$$.dir 2>/dev/null
16409 fi
16410 if (echo >conf$$.file) 2>/dev/null; then
16411 if ln -s conf$$.file conf$$ 2>/dev/null; then
16412 as_ln_s='ln -s'
16413 # ... but there are two gotchas:
16414 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16415 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16416 # In both cases, we have to default to `cp -p'.
16417 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16418 as_ln_s='cp -p'
16419 elif ln conf$$.file conf$$ 2>/dev/null; then
16420 as_ln_s=ln
16421 else
16422 as_ln_s='cp -p'
16423 fi
16424 else
16425 as_ln_s='cp -p'
16426 fi
16427 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16428 rmdir conf$$.dir 2>/dev/null
16429
16430
16431 # as_fn_mkdir_p
16432 # -------------
16433 # Create "$as_dir" as a directory, including parents if necessary.
16434 as_fn_mkdir_p ()
16435 {
16436
16437 case $as_dir in #(
16438 -*) as_dir=./$as_dir;;
16439 esac
16440 test -d "$as_dir" || eval $as_mkdir_p || {
16441 as_dirs=
16442 while :; do
16443 case $as_dir in #(
16444 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16445 *) as_qdir=$as_dir;;
16446 esac
16447 as_dirs="'$as_qdir' $as_dirs"
16448 as_dir=`$as_dirname -- "$as_dir" ||
16449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16450 X"$as_dir" : 'X\(//\)[^/]' \| \
16451 X"$as_dir" : 'X\(//\)$' \| \
16452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16453 $as_echo X"$as_dir" |
16454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16455 s//\1/
16456 q
16457 }
16458 /^X\(\/\/\)[^/].*/{
16459 s//\1/
16460 q
16461 }
16462 /^X\(\/\/\)$/{
16463 s//\1/
16464 q
16465 }
16466 /^X\(\/\).*/{
16467 s//\1/
16468 q
16469 }
16470 s/.*/./; q'`
16471 test -d "$as_dir" && break
16472 done
16473 test -z "$as_dirs" || eval "mkdir $as_dirs"
16474 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16475
16476
16477 } # as_fn_mkdir_p
16478 if mkdir -p . 2>/dev/null; then
16479 as_mkdir_p='mkdir -p "$as_dir"'
16480 else
16481 test -d ./-p && rmdir ./-p
16482 as_mkdir_p=false
16483 fi
16484
16485 if test -x / >/dev/null 2>&1; then
16486 as_test_x='test -x'
16487 else
16488 if ls -dL / >/dev/null 2>&1; then
16489 as_ls_L_option=L
16490 else
16491 as_ls_L_option=
16492 fi
16493 as_test_x='
16494 eval sh -c '\''
16495 if test -d "$1"; then
16496 test -d "$1/.";
16497 else
16498 case $1 in #(
16499 -*)set "./$1";;
16500 esac;
16501 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16502 ???[sx]*):;;*)false;;esac;fi
16503 '\'' sh
16504 '
16505 fi
16506 as_executable_p=$as_test_x
16507
16508 # Sed expression to map a string onto a valid CPP name.
16509 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16510
16511 # Sed expression to map a string onto a valid variable name.
16512 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16513
16514
16515 exec 6>&1
16516 ## ----------------------------------- ##
16517 ## Main body of $CONFIG_STATUS script. ##
16518 ## ----------------------------------- ##
16519 _ASEOF
16520 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16521
16522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16523 # Save the log message, to keep $0 and so on meaningful, and to
16524 # report actual input values of CONFIG_FILES etc. instead of their
16525 # values after options handling.
16526 ac_log="
16527 This file was extended by $as_me, which was
16528 generated by GNU Autoconf 2.64. Invocation command line was
16529
16530 CONFIG_FILES = $CONFIG_FILES
16531 CONFIG_HEADERS = $CONFIG_HEADERS
16532 CONFIG_LINKS = $CONFIG_LINKS
16533 CONFIG_COMMANDS = $CONFIG_COMMANDS
16534 $ $0 $@
16535
16536 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16537 "
16538
16539 _ACEOF
16540
16541 case $ac_config_files in *"
16542 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16543 esac
16544
16545 case $ac_config_headers in *"
16546 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16547 esac
16548
16549
16550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16551 # Files that config.status was made for.
16552 config_files="$ac_config_files"
16553 config_headers="$ac_config_headers"
16554 config_links="$ac_config_links"
16555 config_commands="$ac_config_commands"
16556
16557 _ACEOF
16558
16559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16560 ac_cs_usage="\
16561 \`$as_me' instantiates files and other configuration actions
16562 from templates according to the current configuration. Unless the files
16563 and actions are specified as TAGs, all are instantiated by default.
16564
16565 Usage: $0 [OPTION]... [TAG]...
16566
16567 -h, --help print this help, then exit
16568 -V, --version print version number and configuration settings, then exit
16569 -q, --quiet, --silent
16570 do not print progress messages
16571 -d, --debug don't remove temporary files
16572 --recheck update $as_me by reconfiguring in the same conditions
16573 --file=FILE[:TEMPLATE]
16574 instantiate the configuration file FILE
16575 --header=FILE[:TEMPLATE]
16576 instantiate the configuration header FILE
16577
16578 Configuration files:
16579 $config_files
16580
16581 Configuration headers:
16582 $config_headers
16583
16584 Configuration links:
16585 $config_links
16586
16587 Configuration commands:
16588 $config_commands
16589
16590 Report bugs to the package provider."
16591
16592 _ACEOF
16593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16594 ac_cs_version="\\
16595 config.status
16596 configured by $0, generated by GNU Autoconf 2.64,
16597 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16598
16599 Copyright (C) 2009 Free Software Foundation, Inc.
16600 This config.status script is free software; the Free Software Foundation
16601 gives unlimited permission to copy, distribute and modify it."
16602
16603 ac_pwd='$ac_pwd'
16604 srcdir='$srcdir'
16605 INSTALL='$INSTALL'
16606 MKDIR_P='$MKDIR_P'
16607 AWK='$AWK'
16608 test -n "\$AWK" || AWK=awk
16609 _ACEOF
16610
16611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16612 # The default lists apply if the user does not specify any file.
16613 ac_need_defaults=:
16614 while test $# != 0
16615 do
16616 case $1 in
16617 --*=*)
16618 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16619 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16620 ac_shift=:
16621 ;;
16622 *)
16623 ac_option=$1
16624 ac_optarg=$2
16625 ac_shift=shift
16626 ;;
16627 esac
16628
16629 case $ac_option in
16630 # Handling of the options.
16631 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16632 ac_cs_recheck=: ;;
16633 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16634 $as_echo "$ac_cs_version"; exit ;;
16635 --debug | --debu | --deb | --de | --d | -d )
16636 debug=: ;;
16637 --file | --fil | --fi | --f )
16638 $ac_shift
16639 case $ac_optarg in
16640 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16641 esac
16642 as_fn_append CONFIG_FILES " '$ac_optarg'"
16643 ac_need_defaults=false;;
16644 --header | --heade | --head | --hea )
16645 $ac_shift
16646 case $ac_optarg in
16647 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16648 esac
16649 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16650 ac_need_defaults=false;;
16651 --he | --h)
16652 # Conflict between --help and --header
16653 as_fn_error "ambiguous option: \`$1'
16654 Try \`$0 --help' for more information.";;
16655 --help | --hel | -h )
16656 $as_echo "$ac_cs_usage"; exit ;;
16657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16658 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16659 ac_cs_silent=: ;;
16660
16661 # This is an error.
16662 -*) as_fn_error "unrecognized option: \`$1'
16663 Try \`$0 --help' for more information." ;;
16664
16665 *) as_fn_append ac_config_targets " $1"
16666 ac_need_defaults=false ;;
16667
16668 esac
16669 shift
16670 done
16671
16672 ac_configure_extra_args=
16673
16674 if $ac_cs_silent; then
16675 exec 6>/dev/null
16676 ac_configure_extra_args="$ac_configure_extra_args --silent"
16677 fi
16678
16679 _ACEOF
16680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16681 if \$ac_cs_recheck; then
16682 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16683 shift
16684 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16685 CONFIG_SHELL='$SHELL'
16686 export CONFIG_SHELL
16687 exec "\$@"
16688 fi
16689
16690 _ACEOF
16691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16692 exec 5>>config.log
16693 {
16694 echo
16695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16696 ## Running $as_me. ##
16697 _ASBOX
16698 $as_echo "$ac_log"
16699 } >&5
16700
16701 _ACEOF
16702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16703 #
16704 # INIT-COMMANDS
16705 #
16706 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16707 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16708
16709 _ACEOF
16710
16711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16712
16713 # Handling of arguments.
16714 for ac_config_target in $ac_config_targets
16715 do
16716 case $ac_config_target in
16717 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16718 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16719 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16720 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16721 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16722 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16723 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16724 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
16725 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
16726 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16727
16728 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16729 esac
16730 done
16731
16732
16733 # If the user did not use the arguments to specify the items to instantiate,
16734 # then the envvar interface is used. Set only those that are not.
16735 # We use the long form for the default assignment because of an extremely
16736 # bizarre bug on SunOS 4.1.3.
16737 if $ac_need_defaults; then
16738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16740 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16741 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16742 fi
16743
16744 # Have a temporary directory for convenience. Make it in the build tree
16745 # simply because there is no reason against having it here, and in addition,
16746 # creating and moving files from /tmp can sometimes cause problems.
16747 # Hook for its removal unless debugging.
16748 # Note that there is a small window in which the directory will not be cleaned:
16749 # after its creation but before its name has been assigned to `$tmp'.
16750 $debug ||
16751 {
16752 tmp=
16753 trap 'exit_status=$?
16754 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16755 ' 0
16756 trap 'as_fn_exit 1' 1 2 13 15
16757 }
16758 # Create a (secure) tmp directory for tmp files.
16759
16760 {
16761 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16762 test -n "$tmp" && test -d "$tmp"
16763 } ||
16764 {
16765 tmp=./conf$$-$RANDOM
16766 (umask 077 && mkdir "$tmp")
16767 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16768
16769 # Set up the scripts for CONFIG_FILES section.
16770 # No need to generate them if there are no CONFIG_FILES.
16771 # This happens for instance with `./config.status config.h'.
16772 if test -n "$CONFIG_FILES"; then
16773
16774 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16775 ac_cs_awk_getline=:
16776 ac_cs_awk_pipe_init=
16777 ac_cs_awk_read_file='
16778 while ((getline aline < (F[key])) > 0)
16779 print(aline)
16780 close(F[key])'
16781 ac_cs_awk_pipe_fini=
16782 else
16783 ac_cs_awk_getline=false
16784 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16785 ac_cs_awk_read_file='
16786 print "|#_!!_#|"
16787 print "cat " F[key] " &&"
16788 '$ac_cs_awk_pipe_init
16789 # The final `:' finishes the AND list.
16790 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16791 fi
16792 ac_cr=`echo X | tr X '\015'`
16793 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16794 # But we know of no other shell where ac_cr would be empty at this
16795 # point, so we can use a bashism as a fallback.
16796 if test "x$ac_cr" = x; then
16797 eval ac_cr=\$\'\\r\'
16798 fi
16799 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16800 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16801 ac_cs_awk_cr='\r'
16802 else
16803 ac_cs_awk_cr=$ac_cr
16804 fi
16805
16806 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16807 _ACEOF
16808
16809 # Create commands to substitute file output variables.
16810 {
16811 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16812 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16813 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16814 echo "_ACAWK" &&
16815 echo "_ACEOF"
16816 } >conf$$files.sh &&
16817 . ./conf$$files.sh ||
16818 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16819 rm -f conf$$files.sh
16820
16821 {
16822 echo "cat >conf$$subs.awk <<_ACEOF" &&
16823 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16824 echo "_ACEOF"
16825 } >conf$$subs.sh ||
16826 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16827 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16828 ac_delim='%!_!# '
16829 for ac_last_try in false false false false false :; do
16830 . ./conf$$subs.sh ||
16831 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16832
16833 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16834 if test $ac_delim_n = $ac_delim_num; then
16835 break
16836 elif $ac_last_try; then
16837 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16838 else
16839 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16840 fi
16841 done
16842 rm -f conf$$subs.sh
16843
16844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16845 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16846 _ACEOF
16847 sed -n '
16848 h
16849 s/^/S["/; s/!.*/"]=/
16850 p
16851 g
16852 s/^[^!]*!//
16853 :repl
16854 t repl
16855 s/'"$ac_delim"'$//
16856 t delim
16857 :nl
16858 h
16859 s/\(.\{148\}\).*/\1/
16860 t more1
16861 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16862 p
16863 n
16864 b repl
16865 :more1
16866 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16867 p
16868 g
16869 s/.\{148\}//
16870 t nl
16871 :delim
16872 h
16873 s/\(.\{148\}\).*/\1/
16874 t more2
16875 s/["\\]/\\&/g; s/^/"/; s/$/"/
16876 p
16877 b
16878 :more2
16879 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16880 p
16881 g
16882 s/.\{148\}//
16883 t delim
16884 ' <conf$$subs.awk | sed '
16885 /^[^""]/{
16886 N
16887 s/\n//
16888 }
16889 ' >>$CONFIG_STATUS || ac_write_fail=1
16890 rm -f conf$$subs.awk
16891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16892 _ACAWK
16893 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16894 for (key in S) S_is_set[key] = 1
16895 FS = "\a"
16896 \$ac_cs_awk_pipe_init
16897 }
16898 {
16899 line = $ 0
16900 nfields = split(line, field, "@")
16901 substed = 0
16902 len = length(field[1])
16903 for (i = 2; i < nfields; i++) {
16904 key = field[i]
16905 keylen = length(key)
16906 if (S_is_set[key]) {
16907 value = S[key]
16908 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16909 len += length(value) + length(field[++i])
16910 substed = 1
16911 } else
16912 len += 1 + keylen
16913 }
16914 if (nfields == 3 && !substed) {
16915 key = field[2]
16916 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16917 \$ac_cs_awk_read_file
16918 next
16919 }
16920 }
16921 print line
16922 }
16923 \$ac_cs_awk_pipe_fini
16924 _ACAWK
16925 _ACEOF
16926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16927 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16928 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16929 else
16930 cat
16931 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16932 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16933 _ACEOF
16934
16935 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16936 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16937 # trailing colons and then remove the whole line if VPATH becomes empty
16938 # (actually we leave an empty line to preserve line numbers).
16939 if test "x$srcdir" = x.; then
16940 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16941 s/:*\$(srcdir):*/:/
16942 s/:*\${srcdir}:*/:/
16943 s/:*@srcdir@:*/:/
16944 s/^\([^=]*=[ ]*\):*/\1/
16945 s/:*$//
16946 s/^[^=]*=[ ]*$//
16947 }'
16948 fi
16949
16950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16951 fi # test -n "$CONFIG_FILES"
16952
16953 # Set up the scripts for CONFIG_HEADERS section.
16954 # No need to generate them if there are no CONFIG_HEADERS.
16955 # This happens for instance with `./config.status Makefile'.
16956 if test -n "$CONFIG_HEADERS"; then
16957 cat >"$tmp/defines.awk" <<\_ACAWK ||
16958 BEGIN {
16959 _ACEOF
16960
16961 # Transform confdefs.h into an awk script `defines.awk', embedded as
16962 # here-document in config.status, that substitutes the proper values into
16963 # config.h.in to produce config.h.
16964
16965 # Create a delimiter string that does not exist in confdefs.h, to ease
16966 # handling of long lines.
16967 ac_delim='%!_!# '
16968 for ac_last_try in false false :; do
16969 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16970 if test -z "$ac_t"; then
16971 break
16972 elif $ac_last_try; then
16973 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16974 else
16975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16976 fi
16977 done
16978
16979 # For the awk script, D is an array of macro values keyed by name,
16980 # likewise P contains macro parameters if any. Preserve backslash
16981 # newline sequences.
16982
16983 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16984 sed -n '
16985 s/.\{148\}/&'"$ac_delim"'/g
16986 t rset
16987 :rset
16988 s/^[ ]*#[ ]*define[ ][ ]*/ /
16989 t def
16990 d
16991 :def
16992 s/\\$//
16993 t bsnl
16994 s/["\\]/\\&/g
16995 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16996 D["\1"]=" \3"/p
16997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16998 d
16999 :bsnl
17000 s/["\\]/\\&/g
17001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17002 D["\1"]=" \3\\\\\\n"\\/p
17003 t cont
17004 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17005 t cont
17006 d
17007 :cont
17008 n
17009 s/.\{148\}/&'"$ac_delim"'/g
17010 t clear
17011 :clear
17012 s/\\$//
17013 t bsnlc
17014 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17015 d
17016 :bsnlc
17017 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17018 b cont
17019 ' <confdefs.h | sed '
17020 s/'"$ac_delim"'/"\\\
17021 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17022
17023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17024 for (key in D) D_is_set[key] = 1
17025 FS = "\a"
17026 }
17027 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17028 line = \$ 0
17029 split(line, arg, " ")
17030 if (arg[1] == "#") {
17031 defundef = arg[2]
17032 mac1 = arg[3]
17033 } else {
17034 defundef = substr(arg[1], 2)
17035 mac1 = arg[2]
17036 }
17037 split(mac1, mac2, "(") #)
17038 macro = mac2[1]
17039 prefix = substr(line, 1, index(line, defundef) - 1)
17040 if (D_is_set[macro]) {
17041 # Preserve the white space surrounding the "#".
17042 print prefix "define", macro P[macro] D[macro]
17043 next
17044 } else {
17045 # Replace #undef with comments. This is necessary, for example,
17046 # in the case of _POSIX_SOURCE, which is predefined and required
17047 # on some systems where configure will not decide to define it.
17048 if (defundef == "undef") {
17049 print "/*", prefix defundef, macro, "*/"
17050 next
17051 }
17052 }
17053 }
17054 { print }
17055 _ACAWK
17056 _ACEOF
17057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17058 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17059 fi # test -n "$CONFIG_HEADERS"
17060
17061
17062 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17063 shift
17064 for ac_tag
17065 do
17066 case $ac_tag in
17067 :[FHLC]) ac_mode=$ac_tag; continue;;
17068 esac
17069 case $ac_mode$ac_tag in
17070 :[FHL]*:*);;
17071 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17072 :[FH]-) ac_tag=-:-;;
17073 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17074 esac
17075 ac_save_IFS=$IFS
17076 IFS=:
17077 set x $ac_tag
17078 IFS=$ac_save_IFS
17079 shift
17080 ac_file=$1
17081 shift
17082
17083 case $ac_mode in
17084 :L) ac_source=$1;;
17085 :[FH])
17086 ac_file_inputs=
17087 for ac_f
17088 do
17089 case $ac_f in
17090 -) ac_f="$tmp/stdin";;
17091 *) # Look for the file first in the build tree, then in the source tree
17092 # (if the path is not absolute). The absolute path cannot be DOS-style,
17093 # because $ac_f cannot contain `:'.
17094 test -f "$ac_f" ||
17095 case $ac_f in
17096 [\\/$]*) false;;
17097 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17098 esac ||
17099 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17100 esac
17101 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17102 as_fn_append ac_file_inputs " '$ac_f'"
17103 done
17104
17105 # Let's still pretend it is `configure' which instantiates (i.e., don't
17106 # use $as_me), people would be surprised to read:
17107 # /* config.h. Generated by config.status. */
17108 configure_input='Generated from '`
17109 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17110 `' by configure.'
17111 if test x"$ac_file" != x-; then
17112 configure_input="$ac_file. $configure_input"
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17114 $as_echo "$as_me: creating $ac_file" >&6;}
17115 fi
17116 # Neutralize special characters interpreted by sed in replacement strings.
17117 case $configure_input in #(
17118 *\&* | *\|* | *\\* )
17119 ac_sed_conf_input=`$as_echo "$configure_input" |
17120 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17121 *) ac_sed_conf_input=$configure_input;;
17122 esac
17123
17124 case $ac_tag in
17125 *:-:* | *:-) cat >"$tmp/stdin" \
17126 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17127 esac
17128 ;;
17129 esac
17130
17131 ac_dir=`$as_dirname -- "$ac_file" ||
17132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17133 X"$ac_file" : 'X\(//\)[^/]' \| \
17134 X"$ac_file" : 'X\(//\)$' \| \
17135 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17136 $as_echo X"$ac_file" |
17137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17138 s//\1/
17139 q
17140 }
17141 /^X\(\/\/\)[^/].*/{
17142 s//\1/
17143 q
17144 }
17145 /^X\(\/\/\)$/{
17146 s//\1/
17147 q
17148 }
17149 /^X\(\/\).*/{
17150 s//\1/
17151 q
17152 }
17153 s/.*/./; q'`
17154 as_dir="$ac_dir"; as_fn_mkdir_p
17155 ac_builddir=.
17156
17157 case "$ac_dir" in
17158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17159 *)
17160 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17161 # A ".." for each directory in $ac_dir_suffix.
17162 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17163 case $ac_top_builddir_sub in
17164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17166 esac ;;
17167 esac
17168 ac_abs_top_builddir=$ac_pwd
17169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17170 # for backward compatibility:
17171 ac_top_builddir=$ac_top_build_prefix
17172
17173 case $srcdir in
17174 .) # We are building in place.
17175 ac_srcdir=.
17176 ac_top_srcdir=$ac_top_builddir_sub
17177 ac_abs_top_srcdir=$ac_pwd ;;
17178 [\\/]* | ?:[\\/]* ) # Absolute name.
17179 ac_srcdir=$srcdir$ac_dir_suffix;
17180 ac_top_srcdir=$srcdir
17181 ac_abs_top_srcdir=$srcdir ;;
17182 *) # Relative name.
17183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17184 ac_top_srcdir=$ac_top_build_prefix$srcdir
17185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17186 esac
17187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17188
17189
17190 case $ac_mode in
17191 :F)
17192 #
17193 # CONFIG_FILE
17194 #
17195
17196 case $INSTALL in
17197 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17198 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17199 esac
17200 ac_MKDIR_P=$MKDIR_P
17201 case $MKDIR_P in
17202 [\\/$]* | ?:[\\/]* ) ;;
17203 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17204 esac
17205 _ACEOF
17206
17207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17208 # If the template does not know about datarootdir, expand it.
17209 # FIXME: This hack should be removed a few years after 2.60.
17210 ac_datarootdir_hack=; ac_datarootdir_seen=
17211 ac_sed_dataroot='
17212 /datarootdir/ {
17213 p
17214 q
17215 }
17216 /@datadir@/p
17217 /@docdir@/p
17218 /@infodir@/p
17219 /@localedir@/p
17220 /@mandir@/p'
17221 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17222 *datarootdir*) ac_datarootdir_seen=yes;;
17223 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17225 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17226 _ACEOF
17227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17228 ac_datarootdir_hack='
17229 s&@datadir@&$datadir&g
17230 s&@docdir@&$docdir&g
17231 s&@infodir@&$infodir&g
17232 s&@localedir@&$localedir&g
17233 s&@mandir@&$mandir&g
17234 s&\\\${datarootdir}&$datarootdir&g' ;;
17235 esac
17236 _ACEOF
17237
17238 # Neutralize VPATH when `$srcdir' = `.'.
17239 # Shell code in configure.ac might set extrasub.
17240 # FIXME: do we really want to maintain this feature?
17241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17242 ac_sed_extra="$ac_vpsub
17243 $extrasub
17244 _ACEOF
17245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17246 :t
17247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17248 s|@configure_input@|$ac_sed_conf_input|;t t
17249 s&@top_builddir@&$ac_top_builddir_sub&;t t
17250 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17251 s&@srcdir@&$ac_srcdir&;t t
17252 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17253 s&@top_srcdir@&$ac_top_srcdir&;t t
17254 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17255 s&@builddir@&$ac_builddir&;t t
17256 s&@abs_builddir@&$ac_abs_builddir&;t t
17257 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17258 s&@INSTALL@&$ac_INSTALL&;t t
17259 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17260 $ac_datarootdir_hack
17261 "
17262 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17263 if $ac_cs_awk_getline; then
17264 $AWK -f "$tmp/subs.awk"
17265 else
17266 $AWK -f "$tmp/subs.awk" | $SHELL
17267 fi >$tmp/out \
17268 || as_fn_error "could not create $ac_file" "$LINENO" 5
17269
17270 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17271 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17272 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17274 which seems to be undefined. Please make sure it is defined." >&5
17275 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17276 which seems to be undefined. Please make sure it is defined." >&2;}
17277
17278 rm -f "$tmp/stdin"
17279 case $ac_file in
17280 -) cat "$tmp/out" && rm -f "$tmp/out";;
17281 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17282 esac \
17283 || as_fn_error "could not create $ac_file" "$LINENO" 5
17284 ;;
17285 :H)
17286 #
17287 # CONFIG_HEADER
17288 #
17289 if test x"$ac_file" != x-; then
17290 {
17291 $as_echo "/* $configure_input */" \
17292 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17293 } >"$tmp/config.h" \
17294 || as_fn_error "could not create $ac_file" "$LINENO" 5
17295 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17297 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17298 else
17299 rm -f "$ac_file"
17300 mv "$tmp/config.h" "$ac_file" \
17301 || as_fn_error "could not create $ac_file" "$LINENO" 5
17302 fi
17303 else
17304 $as_echo "/* $configure_input */" \
17305 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17306 || as_fn_error "could not create -" "$LINENO" 5
17307 fi
17308 # Compute "$ac_file"'s index in $config_headers.
17309 _am_arg="$ac_file"
17310 _am_stamp_count=1
17311 for _am_header in $config_headers :; do
17312 case $_am_header in
17313 $_am_arg | $_am_arg:* )
17314 break ;;
17315 * )
17316 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17317 esac
17318 done
17319 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17320 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17321 X"$_am_arg" : 'X\(//\)[^/]' \| \
17322 X"$_am_arg" : 'X\(//\)$' \| \
17323 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17324 $as_echo X"$_am_arg" |
17325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17326 s//\1/
17327 q
17328 }
17329 /^X\(\/\/\)[^/].*/{
17330 s//\1/
17331 q
17332 }
17333 /^X\(\/\/\)$/{
17334 s//\1/
17335 q
17336 }
17337 /^X\(\/\).*/{
17338 s//\1/
17339 q
17340 }
17341 s/.*/./; q'`/stamp-h$_am_stamp_count
17342 ;;
17343 :L)
17344 #
17345 # CONFIG_LINK
17346 #
17347
17348 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17349 :
17350 else
17351 # Prefer the file from the source tree if names are identical.
17352 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17353 ac_source=$srcdir/$ac_source
17354 fi
17355
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17357 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17358
17359 if test ! -r "$ac_source"; then
17360 as_fn_error "$ac_source: file not found" "$LINENO" 5
17361 fi
17362 rm -f "$ac_file"
17363
17364 # Try a relative symlink, then a hard link, then a copy.
17365 case $srcdir in
17366 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17367 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17368 esac
17369 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17370 ln "$ac_source" "$ac_file" 2>/dev/null ||
17371 cp -p "$ac_source" "$ac_file" ||
17372 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17373 fi
17374 ;;
17375 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17376 $as_echo "$as_me: executing $ac_file commands" >&6;}
17377 ;;
17378 esac
17379
17380
17381 case $ac_file$ac_mode in
17382 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17383 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17384 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17385 # are listed without --file. Let's play safe and only enable the eval
17386 # if we detect the quoting.
17387 case $CONFIG_FILES in
17388 *\'*) eval set x "$CONFIG_FILES" ;;
17389 *) set x $CONFIG_FILES ;;
17390 esac
17391 shift
17392 for mf
17393 do
17394 # Strip MF so we end up with the name of the file.
17395 mf=`echo "$mf" | sed -e 's/:.*$//'`
17396 # Check whether this is an Automake generated Makefile or not.
17397 # We used to match only the files named `Makefile.in', but
17398 # some people rename them; so instead we look at the file content.
17399 # Grep'ing the first line is not enough: some people post-process
17400 # each Makefile.in and add a new line on top of each file to say so.
17401 # Grep'ing the whole file is not good either: AIX grep has a line
17402 # limit of 2048, but all sed's we know have understand at least 4000.
17403 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17404 dirpart=`$as_dirname -- "$mf" ||
17405 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17406 X"$mf" : 'X\(//\)[^/]' \| \
17407 X"$mf" : 'X\(//\)$' \| \
17408 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17409 $as_echo X"$mf" |
17410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17411 s//\1/
17412 q
17413 }
17414 /^X\(\/\/\)[^/].*/{
17415 s//\1/
17416 q
17417 }
17418 /^X\(\/\/\)$/{
17419 s//\1/
17420 q
17421 }
17422 /^X\(\/\).*/{
17423 s//\1/
17424 q
17425 }
17426 s/.*/./; q'`
17427 else
17428 continue
17429 fi
17430 # Extract the definition of DEPDIR, am__include, and am__quote
17431 # from the Makefile without running `make'.
17432 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17433 test -z "$DEPDIR" && continue
17434 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17435 test -z "am__include" && continue
17436 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17437 # When using ansi2knr, U may be empty or an underscore; expand it
17438 U=`sed -n 's/^U = //p' < "$mf"`
17439 # Find all dependency output files, they are included files with
17440 # $(DEPDIR) in their names. We invoke sed twice because it is the
17441 # simplest approach to changing $(DEPDIR) to its actual value in the
17442 # expansion.
17443 for file in `sed -n "
17444 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17445 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17446 # Make sure the directory exists.
17447 test -f "$dirpart/$file" && continue
17448 fdir=`$as_dirname -- "$file" ||
17449 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17450 X"$file" : 'X\(//\)[^/]' \| \
17451 X"$file" : 'X\(//\)$' \| \
17452 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17453 $as_echo X"$file" |
17454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17455 s//\1/
17456 q
17457 }
17458 /^X\(\/\/\)[^/].*/{
17459 s//\1/
17460 q
17461 }
17462 /^X\(\/\/\)$/{
17463 s//\1/
17464 q
17465 }
17466 /^X\(\/\).*/{
17467 s//\1/
17468 q
17469 }
17470 s/.*/./; q'`
17471 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17472 # echo "creating $dirpart/$file"
17473 echo '# dummy' > "$dirpart/$file"
17474 done
17475 done
17476 }
17477 ;;
17478 "default":C)
17479 case x$CONFIG_HEADERS in
17480 xconfig.h:config.in)
17481 echo > stamp-h ;;
17482 esac
17483 ;;
17484
17485 esac
17486 done # for ac_tag
17487
17488
17489 as_fn_exit 0
17490 _ACEOF
17491 ac_clean_files=$ac_clean_files_save
17492
17493 test $ac_write_fail = 0 ||
17494 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17495
17496
17497 # configure is writing to config.log, and then calls config.status.
17498 # config.status does its own redirection, appending to config.log.
17499 # Unfortunately, on DOS this fails, as config.log is still kept open
17500 # by configure, so config.status won't be able to write to it; its
17501 # output is simply discarded. So we exec the FD to /dev/null,
17502 # effectively closing config.log, so it can be properly (re)opened and
17503 # appended to by config.status. When coming back to configure, we
17504 # need to make the FD available again.
17505 if test "$no_create" != yes; then
17506 ac_cs_success=:
17507 ac_config_status_args=
17508 test "$silent" = yes &&
17509 ac_config_status_args="$ac_config_status_args --quiet"
17510 exec 5>/dev/null
17511 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17512 exec 5>>config.log
17513 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17514 # would make configure fail if this is the last instruction.
17515 $ac_cs_success || as_fn_exit $?
17516 fi
17517
17518 #
17519 # CONFIG_SUBDIRS section.
17520 #
17521 if test "$no_recursion" != yes; then
17522
17523 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17524 # so they do not pile up.
17525 ac_sub_configure_args=
17526 ac_prev=
17527 eval "set x $ac_configure_args"
17528 shift
17529 for ac_arg
17530 do
17531 if test -n "$ac_prev"; then
17532 ac_prev=
17533 continue
17534 fi
17535 case $ac_arg in
17536 -cache-file | --cache-file | --cache-fil | --cache-fi \
17537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17538 ac_prev=cache_file ;;
17539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17541 | --c=*)
17542 ;;
17543 --config-cache | -C)
17544 ;;
17545 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17546 ac_prev=srcdir ;;
17547 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17548 ;;
17549 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17550 ac_prev=prefix ;;
17551 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17552 ;;
17553 --disable-option-checking)
17554 ;;
17555 *)
17556 case $ac_arg in
17557 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17558 esac
17559 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17560 esac
17561 done
17562
17563 # Always prepend --prefix to ensure using the same prefix
17564 # in subdir configurations.
17565 ac_arg="--prefix=$prefix"
17566 case $ac_arg in
17567 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17568 esac
17569 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17570
17571 # Pass --silent
17572 if test "$silent" = yes; then
17573 ac_sub_configure_args="--silent $ac_sub_configure_args"
17574 fi
17575
17576 # Always prepend --disable-option-checking to silence warnings, since
17577 # different subdirs can have different --enable and --with options.
17578 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17579
17580 ac_popdir=`pwd`
17581 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17582
17583 # Do not complain, so a configure script can configure whichever
17584 # parts of a large source tree are present.
17585 test -d "$srcdir/$ac_dir" || continue
17586
17587 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17588 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17589 $as_echo "$ac_msg" >&6
17590 as_dir="$ac_dir"; as_fn_mkdir_p
17591 ac_builddir=.
17592
17593 case "$ac_dir" in
17594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17595 *)
17596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17597 # A ".." for each directory in $ac_dir_suffix.
17598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17599 case $ac_top_builddir_sub in
17600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17602 esac ;;
17603 esac
17604 ac_abs_top_builddir=$ac_pwd
17605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17606 # for backward compatibility:
17607 ac_top_builddir=$ac_top_build_prefix
17608
17609 case $srcdir in
17610 .) # We are building in place.
17611 ac_srcdir=.
17612 ac_top_srcdir=$ac_top_builddir_sub
17613 ac_abs_top_srcdir=$ac_pwd ;;
17614 [\\/]* | ?:[\\/]* ) # Absolute name.
17615 ac_srcdir=$srcdir$ac_dir_suffix;
17616 ac_top_srcdir=$srcdir
17617 ac_abs_top_srcdir=$srcdir ;;
17618 *) # Relative name.
17619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17620 ac_top_srcdir=$ac_top_build_prefix$srcdir
17621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17622 esac
17623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17624
17625
17626 cd "$ac_dir"
17627
17628 # Check for guested configure; otherwise get Cygnus style configure.
17629 if test -f "$ac_srcdir/configure.gnu"; then
17630 ac_sub_configure=$ac_srcdir/configure.gnu
17631 elif test -f "$ac_srcdir/configure"; then
17632 ac_sub_configure=$ac_srcdir/configure
17633 elif test -f "$ac_srcdir/configure.in"; then
17634 # This should be Cygnus configure.
17635 ac_sub_configure=$ac_aux_dir/configure
17636 else
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17639 ac_sub_configure=
17640 fi
17641
17642 # The recursion is here.
17643 if test -n "$ac_sub_configure"; then
17644 # Make the cache file name correct relative to the subdirectory.
17645 case $cache_file in
17646 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17647 *) # Relative name.
17648 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17649 esac
17650
17651 { $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
17652 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17653 # The eval makes quoting arguments work.
17654 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17655 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17656 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17657 fi
17658
17659 cd "$ac_popdir"
17660 done
17661 fi
17662 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17664 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17665 fi
17666
17667
17668 exit 0
This page took 0.411469 seconds and 4 git commands to generate.