7577ba4c79806c5f5d089d796dd9d5fd848a49fa
[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 enable_option_checking=no
592 ac_subst_vars='LTLIBOBJS
593 LIBOBJS
594 GCORE_TRANSFORM_NAME
595 GDB_TRANSFORM_NAME
596 XSLTPROC
597 GDB_NM_FILE
598 LTLIBBABELTRACE
599 LIBBABELTRACE
600 HAVE_LIBBABELTRACE
601 frags
602 target_subdir
603 CONFIG_UNINSTALL
604 CONFIG_INSTALL
605 CONFIG_CLEAN
606 CONFIG_ALL
607 CONFIG_SRCS
608 CONFIG_DEPS
609 CONFIG_OBS
610 PROFILE_CFLAGS
611 ENABLE_CFLAGS
612 SIM_OBS
613 SIM
614 XMKMF
615 GDBTK_SRC_DIR
616 GDBTK_CFLAGS
617 GDBTKLIBS
618 X_LIBS
619 X_LDFLAGS
620 X_CFLAGS
621 TK_XINCLUDES
622 TK_DEPS
623 TK_LIBRARY
624 TK_INCLUDE
625 TK_STUB_LIB_SPEC
626 TK_STUB_LIB_FLAG
627 TK_STUB_LIB_FILE
628 TK_LIB_SPEC
629 TK_LIB_FLAG
630 TK_LIB_FILE
631 TK_SRC_DIR
632 TK_BIN_DIR
633 TK_VERSION
634 TCL_DEPS
635 TCL_LIBRARY
636 TCL_INCLUDE
637 TCL_STUB_LIB_SPEC
638 TCL_STUB_LIB_FLAG
639 TCL_STUB_LIB_FILE
640 TCL_LIB_SPEC
641 TCL_LIB_FLAG
642 TCL_LIB_FILE
643 TCL_SRC_DIR
644 TCL_BIN_DIR
645 TCL_PATCH_LEVEL
646 TCL_VERSION
647 WIN32LDAPP
648 GUI_CFLAGS_X
649 LIBGUI
650 LTLIBLZMA
651 LIBLZMA
652 HAVE_LIBLZMA
653 WIN32LIBS
654 SER_HARDWIRE
655 WERROR_CFLAGS
656 WARN_CFLAGS
657 SYSTEM_GDBINIT
658 TARGET_SYSTEM_ROOT
659 CONFIG_LDFLAGS
660 RDYNAMIC
661 ALLOCA
662 LTLIBIPT
663 LIBIPT
664 HAVE_LIBIPT
665 HAVE_GUILE_FALSE
666 HAVE_GUILE_TRUE
667 GUILE_LIBS
668 GUILE_CPPFLAGS
669 GUILD_TARGET_FLAG
670 GUILD
671 pkg_config_prog_path
672 HAVE_PYTHON_FALSE
673 HAVE_PYTHON_TRUE
674 PYTHON_LIBS
675 PYTHON_CPPFLAGS
676 PYTHON_CFLAGS
677 python_prog_path
678 LTLIBEXPAT
679 LIBEXPAT
680 HAVE_LIBEXPAT
681 JIT_READER_DIR
682 TARGET_PTR
683 READLINE_TEXI_INCFLAG
684 READLINE_CFLAGS
685 READLINE_DEPS
686 READLINE
687 LTLIBICONV
688 LIBICONV
689 zlibinc
690 zlibdir
691 MIG
692 WINDRES
693 DLLTOOL
694 AR
695 YFLAGS
696 YACC
697 RANLIB
698 LN_S
699 INSTALL_DATA
700 INSTALL_SCRIPT
701 INSTALL_PROGRAM
702 AWK
703 REPORT_BUGS_TEXI
704 REPORT_BUGS_TO
705 PKGVERSION
706 HAVE_NATIVE_GCORE_TARGET
707 TARGET_OBS
708 subdirs
709 GDB_DATADIR
710 DEBUGDIR
711 MAKEINFO_EXTRA_FLAGS
712 MAKEINFOFLAGS
713 MAKEINFO
714 PACKAGE
715 GNULIB_STDINT_H
716 CATOBJEXT
717 GENCAT
718 INSTOBJEXT
719 DATADIRNAME
720 CATALOGS
721 POSUB
722 GMSGFMT
723 XGETTEXT
724 INCINTL
725 LIBINTL_DEP
726 LIBINTL
727 USE_NLS
728 SET_MAKE
729 GMAKE_FALSE
730 GMAKE_TRUE
731 MAKE
732 CCDEPMODE
733 DEPDIR
734 am__leading_dot
735 COMPILER_CFLAGS
736 COMPILER
737 INSTALL_STRIP_PROGRAM
738 STRIP
739 install_sh
740 target_os
741 target_vendor
742 target_cpu
743 target
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 EGREP
753 GREP
754 CPP
755 ac_ct_CXX
756 CXXFLAGS
757 CXX
758 OBJEXT
759 EXEEXT
760 ac_ct_CC
761 CPPFLAGS
762 LDFLAGS
763 CFLAGS
764 CC
765 MAINT
766 MAINTAINER_MODE_FALSE
767 MAINTAINER_MODE_TRUE
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL'
806 ac_subst_files='host_makefile_frag'
807 ac_user_opts='
808 enable_option_checking
809 enable_maintainer_mode
810 enable_plugins
811 enable_largefile
812 enable_build_with_cxx
813 with_separate_debug_dir
814 with_gdb_datadir
815 with_relocated_sources
816 with_auto_load_dir
817 with_auto_load_safe_path
818 enable_targets
819 enable_64_bit_bfd
820 enable_gdbcli
821 enable_gdbmi
822 enable_tui
823 enable_gdbtk
824 with_libunwind_ia64
825 with_curses
826 enable_profiling
827 with_pkgversion
828 with_bugurl
829 with_system_zlib
830 with_gnu_ld
831 enable_rpath
832 with_libiconv_prefix
833 with_iconv_bin
834 with_system_readline
835 with_jit_reader_dir
836 with_expat
837 with_libexpat_prefix
838 with_python
839 with_guile
840 enable_libmcheck
841 with_intel_pt
842 with_libipt_prefix
843 with_included_regex
844 with_sysroot
845 with_system_gdbinit
846 enable_werror
847 enable_build_warnings
848 enable_gdb_build_warnings
849 with_lzma
850 with_liblzma_prefix
851 with_tcl
852 with_tk
853 with_x
854 enable_sim
855 enable_multi_ice
856 enable_gdbserver
857 with_babeltrace
858 with_libbabeltrace_prefix
859 '
860 ac_precious_vars='build_alias
861 host_alias
862 target_alias
863 CC
864 CFLAGS
865 LDFLAGS
866 LIBS
867 CPPFLAGS
868 CXX
869 CXXFLAGS
870 CCC
871 CPP
872 MAKEINFO
873 MAKEINFOFLAGS
874 YACC
875 YFLAGS
876 XMKMF'
877 ac_subdirs_all='testsuite
878 gdbtk
879 multi-ice
880 gdbserver'
881
882 # Initialize some variables set by options.
883 ac_init_help=
884 ac_init_version=false
885 ac_unrecognized_opts=
886 ac_unrecognized_sep=
887 # The variables have the same names as the options, with
888 # dashes changed to underlines.
889 cache_file=/dev/null
890 exec_prefix=NONE
891 no_create=
892 no_recursion=
893 prefix=NONE
894 program_prefix=NONE
895 program_suffix=NONE
896 program_transform_name=s,x,x,
897 silent=
898 site=
899 srcdir=
900 verbose=
901 x_includes=NONE
902 x_libraries=NONE
903
904 # Installation directory options.
905 # These are left unexpanded so users can "make install exec_prefix=/foo"
906 # and all the variables that are supposed to be based on exec_prefix
907 # by default will actually change.
908 # Use braces instead of parens because sh, perl, etc. also accept them.
909 # (The list follows the same order as the GNU Coding Standards.)
910 bindir='${exec_prefix}/bin'
911 sbindir='${exec_prefix}/sbin'
912 libexecdir='${exec_prefix}/libexec'
913 datarootdir='${prefix}/share'
914 datadir='${datarootdir}'
915 sysconfdir='${prefix}/etc'
916 sharedstatedir='${prefix}/com'
917 localstatedir='${prefix}/var'
918 includedir='${prefix}/include'
919 oldincludedir='/usr/include'
920 docdir='${datarootdir}/doc/${PACKAGE}'
921 infodir='${datarootdir}/info'
922 htmldir='${docdir}'
923 dvidir='${docdir}'
924 pdfdir='${docdir}'
925 psdir='${docdir}'
926 libdir='${exec_prefix}/lib'
927 localedir='${datarootdir}/locale'
928 mandir='${datarootdir}/man'
929
930 ac_prev=
931 ac_dashdash=
932 for ac_option
933 do
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
936 eval $ac_prev=\$ac_option
937 ac_prev=
938 continue
939 fi
940
941 case $ac_option in
942 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 *) ac_optarg=yes ;;
944 esac
945
946 # Accept the important Cygnus configure options, so we can diagnose typos.
947
948 case $ac_dashdash$ac_option in
949 --)
950 ac_dashdash=yes ;;
951
952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 ac_prev=bindir ;;
954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955 bindir=$ac_optarg ;;
956
957 -build | --build | --buil | --bui | --bu)
958 ac_prev=build_alias ;;
959 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960 build_alias=$ac_optarg ;;
961
962 -cache-file | --cache-file | --cache-fil | --cache-fi \
963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964 ac_prev=cache_file ;;
965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967 cache_file=$ac_optarg ;;
968
969 --config-cache | -C)
970 cache_file=config.cache ;;
971
972 -datadir | --datadir | --datadi | --datad)
973 ac_prev=datadir ;;
974 -datadir=* | --datadir=* | --datadi=* | --datad=*)
975 datadir=$ac_optarg ;;
976
977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978 | --dataroo | --dataro | --datar)
979 ac_prev=datarootdir ;;
980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982 datarootdir=$ac_optarg ;;
983
984 -disable-* | --disable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=no ;;
999
1000 -docdir | --docdir | --docdi | --doc | --do)
1001 ac_prev=docdir ;;
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1004
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 ac_prev=dvidir ;;
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
1009
1010 -enable-* | --enable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error "invalid feature name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=\$ac_optarg ;;
1025
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1034
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1038
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1045
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1050
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1056
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1063
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1068
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1073
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1080
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1085
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1092
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1097
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1101
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1105
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1109
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1118
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1123
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1130
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1137
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1154
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1159
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1164
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error "invalid package name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=\$ac_optarg ;;
1229
1230 -without-* | --without-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1263
1264 -*) as_fn_error "unrecognized option: \`$ac_option'
1265 Try \`$0 --help' for more information."
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 case $ac_envvar in #(
1272 '' | [0-9]* | *[!_$as_cr_alnum]* )
1273 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1274 esac
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1277
1278 *)
1279 # FIXME: should be removed in autoconf 3.0.
1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1284 ;;
1285
1286 esac
1287 done
1288
1289 if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291 as_fn_error "missing argument to $ac_option"
1292 fi
1293
1294 if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
1297 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 esac
1300 fi
1301
1302 # Check all directory arguments for consistency.
1303 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir
1307 do
1308 eval ac_val=\$$ac_var
1309 # Remove trailing slashes.
1310 case $ac_val in
1311 */ )
1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\$ac_val;;
1314 esac
1315 # Be sure to have absolute directory names.
1316 case $ac_val in
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 esac
1320 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1321 done
1322
1323 # There might be people who depend on the old broken behavior: `$host'
1324 # used to hold the argument of --host etc.
1325 # FIXME: To remove some day.
1326 build=$build_alias
1327 host=$host_alias
1328 target=$target_alias
1329
1330 # FIXME: To remove some day.
1331 if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
1334 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1335 If a cross compiler is detected then cross compile mode will be used." >&2
1336 elif test "x$build_alias" != "x$host_alias"; then
1337 cross_compiling=yes
1338 fi
1339 fi
1340
1341 ac_tool_prefix=
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343
1344 test "$silent" = yes && exec 6>/dev/null
1345
1346
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350 as_fn_error "working directory cannot be determined"
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 as_fn_error "pwd does not report name of working directory"
1353
1354
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357 ac_srcdir_defaulted=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir=`$as_dirname -- "$as_myself" ||
1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$as_myself" : 'X\(//\)[^/]' \| \
1362 X"$as_myself" : 'X\(//\)$' \| \
1363 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364 $as_echo X"$as_myself" |
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)[^/].*/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)$/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\).*/{
1378 s//\1/
1379 q
1380 }
1381 s/.*/./; q'`
1382 srcdir=$ac_confdir
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 srcdir=..
1385 fi
1386 else
1387 ac_srcdir_defaulted=no
1388 fi
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1392 fi
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 ac_abs_confdir=`(
1395 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1396 pwd)`
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 srcdir=.
1400 fi
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1404 case $srcdir in
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 esac
1407 for ac_var in $ac_precious_vars; do
1408 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_${ac_var}_value=\$${ac_var}
1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 done
1413
1414 #
1415 # Report the --help message.
1416 #
1417 if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1420 cat <<_ACEOF
1421 \`configure' configures this package to adapt to many kinds of systems.
1422
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1424
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE. See below for descriptions of some of the useful variables.
1427
1428 Defaults for the options are specified in brackets.
1429
1430 Configuration:
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1440
1441 Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 [PREFIX]
1446
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1451
1452 For better control, use the options below.
1453
1454 Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1474 _ACEOF
1475
1476 cat <<\_ACEOF
1477
1478 Program names:
1479 --program-prefix=PREFIX prepend PREFIX to installed program names
1480 --program-suffix=SUFFIX append SUFFIX to installed program names
1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1482
1483 X features:
1484 --x-includes=DIR X include files are in DIR
1485 --x-libraries=DIR X library files are in DIR
1486
1487 System types:
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 --target=TARGET configure for building compilers for TARGET [HOST]
1491 _ACEOF
1492 fi
1493
1494 if test -n "$ac_init_help"; then
1495
1496 cat <<\_ACEOF
1497
1498 Optional Features:
1499 --disable-option-checking ignore unrecognized --enable/--with options
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --enable-maintainer-mode enable make rules and dependencies not useful
1503 (and sometimes confusing) to the casual installer
1504 --enable-plugins Enable support for plugins
1505 --disable-largefile omit support for large files
1506 --disable-build-with-cxx
1507 build with C compiler instead of C++ compiler
1508 --enable-targets=TARGETS
1509 alternative target configurations
1510 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1511 --disable-gdbcli disable command-line interface (CLI)
1512 --disable-gdbmi disable machine-interface (MI)
1513 --enable-tui enable full-screen terminal user interface (TUI)
1514 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1515 --enable-profiling enable profiling of GDB
1516 --disable-rpath do not hardcode runtime library paths
1517 --enable-libmcheck Try linking with -lmcheck if available
1518 --enable-werror treat compile warnings as errors
1519 --enable-build-warnings enable build-time compiler warnings if gcc is used
1520 --enable-gdb-build-warnings
1521 enable GDB specific build-time compiler warnings if
1522 gcc is used
1523 --enable-sim link gdb with simulator
1524 --enable-multi-ice build the multi-ice-gdb-server
1525 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1526 is auto)
1527
1528 Optional Packages:
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1531 --with-separate-debug-dir=PATH
1532 look for global separate debug info in this path
1533 [LIBDIR/debug]
1534 --with-gdb-datadir=PATH look for global separate data files in this path
1535 [DATADIR/gdb]
1536 --with-relocated-sources=PATH
1537 automatically relocate this path for source files
1538 --with-auto-load-dir=PATH
1539 directories from which to load auto-loaded scripts
1540 [$debugdir:$datadir/auto-load]
1541 --with-auto-load-safe-path=PATH
1542 directories safe to hold auto-loaded files
1543 [--with-auto-load-dir]
1544 --without-auto-load-safe-path
1545 do not restrict auto-loaded files locations
1546 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1547 --with-curses use the curses library instead of the termcap
1548 library
1549 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1550 --with-bugurl=URL Direct users to URL to report a bug
1551 --with-system-zlib use installed libz
1552 --with-gnu-ld assume the C compiler uses GNU ld default=no
1553 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1554 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1555 --with-iconv-bin=PATH specify where to find the iconv program
1556 --with-system-readline use installed readline library
1557 --with-jit-reader-dir=PATH
1558 directory to load the JIT readers from
1559 --with-expat include expat support (auto/yes/no)
1560 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1561 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1562 --with-python[=PYTHON] include python support
1563 (auto/yes/no/<python-program>)
1564 --with-guile[=GUILE] include guile support
1565 (auto/yes/no/<guile-version>/<pkg-config-program>)
1566 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1567 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1568 --without-libipt-prefix don't search for libipt in includedir and libdir
1569 --without-included-regex
1570 don't use included regex; this is the default on
1571 systems with version 2 of the GNU C library (use
1572 with caution on other system)
1573 --with-sysroot[=DIR] search for usr/lib et al within DIR
1574 --with-system-gdbinit=PATH
1575 automatically load a system-wide gdbinit file
1576 --with-lzma support lzma compression (auto/yes/no)
1577 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1578 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1579 --with-tcl directory containing tcl configuration (tclConfig.sh)
1580 --with-tk directory containing tk configuration (tkConfig.sh)
1581 --with-x use the X Window System
1582 --with-babeltrace include babeltrace support (auto/yes/no)
1583 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1584 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1585
1586 Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
1591 LIBS libraries to pass to the linker, e.g. -l<library>
1592 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1593 you have headers in a nonstandard directory <include dir>
1594 CXX C++ compiler command
1595 CXXFLAGS C++ compiler flags
1596 CPP C preprocessor
1597 MAKEINFO Parent configure detects if it is of sufficient version.
1598 MAKEINFOFLAGS
1599 Parameters for MAKEINFO.
1600 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1601 the first program found out of: `bison -y', `byacc', `yacc'.
1602 YFLAGS The list of arguments that will be passed by default to $YACC.
1603 This script will default YFLAGS to the empty string to avoid a
1604 default value of `-d' given by some make applications.
1605 XMKMF Path to xmkmf, Makefile generator for X Window System
1606
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1609
1610 Report bugs to the package provider.
1611 _ACEOF
1612 ac_status=$?
1613 fi
1614
1615 if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
1621 ac_builddir=.
1622
1623 case "$ac_dir" in
1624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *)
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633 esac
1634 ac_abs_top_builddir=$ac_pwd
1635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636 # for backward compatibility:
1637 ac_top_builddir=$ac_top_build_prefix
1638
1639 case $srcdir in
1640 .) # We are building in place.
1641 ac_srcdir=.
1642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
1645 ac_srcdir=$srcdir$ac_dir_suffix;
1646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 esac
1653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure" --help=recursive
1663 else
1664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 fi || ac_status=$?
1666 cd "$ac_pwd" || { ac_status=$?; break; }
1667 done
1668 fi
1669
1670 test -n "$ac_init_help" && exit $ac_status
1671 if $ac_init_version; then
1672 cat <<\_ACEOF
1673 configure
1674 generated by GNU Autoconf 2.64
1675
1676 Copyright (C) 2009 Free Software Foundation, Inc.
1677 This configure script is free software; the Free Software Foundation
1678 gives unlimited permission to copy, distribute and modify it.
1679 _ACEOF
1680 exit
1681 fi
1682
1683 ## ------------------------ ##
1684 ## Autoconf initialization. ##
1685 ## ------------------------ ##
1686
1687 # ac_fn_c_try_compile LINENO
1688 # --------------------------
1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_compile ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1722
1723 } # ac_fn_c_try_compile
1724
1725 # ac_fn_cxx_try_compile LINENO
1726 # ----------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_cxx_try_compile ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_cxx_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757 fi
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 return $ac_retval
1760
1761 } # ac_fn_cxx_try_compile
1762
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_cpp ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_cpp conftest.$ac_ext"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } >/dev/null && {
1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 }; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794 fi
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 return $ac_retval
1797
1798 } # ac_fn_c_try_cpp
1799
1800 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803 # the include files in INCLUDES and setting the cache variable VAR
1804 # accordingly.
1805 ac_fn_c_check_header_mongrel ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1812 $as_echo_n "(cached) " >&6
1813 fi
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 else
1818 # Is the header compilable?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820 $as_echo_n "checking $2 usability... " >&6; }
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 ac_header_compiler=yes
1828 else
1829 ac_header_compiler=no
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833 $as_echo "$ac_header_compiler" >&6; }
1834
1835 # Is the header present?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837 $as_echo_n "checking $2 presence... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 #include <$2>
1841 _ACEOF
1842 if ac_fn_c_try_cpp "$LINENO"; then :
1843 ac_header_preproc=yes
1844 else
1845 ac_header_preproc=no
1846 fi
1847 rm -f conftest.err conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849 $as_echo "$ac_header_preproc" >&6; }
1850
1851 # So? What about this header?
1852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1853 yes:no: )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 ;;
1859 no:yes:* )
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1863 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1867 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 ;;
1871 esac
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1877 eval "$3=\$ac_header_compiler"
1878 fi
1879 eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 fi
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884
1885 } # ac_fn_c_check_header_mongrel
1886
1887 # ac_fn_c_try_run LINENO
1888 # ----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1890 # that executables *can* be run.
1891 ac_fn_c_try_run ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>&5
1902 ac_status=$?
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1905 { { case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_try") 2>&5
1912 ac_status=$?
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; }; }; then :
1915 ac_retval=0
1916 else
1917 $as_echo "$as_me: program exited with status $ac_status" >&5
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=$ac_status
1922 fi
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 return $ac_retval
1926
1927 } # ac_fn_c_try_run
1928
1929 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1930 # -------------------------------------------------------
1931 # Tests whether HEADER exists and can be compiled using the include files in
1932 # INCLUDES, setting the cache variable VAR accordingly.
1933 ac_fn_c_check_header_compile ()
1934 {
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1939 $as_echo_n "(cached) " >&6
1940 else
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 $4
1944 #include <$2>
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947 eval "$3=yes"
1948 else
1949 eval "$3=no"
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 fi
1953 eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957
1958 } # ac_fn_c_check_header_compile
1959
1960 # ac_fn_c_try_link LINENO
1961 # -----------------------
1962 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 ac_fn_c_try_link ()
1964 {
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 rm -f conftest.$ac_objext conftest$ac_exeext
1967 if { { ac_try="$ac_link"
1968 case "(($ac_try" in
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_link") 2>conftest.err
1975 ac_status=$?
1976 if test -s conftest.err; then
1977 grep -v '^ *+' conftest.err >conftest.er1
1978 cat conftest.er1 >&5
1979 mv -f conftest.er1 conftest.err
1980 fi
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } && {
1983 test -z "$ac_c_werror_flag" ||
1984 test ! -s conftest.err
1985 } && test -s conftest$ac_exeext && {
1986 test "$cross_compiling" = yes ||
1987 $as_test_x conftest$ac_exeext
1988 }; then :
1989 ac_retval=0
1990 else
1991 $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1993
1994 ac_retval=1
1995 fi
1996 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998 # interfere with the next link command; also delete a directory that is
1999 # left behind by Apple's compiler. We do this before executing the actions.
2000 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002 return $ac_retval
2003
2004 } # ac_fn_c_try_link
2005
2006 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2007 # --------------------------------------------
2008 # Tries to find the compile-time value of EXPR in a program that includes
2009 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2010 # computed
2011 ac_fn_c_compute_int ()
2012 {
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if test "$cross_compiling" = yes; then
2015 # Depending upon the size, compute the lo and hi bounds.
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 $4
2019 int
2020 main ()
2021 {
2022 static int test_array [1 - 2 * !(($2) >= 0)];
2023 test_array [0] = 0
2024
2025 ;
2026 return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_lo=0 ac_mid=0
2031 while :; do
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 $4
2035 int
2036 main ()
2037 {
2038 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2039 test_array [0] = 0
2040
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 ac_hi=$ac_mid; break
2047 else
2048 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2049 if test $ac_lo -le $ac_mid; then
2050 ac_lo= ac_hi=
2051 break
2052 fi
2053 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 done
2057 else
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2060 $4
2061 int
2062 main ()
2063 {
2064 static int test_array [1 - 2 * !(($2) < 0)];
2065 test_array [0] = 0
2066
2067 ;
2068 return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_hi=-1 ac_mid=-1
2073 while :; do
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2076 $4
2077 int
2078 main ()
2079 {
2080 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2081 test_array [0] = 0
2082
2083 ;
2084 return 0;
2085 }
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_lo=$ac_mid; break
2089 else
2090 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2091 if test $ac_mid -le $ac_hi; then
2092 ac_lo= ac_hi=
2093 break
2094 fi
2095 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 done
2099 else
2100 ac_lo= ac_hi=
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 # Binary search between lo and hi bounds.
2106 while test "x$ac_lo" != "x$ac_hi"; do
2107 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2110 $4
2111 int
2112 main ()
2113 {
2114 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2115 test_array [0] = 0
2116
2117 ;
2118 return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 ac_hi=$ac_mid
2123 else
2124 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 done
2128 case $ac_lo in #((
2129 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2130 '') ac_retval=1 ;;
2131 esac
2132 else
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2135 $4
2136 static long int longval () { return $2; }
2137 static unsigned long int ulongval () { return $2; }
2138 #include <stdio.h>
2139 #include <stdlib.h>
2140 int
2141 main ()
2142 {
2143
2144 FILE *f = fopen ("conftest.val", "w");
2145 if (! f)
2146 return 1;
2147 if (($2) < 0)
2148 {
2149 long int i = longval ();
2150 if (i != ($2))
2151 return 1;
2152 fprintf (f, "%ld", i);
2153 }
2154 else
2155 {
2156 unsigned long int i = ulongval ();
2157 if (i != ($2))
2158 return 1;
2159 fprintf (f, "%lu", i);
2160 }
2161 /* Do not output a trailing newline, as this causes \r\n confusion
2162 on some platforms. */
2163 return ferror (f) || fclose (f) != 0;
2164
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_run "$LINENO"; then :
2170 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2171 else
2172 ac_retval=1
2173 fi
2174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2175 conftest.$ac_objext conftest.beam conftest.$ac_ext
2176 rm -f conftest.val
2177
2178 fi
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180 return $ac_retval
2181
2182 } # ac_fn_c_compute_int
2183
2184 # ac_fn_c_check_func LINENO FUNC VAR
2185 # ----------------------------------
2186 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2187 ac_fn_c_check_func ()
2188 {
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 $as_echo_n "checking for $2... " >&6; }
2192 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2193 $as_echo_n "(cached) " >&6
2194 else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2197 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2199 #define $2 innocuous_$2
2200
2201 /* System header to define __stub macros and hopefully few prototypes,
2202 which can conflict with char $2 (); below.
2203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2204 <limits.h> exists even on freestanding compilers. */
2205
2206 #ifdef __STDC__
2207 # include <limits.h>
2208 #else
2209 # include <assert.h>
2210 #endif
2211
2212 #undef $2
2213
2214 /* Override any GCC internal prototype to avoid an error.
2215 Use char because int might match the return type of a GCC
2216 builtin and then its argument prototype would still apply. */
2217 #ifdef __cplusplus
2218 extern "C"
2219 #endif
2220 char $2 ();
2221 /* The GNU C library defines this for functions which it implements
2222 to always fail with ENOSYS. Some functions are actually named
2223 something starting with __ and the normal name is an alias. */
2224 #if defined __stub_$2 || defined __stub___$2
2225 choke me
2226 #endif
2227
2228 int
2229 main ()
2230 {
2231 return $2 ();
2232 ;
2233 return 0;
2234 }
2235 _ACEOF
2236 if ac_fn_c_try_link "$LINENO"; then :
2237 eval "$3=yes"
2238 else
2239 eval "$3=no"
2240 fi
2241 rm -f core conftest.err conftest.$ac_objext \
2242 conftest$ac_exeext conftest.$ac_ext
2243 fi
2244 eval ac_res=\$$3
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2248
2249 } # ac_fn_c_check_func
2250
2251 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2252 # -------------------------------------------
2253 # Tests whether TYPE exists after having included INCLUDES, setting cache
2254 # variable VAR accordingly.
2255 ac_fn_c_check_type ()
2256 {
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2261 $as_echo_n "(cached) " >&6
2262 else
2263 eval "$3=no"
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2266 $4
2267 int
2268 main ()
2269 {
2270 if (sizeof ($2))
2271 return 0;
2272 ;
2273 return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2279 $4
2280 int
2281 main ()
2282 {
2283 if (sizeof (($2)))
2284 return 0;
2285 ;
2286 return 0;
2287 }
2288 _ACEOF
2289 if ac_fn_c_try_compile "$LINENO"; then :
2290
2291 else
2292 eval "$3=yes"
2293 fi
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 fi
2298 eval ac_res=\$$3
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300 $as_echo "$ac_res" >&6; }
2301 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2302
2303 } # ac_fn_c_check_type
2304
2305 # ac_fn_c_check_decl LINENO SYMBOL VAR
2306 # ------------------------------------
2307 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2308 ac_fn_c_check_decl ()
2309 {
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 as_decl_name=`echo $2|sed 's/ *(.*//'`
2312 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2314 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2315 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2316 $as_echo_n "(cached) " >&6
2317 else
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2320 $4
2321 int
2322 main ()
2323 {
2324 #ifndef $as_decl_name
2325 #ifdef __cplusplus
2326 (void) $as_decl_use;
2327 #else
2328 (void) $as_decl_name;
2329 #endif
2330 #endif
2331
2332 ;
2333 return 0;
2334 }
2335 _ACEOF
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337 eval "$3=yes"
2338 else
2339 eval "$3=no"
2340 fi
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 fi
2343 eval ac_res=\$$3
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347
2348 } # ac_fn_c_check_decl
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 cat >config.log <<_ACEOF
2407 This file contains any messages produced by compilers while
2408 running configure, to aid debugging if configure makes a mistake.
2409
2410 It was created by $as_me, which was
2411 generated by GNU Autoconf 2.64. Invocation command line was
2412
2413 $ $0 $@
2414
2415 _ACEOF
2416 exec 5>>config.log
2417 {
2418 cat <<_ASUNAME
2419 ## --------- ##
2420 ## Platform. ##
2421 ## --------- ##
2422
2423 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2424 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2425 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2426 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2427 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2428
2429 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2430 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2431
2432 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2433 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2434 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2435 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2436 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2437 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2438 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2439
2440 _ASUNAME
2441
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 $as_echo "PATH: $as_dir"
2448 done
2449 IFS=$as_save_IFS
2450
2451 } >&5
2452
2453 cat >&5 <<_ACEOF
2454
2455
2456 ## ----------- ##
2457 ## Core tests. ##
2458 ## ----------- ##
2459
2460 _ACEOF
2461
2462
2463 # Keep a trace of the command line.
2464 # Strip out --no-create and --no-recursion so they do not pile up.
2465 # Strip out --silent because we don't want to record it for future runs.
2466 # Also quote any args containing shell meta-characters.
2467 # Make two passes to allow for proper duplicate-argument suppression.
2468 ac_configure_args=
2469 ac_configure_args0=
2470 ac_configure_args1=
2471 ac_must_keep_next=false
2472 for ac_pass in 1 2
2473 do
2474 for ac_arg
2475 do
2476 case $ac_arg in
2477 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2479 | -silent | --silent | --silen | --sile | --sil)
2480 continue ;;
2481 *\'*)
2482 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2483 esac
2484 case $ac_pass in
2485 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2486 2)
2487 as_fn_append ac_configure_args1 " '$ac_arg'"
2488 if test $ac_must_keep_next = true; then
2489 ac_must_keep_next=false # Got value, back to normal.
2490 else
2491 case $ac_arg in
2492 *=* | --config-cache | -C | -disable-* | --disable-* \
2493 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2494 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2495 | -with-* | --with-* | -without-* | --without-* | --x)
2496 case "$ac_configure_args0 " in
2497 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2498 esac
2499 ;;
2500 -* ) ac_must_keep_next=true ;;
2501 esac
2502 fi
2503 as_fn_append ac_configure_args " '$ac_arg'"
2504 ;;
2505 esac
2506 done
2507 done
2508 { ac_configure_args0=; unset ac_configure_args0;}
2509 { ac_configure_args1=; unset ac_configure_args1;}
2510
2511 # When interrupted or exit'd, cleanup temporary files, and complete
2512 # config.log. We remove comments because anyway the quotes in there
2513 # would cause problems or look ugly.
2514 # WARNING: Use '\'' to represent an apostrophe within the trap.
2515 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2516 trap 'exit_status=$?
2517 # Save into config.log some information that might help in debugging.
2518 {
2519 echo
2520
2521 cat <<\_ASBOX
2522 ## ---------------- ##
2523 ## Cache variables. ##
2524 ## ---------------- ##
2525 _ASBOX
2526 echo
2527 # The following way of writing the cache mishandles newlines in values,
2528 (
2529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2530 eval ac_val=\$$ac_var
2531 case $ac_val in #(
2532 *${as_nl}*)
2533 case $ac_var in #(
2534 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2536 esac
2537 case $ac_var in #(
2538 _ | IFS | as_nl) ;; #(
2539 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2540 *) { eval $ac_var=; unset $ac_var;} ;;
2541 esac ;;
2542 esac
2543 done
2544 (set) 2>&1 |
2545 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2546 *${as_nl}ac_space=\ *)
2547 sed -n \
2548 "s/'\''/'\''\\\\'\'''\''/g;
2549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2550 ;; #(
2551 *)
2552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2553 ;;
2554 esac |
2555 sort
2556 )
2557 echo
2558
2559 cat <<\_ASBOX
2560 ## ----------------- ##
2561 ## Output variables. ##
2562 ## ----------------- ##
2563 _ASBOX
2564 echo
2565 for ac_var in $ac_subst_vars
2566 do
2567 eval ac_val=\$$ac_var
2568 case $ac_val in
2569 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2570 esac
2571 $as_echo "$ac_var='\''$ac_val'\''"
2572 done | sort
2573 echo
2574
2575 if test -n "$ac_subst_files"; then
2576 cat <<\_ASBOX
2577 ## ------------------- ##
2578 ## File substitutions. ##
2579 ## ------------------- ##
2580 _ASBOX
2581 echo
2582 for ac_var in $ac_subst_files
2583 do
2584 eval ac_val=\$$ac_var
2585 case $ac_val in
2586 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2587 esac
2588 $as_echo "$ac_var='\''$ac_val'\''"
2589 done | sort
2590 echo
2591 fi
2592
2593 if test -s confdefs.h; then
2594 cat <<\_ASBOX
2595 ## ----------- ##
2596 ## confdefs.h. ##
2597 ## ----------- ##
2598 _ASBOX
2599 echo
2600 cat confdefs.h
2601 echo
2602 fi
2603 test "$ac_signal" != 0 &&
2604 $as_echo "$as_me: caught signal $ac_signal"
2605 $as_echo "$as_me: exit $exit_status"
2606 } >&5
2607 rm -f core *.core core.conftest.* &&
2608 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2609 exit $exit_status
2610 ' 0
2611 for ac_signal in 1 2 13 15; do
2612 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2613 done
2614 ac_signal=0
2615
2616 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2617 rm -f -r conftest* confdefs.h
2618
2619 $as_echo "/* confdefs.h */" > confdefs.h
2620
2621 # Predefined preprocessor variables.
2622
2623 cat >>confdefs.h <<_ACEOF
2624 #define PACKAGE_NAME "$PACKAGE_NAME"
2625 _ACEOF
2626
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2629 _ACEOF
2630
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2633 _ACEOF
2634
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_STRING "$PACKAGE_STRING"
2637 _ACEOF
2638
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2641 _ACEOF
2642
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_URL "$PACKAGE_URL"
2645 _ACEOF
2646
2647
2648 # Let the site file select an alternate cache file if it wants to.
2649 # Prefer an explicitly selected file to automatically selected ones.
2650 ac_site_file1=NONE
2651 ac_site_file2=NONE
2652 if test -n "$CONFIG_SITE"; then
2653 ac_site_file1=$CONFIG_SITE
2654 elif test "x$prefix" != xNONE; then
2655 ac_site_file1=$prefix/share/config.site
2656 ac_site_file2=$prefix/etc/config.site
2657 else
2658 ac_site_file1=$ac_default_prefix/share/config.site
2659 ac_site_file2=$ac_default_prefix/etc/config.site
2660 fi
2661 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2662 do
2663 test "x$ac_site_file" = xNONE && continue
2664 if test -r "$ac_site_file"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2666 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2667 sed 's/^/| /' "$ac_site_file" >&5
2668 . "$ac_site_file"
2669 fi
2670 done
2671
2672 if test -r "$cache_file"; then
2673 # Some versions of bash will fail to source /dev/null (special
2674 # files actually), so we avoid doing that.
2675 if test -f "$cache_file"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2677 $as_echo "$as_me: loading cache $cache_file" >&6;}
2678 case $cache_file in
2679 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2680 *) . "./$cache_file";;
2681 esac
2682 fi
2683 else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2685 $as_echo "$as_me: creating cache $cache_file" >&6;}
2686 >$cache_file
2687 fi
2688
2689 # Check that the precious variables saved in the cache have kept the same
2690 # value.
2691 ac_cache_corrupted=false
2692 for ac_var in $ac_precious_vars; do
2693 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2694 eval ac_new_set=\$ac_env_${ac_var}_set
2695 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2696 eval ac_new_val=\$ac_env_${ac_var}_value
2697 case $ac_old_set,$ac_new_set in
2698 set,)
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2700 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2701 ac_cache_corrupted=: ;;
2702 ,set)
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2704 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2705 ac_cache_corrupted=: ;;
2706 ,);;
2707 *)
2708 if test "x$ac_old_val" != "x$ac_new_val"; then
2709 # differences in whitespace do not lead to failure.
2710 ac_old_val_w=`echo x $ac_old_val`
2711 ac_new_val_w=`echo x $ac_new_val`
2712 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2714 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2715 ac_cache_corrupted=:
2716 else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2718 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2719 eval $ac_var=\$ac_old_val
2720 fi
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2722 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2724 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2725 fi;;
2726 esac
2727 # Pass precious variables to config.status.
2728 if test "$ac_new_set" = set; then
2729 case $ac_new_val in
2730 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2731 *) ac_arg=$ac_var=$ac_new_val ;;
2732 esac
2733 case " $ac_configure_args " in
2734 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2735 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2736 esac
2737 fi
2738 done
2739 if $ac_cache_corrupted; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2743 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2744 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2745 fi
2746 ## -------------------- ##
2747 ## Main body of script. ##
2748 ## -------------------- ##
2749
2750 ac_ext=c
2751 ac_cpp='$CPP $CPPFLAGS'
2752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755
2756
2757
2758
2759
2760 ac_config_headers="$ac_config_headers config.h:config.in"
2761
2762
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2764 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2765 # Check whether --enable-maintainer-mode was given.
2766 if test "${enable_maintainer_mode+set}" = set; then :
2767 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2768 else
2769 USE_MAINTAINER_MODE=no
2770 fi
2771
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2773 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2774 if test $USE_MAINTAINER_MODE = yes; then
2775 MAINTAINER_MODE_TRUE=
2776 MAINTAINER_MODE_FALSE='#'
2777 else
2778 MAINTAINER_MODE_TRUE='#'
2779 MAINTAINER_MODE_FALSE=
2780 fi
2781
2782 MAINT=$MAINTAINER_MODE_TRUE
2783
2784
2785
2786 # Set the 'development' global.
2787 . $srcdir/../bfd/development.sh
2788
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if test "${ac_cv_prog_CC+set}" = set; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2815 fi
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820 fi
2821 fi
2822 CC=$ac_cv_prog_CC
2823 if test -n "$CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825 $as_echo "$CC" >&6; }
2826 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2829 fi
2830
2831
2832 fi
2833 if test -z "$ac_cv_prog_CC"; then
2834 ac_ct_CC=$CC
2835 # Extract the first word of "gcc", so it can be a program name with args.
2836 set dummy gcc; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$ac_ct_CC"; then
2843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_ac_ct_CC="gcc"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863 if test -n "$ac_ct_CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2865 $as_echo "$ac_ct_CC" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871 if test "x$ac_ct_CC" = x; then
2872 CC=""
2873 else
2874 case $cross_compiling:$ac_tool_warned in
2875 yes:)
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned=yes ;;
2879 esac
2880 CC=$ac_ct_CC
2881 fi
2882 else
2883 CC="$ac_cv_prog_CC"
2884 fi
2885
2886 if test -z "$CC"; then
2887 if test -n "$ac_tool_prefix"; then
2888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2889 set dummy ${ac_tool_prefix}cc; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if test "${ac_cv_prog_CC+set}" = set; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 if test -n "$CC"; then
2896 ac_cv_prog_CC="$CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905 ac_cv_prog_CC="${ac_tool_prefix}cc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 CC=$ac_cv_prog_CC
2916 if test -n "$CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918 $as_echo "$CC" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2923
2924
2925 fi
2926 fi
2927 if test -z "$CC"; then
2928 # Extract the first word of "cc", so it can be a program name with args.
2929 set dummy cc; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if test "${ac_cv_prog_CC+set}" = set; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 else
2938 ac_prog_rejected=no
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2947 ac_prog_rejected=yes
2948 continue
2949 fi
2950 ac_cv_prog_CC="cc"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2957
2958 if test $ac_prog_rejected = yes; then
2959 # We found a bogon in the path, so make sure we never use it.
2960 set dummy $ac_cv_prog_CC
2961 shift
2962 if test $# != 0; then
2963 # We chose a different compiler from the bogus one.
2964 # However, it has the same basename, so the bogon will be chosen
2965 # first if we set CC to just the basename; use the full file name.
2966 shift
2967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2968 fi
2969 fi
2970 fi
2971 fi
2972 CC=$ac_cv_prog_CC
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982 fi
2983 if test -z "$CC"; then
2984 if test -n "$ac_tool_prefix"; then
2985 for ac_prog in cl.exe
2986 do
2987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if test "${ac_cv_prog_CC+set}" = set; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2996 else
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 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008 done
3009 done
3010 IFS=$as_save_IFS
3011
3012 fi
3013 fi
3014 CC=$ac_cv_prog_CC
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023
3024 test -n "$CC" && break
3025 done
3026 fi
3027 if test -z "$CC"; then
3028 ac_ct_CC=$CC
3029 for ac_prog in cl.exe
3030 do
3031 # Extract the first word of "$ac_prog", so it can be a program name with args.
3032 set dummy $ac_prog; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3036 $as_echo_n "(cached) " >&6
3037 else
3038 if test -n "$ac_ct_CC"; then
3039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_ac_ct_CC="$ac_prog"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3051 fi
3052 done
3053 done
3054 IFS=$as_save_IFS
3055
3056 fi
3057 fi
3058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3059 if test -n "$ac_ct_CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3061 $as_echo "$ac_ct_CC" >&6; }
3062 else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 fi
3066
3067
3068 test -n "$ac_ct_CC" && break
3069 done
3070
3071 if test "x$ac_ct_CC" = x; then
3072 CC=""
3073 else
3074 case $cross_compiling:$ac_tool_warned in
3075 yes:)
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078 ac_tool_warned=yes ;;
3079 esac
3080 CC=$ac_ct_CC
3081 fi
3082 fi
3083
3084 fi
3085
3086
3087 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089 as_fn_error "no acceptable C compiler found in \$PATH
3090 See \`config.log' for more details." "$LINENO" 5; }
3091
3092 # Provide some information about the compiler.
3093 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3094 set X $ac_compile
3095 ac_compiler=$2
3096 for ac_option in --version -v -V -qversion; do
3097 { { ac_try="$ac_compiler $ac_option >&5"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3105 ac_status=$?
3106 if test -s conftest.err; then
3107 sed '10a\
3108 ... rest of stderr output deleted ...
3109 10q' conftest.err >conftest.er1
3110 cat conftest.er1 >&5
3111 rm -f conftest.er1 conftest.err
3112 fi
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }
3115 done
3116
3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118 /* end confdefs.h. */
3119
3120 int
3121 main ()
3122 {
3123
3124 ;
3125 return 0;
3126 }
3127 _ACEOF
3128 ac_clean_files_save=$ac_clean_files
3129 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3130 # Try to create an executable without -o first, disregard a.out.
3131 # It will help us diagnose broken compilers, and finding out an intuition
3132 # of exeext.
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3134 $as_echo_n "checking for C compiler default output file name... " >&6; }
3135 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3136
3137 # The possible output files:
3138 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3139
3140 ac_rmfiles=
3141 for ac_file in $ac_files
3142 do
3143 case $ac_file in
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3145 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3146 esac
3147 done
3148 rm -f $ac_rmfiles
3149
3150 if { { ac_try="$ac_link_default"
3151 case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_link_default") 2>&5
3158 ac_status=$?
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }; then :
3161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3163 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3164 # so that the user can short-circuit this test for compilers unknown to
3165 # Autoconf.
3166 for ac_file in $ac_files ''
3167 do
3168 test -f "$ac_file" || continue
3169 case $ac_file in
3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3171 ;;
3172 [ab].out )
3173 # We found the default executable, but exeext='' is most
3174 # certainly right.
3175 break;;
3176 *.* )
3177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3178 then :; else
3179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3180 fi
3181 # We set ac_cv_exeext here because the later test for it is not
3182 # safe: cross compilers may not add the suffix if given an `-o'
3183 # argument, so we may need to know it at that point already.
3184 # Even if this section looks crufty: it has the advantage of
3185 # actually working.
3186 break;;
3187 * )
3188 break;;
3189 esac
3190 done
3191 test "$ac_cv_exeext" = no && ac_cv_exeext=
3192
3193 else
3194 ac_file=''
3195 fi
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3197 $as_echo "$ac_file" >&6; }
3198 if test -z "$ac_file"; then :
3199 $as_echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 { as_fn_set_status 77
3205 as_fn_error "C compiler cannot create executables
3206 See \`config.log' for more details." "$LINENO" 5; }; }
3207 fi
3208 ac_exeext=$ac_cv_exeext
3209
3210 # Check that the compiler produces executables we can run. If not, either
3211 # the compiler is broken, or we cross compile.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3213 $as_echo_n "checking whether the C compiler works... " >&6; }
3214 # If not cross compiling, check that we can run a simple program.
3215 if test "$cross_compiling" != yes; then
3216 if { ac_try='./$ac_file'
3217 { { case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220 esac
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_try") 2>&5
3224 ac_status=$?
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }; }; then
3227 cross_compiling=no
3228 else
3229 if test "$cross_compiling" = maybe; then
3230 cross_compiling=yes
3231 else
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error "cannot run C compiled programs.
3235 If you meant to cross compile, use \`--host'.
3236 See \`config.log' for more details." "$LINENO" 5; }
3237 fi
3238 fi
3239 fi
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3242
3243 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3244 ac_clean_files=$ac_clean_files_save
3245 # Check that the compiler produces executables we can run. If not, either
3246 # the compiler is broken, or we cross compile.
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3248 $as_echo_n "checking whether we are cross compiling... " >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3250 $as_echo "$cross_compiling" >&6; }
3251
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3253 $as_echo_n "checking for suffix of executables... " >&6; }
3254 if { { ac_try="$ac_link"
3255 case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 $as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_link") 2>&5
3262 ac_status=$?
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; then :
3265 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3266 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3267 # work properly (i.e., refer to `conftest.exe'), while it won't with
3268 # `rm'.
3269 for ac_file in conftest.exe conftest conftest.*; do
3270 test -f "$ac_file" || continue
3271 case $ac_file in
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3274 break;;
3275 * ) break;;
3276 esac
3277 done
3278 else
3279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error "cannot compute suffix of executables: cannot compile and link
3282 See \`config.log' for more details." "$LINENO" 5; }
3283 fi
3284 rm -f conftest$ac_cv_exeext
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3286 $as_echo "$ac_cv_exeext" >&6; }
3287
3288 rm -f conftest.$ac_ext
3289 EXEEXT=$ac_cv_exeext
3290 ac_exeext=$EXEEXT
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3292 $as_echo_n "checking for suffix of object files... " >&6; }
3293 if test "${ac_cv_objext+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3298
3299 int
3300 main ()
3301 {
3302
3303 ;
3304 return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.o conftest.obj
3308 if { { ac_try="$ac_compile"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_compile") 2>&5
3316 ac_status=$?
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }; then :
3319 for ac_file in conftest.o conftest.obj conftest.*; do
3320 test -f "$ac_file" || continue;
3321 case $ac_file in
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3323 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3324 break;;
3325 esac
3326 done
3327 else
3328 $as_echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error "cannot compute suffix of object files: cannot compile
3334 See \`config.log' for more details." "$LINENO" 5; }
3335 fi
3336 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3337 fi
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3339 $as_echo "$ac_cv_objext" >&6; }
3340 OBJEXT=$ac_cv_objext
3341 ac_objext=$OBJEXT
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3343 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3344 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3345 $as_echo_n "(cached) " >&6
3346 else
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3349
3350 int
3351 main ()
3352 {
3353 #ifndef __GNUC__
3354 choke me
3355 #endif
3356
3357 ;
3358 return 0;
3359 }
3360 _ACEOF
3361 if ac_fn_c_try_compile "$LINENO"; then :
3362 ac_compiler_gnu=yes
3363 else
3364 ac_compiler_gnu=no
3365 fi
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3368
3369 fi
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3371 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3372 if test $ac_compiler_gnu = yes; then
3373 GCC=yes
3374 else
3375 GCC=
3376 fi
3377 ac_test_CFLAGS=${CFLAGS+set}
3378 ac_save_CFLAGS=$CFLAGS
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3380 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3381 if test "${ac_cv_prog_cc_g+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 ac_save_c_werror_flag=$ac_c_werror_flag
3385 ac_c_werror_flag=yes
3386 ac_cv_prog_cc_g=no
3387 CFLAGS="-g"
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3390
3391 int
3392 main ()
3393 {
3394
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 if ac_fn_c_try_compile "$LINENO"; then :
3400 ac_cv_prog_cc_g=yes
3401 else
3402 CFLAGS=""
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405
3406 int
3407 main ()
3408 {
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415
3416 else
3417 ac_c_werror_flag=$ac_save_c_werror_flag
3418 CFLAGS="-g"
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421
3422 int
3423 main ()
3424 {
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"; then :
3431 ac_cv_prog_cc_g=yes
3432 fi
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 fi
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 fi
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 ac_c_werror_flag=$ac_save_c_werror_flag
3439 fi
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3441 $as_echo "$ac_cv_prog_cc_g" >&6; }
3442 if test "$ac_test_CFLAGS" = set; then
3443 CFLAGS=$ac_save_CFLAGS
3444 elif test $ac_cv_prog_cc_g = yes; then
3445 if test "$GCC" = yes; then
3446 CFLAGS="-g -O2"
3447 else
3448 CFLAGS="-g"
3449 fi
3450 else
3451 if test "$GCC" = yes; then
3452 CFLAGS="-O2"
3453 else
3454 CFLAGS=
3455 fi
3456 fi
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3458 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3459 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 ac_cv_prog_cc_c89=no
3463 ac_save_CC=$CC
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466 #include <stdarg.h>
3467 #include <stdio.h>
3468 #include <sys/types.h>
3469 #include <sys/stat.h>
3470 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3471 struct buf { int x; };
3472 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3473 static char *e (p, i)
3474 char **p;
3475 int i;
3476 {
3477 return p[i];
3478 }
3479 static char *f (char * (*g) (char **, int), char **p, ...)
3480 {
3481 char *s;
3482 va_list v;
3483 va_start (v,p);
3484 s = g (p, va_arg (v,int));
3485 va_end (v);
3486 return s;
3487 }
3488
3489 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3490 function prototypes and stuff, but not '\xHH' hex character constants.
3491 These don't provoke an error unfortunately, instead are silently treated
3492 as 'x'. The following induces an error, until -std is added to get
3493 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3494 array size at least. It's necessary to write '\x00'==0 to get something
3495 that's true only with -std. */
3496 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3497
3498 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3499 inside strings and character constants. */
3500 #define FOO(x) 'x'
3501 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3502
3503 int test (int i, double x);
3504 struct s1 {int (*f) (int a);};
3505 struct s2 {int (*f) (double a);};
3506 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3507 int argc;
3508 char **argv;
3509 int
3510 main ()
3511 {
3512 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3513 ;
3514 return 0;
3515 }
3516 _ACEOF
3517 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3518 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3519 do
3520 CC="$ac_save_CC $ac_arg"
3521 if ac_fn_c_try_compile "$LINENO"; then :
3522 ac_cv_prog_cc_c89=$ac_arg
3523 fi
3524 rm -f core conftest.err conftest.$ac_objext
3525 test "x$ac_cv_prog_cc_c89" != "xno" && break
3526 done
3527 rm -f conftest.$ac_ext
3528 CC=$ac_save_CC
3529
3530 fi
3531 # AC_CACHE_VAL
3532 case "x$ac_cv_prog_cc_c89" in
3533 x)
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3535 $as_echo "none needed" >&6; } ;;
3536 xno)
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3538 $as_echo "unsupported" >&6; } ;;
3539 *)
3540 CC="$CC $ac_cv_prog_cc_c89"
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3542 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3543 esac
3544 if test "x$ac_cv_prog_cc_c89" != xno; then :
3545
3546 fi
3547
3548 ac_ext=c
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553
3554 ac_ext=cpp
3555 ac_cpp='$CXXCPP $CPPFLAGS'
3556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3559 if test -z "$CXX"; then
3560 if test -n "$CCC"; then
3561 CXX=$CCC
3562 else
3563 if test -n "$ac_tool_prefix"; then
3564 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3565 do
3566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_CXX+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 if test -n "$CXX"; then
3574 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587 done
3588 done
3589 IFS=$as_save_IFS
3590
3591 fi
3592 fi
3593 CXX=$ac_cv_prog_CXX
3594 if test -n "$CXX"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3596 $as_echo "$CXX" >&6; }
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3600 fi
3601
3602
3603 test -n "$CXX" && break
3604 done
3605 fi
3606 if test -z "$CXX"; then
3607 ac_ct_CXX=$CXX
3608 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3609 do
3610 # Extract the first word of "$ac_prog", so it can be a program name with args.
3611 set dummy $ac_prog; ac_word=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3615 $as_echo_n "(cached) " >&6
3616 else
3617 if test -n "$ac_ct_CXX"; then
3618 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3627 ac_cv_prog_ac_ct_CXX="$ac_prog"
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 break 2
3630 fi
3631 done
3632 done
3633 IFS=$as_save_IFS
3634
3635 fi
3636 fi
3637 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3638 if test -n "$ac_ct_CXX"; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3640 $as_echo "$ac_ct_CXX" >&6; }
3641 else
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3644 fi
3645
3646
3647 test -n "$ac_ct_CXX" && break
3648 done
3649
3650 if test "x$ac_ct_CXX" = x; then
3651 CXX="g++"
3652 else
3653 case $cross_compiling:$ac_tool_warned in
3654 yes:)
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned=yes ;;
3658 esac
3659 CXX=$ac_ct_CXX
3660 fi
3661 fi
3662
3663 fi
3664 fi
3665 # Provide some information about the compiler.
3666 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3667 set X $ac_compile
3668 ac_compiler=$2
3669 for ac_option in --version -v -V -qversion; do
3670 { { ac_try="$ac_compiler $ac_option >&5"
3671 case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3678 ac_status=$?
3679 if test -s conftest.err; then
3680 sed '10a\
3681 ... rest of stderr output deleted ...
3682 10q' conftest.err >conftest.er1
3683 cat conftest.er1 >&5
3684 rm -f conftest.er1 conftest.err
3685 fi
3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }
3688 done
3689
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3691 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3692 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 int
3699 main ()
3700 {
3701 #ifndef __GNUC__
3702 choke me
3703 #endif
3704
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 if ac_fn_cxx_try_compile "$LINENO"; then :
3710 ac_compiler_gnu=yes
3711 else
3712 ac_compiler_gnu=no
3713 fi
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3716
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3719 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3720 if test $ac_compiler_gnu = yes; then
3721 GXX=yes
3722 else
3723 GXX=
3724 fi
3725 ac_test_CXXFLAGS=${CXXFLAGS+set}
3726 ac_save_CXXFLAGS=$CXXFLAGS
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3728 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3729 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3733 ac_cxx_werror_flag=yes
3734 ac_cv_prog_cxx_g=no
3735 CXXFLAGS="-g"
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 int
3740 main ()
3741 {
3742
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 if ac_fn_cxx_try_compile "$LINENO"; then :
3748 ac_cv_prog_cxx_g=yes
3749 else
3750 CXXFLAGS=""
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3753
3754 int
3755 main ()
3756 {
3757
3758 ;
3759 return 0;
3760 }
3761 _ACEOF
3762 if ac_fn_cxx_try_compile "$LINENO"; then :
3763
3764 else
3765 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3766 CXXFLAGS="-g"
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769
3770 int
3771 main ()
3772 {
3773
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 if ac_fn_cxx_try_compile "$LINENO"; then :
3779 ac_cv_prog_cxx_g=yes
3780 fi
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 fi
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 fi
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3789 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3790 if test "$ac_test_CXXFLAGS" = set; then
3791 CXXFLAGS=$ac_save_CXXFLAGS
3792 elif test $ac_cv_prog_cxx_g = yes; then
3793 if test "$GXX" = yes; then
3794 CXXFLAGS="-g -O2"
3795 else
3796 CXXFLAGS="-g"
3797 fi
3798 else
3799 if test "$GXX" = yes; then
3800 CXXFLAGS="-O2"
3801 else
3802 CXXFLAGS=
3803 fi
3804 fi
3805 ac_ext=c
3806 ac_cpp='$CPP $CPPFLAGS'
3807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810
3811
3812
3813 ac_ext=c
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3819 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3820 # On Suns, sometimes $CPP names a directory.
3821 if test -n "$CPP" && test -d "$CPP"; then
3822 CPP=
3823 fi
3824 if test -z "$CPP"; then
3825 if test "${ac_cv_prog_CPP+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 # Double quotes because CPP needs to be expanded
3829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3830 do
3831 ac_preproc_ok=false
3832 for ac_c_preproc_warn_flag in '' yes
3833 do
3834 # Use a header file that comes with gcc, so configuring glibc
3835 # with a fresh cross-compiler works.
3836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3837 # <limits.h> exists even on freestanding compilers.
3838 # On the NeXT, cc -E runs the code through the compiler's parser,
3839 # not just through cpp. "Syntax error" is here to catch this case.
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #ifdef __STDC__
3843 # include <limits.h>
3844 #else
3845 # include <assert.h>
3846 #endif
3847 Syntax error
3848 _ACEOF
3849 if ac_fn_c_try_cpp "$LINENO"; then :
3850
3851 else
3852 # Broken: fails on valid input.
3853 continue
3854 fi
3855 rm -f conftest.err conftest.$ac_ext
3856
3857 # OK, works on sane cases. Now check whether nonexistent headers
3858 # can be detected and how.
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861 #include <ac_nonexistent.h>
3862 _ACEOF
3863 if ac_fn_c_try_cpp "$LINENO"; then :
3864 # Broken: success on invalid input.
3865 continue
3866 else
3867 # Passes both tests.
3868 ac_preproc_ok=:
3869 break
3870 fi
3871 rm -f conftest.err conftest.$ac_ext
3872
3873 done
3874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3875 rm -f conftest.err conftest.$ac_ext
3876 if $ac_preproc_ok; then :
3877 break
3878 fi
3879
3880 done
3881 ac_cv_prog_CPP=$CPP
3882
3883 fi
3884 CPP=$ac_cv_prog_CPP
3885 else
3886 ac_cv_prog_CPP=$CPP
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3889 $as_echo "$CPP" >&6; }
3890 ac_preproc_ok=false
3891 for ac_c_preproc_warn_flag in '' yes
3892 do
3893 # Use a header file that comes with gcc, so configuring glibc
3894 # with a fresh cross-compiler works.
3895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3896 # <limits.h> exists even on freestanding compilers.
3897 # On the NeXT, cc -E runs the code through the compiler's parser,
3898 # not just through cpp. "Syntax error" is here to catch this case.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901 #ifdef __STDC__
3902 # include <limits.h>
3903 #else
3904 # include <assert.h>
3905 #endif
3906 Syntax error
3907 _ACEOF
3908 if ac_fn_c_try_cpp "$LINENO"; then :
3909
3910 else
3911 # Broken: fails on valid input.
3912 continue
3913 fi
3914 rm -f conftest.err conftest.$ac_ext
3915
3916 # OK, works on sane cases. Now check whether nonexistent headers
3917 # can be detected and how.
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #include <ac_nonexistent.h>
3921 _ACEOF
3922 if ac_fn_c_try_cpp "$LINENO"; then :
3923 # Broken: success on invalid input.
3924 continue
3925 else
3926 # Passes both tests.
3927 ac_preproc_ok=:
3928 break
3929 fi
3930 rm -f conftest.err conftest.$ac_ext
3931
3932 done
3933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3934 rm -f conftest.err conftest.$ac_ext
3935 if $ac_preproc_ok; then :
3936
3937 else
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3941 See \`config.log' for more details." "$LINENO" 5; }
3942 fi
3943
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949
3950
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3952 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3953 if test "${ac_cv_path_GREP+set}" = set; then :
3954 $as_echo_n "(cached) " >&6
3955 else
3956 if test -z "$GREP"; then
3957 ac_path_GREP_found=false
3958 # Loop through the user's path and test for each of PROGNAME-LIST
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961 do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_prog in grep ggrep; do
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3967 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3968 # Check for GNU ac_path_GREP and select it if it is found.
3969 # Check for GNU $ac_path_GREP
3970 case `"$ac_path_GREP" --version 2>&1` in
3971 *GNU*)
3972 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3973 *)
3974 ac_count=0
3975 $as_echo_n 0123456789 >"conftest.in"
3976 while :
3977 do
3978 cat "conftest.in" "conftest.in" >"conftest.tmp"
3979 mv "conftest.tmp" "conftest.in"
3980 cp "conftest.in" "conftest.nl"
3981 $as_echo 'GREP' >> "conftest.nl"
3982 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984 as_fn_arith $ac_count + 1 && ac_count=$as_val
3985 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3986 # Best one so far, save it but keep looking for a better one
3987 ac_cv_path_GREP="$ac_path_GREP"
3988 ac_path_GREP_max=$ac_count
3989 fi
3990 # 10*(2^10) chars as input seems more than enough
3991 test $ac_count -gt 10 && break
3992 done
3993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994 esac
3995
3996 $ac_path_GREP_found && break 3
3997 done
3998 done
3999 done
4000 IFS=$as_save_IFS
4001 if test -z "$ac_cv_path_GREP"; then
4002 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4003 fi
4004 else
4005 ac_cv_path_GREP=$GREP
4006 fi
4007
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4010 $as_echo "$ac_cv_path_GREP" >&6; }
4011 GREP="$ac_cv_path_GREP"
4012
4013
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4015 $as_echo_n "checking for egrep... " >&6; }
4016 if test "${ac_cv_path_EGREP+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020 then ac_cv_path_EGREP="$GREP -E"
4021 else
4022 if test -z "$EGREP"; then
4023 ac_path_EGREP_found=false
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027 do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_prog in egrep; do
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4033 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4034 # Check for GNU ac_path_EGREP and select it if it is found.
4035 # Check for GNU $ac_path_EGREP
4036 case `"$ac_path_EGREP" --version 2>&1` in
4037 *GNU*)
4038 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4039 *)
4040 ac_count=0
4041 $as_echo_n 0123456789 >"conftest.in"
4042 while :
4043 do
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
4047 $as_echo 'EGREP' >> "conftest.nl"
4048 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050 as_fn_arith $ac_count + 1 && ac_count=$as_val
4051 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_EGREP="$ac_path_EGREP"
4054 ac_path_EGREP_max=$ac_count
4055 fi
4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4058 done
4059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060 esac
4061
4062 $ac_path_EGREP_found && break 3
4063 done
4064 done
4065 done
4066 IFS=$as_save_IFS
4067 if test -z "$ac_cv_path_EGREP"; then
4068 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4069 fi
4070 else
4071 ac_cv_path_EGREP=$EGREP
4072 fi
4073
4074 fi
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4077 $as_echo "$ac_cv_path_EGREP" >&6; }
4078 EGREP="$ac_cv_path_EGREP"
4079
4080
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4082 $as_echo_n "checking for ANSI C header files... " >&6; }
4083 if test "${ac_cv_header_stdc+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088 #include <stdlib.h>
4089 #include <stdarg.h>
4090 #include <string.h>
4091 #include <float.h>
4092
4093 int
4094 main ()
4095 {
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_cv_header_stdc=yes
4103 else
4104 ac_cv_header_stdc=no
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107
4108 if test $ac_cv_header_stdc = yes; then
4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 #include <string.h>
4113
4114 _ACEOF
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116 $EGREP "memchr" >/dev/null 2>&1; then :
4117
4118 else
4119 ac_cv_header_stdc=no
4120 fi
4121 rm -f conftest*
4122
4123 fi
4124
4125 if test $ac_cv_header_stdc = yes; then
4126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129 #include <stdlib.h>
4130
4131 _ACEOF
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "free" >/dev/null 2>&1; then :
4134
4135 else
4136 ac_cv_header_stdc=no
4137 fi
4138 rm -f conftest*
4139
4140 fi
4141
4142 if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144 if test "$cross_compiling" = yes; then :
4145 :
4146 else
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 #include <ctype.h>
4150 #include <stdlib.h>
4151 #if ((' ' & 0x0FF) == 0x020)
4152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4154 #else
4155 # define ISLOWER(c) \
4156 (('a' <= (c) && (c) <= 'i') \
4157 || ('j' <= (c) && (c) <= 'r') \
4158 || ('s' <= (c) && (c) <= 'z'))
4159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4160 #endif
4161
4162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4163 int
4164 main ()
4165 {
4166 int i;
4167 for (i = 0; i < 256; i++)
4168 if (XOR (islower (i), ISLOWER (i))
4169 || toupper (i) != TOUPPER (i))
4170 return 2;
4171 return 0;
4172 }
4173 _ACEOF
4174 if ac_fn_c_try_run "$LINENO"; then :
4175
4176 else
4177 ac_cv_header_stdc=no
4178 fi
4179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4180 conftest.$ac_objext conftest.beam conftest.$ac_ext
4181 fi
4182
4183 fi
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4186 $as_echo "$ac_cv_header_stdc" >&6; }
4187 if test $ac_cv_header_stdc = yes; then
4188
4189 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4190
4191 fi
4192
4193 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4194 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4195 inttypes.h stdint.h unistd.h
4196 do :
4197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4198 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4199 "
4200 eval as_val=\$$as_ac_Header
4201 if test "x$as_val" = x""yes; then :
4202 cat >>confdefs.h <<_ACEOF
4203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4204 _ACEOF
4205
4206 fi
4207
4208 done
4209
4210
4211
4212 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4213 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4214 MINIX=yes
4215 else
4216 MINIX=
4217 fi
4218
4219
4220 if test "$MINIX" = yes; then
4221
4222 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4223
4224
4225 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4226
4227
4228 $as_echo "#define _MINIX 1" >>confdefs.h
4229
4230 fi
4231
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4234 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4235 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240
4241 # define __EXTENSIONS__ 1
4242 $ac_includes_default
4243 int
4244 main ()
4245 {
4246
4247 ;
4248 return 0;
4249 }
4250 _ACEOF
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_safe_to_define___extensions__=yes
4253 else
4254 ac_cv_safe_to_define___extensions__=no
4255 fi
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4259 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4260 test $ac_cv_safe_to_define___extensions__ = yes &&
4261 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4262
4263 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4264
4265 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4266
4267 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4268
4269 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4270
4271
4272 ac_aux_dir=
4273 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4274 for ac_t in install-sh install.sh shtool; do
4275 if test -f "$ac_dir/$ac_t"; then
4276 ac_aux_dir=$ac_dir
4277 ac_install_sh="$ac_aux_dir/$ac_t -c"
4278 break 2
4279 fi
4280 done
4281 done
4282 if test -z "$ac_aux_dir"; then
4283 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4284 fi
4285
4286 # These three variables are undocumented and unsupported,
4287 # and are intended to be withdrawn in a future Autoconf release.
4288 # They can cause serious problems if a builder's source tree is in a directory
4289 # whose full name contains unusual characters.
4290 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4291 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4292 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4293
4294
4295 # Make sure we can run config.sub.
4296 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4297 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4298
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4300 $as_echo_n "checking build system type... " >&6; }
4301 if test "${ac_cv_build+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 ac_build_alias=$build_alias
4305 test "x$ac_build_alias" = x &&
4306 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4307 test "x$ac_build_alias" = x &&
4308 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4309 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4310 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4311
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4314 $as_echo "$ac_cv_build" >&6; }
4315 case $ac_cv_build in
4316 *-*-*) ;;
4317 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4318 esac
4319 build=$ac_cv_build
4320 ac_save_IFS=$IFS; IFS='-'
4321 set x $ac_cv_build
4322 shift
4323 build_cpu=$1
4324 build_vendor=$2
4325 shift; shift
4326 # Remember, the first character of IFS is used to create $*,
4327 # except with old shells:
4328 build_os=$*
4329 IFS=$ac_save_IFS
4330 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4331
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4334 $as_echo_n "checking host system type... " >&6; }
4335 if test "${ac_cv_host+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test "x$host_alias" = x; then
4339 ac_cv_host=$ac_cv_build
4340 else
4341 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4342 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4343 fi
4344
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4347 $as_echo "$ac_cv_host" >&6; }
4348 case $ac_cv_host in
4349 *-*-*) ;;
4350 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4351 esac
4352 host=$ac_cv_host
4353 ac_save_IFS=$IFS; IFS='-'
4354 set x $ac_cv_host
4355 shift
4356 host_cpu=$1
4357 host_vendor=$2
4358 shift; shift
4359 # Remember, the first character of IFS is used to create $*,
4360 # except with old shells:
4361 host_os=$*
4362 IFS=$ac_save_IFS
4363 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4364
4365
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4367 $as_echo_n "checking target system type... " >&6; }
4368 if test "${ac_cv_target+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 if test "x$target_alias" = x; then
4372 ac_cv_target=$ac_cv_host
4373 else
4374 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4375 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4376 fi
4377
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4380 $as_echo "$ac_cv_target" >&6; }
4381 case $ac_cv_target in
4382 *-*-*) ;;
4383 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4384 esac
4385 target=$ac_cv_target
4386 ac_save_IFS=$IFS; IFS='-'
4387 set x $ac_cv_target
4388 shift
4389 target_cpu=$1
4390 target_vendor=$2
4391 shift; shift
4392 # Remember, the first character of IFS is used to create $*,
4393 # except with old shells:
4394 target_os=$*
4395 IFS=$ac_save_IFS
4396 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4397
4398
4399 # The aliases save the names the user supplied, while $host etc.
4400 # will get canonicalized.
4401 test -n "$target_alias" &&
4402 test "$program_prefix$program_suffix$program_transform_name" = \
4403 NONENONEs,x,x, &&
4404 program_prefix=${target_alias}-
4405
4406 # The tests for host and target for $enable_largefile require
4407 # canonical names.
4408
4409
4410
4411 # As the $enable_largefile decision depends on --enable-plugins we must set it
4412 # even in directories otherwise not depending on the $plugins option.
4413
4414
4415 maybe_plugins=no
4416 for ac_header in dlfcn.h
4417 do :
4418 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4419 "
4420 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4421 cat >>confdefs.h <<_ACEOF
4422 #define HAVE_DLFCN_H 1
4423 _ACEOF
4424 maybe_plugins=yes
4425 fi
4426
4427 done
4428
4429 for ac_header in windows.h
4430 do :
4431 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4432 "
4433 if test "x$ac_cv_header_windows_h" = x""yes; then :
4434 cat >>confdefs.h <<_ACEOF
4435 #define HAVE_WINDOWS_H 1
4436 _ACEOF
4437 maybe_plugins=yes
4438 fi
4439
4440 done
4441
4442
4443 # Check whether --enable-plugins was given.
4444 if test "${enable_plugins+set}" = set; then :
4445 enableval=$enable_plugins; case "${enableval}" in
4446 no) plugins=no ;;
4447 *) plugins=yes
4448 if test "$maybe_plugins" != "yes" ; then
4449 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4450 fi ;;
4451 esac
4452 else
4453 plugins=$maybe_plugins
4454
4455 fi
4456
4457 if test "$plugins" = "yes"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4459 $as_echo_n "checking for library containing dlopen... " >&6; }
4460 if test "${ac_cv_search_dlopen+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 ac_func_search_save_LIBS=$LIBS
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466
4467 /* Override any GCC internal prototype to avoid an error.
4468 Use char because int might match the return type of a GCC
4469 builtin and then its argument prototype would still apply. */
4470 #ifdef __cplusplus
4471 extern "C"
4472 #endif
4473 char dlopen ();
4474 int
4475 main ()
4476 {
4477 return dlopen ();
4478 ;
4479 return 0;
4480 }
4481 _ACEOF
4482 for ac_lib in '' dl; do
4483 if test -z "$ac_lib"; then
4484 ac_res="none required"
4485 else
4486 ac_res=-l$ac_lib
4487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4488 fi
4489 if ac_fn_c_try_link "$LINENO"; then :
4490 ac_cv_search_dlopen=$ac_res
4491 fi
4492 rm -f core conftest.err conftest.$ac_objext \
4493 conftest$ac_exeext
4494 if test "${ac_cv_search_dlopen+set}" = set; then :
4495 break
4496 fi
4497 done
4498 if test "${ac_cv_search_dlopen+set}" = set; then :
4499
4500 else
4501 ac_cv_search_dlopen=no
4502 fi
4503 rm conftest.$ac_ext
4504 LIBS=$ac_func_search_save_LIBS
4505 fi
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4507 $as_echo "$ac_cv_search_dlopen" >&6; }
4508 ac_res=$ac_cv_search_dlopen
4509 if test "$ac_res" != no; then :
4510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4511
4512 fi
4513
4514 fi
4515
4516
4517 case "${host}" in
4518 sparc-*-solaris*|i[3-7]86-*-solaris*)
4519 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4520 # are mutually exclusive; and without procfs support, the bfd/ elf module
4521 # cannot provide certain routines such as elfcore_write_prpsinfo
4522 # or elfcore_write_prstatus. So unless the user explicitly requested
4523 # large-file support through the --enable-largefile switch, disable
4524 # large-file support in favor of procfs support.
4525 test "${target}" = "${host}" -a "x$plugins" = xno \
4526 && : ${enable_largefile="no"}
4527 ;;
4528 esac
4529
4530 # Check whether --enable-largefile was given.
4531 if test "${enable_largefile+set}" = set; then :
4532 enableval=$enable_largefile;
4533 fi
4534
4535 if test "$enable_largefile" != no; then
4536
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4538 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4539 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 ac_cv_sys_largefile_CC=no
4543 if test "$GCC" != yes; then
4544 ac_save_CC=$CC
4545 while :; do
4546 # IRIX 6.2 and later do not support large files by default,
4547 # so use the C compiler's -n32 option if that helps.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 #include <sys/types.h>
4551 /* Check that off_t can represent 2**63 - 1 correctly.
4552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4553 since some C++ compilers masquerading as C compilers
4554 incorrectly reject 9223372036854775807. */
4555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4557 && LARGE_OFF_T % 2147483647 == 1)
4558 ? 1 : -1];
4559 int
4560 main ()
4561 {
4562
4563 ;
4564 return 0;
4565 }
4566 _ACEOF
4567 if ac_fn_c_try_compile "$LINENO"; then :
4568 break
4569 fi
4570 rm -f core conftest.err conftest.$ac_objext
4571 CC="$CC -n32"
4572 if ac_fn_c_try_compile "$LINENO"; then :
4573 ac_cv_sys_largefile_CC=' -n32'; break
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext
4576 break
4577 done
4578 CC=$ac_save_CC
4579 rm -f conftest.$ac_ext
4580 fi
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4583 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4584 if test "$ac_cv_sys_largefile_CC" != no; then
4585 CC=$CC$ac_cv_sys_largefile_CC
4586 fi
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4589 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4590 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 while :; do
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596 #include <sys/types.h>
4597 /* Check that off_t can represent 2**63 - 1 correctly.
4598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4599 since some C++ compilers masquerading as C compilers
4600 incorrectly reject 9223372036854775807. */
4601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4603 && LARGE_OFF_T % 2147483647 == 1)
4604 ? 1 : -1];
4605 int
4606 main ()
4607 {
4608
4609 ;
4610 return 0;
4611 }
4612 _ACEOF
4613 if ac_fn_c_try_compile "$LINENO"; then :
4614 ac_cv_sys_file_offset_bits=no; break
4615 fi
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #define _FILE_OFFSET_BITS 64
4620 #include <sys/types.h>
4621 /* Check that off_t can represent 2**63 - 1 correctly.
4622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4623 since some C++ compilers masquerading as C compilers
4624 incorrectly reject 9223372036854775807. */
4625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4627 && LARGE_OFF_T % 2147483647 == 1)
4628 ? 1 : -1];
4629 int
4630 main ()
4631 {
4632
4633 ;
4634 return 0;
4635 }
4636 _ACEOF
4637 if ac_fn_c_try_compile "$LINENO"; then :
4638 ac_cv_sys_file_offset_bits=64; break
4639 fi
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 ac_cv_sys_file_offset_bits=unknown
4642 break
4643 done
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4646 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4647 case $ac_cv_sys_file_offset_bits in #(
4648 no | unknown) ;;
4649 *)
4650 cat >>confdefs.h <<_ACEOF
4651 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4652 _ACEOF
4653 ;;
4654 esac
4655 rm -rf conftest*
4656 if test $ac_cv_sys_file_offset_bits = unknown; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4658 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4659 if test "${ac_cv_sys_large_files+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 while :; do
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665 #include <sys/types.h>
4666 /* Check that off_t can represent 2**63 - 1 correctly.
4667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4668 since some C++ compilers masquerading as C compilers
4669 incorrectly reject 9223372036854775807. */
4670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4672 && LARGE_OFF_T % 2147483647 == 1)
4673 ? 1 : -1];
4674 int
4675 main ()
4676 {
4677
4678 ;
4679 return 0;
4680 }
4681 _ACEOF
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683 ac_cv_sys_large_files=no; break
4684 fi
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688 #define _LARGE_FILES 1
4689 #include <sys/types.h>
4690 /* Check that off_t can represent 2**63 - 1 correctly.
4691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4692 since some C++ compilers masquerading as C compilers
4693 incorrectly reject 9223372036854775807. */
4694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4696 && LARGE_OFF_T % 2147483647 == 1)
4697 ? 1 : -1];
4698 int
4699 main ()
4700 {
4701
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 ac_cv_sys_large_files=1; break
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 ac_cv_sys_large_files=unknown
4711 break
4712 done
4713 fi
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4715 $as_echo "$ac_cv_sys_large_files" >&6; }
4716 case $ac_cv_sys_large_files in #(
4717 no | unknown) ;;
4718 *)
4719 cat >>confdefs.h <<_ACEOF
4720 #define _LARGE_FILES $ac_cv_sys_large_files
4721 _ACEOF
4722 ;;
4723 esac
4724 rm -rf conftest*
4725 fi
4726 fi
4727
4728
4729
4730
4731
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4733 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4734 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 am_cv_prog_cc_stdc=no
4738 ac_save_CC="$CC"
4739 # Don't try gcc -ansi; that turns off useful extensions and
4740 # breaks some systems' header files.
4741 # AIX -qlanglvl=ansi
4742 # Ultrix and OSF/1 -std1
4743 # HP-UX 10.20 and later -Ae
4744 # HP-UX older versions -Aa -D_HPUX_SOURCE
4745 # SVR4 -Xc -D__EXTENSIONS__
4746 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4747 do
4748 CC="$ac_save_CC $ac_arg"
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4751 #include <stdarg.h>
4752 #include <stdio.h>
4753 #include <sys/types.h>
4754 #include <sys/stat.h>
4755 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4756 struct buf { int x; };
4757 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4758 static char *e (p, i)
4759 char **p;
4760 int i;
4761 {
4762 return p[i];
4763 }
4764 static char *f (char * (*g) (char **, int), char **p, ...)
4765 {
4766 char *s;
4767 va_list v;
4768 va_start (v,p);
4769 s = g (p, va_arg (v,int));
4770 va_end (v);
4771 return s;
4772 }
4773 int test (int i, double x);
4774 struct s1 {int (*f) (int a);};
4775 struct s2 {int (*f) (double a);};
4776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4777 int argc;
4778 char **argv;
4779
4780 int
4781 main ()
4782 {
4783
4784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4785
4786 ;
4787 return 0;
4788 }
4789 _ACEOF
4790 if ac_fn_c_try_compile "$LINENO"; then :
4791 am_cv_prog_cc_stdc="$ac_arg"; break
4792 fi
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 done
4795 CC="$ac_save_CC"
4796
4797 fi
4798
4799 if test -z "$am_cv_prog_cc_stdc"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4801 $as_echo "none needed" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4804 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4805 fi
4806 case "x$am_cv_prog_cc_stdc" in
4807 x|xno) ;;
4808 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4809 esac
4810
4811 # expand $ac_aux_dir to an absolute path
4812 am_aux_dir=`cd $ac_aux_dir && pwd`
4813
4814 if test x"${install_sh}" != xset; then
4815 case $am_aux_dir in
4816 *\ * | *\ *)
4817 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4818 *)
4819 install_sh="\${SHELL} $am_aux_dir/install-sh"
4820 esac
4821 fi
4822
4823 # Installed binaries are usually stripped using `strip' when the user
4824 # run `make install-strip'. However `strip' might not be the right
4825 # tool to use in cross-compilation environments, therefore Automake
4826 # will honor the `STRIP' environment variable to overrule this program.
4827 if test "$cross_compiling" != no; then
4828 if test -n "$ac_tool_prefix"; then
4829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4830 set dummy ${ac_tool_prefix}strip; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if test "${ac_cv_prog_STRIP+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 if test -n "$STRIP"; then
4837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4841 do
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 break 2
4849 fi
4850 done
4851 done
4852 IFS=$as_save_IFS
4853
4854 fi
4855 fi
4856 STRIP=$ac_cv_prog_STRIP
4857 if test -n "$STRIP"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4859 $as_echo "$STRIP" >&6; }
4860 else
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4863 fi
4864
4865
4866 fi
4867 if test -z "$ac_cv_prog_STRIP"; then
4868 ac_ct_STRIP=$STRIP
4869 # Extract the first word of "strip", so it can be a program name with args.
4870 set dummy strip; ac_word=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 if test -n "$ac_ct_STRIP"; then
4877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4878 else
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4881 do
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_prog_ac_ct_STRIP="strip"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 break 2
4889 fi
4890 done
4891 done
4892 IFS=$as_save_IFS
4893
4894 fi
4895 fi
4896 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4897 if test -n "$ac_ct_STRIP"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4899 $as_echo "$ac_ct_STRIP" >&6; }
4900 else
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4903 fi
4904
4905 if test "x$ac_ct_STRIP" = x; then
4906 STRIP=":"
4907 else
4908 case $cross_compiling:$ac_tool_warned in
4909 yes:)
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4912 ac_tool_warned=yes ;;
4913 esac
4914 STRIP=$ac_ct_STRIP
4915 fi
4916 else
4917 STRIP="$ac_cv_prog_STRIP"
4918 fi
4919
4920 fi
4921 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4922
4923
4924 ac_aux_dir=
4925 for ac_dir in .. "$srcdir"/..; do
4926 for ac_t in install-sh install.sh shtool; do
4927 if test -f "$ac_dir/$ac_t"; then
4928 ac_aux_dir=$ac_dir
4929 ac_install_sh="$ac_aux_dir/$ac_t -c"
4930 break 2
4931 fi
4932 done
4933 done
4934 if test -z "$ac_aux_dir"; then
4935 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4936 fi
4937
4938 # These three variables are undocumented and unsupported,
4939 # and are intended to be withdrawn in a future Autoconf release.
4940 # They can cause serious problems if a builder's source tree is in a directory
4941 # whose full name contains unusual characters.
4942 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4943 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4944 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4945
4946
4947
4948 test "$program_prefix" != NONE &&
4949 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4950 # Use a double $ so make ignores it.
4951 test "$program_suffix" != NONE &&
4952 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4953 # Double any \ or $.
4954 # By default was `s,x,x', remove it if useless.
4955 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4956 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4957
4958
4959 # See if we are building with C++, and substitute COMPILER.
4960
4961 # Check whether --enable-build-with-cxx was given.
4962 if test "${enable_build_with_cxx+set}" = set; then :
4963 enableval=$enable_build_with_cxx; case $enableval in
4964 yes | no)
4965 ;;
4966 *)
4967 as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4968 esac
4969 else
4970 enable_build_with_cxx=yes
4971 fi
4972
4973
4974 if test "$enable_build_with_cxx" = "yes"; then
4975 COMPILER='$(CXX)'
4976 COMPILER_CFLAGS='$(CXXFLAGS)'
4977 else
4978 COMPILER='$(CC)'
4979 COMPILER_CFLAGS='$(CFLAGS)'
4980 fi
4981
4982
4983
4984
4985 # Dependency checking.
4986 rm -rf .tst 2>/dev/null
4987 mkdir .tst 2>/dev/null
4988 if test -d .tst; then
4989 am__leading_dot=.
4990 else
4991 am__leading_dot=_
4992 fi
4993 rmdir .tst 2>/dev/null
4994
4995 DEPDIR="${am__leading_dot}deps"
4996
4997 ac_config_commands="$ac_config_commands depdir"
4998
4999
5000 depcc="$CC" am_compiler_list=
5001
5002 am_depcomp=$ac_aux_dir/depcomp
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5004 $as_echo_n "checking dependency style of $depcc... " >&6; }
5005 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 if test -f "$am_depcomp"; then
5009 # We make a subdir and do the tests there. Otherwise we can end up
5010 # making bogus files that we don't know about and never remove. For
5011 # instance it was reported that on HP-UX the gcc test will end up
5012 # making a dummy file named `D' -- because `-MD' means `put the output
5013 # in D'.
5014 mkdir conftest.dir
5015 # Copy depcomp to subdir because otherwise we won't find it if we're
5016 # using a relative directory.
5017 cp "$am_depcomp" conftest.dir
5018 cd conftest.dir
5019 # We will build objects and dependencies in a subdirectory because
5020 # it helps to detect inapplicable dependency modes. For instance
5021 # both Tru64's cc and ICC support -MD to output dependencies as a
5022 # side effect of compilation, but ICC will put the dependencies in
5023 # the current directory while Tru64 will put them in the object
5024 # directory.
5025 mkdir sub
5026
5027 am_cv_CC_dependencies_compiler_type=none
5028 if test "$am_compiler_list" = ""; then
5029 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5030 fi
5031 for depmode in $am_compiler_list; do
5032 if test $depmode = none; then break; fi
5033
5034 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5035 # Setup a source with many dependencies, because some compilers
5036 # like to wrap large dependency lists on column 80 (with \), and
5037 # we should not choose a depcomp mode which is confused by this.
5038 #
5039 # We need to recreate these files for each test, as the compiler may
5040 # overwrite some of them when testing with obscure command lines.
5041 # This happens at least with the AIX C compiler.
5042 : > sub/conftest.c
5043 for i in 1 2 3 4 5 6; do
5044 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5045 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5046 # Solaris 8's {/usr,}/bin/sh.
5047 touch sub/conftst$i.h
5048 done
5049 echo "include sub/conftest.Po" > confmf
5050
5051 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5052 # mode. It turns out that the SunPro C++ compiler does not properly
5053 # handle `-M -o', and we need to detect this.
5054 depcmd="depmode=$depmode \
5055 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5057 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5058 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5059 if env $depcmd > conftest.err 2>&1 &&
5060 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5061 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5062 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5063 # icc doesn't choke on unknown options, it will just issue warnings
5064 # or remarks (even with -Werror). So we grep stderr for any message
5065 # that says an option was ignored or not supported.
5066 # When given -MP, icc 7.0 and 7.1 complain thusly:
5067 # icc: Command line warning: ignoring option '-M'; no argument required
5068 # The diagnosis changed in icc 8.0:
5069 # icc: Command line remark: option '-MP' not supported
5070 if (grep 'ignoring option' conftest.err ||
5071 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5072 am_cv_CC_dependencies_compiler_type=$depmode
5073 $as_echo "$as_me:$LINENO: success" >&5
5074 break
5075 fi
5076 fi
5077 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5078 sed -e 's/^/| /' < conftest.err >&5
5079 done
5080
5081 cd ..
5082 rm -rf conftest.dir
5083 else
5084 am_cv_CC_dependencies_compiler_type=none
5085 fi
5086
5087 fi
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5089 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5090 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
5091 then as_fn_error "no usable dependency style found" "$LINENO" 5
5092 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5093
5094 fi
5095
5096
5097 # Check for the 'make' the user wants to use.
5098 for ac_prog in make
5099 do
5100 # Extract the first word of "$ac_prog", so it can be a program name with args.
5101 set dummy $ac_prog; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_prog_MAKE+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -n "$MAKE"; then
5108 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5109 else
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_prog_MAKE="$ac_prog"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121 done
5122 done
5123 IFS=$as_save_IFS
5124
5125 fi
5126 fi
5127 MAKE=$ac_cv_prog_MAKE
5128 if test -n "$MAKE"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5130 $as_echo "$MAKE" >&6; }
5131 else
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5134 fi
5135
5136
5137 test -n "$MAKE" && break
5138 done
5139
5140 MAKE_IS_GNU=
5141 case "`$MAKE --version 2>&1 | sed 1q`" in
5142 *GNU*)
5143 MAKE_IS_GNU=yes
5144 ;;
5145 esac
5146 if test "$MAKE_IS_GNU" = yes; then
5147 GMAKE_TRUE=
5148 GMAKE_FALSE='#'
5149 else
5150 GMAKE_TRUE='#'
5151 GMAKE_FALSE=
5152 fi
5153
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5155 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5156 set x ${MAKE-make}
5157 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5158 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 cat >conftest.make <<\_ACEOF
5162 SHELL = /bin/sh
5163 all:
5164 @echo '@@@%%%=$(MAKE)=@@@%%%'
5165 _ACEOF
5166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5167 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5168 *@@@%%%=?*=@@@%%%*)
5169 eval ac_cv_prog_make_${ac_make}_set=yes;;
5170 *)
5171 eval ac_cv_prog_make_${ac_make}_set=no;;
5172 esac
5173 rm -f conftest.make
5174 fi
5175 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5177 $as_echo "yes" >&6; }
5178 SET_MAKE=
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 SET_MAKE="MAKE=${MAKE-make}"
5183 fi
5184
5185
5186 gnulib_extra_configure_args=
5187 # If large-file support is disabled, make sure gnulib does the same.
5188 if test "$enable_largefile" = no; then
5189 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
5190 fi
5191
5192 # Configure gnulib. We need to build gnulib under some other
5193 # directory not "gnulib", to avoid the problem of both GDB and
5194 # GDBserver wanting to build it in the same directory, when building
5195 # in the source dir.
5196
5197 in_src="gnulib"
5198 in_build="build-gnulib"
5199 in_extra_args="$gnulib_extra_configure_args"
5200
5201 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5202 # so they do not pile up.
5203 ac_sub_configure_args=
5204 ac_prev=
5205 eval "set x $ac_configure_args"
5206 shift
5207 for ac_arg
5208 do
5209 if test -n "$ac_prev"; then
5210 ac_prev=
5211 continue
5212 fi
5213 case $ac_arg in
5214 -cache-file | --cache-file | --cache-fil | --cache-fi \
5215 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5216 ac_prev=cache_file ;;
5217 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5218 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5219 | --c=*)
5220 ;;
5221 --config-cache | -C)
5222 ;;
5223 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5224 ac_prev=srcdir ;;
5225 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5226 ;;
5227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5228 ac_prev=prefix ;;
5229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5230 ;;
5231 --disable-option-checking)
5232 ;;
5233 *)
5234 case $ac_arg in
5235 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5236 esac
5237 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5238 esac
5239 done
5240
5241 # Always prepend --prefix to ensure using the same prefix
5242 # in subdir configurations.
5243 ac_arg="--prefix=$prefix"
5244 case $ac_arg in
5245 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5246 esac
5247 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
5248
5249 # Pass --silent
5250 if test "$silent" = yes; then
5251 ac_sub_configure_args="--silent $ac_sub_configure_args"
5252 fi
5253
5254 # Always prepend --disable-option-checking to silence warnings, since
5255 # different subdirs can have different --enable and --with options.
5256 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
5257
5258 ac_popdir=`pwd`
5259 ac_dir=$in_build
5260
5261 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5263 $as_echo "$ac_msg" >&6
5264 as_dir="$ac_dir"; as_fn_mkdir_p
5265
5266 case $srcdir in
5267 [\\/]* | ?:[\\/]* )
5268 ac_srcdir=$srcdir/$in_src ;;
5269 *) # Relative name.
5270 ac_srcdir=../$srcdir/$in_src ;;
5271 esac
5272
5273 cd "$ac_dir"
5274
5275 ac_sub_configure=$ac_srcdir/configure
5276
5277 # Make the cache file name correct relative to the subdirectory.
5278 case $cache_file in
5279 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5280 *) # Relative name.
5281 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5282 esac
5283
5284 if test -n "$in_extra_args"; then
5285 # Add the extra args at the end.
5286 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
5287 fi
5288
5289 { $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
5290 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5291 # The eval makes quoting arguments work.
5292 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5293 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5294 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5295
5296 cd "$ac_popdir"
5297
5298
5299
5300 CONFIG_OBS=
5301 CONFIG_DEPS=
5302 CONFIG_SRCS=
5303 ENABLE_CFLAGS=
5304
5305 CONFIG_ALL=
5306 CONFIG_CLEAN=
5307 CONFIG_INSTALL=
5308 CONFIG_UNINSTALL=
5309
5310 # If we haven't got the data from the intl directory,
5311 # assume NLS is disabled.
5312 USE_NLS=no
5313 LIBINTL=
5314 LIBINTL_DEP=
5315 INCINTL=
5316 XGETTEXT=
5317 GMSGFMT=
5318 POSUB=
5319
5320 if test -f ../intl/config.intl; then
5321 . ../intl/config.intl
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5324 $as_echo_n "checking whether NLS is requested... " >&6; }
5325 if test x"$USE_NLS" != xyes; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330 $as_echo "yes" >&6; }
5331
5332 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5333
5334
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5336 $as_echo_n "checking for catalogs to be installed... " >&6; }
5337 # Look for .po and .gmo files in the source directory.
5338 CATALOGS=
5339 XLINGUAS=
5340 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5341 # If there aren't any .gmo files the shell will give us the
5342 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5343 # weeded out.
5344 case "$cat" in *\**)
5345 continue;;
5346 esac
5347 # The quadruple backslash is collapsed to a double backslash
5348 # by the backticks, then collapsed again by the double quotes,
5349 # leaving us with one backslash in the sed expression (right
5350 # before the dot that mustn't act as a wildcard).
5351 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5352 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5353 # The user is allowed to set LINGUAS to a list of languages to
5354 # install catalogs for. If it's empty that means "all of them."
5355 if test "x$LINGUAS" = x; then
5356 CATALOGS="$CATALOGS $cat"
5357 XLINGUAS="$XLINGUAS $lang"
5358 else
5359 case "$LINGUAS" in *$lang*)
5360 CATALOGS="$CATALOGS $cat"
5361 XLINGUAS="$XLINGUAS $lang"
5362 ;;
5363 esac
5364 fi
5365 done
5366 LINGUAS="$XLINGUAS"
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5368 $as_echo "$LINGUAS" >&6; }
5369
5370
5371 DATADIRNAME=share
5372
5373 INSTOBJEXT=.mo
5374
5375 GENCAT=gencat
5376
5377 CATOBJEXT=.gmo
5378
5379 fi
5380
5381 localedir='${datadir}/locale'
5382
5383
5384 if test x"$USE_NLS" = xyes; then
5385 CONFIG_ALL="$CONFIG_ALL all-po"
5386 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5387 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5388 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5389 fi
5390
5391 GNULIB=build-gnulib/import
5392
5393 # For Makefile dependencies.
5394 GNULIB_STDINT_H=
5395 if test x"$STDINT_H" != x; then
5396 GNULIB_STDINT_H=$GNULIB/$STDINT_H
5397 fi
5398
5399
5400 PACKAGE=gdb
5401
5402 cat >>confdefs.h <<_ACEOF
5403 #define PACKAGE "$PACKAGE"
5404 _ACEOF
5405
5406
5407
5408 # We never need to detect it in this sub-configure.
5409 # But preserve it for config.status --recheck.
5410
5411
5412
5413 MAKEINFO_EXTRA_FLAGS=""
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5415 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5416 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5420 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5421 gdb_cv_have_makeinfo_click=yes
5422 else
5423 gdb_cv_have_makeinfo_click=no
5424 fi
5425 fi
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5427 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5428 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
5429 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5430 fi
5431
5432
5433
5434
5435 # Check whether --with-separate-debug-dir was given.
5436 if test "${with_separate_debug_dir+set}" = set; then :
5437 withval=$with_separate_debug_dir;
5438 DEBUGDIR=$withval
5439 else
5440 DEBUGDIR=${libdir}/debug
5441 fi
5442
5443
5444 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5446 ac_define_dir=`eval echo $DEBUGDIR`
5447 ac_define_dir=`eval echo $ac_define_dir`
5448
5449 cat >>confdefs.h <<_ACEOF
5450 #define DEBUGDIR "$ac_define_dir"
5451 _ACEOF
5452
5453
5454
5455
5456 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5457 if test "x$prefix" = xNONE; then
5458 test_prefix=/usr/local
5459 else
5460 test_prefix=$prefix
5461 fi
5462 else
5463 test_prefix=$exec_prefix
5464 fi
5465 value=0
5466 case ${ac_define_dir} in
5467 "${test_prefix}"|"${test_prefix}/"*|\
5468 '${exec_prefix}'|'${exec_prefix}/'*)
5469 value=1
5470 ;;
5471 esac
5472
5473 cat >>confdefs.h <<_ACEOF
5474 #define DEBUGDIR_RELOCATABLE $value
5475 _ACEOF
5476
5477
5478
5479
5480 # We can't pass paths as command line arguments.
5481 # Mingw32 tries to be clever and will convert the paths for us.
5482 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5483 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5484 # This breaks GDB's relocatable path conversions since paths passed in
5485 # config.h would not get so translated, the path prefixes no longer match.
5486
5487 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5488 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5489 ac_define_dir=`eval echo $bindir`
5490 ac_define_dir=`eval echo $ac_define_dir`
5491
5492 cat >>confdefs.h <<_ACEOF
5493 #define BINDIR "$ac_define_dir"
5494 _ACEOF
5495
5496
5497
5498 # GDB's datadir relocation
5499
5500
5501
5502 # Check whether --with-gdb-datadir was given.
5503 if test "${with_gdb_datadir+set}" = set; then :
5504 withval=$with_gdb_datadir;
5505 GDB_DATADIR=$withval
5506 else
5507 GDB_DATADIR=${datadir}/gdb
5508 fi
5509
5510
5511 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5512 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5513 ac_define_dir=`eval echo $GDB_DATADIR`
5514 ac_define_dir=`eval echo $ac_define_dir`
5515
5516 cat >>confdefs.h <<_ACEOF
5517 #define GDB_DATADIR "$ac_define_dir"
5518 _ACEOF
5519
5520
5521
5522
5523 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5524 if test "x$prefix" = xNONE; then
5525 test_prefix=/usr/local
5526 else
5527 test_prefix=$prefix
5528 fi
5529 else
5530 test_prefix=$exec_prefix
5531 fi
5532 value=0
5533 case ${ac_define_dir} in
5534 "${test_prefix}"|"${test_prefix}/"*|\
5535 '${exec_prefix}'|'${exec_prefix}/'*)
5536 value=1
5537 ;;
5538 esac
5539
5540 cat >>confdefs.h <<_ACEOF
5541 #define GDB_DATADIR_RELOCATABLE $value
5542 _ACEOF
5543
5544
5545
5546
5547
5548 # Check whether --with-relocated-sources was given.
5549 if test "${with_relocated_sources+set}" = set; then :
5550 withval=$with_relocated_sources; reloc_srcdir="${withval}"
5551
5552 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5554 ac_define_dir=`eval echo $reloc_srcdir`
5555 ac_define_dir=`eval echo $ac_define_dir`
5556
5557 cat >>confdefs.h <<_ACEOF
5558 #define RELOC_SRCDIR "$ac_define_dir"
5559 _ACEOF
5560
5561
5562
5563 fi
5564
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5567 $as_echo_n "checking for default auto-load directory... " >&6; }
5568
5569 # Check whether --with-auto-load-dir was given.
5570 if test "${with_auto_load_dir+set}" = set; then :
5571 withval=$with_auto_load_dir;
5572 else
5573 with_auto_load_dir='$debugdir:$datadir/auto-load'
5574 fi
5575
5576 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5577
5578 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5580 ac_define_dir=`eval echo $escape_dir`
5581 ac_define_dir=`eval echo $ac_define_dir`
5582
5583 cat >>confdefs.h <<_ACEOF
5584 #define AUTO_LOAD_DIR "$ac_define_dir"
5585 _ACEOF
5586
5587
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5589 $as_echo "$with_auto_load_dir" >&6; }
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5592 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5593
5594 # Check whether --with-auto-load-safe-path was given.
5595 if test "${with_auto_load_safe_path+set}" = set; then :
5596 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5597 with_auto_load_safe_path="/"
5598 fi
5599 else
5600 with_auto_load_safe_path="$with_auto_load_dir"
5601 fi
5602
5603 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5604
5605 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5607 ac_define_dir=`eval echo $escape_dir`
5608 ac_define_dir=`eval echo $ac_define_dir`
5609
5610 cat >>confdefs.h <<_ACEOF
5611 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5612 _ACEOF
5613
5614
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5616 $as_echo "$with_auto_load_safe_path" >&6; }
5617
5618
5619
5620 subdirs="$subdirs testsuite"
5621
5622
5623 # Check whether to support alternative target configurations
5624 # Check whether --enable-targets was given.
5625 if test "${enable_targets+set}" = set; then :
5626 enableval=$enable_targets; case "${enableval}" in
5627 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5628 ;;
5629 no) enable_targets= ;;
5630 *) enable_targets=$enableval ;;
5631 esac
5632 fi
5633
5634
5635 # Check whether to enable 64-bit support on 32-bit hosts
5636 # Check whether --enable-64-bit-bfd was given.
5637 if test "${enable_64_bit_bfd+set}" = set; then :
5638 enableval=$enable_64_bit_bfd; case "${enableval}" in
5639 yes) want64=true ;;
5640 no) want64=false ;;
5641 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5642 esac
5643 else
5644 want64=false
5645 fi
5646
5647 # Provide defaults for some variables set by the per-host and per-target
5648 # configuration.
5649 gdb_host_obs=posix-hdep.o
5650
5651 if test "${target}" = "${host}"; then
5652 gdb_native=yes
5653 else
5654 gdb_native=no
5655 fi
5656
5657 . $srcdir/configure.host
5658
5659 # Add in the common host objects.
5660 . $srcdir/common/common.host
5661 gdb_host_obs="$gdb_host_obs $common_host_obs"
5662
5663 # Accumulate some settings from configure.tgt over all enabled targets
5664
5665 TARGET_OBS=
5666 all_targets=
5667 HAVE_NATIVE_GCORE_TARGET=
5668
5669 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5670 do
5671 if test "$targ_alias" = "all"; then
5672 all_targets=true
5673 else
5674 # Canonicalize the secondary target names.
5675 result=`$ac_config_sub $targ_alias 2>/dev/null`
5676 if test -n "$result"; then
5677 targ=$result
5678 else
5679 targ=$targ_alias
5680 fi
5681
5682 . ${srcdir}/configure.tgt
5683
5684 if test -z "${gdb_target_obs}"; then :
5685 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5686 fi
5687
5688 # Target-specific object files
5689 for i in ${gdb_target_obs}; do
5690 case " $TARGET_OBS " in
5691 *" ${i} "*) ;;
5692 *)
5693 TARGET_OBS="$TARGET_OBS ${i}"
5694 ;;
5695 esac
5696 done
5697
5698 # Check whether this target needs 64-bit CORE_ADDR
5699 if test x${want64} = xfalse; then
5700 . ${srcdir}/../bfd/config.bfd
5701 fi
5702
5703 # Check whether this target is native and supports gcore.
5704 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5705 && $gdb_have_gcore; then
5706 HAVE_NATIVE_GCORE_TARGET=1
5707 fi
5708 fi
5709 done
5710
5711 if test x${all_targets} = xtrue; then
5712
5713 # We want all 64-bit targets if we either:
5714 # - run on a 64-bit host or
5715 # - already require 64-bit support for some other target or
5716 # - the --enable-64-bit-bfd option was supplied
5717 # Otherwise we only support all 32-bit targets.
5718 #
5719 # NOTE: This test must be in sync with the corresponding
5720 # tests in BFD!
5721
5722 if test x${want64} = xfalse; then
5723 # The cast to long int works around a bug in the HP C Compiler
5724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5726 # This bug is HP SR number 8606223364.
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5728 $as_echo_n "checking size of long... " >&6; }
5729 if test "${ac_cv_sizeof_long+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5733
5734 else
5735 if test "$ac_cv_type_long" = yes; then
5736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5738 { as_fn_set_status 77
5739 as_fn_error "cannot compute sizeof (long)
5740 See \`config.log' for more details." "$LINENO" 5; }; }
5741 else
5742 ac_cv_sizeof_long=0
5743 fi
5744 fi
5745
5746 fi
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5748 $as_echo "$ac_cv_sizeof_long" >&6; }
5749
5750
5751
5752 cat >>confdefs.h <<_ACEOF
5753 #define SIZEOF_LONG $ac_cv_sizeof_long
5754 _ACEOF
5755
5756
5757 if test "x${ac_cv_sizeof_long}" = "x8"; then
5758 want64=true
5759 fi
5760 fi
5761 if test x${want64} = xtrue; then
5762 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5763 else
5764 TARGET_OBS='$(ALL_TARGET_OBS)'
5765 fi
5766 fi
5767
5768
5769
5770
5771 # For other settings, only the main target counts.
5772 gdb_sim=
5773 gdb_osabi=
5774 build_gdbserver=
5775 targ=$target; . ${srcdir}/configure.tgt
5776
5777 # Fetch the default architecture and default target vector from BFD.
5778 targ=$target; . $srcdir/../bfd/config.bfd
5779
5780 # We only want the first architecture, so strip off the others if
5781 # there is more than one.
5782 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5783
5784 if test "x$targ_archs" != x; then
5785
5786 cat >>confdefs.h <<_ACEOF
5787 #define DEFAULT_BFD_ARCH $targ_archs
5788 _ACEOF
5789
5790 fi
5791 if test "x$targ_defvec" != x; then
5792
5793 cat >>confdefs.h <<_ACEOF
5794 #define DEFAULT_BFD_VEC $targ_defvec
5795 _ACEOF
5796
5797 fi
5798
5799 # The CLI cannot be disabled yet, but may be in the future.
5800
5801 # Enable CLI.
5802 # Check whether --enable-gdbcli was given.
5803 if test "${enable_gdbcli+set}" = set; then :
5804 enableval=$enable_gdbcli; case $enableval in
5805 yes)
5806 ;;
5807 no)
5808 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5809 *)
5810 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5811 esac
5812 else
5813 enable_gdbcli=yes
5814 fi
5815
5816 if test x"$enable_gdbcli" = xyes; then
5817 if test -d $srcdir/cli; then
5818 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5819 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5820 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5821 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5822 fi
5823 fi
5824
5825 # Enable MI.
5826 # Check whether --enable-gdbmi was given.
5827 if test "${enable_gdbmi+set}" = set; then :
5828 enableval=$enable_gdbmi; case $enableval in
5829 yes | no)
5830 ;;
5831 *)
5832 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5833 esac
5834 else
5835 enable_gdbmi=yes
5836 fi
5837
5838 if test x"$enable_gdbmi" = xyes; then
5839 if test -d $srcdir/mi; then
5840 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5841 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5842 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5843 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5844 fi
5845 fi
5846
5847 # Enable TUI.
5848 # Check whether --enable-tui was given.
5849 if test "${enable_tui+set}" = set; then :
5850 enableval=$enable_tui; case $enableval in
5851 yes | no | auto)
5852 ;;
5853 *)
5854 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5855 esac
5856 else
5857 enable_tui=auto
5858 fi
5859
5860
5861 # Enable gdbtk.
5862 # Check whether --enable-gdbtk was given.
5863 if test "${enable_gdbtk+set}" = set; then :
5864 enableval=$enable_gdbtk; case $enableval in
5865 yes | no)
5866 ;;
5867 *)
5868 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5869 esac
5870 else
5871 if test -d $srcdir/gdbtk; then
5872 enable_gdbtk=yes
5873 else
5874 enable_gdbtk=no
5875 fi
5876 fi
5877
5878 # We unconditionally disable gdbtk tests on selected platforms.
5879 case $host_os in
5880 go32* | windows*)
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5882 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5883 enable_gdbtk=no ;;
5884 esac
5885
5886 # Libunwind support for ia64.
5887
5888
5889 # Check whether --with-libunwind-ia64 was given.
5890 if test "${with_libunwind_ia64+set}" = set; then :
5891 withval=$with_libunwind_ia64;
5892 else
5893 with_libunwind_ia64=auto
5894 fi
5895
5896
5897 # Backward compatibility option.
5898 if test "${with_libunwind+set}" = set; then
5899 if test x"$with_libunwind_ia64" != xauto; then
5900 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5903 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5904 with_libunwind_ia64="$with_libunwind"
5905 fi
5906
5907 case "$with_libunwind_ia64" in
5908 yes | no)
5909 ;;
5910 auto)
5911 for ac_header in libunwind-ia64.h
5912 do :
5913 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5914 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5915 cat >>confdefs.h <<_ACEOF
5916 #define HAVE_LIBUNWIND_IA64_H 1
5917 _ACEOF
5918
5919 fi
5920
5921 done
5922
5923 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5924 ;;
5925 *)
5926 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5927 ;;
5928 esac
5929
5930 if test x"$with_libunwind_ia64" = xyes; then
5931 for ac_header in libunwind-ia64.h
5932 do :
5933 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5934 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5935 cat >>confdefs.h <<_ACEOF
5936 #define HAVE_LIBUNWIND_IA64_H 1
5937 _ACEOF
5938
5939 fi
5940
5941 done
5942
5943 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5944 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5945 fi
5946 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5947 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5948 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5949 fi
5950
5951 opt_curses=no
5952
5953 # Check whether --with-curses was given.
5954 if test "${with_curses+set}" = set; then :
5955 withval=$with_curses; opt_curses=$withval
5956 fi
5957
5958
5959 prefer_curses=no
5960 if test "$opt_curses" = "yes"; then
5961 prefer_curses=yes
5962 fi
5963
5964 # Profiling support.
5965 # Check whether --enable-profiling was given.
5966 if test "${enable_profiling+set}" = set; then :
5967 enableval=$enable_profiling; case $enableval in
5968 yes | no)
5969 ;;
5970 *)
5971 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5972 esac
5973 else
5974 enable_profiling=no
5975 fi
5976
5977
5978 for ac_func in monstartup _mcleanup
5979 do :
5980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5981 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5982 eval as_val=\$$as_ac_var
5983 if test "x$as_val" = x""yes; then :
5984 cat >>confdefs.h <<_ACEOF
5985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5986 _ACEOF
5987
5988 fi
5989 done
5990
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5992 $as_echo_n "checking for _etext... " >&6; }
5993 if test "${ac_cv_var__etext+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
5998 #include <stdlib.h>
5999 extern char _etext;
6000
6001 int
6002 main ()
6003 {
6004 free (&_etext);
6005 ;
6006 return 0;
6007 }
6008 _ACEOF
6009 if ac_fn_c_try_link "$LINENO"; then :
6010 ac_cv_var__etext=yes
6011 else
6012 ac_cv_var__etext=no
6013 fi
6014 rm -f core conftest.err conftest.$ac_objext \
6015 conftest$ac_exeext conftest.$ac_ext
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6018 $as_echo "$ac_cv_var__etext" >&6; }
6019 if test $ac_cv_var__etext = yes; then
6020
6021 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6022
6023 fi
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6025 $as_echo_n "checking for etext... " >&6; }
6026 if test "${ac_cv_var_etext+set}" = set; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 #include <stdlib.h>
6032 extern char etext;
6033
6034 int
6035 main ()
6036 {
6037 free (&etext);
6038 ;
6039 return 0;
6040 }
6041 _ACEOF
6042 if ac_fn_c_try_link "$LINENO"; then :
6043 ac_cv_var_etext=yes
6044 else
6045 ac_cv_var_etext=no
6046 fi
6047 rm -f core conftest.err conftest.$ac_objext \
6048 conftest$ac_exeext conftest.$ac_ext
6049 fi
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6051 $as_echo "$ac_cv_var_etext" >&6; }
6052 if test $ac_cv_var_etext = yes; then
6053
6054 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6055
6056 fi
6057 if test "$enable_profiling" = yes ; then
6058 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6059 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6060 fi
6061 PROFILE_CFLAGS=-pg
6062 OLD_CFLAGS="$CFLAGS"
6063 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6064
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6066 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6067 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072
6073 int
6074 main ()
6075 {
6076 int x;
6077 ;
6078 return 0;
6079 }
6080 _ACEOF
6081 if ac_fn_c_try_compile "$LINENO"; then :
6082 ac_cv_cc_supports_pg=yes
6083 else
6084 ac_cv_cc_supports_pg=no
6085 fi
6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087 fi
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6089 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6090
6091 if test $ac_cv_cc_supports_pg = no; then
6092 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6093 fi
6094
6095 CFLAGS="$OLD_CFLAGS"
6096 fi
6097
6098
6099
6100 # Check whether --with-pkgversion was given.
6101 if test "${with_pkgversion+set}" = set; then :
6102 withval=$with_pkgversion; case "$withval" in
6103 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6104 no) PKGVERSION= ;;
6105 *) PKGVERSION="($withval) " ;;
6106 esac
6107 else
6108 PKGVERSION="(GDB) "
6109
6110 fi
6111
6112
6113
6114
6115
6116 # Check whether --with-bugurl was given.
6117 if test "${with_bugurl+set}" = set; then :
6118 withval=$with_bugurl; case "$withval" in
6119 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6120 no) BUGURL=
6121 ;;
6122 *) BUGURL="$withval"
6123 ;;
6124 esac
6125 else
6126 BUGURL="http://www.gnu.org/software/gdb/bugs/"
6127
6128 fi
6129
6130 case ${BUGURL} in
6131 "")
6132 REPORT_BUGS_TO=
6133 REPORT_BUGS_TEXI=
6134 ;;
6135 *)
6136 REPORT_BUGS_TO="<$BUGURL>"
6137 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6138 ;;
6139 esac;
6140
6141
6142
6143
6144 cat >>confdefs.h <<_ACEOF
6145 #define PKGVERSION "$PKGVERSION"
6146 _ACEOF
6147
6148
6149 cat >>confdefs.h <<_ACEOF
6150 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6151 _ACEOF
6152
6153
6154 # --------------------- #
6155 # Checks for programs. #
6156 # --------------------- #
6157
6158 for ac_prog in gawk mawk nawk awk
6159 do
6160 # Extract the first word of "$ac_prog", so it can be a program name with args.
6161 set dummy $ac_prog; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if test "${ac_cv_prog_AWK+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 if test -n "$AWK"; then
6168 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_prog_AWK="$ac_prog"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 break 2
6180 fi
6181 done
6182 done
6183 IFS=$as_save_IFS
6184
6185 fi
6186 fi
6187 AWK=$ac_cv_prog_AWK
6188 if test -n "$AWK"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6190 $as_echo "$AWK" >&6; }
6191 else
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6194 fi
6195
6196
6197 test -n "$AWK" && break
6198 done
6199
6200 # Find a good install program. We prefer a C program (faster),
6201 # so one script is as good as another. But avoid the broken or
6202 # incompatible versions:
6203 # SysV /etc/install, /usr/sbin/install
6204 # SunOS /usr/etc/install
6205 # IRIX /sbin/install
6206 # AIX /bin/install
6207 # AmigaOS /C/install, which installs bootblocks on floppy discs
6208 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6209 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6210 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6211 # OS/2's system install, which has a completely different semantic
6212 # ./install, which can be erroneously created by make from ./install.sh.
6213 # Reject install programs that cannot install multiple files.
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6215 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6216 if test -z "$INSTALL"; then
6217 if test "${ac_cv_path_install+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 # Account for people who put trailing slashes in PATH elements.
6226 case $as_dir/ in #((
6227 ./ | .// | /[cC]/* | \
6228 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6229 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6230 /usr/ucb/* ) ;;
6231 *)
6232 # OSF1 and SCO ODT 3.0 have their own names for install.
6233 # Don't use installbsd from OSF since it installs stuff as root
6234 # by default.
6235 for ac_prog in ginstall scoinst install; do
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6238 if test $ac_prog = install &&
6239 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6240 # AIX install. It has an incompatible calling convention.
6241 :
6242 elif test $ac_prog = install &&
6243 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6244 # program-specific install script used by HP pwplus--don't use.
6245 :
6246 else
6247 rm -rf conftest.one conftest.two conftest.dir
6248 echo one > conftest.one
6249 echo two > conftest.two
6250 mkdir conftest.dir
6251 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6252 test -s conftest.one && test -s conftest.two &&
6253 test -s conftest.dir/conftest.one &&
6254 test -s conftest.dir/conftest.two
6255 then
6256 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6257 break 3
6258 fi
6259 fi
6260 fi
6261 done
6262 done
6263 ;;
6264 esac
6265
6266 done
6267 IFS=$as_save_IFS
6268
6269 rm -rf conftest.one conftest.two conftest.dir
6270
6271 fi
6272 if test "${ac_cv_path_install+set}" = set; then
6273 INSTALL=$ac_cv_path_install
6274 else
6275 # As a last resort, use the slow shell script. Don't cache a
6276 # value for INSTALL within a source directory, because that will
6277 # break other packages using the cache if that directory is
6278 # removed, or if the value is a relative name.
6279 INSTALL=$ac_install_sh
6280 fi
6281 fi
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6283 $as_echo "$INSTALL" >&6; }
6284
6285 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6286 # It thinks the first close brace ends the variable substitution.
6287 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6288
6289 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6290
6291 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6292
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6294 $as_echo_n "checking whether ln -s works... " >&6; }
6295 LN_S=$as_ln_s
6296 if test "$LN_S" = "ln -s"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6298 $as_echo "yes" >&6; }
6299 else
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6301 $as_echo "no, using $LN_S" >&6; }
6302 fi
6303
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 if test -n "$RANLIB"; then
6313 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 RANLIB=$ac_cv_prog_RANLIB
6333 if test -n "$RANLIB"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6335 $as_echo "$RANLIB" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341
6342 fi
6343 if test -z "$ac_cv_prog_RANLIB"; then
6344 ac_ct_RANLIB=$RANLIB
6345 # Extract the first word of "ranlib", so it can be a program name with args.
6346 set dummy ranlib; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 if test -n "$ac_ct_RANLIB"; then
6353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_ac_ct_RANLIB="ranlib"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6373 if test -n "$ac_ct_RANLIB"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6375 $as_echo "$ac_ct_RANLIB" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381 if test "x$ac_ct_RANLIB" = x; then
6382 RANLIB=":"
6383 else
6384 case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390 RANLIB=$ac_ct_RANLIB
6391 fi
6392 else
6393 RANLIB="$ac_cv_prog_RANLIB"
6394 fi
6395
6396 for ac_prog in 'bison -y' byacc
6397 do
6398 # Extract the first word of "$ac_prog", so it can be a program name with args.
6399 set dummy $ac_prog; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_prog_YACC+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test -n "$YACC"; then
6406 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415 ac_cv_prog_YACC="$ac_prog"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419 done
6420 done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 YACC=$ac_cv_prog_YACC
6426 if test -n "$YACC"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6428 $as_echo "$YACC" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 test -n "$YACC" && break
6436 done
6437 test -n "$YACC" || YACC="yacc"
6438
6439
6440 if test -n "$ac_tool_prefix"; then
6441 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6442 set dummy ${ac_tool_prefix}ar; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_AR+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if test -n "$AR"; then
6449 ac_cv_prog_AR="$AR" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6453 do
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_AR="${ac_tool_prefix}ar"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6461 fi
6462 done
6463 done
6464 IFS=$as_save_IFS
6465
6466 fi
6467 fi
6468 AR=$ac_cv_prog_AR
6469 if test -n "$AR"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6471 $as_echo "$AR" >&6; }
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6475 fi
6476
6477
6478 fi
6479 if test -z "$ac_cv_prog_AR"; then
6480 ac_ct_AR=$AR
6481 # Extract the first word of "ar", so it can be a program name with args.
6482 set dummy ar; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -n "$ac_ct_AR"; then
6489 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_ac_ct_AR="ar"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6501 fi
6502 done
6503 done
6504 IFS=$as_save_IFS
6505
6506 fi
6507 fi
6508 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6509 if test -n "$ac_ct_AR"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6511 $as_echo "$ac_ct_AR" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6515 fi
6516
6517 if test "x$ac_ct_AR" = x; then
6518 AR=""
6519 else
6520 case $cross_compiling:$ac_tool_warned in
6521 yes:)
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524 ac_tool_warned=yes ;;
6525 esac
6526 AR=$ac_ct_AR
6527 fi
6528 else
6529 AR="$ac_cv_prog_AR"
6530 fi
6531
6532 if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6534 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 if test -n "$DLLTOOL"; then
6541 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6542 else
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6545 do
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6553 fi
6554 done
6555 done
6556 IFS=$as_save_IFS
6557
6558 fi
6559 fi
6560 DLLTOOL=$ac_cv_prog_DLLTOOL
6561 if test -n "$DLLTOOL"; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6563 $as_echo "$DLLTOOL" >&6; }
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6567 fi
6568
6569
6570 fi
6571 if test -z "$ac_cv_prog_DLLTOOL"; then
6572 ac_ct_DLLTOOL=$DLLTOOL
6573 # Extract the first word of "dlltool", so it can be a program name with args.
6574 set dummy dlltool; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 if test -n "$ac_ct_DLLTOOL"; then
6581 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6593 fi
6594 done
6595 done
6596 IFS=$as_save_IFS
6597
6598 fi
6599 fi
6600 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6601 if test -n "$ac_ct_DLLTOOL"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6603 $as_echo "$ac_ct_DLLTOOL" >&6; }
6604 else
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6607 fi
6608
6609 if test "x$ac_ct_DLLTOOL" = x; then
6610 DLLTOOL=""
6611 else
6612 case $cross_compiling:$ac_tool_warned in
6613 yes:)
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6617 esac
6618 DLLTOOL=$ac_ct_DLLTOOL
6619 fi
6620 else
6621 DLLTOOL="$ac_cv_prog_DLLTOOL"
6622 fi
6623
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}windres; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$WINDRES"; then
6633 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 WINDRES=$ac_cv_prog_WINDRES
6653 if test -n "$WINDRES"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6655 $as_echo "$WINDRES" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6659 fi
6660
6661
6662 fi
6663 if test -z "$ac_cv_prog_WINDRES"; then
6664 ac_ct_WINDRES=$WINDRES
6665 # Extract the first word of "windres", so it can be a program name with args.
6666 set dummy windres; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test -n "$ac_ct_WINDRES"; then
6673 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_WINDRES="windres"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6693 if test -n "$ac_ct_WINDRES"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6695 $as_echo "$ac_ct_WINDRES" >&6; }
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6699 fi
6700
6701 if test "x$ac_ct_WINDRES" = x; then
6702 WINDRES=""
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710 WINDRES=$ac_ct_WINDRES
6711 fi
6712 else
6713 WINDRES="$ac_cv_prog_WINDRES"
6714 fi
6715
6716
6717 case $host_os in
6718 gnu*)
6719 # Needed for GNU Hurd hosts.
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}mig; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if test "${ac_cv_prog_MIG+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 if test -n "$MIG"; then
6729 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 MIG=$ac_cv_prog_MIG
6749 if test -n "$MIG"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6751 $as_echo "$MIG" >&6; }
6752 else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6755 fi
6756
6757
6758 fi
6759 if test -z "$ac_cv_prog_MIG"; then
6760 ac_ct_MIG=$MIG
6761 # Extract the first word of "mig", so it can be a program name with args.
6762 set dummy mig; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 if test -n "$ac_ct_MIG"; then
6769 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_ac_ct_MIG="mig"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782 done
6783 done
6784 IFS=$as_save_IFS
6785
6786 fi
6787 fi
6788 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6789 if test -n "$ac_ct_MIG"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6791 $as_echo "$ac_ct_MIG" >&6; }
6792 else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6795 fi
6796
6797 if test "x$ac_ct_MIG" = x; then
6798 MIG=""
6799 else
6800 case $cross_compiling:$ac_tool_warned in
6801 yes:)
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6804 ac_tool_warned=yes ;;
6805 esac
6806 MIG=$ac_ct_MIG
6807 fi
6808 else
6809 MIG="$ac_cv_prog_MIG"
6810 fi
6811
6812 if test x"$MIG" = x; then
6813 as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
6814 fi
6815 ;;
6816 esac
6817
6818 # ---------------------- #
6819 # Checks for libraries. #
6820 # ---------------------- #
6821
6822 # We might need to link with -lm; most simulators need it.
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6824 $as_echo_n "checking for main in -lm... " >&6; }
6825 if test "${ac_cv_lib_m_main+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 ac_check_lib_save_LIBS=$LIBS
6829 LIBS="-lm $LIBS"
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832
6833
6834 int
6835 main ()
6836 {
6837 return main ();
6838 ;
6839 return 0;
6840 }
6841 _ACEOF
6842 if ac_fn_c_try_link "$LINENO"; then :
6843 ac_cv_lib_m_main=yes
6844 else
6845 ac_cv_lib_m_main=no
6846 fi
6847 rm -f core conftest.err conftest.$ac_objext \
6848 conftest$ac_exeext conftest.$ac_ext
6849 LIBS=$ac_check_lib_save_LIBS
6850 fi
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6852 $as_echo "$ac_cv_lib_m_main" >&6; }
6853 if test "x$ac_cv_lib_m_main" = x""yes; then :
6854 cat >>confdefs.h <<_ACEOF
6855 #define HAVE_LIBM 1
6856 _ACEOF
6857
6858 LIBS="-lm $LIBS"
6859
6860 fi
6861
6862
6863 # We need to link with -lw to get `wctype' on Solaris before Solaris
6864 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6865 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6866 # is known to have this problem). Therefore we avoid libw if we can.
6867 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6868 if test "x$ac_cv_func_wctype" = x""yes; then :
6869
6870 else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6872 $as_echo_n "checking for wctype in -lw... " >&6; }
6873 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 ac_check_lib_save_LIBS=$LIBS
6877 LIBS="-lw $LIBS"
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880
6881 /* Override any GCC internal prototype to avoid an error.
6882 Use char because int might match the return type of a GCC
6883 builtin and then its argument prototype would still apply. */
6884 #ifdef __cplusplus
6885 extern "C"
6886 #endif
6887 char wctype ();
6888 int
6889 main ()
6890 {
6891 return wctype ();
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 if ac_fn_c_try_link "$LINENO"; then :
6897 ac_cv_lib_w_wctype=yes
6898 else
6899 ac_cv_lib_w_wctype=no
6900 fi
6901 rm -f core conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
6903 LIBS=$ac_check_lib_save_LIBS
6904 fi
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6906 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6907 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6908 cat >>confdefs.h <<_ACEOF
6909 #define HAVE_LIBW 1
6910 _ACEOF
6911
6912 LIBS="-lw $LIBS"
6913
6914 fi
6915
6916 fi
6917
6918
6919 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6921 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6922 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 ac_func_search_save_LIBS=$LIBS
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928
6929 /* Override any GCC internal prototype to avoid an error.
6930 Use char because int might match the return type of a GCC
6931 builtin and then its argument prototype would still apply. */
6932 #ifdef __cplusplus
6933 extern "C"
6934 #endif
6935 char gethostbyname ();
6936 int
6937 main ()
6938 {
6939 return gethostbyname ();
6940 ;
6941 return 0;
6942 }
6943 _ACEOF
6944 for ac_lib in '' nsl; do
6945 if test -z "$ac_lib"; then
6946 ac_res="none required"
6947 else
6948 ac_res=-l$ac_lib
6949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6950 fi
6951 if ac_fn_c_try_link "$LINENO"; then :
6952 ac_cv_search_gethostbyname=$ac_res
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext \
6955 conftest$ac_exeext
6956 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6957 break
6958 fi
6959 done
6960 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6961
6962 else
6963 ac_cv_search_gethostbyname=no
6964 fi
6965 rm conftest.$ac_ext
6966 LIBS=$ac_func_search_save_LIBS
6967 fi
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6969 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6970 ac_res=$ac_cv_search_gethostbyname
6971 if test "$ac_res" != no; then :
6972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6973
6974 fi
6975
6976
6977 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6979 $as_echo_n "checking for library containing socketpair... " >&6; }
6980 if test "${ac_cv_search_socketpair+set}" = set; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 ac_func_search_save_LIBS=$LIBS
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6986
6987 /* Override any GCC internal prototype to avoid an error.
6988 Use char because int might match the return type of a GCC
6989 builtin and then its argument prototype would still apply. */
6990 #ifdef __cplusplus
6991 extern "C"
6992 #endif
6993 char socketpair ();
6994 int
6995 main ()
6996 {
6997 return socketpair ();
6998 ;
6999 return 0;
7000 }
7001 _ACEOF
7002 for ac_lib in '' socket; do
7003 if test -z "$ac_lib"; then
7004 ac_res="none required"
7005 else
7006 ac_res=-l$ac_lib
7007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7008 fi
7009 if ac_fn_c_try_link "$LINENO"; then :
7010 ac_cv_search_socketpair=$ac_res
7011 fi
7012 rm -f core conftest.err conftest.$ac_objext \
7013 conftest$ac_exeext
7014 if test "${ac_cv_search_socketpair+set}" = set; then :
7015 break
7016 fi
7017 done
7018 if test "${ac_cv_search_socketpair+set}" = set; then :
7019
7020 else
7021 ac_cv_search_socketpair=no
7022 fi
7023 rm conftest.$ac_ext
7024 LIBS=$ac_func_search_save_LIBS
7025 fi
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7027 $as_echo "$ac_cv_search_socketpair" >&6; }
7028 ac_res=$ac_cv_search_socketpair
7029 if test "$ac_res" != no; then :
7030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7031
7032 fi
7033
7034
7035 # Link in zlib if we can. This allows us to read compressed debug sections.
7036
7037 # Use the system's zlib library.
7038 zlibdir="-L\$(top_builddir)/../zlib"
7039 zlibinc="-I\$(top_srcdir)/../zlib"
7040
7041 # Check whether --with-system-zlib was given.
7042 if test "${with_system_zlib+set}" = set; then :
7043 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7044 zlibdir=
7045 zlibinc=
7046 fi
7047
7048 fi
7049
7050
7051
7052
7053
7054 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7055 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7057 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7058 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 ac_func_search_save_LIBS=$LIBS
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064
7065 /* Override any GCC internal prototype to avoid an error.
7066 Use char because int might match the return type of a GCC
7067 builtin and then its argument prototype would still apply. */
7068 #ifdef __cplusplus
7069 extern "C"
7070 #endif
7071 char kinfo_getvmmap ();
7072 int
7073 main ()
7074 {
7075 return kinfo_getvmmap ();
7076 ;
7077 return 0;
7078 }
7079 _ACEOF
7080 for ac_lib in '' util util-freebsd; do
7081 if test -z "$ac_lib"; then
7082 ac_res="none required"
7083 else
7084 ac_res=-l$ac_lib
7085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7086 fi
7087 if ac_fn_c_try_link "$LINENO"; then :
7088 ac_cv_search_kinfo_getvmmap=$ac_res
7089 fi
7090 rm -f core conftest.err conftest.$ac_objext \
7091 conftest$ac_exeext
7092 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7093 break
7094 fi
7095 done
7096 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7097
7098 else
7099 ac_cv_search_kinfo_getvmmap=no
7100 fi
7101 rm conftest.$ac_ext
7102 LIBS=$ac_func_search_save_LIBS
7103 fi
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7105 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7106 ac_res=$ac_cv_search_kinfo_getvmmap
7107 if test "$ac_res" != no; then :
7108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7109
7110 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7111
7112 fi
7113
7114
7115
7116 if test "X$prefix" = "XNONE"; then
7117 acl_final_prefix="$ac_default_prefix"
7118 else
7119 acl_final_prefix="$prefix"
7120 fi
7121 if test "X$exec_prefix" = "XNONE"; then
7122 acl_final_exec_prefix='${prefix}'
7123 else
7124 acl_final_exec_prefix="$exec_prefix"
7125 fi
7126 acl_save_prefix="$prefix"
7127 prefix="$acl_final_prefix"
7128 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7129 prefix="$acl_save_prefix"
7130
7131
7132 # Check whether --with-gnu-ld was given.
7133 if test "${with_gnu_ld+set}" = set; then :
7134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7135 else
7136 with_gnu_ld=no
7137 fi
7138
7139 # Prepare PATH_SEPARATOR.
7140 # The user is always right.
7141 if test "${PATH_SEPARATOR+set}" != set; then
7142 echo "#! /bin/sh" >conf$$.sh
7143 echo "exit 0" >>conf$$.sh
7144 chmod +x conf$$.sh
7145 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7146 PATH_SEPARATOR=';'
7147 else
7148 PATH_SEPARATOR=:
7149 fi
7150 rm -f conf$$.sh
7151 fi
7152 ac_prog=ld
7153 if test "$GCC" = yes; then
7154 # Check if gcc -print-prog-name=ld gives a path.
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7156 $as_echo_n "checking for ld used by GCC... " >&6; }
7157 case $host in
7158 *-*-mingw*)
7159 # gcc leaves a trailing carriage return which upsets mingw
7160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7161 *)
7162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7163 esac
7164 case $ac_prog in
7165 # Accept absolute paths.
7166 [\\/]* | [A-Za-z]:[\\/]*)
7167 re_direlt='/[^/][^/]*/\.\./'
7168 # Canonicalize the path of ld
7169 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7170 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7171 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7172 done
7173 test -z "$LD" && LD="$ac_prog"
7174 ;;
7175 "")
7176 # If it fails, then pretend we aren't using GCC.
7177 ac_prog=ld
7178 ;;
7179 *)
7180 # If it is relative, then search for the first ld in PATH.
7181 with_gnu_ld=unknown
7182 ;;
7183 esac
7184 elif test "$with_gnu_ld" = yes; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7186 $as_echo_n "checking for GNU ld... " >&6; }
7187 else
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7189 $as_echo_n "checking for non-GNU ld... " >&6; }
7190 fi
7191 if test "${acl_cv_path_LD+set}" = set; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 if test -z "$LD"; then
7195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7196 for ac_dir in $PATH; do
7197 test -z "$ac_dir" && ac_dir=.
7198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7199 acl_cv_path_LD="$ac_dir/$ac_prog"
7200 # Check to see if the program is GNU ld. I'd rather use --version,
7201 # but apparently some GNU ld's only accept -v.
7202 # Break only if it was the GNU/non-GNU ld that we prefer.
7203 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7204 test "$with_gnu_ld" != no && break
7205 else
7206 test "$with_gnu_ld" != yes && break
7207 fi
7208 fi
7209 done
7210 IFS="$ac_save_ifs"
7211 else
7212 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7213 fi
7214 fi
7215
7216 LD="$acl_cv_path_LD"
7217 if test -n "$LD"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7219 $as_echo "$LD" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7226 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7227 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7231 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7232 acl_cv_prog_gnu_ld=yes
7233 else
7234 acl_cv_prog_gnu_ld=no
7235 fi
7236 fi
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7238 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7239 with_gnu_ld=$acl_cv_prog_gnu_ld
7240
7241
7242
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7244 $as_echo_n "checking for shared library run path origin... " >&6; }
7245 if test "${acl_cv_rpath+set}" = set; then :
7246 $as_echo_n "(cached) " >&6
7247 else
7248
7249 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7250 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7251 . ./conftest.sh
7252 rm -f ./conftest.sh
7253 acl_cv_rpath=done
7254
7255 fi
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7257 $as_echo "$acl_cv_rpath" >&6; }
7258 wl="$acl_cv_wl"
7259 libext="$acl_cv_libext"
7260 shlibext="$acl_cv_shlibext"
7261 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7262 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7263 hardcode_direct="$acl_cv_hardcode_direct"
7264 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7265 # Check whether --enable-rpath was given.
7266 if test "${enable_rpath+set}" = set; then :
7267 enableval=$enable_rpath; :
7268 else
7269 enable_rpath=yes
7270 fi
7271
7272
7273
7274
7275
7276
7277
7278
7279 use_additional=yes
7280
7281 acl_save_prefix="$prefix"
7282 prefix="$acl_final_prefix"
7283 acl_save_exec_prefix="$exec_prefix"
7284 exec_prefix="$acl_final_exec_prefix"
7285
7286 eval additional_includedir=\"$includedir\"
7287 eval additional_libdir=\"$libdir\"
7288
7289 exec_prefix="$acl_save_exec_prefix"
7290 prefix="$acl_save_prefix"
7291
7292
7293 # Check whether --with-libiconv-prefix was given.
7294 if test "${with_libiconv_prefix+set}" = set; then :
7295 withval=$with_libiconv_prefix;
7296 if test "X$withval" = "Xno"; then
7297 use_additional=no
7298 else
7299 if test "X$withval" = "X"; then
7300
7301 acl_save_prefix="$prefix"
7302 prefix="$acl_final_prefix"
7303 acl_save_exec_prefix="$exec_prefix"
7304 exec_prefix="$acl_final_exec_prefix"
7305
7306 eval additional_includedir=\"$includedir\"
7307 eval additional_libdir=\"$libdir\"
7308
7309 exec_prefix="$acl_save_exec_prefix"
7310 prefix="$acl_save_prefix"
7311
7312 else
7313 additional_includedir="$withval/include"
7314 additional_libdir="$withval/lib"
7315 fi
7316 fi
7317
7318 fi
7319
7320 LIBICONV=
7321 LTLIBICONV=
7322 INCICONV=
7323 rpathdirs=
7324 ltrpathdirs=
7325 names_already_handled=
7326 names_next_round='iconv '
7327 while test -n "$names_next_round"; do
7328 names_this_round="$names_next_round"
7329 names_next_round=
7330 for name in $names_this_round; do
7331 already_handled=
7332 for n in $names_already_handled; do
7333 if test "$n" = "$name"; then
7334 already_handled=yes
7335 break
7336 fi
7337 done
7338 if test -z "$already_handled"; then
7339 names_already_handled="$names_already_handled $name"
7340 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7341 eval value=\"\$HAVE_LIB$uppername\"
7342 if test -n "$value"; then
7343 if test "$value" = yes; then
7344 eval value=\"\$LIB$uppername\"
7345 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7346 eval value=\"\$LTLIB$uppername\"
7347 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7348 else
7349 :
7350 fi
7351 else
7352 found_dir=
7353 found_la=
7354 found_so=
7355 found_a=
7356 if test $use_additional = yes; then
7357 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7358 found_dir="$additional_libdir"
7359 found_so="$additional_libdir/lib$name.$shlibext"
7360 if test -f "$additional_libdir/lib$name.la"; then
7361 found_la="$additional_libdir/lib$name.la"
7362 fi
7363 else
7364 if test -f "$additional_libdir/lib$name.$libext"; then
7365 found_dir="$additional_libdir"
7366 found_a="$additional_libdir/lib$name.$libext"
7367 if test -f "$additional_libdir/lib$name.la"; then
7368 found_la="$additional_libdir/lib$name.la"
7369 fi
7370 fi
7371 fi
7372 fi
7373 if test "X$found_dir" = "X"; then
7374 for x in $LDFLAGS $LTLIBICONV; do
7375
7376 acl_save_prefix="$prefix"
7377 prefix="$acl_final_prefix"
7378 acl_save_exec_prefix="$exec_prefix"
7379 exec_prefix="$acl_final_exec_prefix"
7380 eval x=\"$x\"
7381 exec_prefix="$acl_save_exec_prefix"
7382 prefix="$acl_save_prefix"
7383
7384 case "$x" in
7385 -L*)
7386 dir=`echo "X$x" | sed -e 's/^X-L//'`
7387 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7388 found_dir="$dir"
7389 found_so="$dir/lib$name.$shlibext"
7390 if test -f "$dir/lib$name.la"; then
7391 found_la="$dir/lib$name.la"
7392 fi
7393 else
7394 if test -f "$dir/lib$name.$libext"; then
7395 found_dir="$dir"
7396 found_a="$dir/lib$name.$libext"
7397 if test -f "$dir/lib$name.la"; then
7398 found_la="$dir/lib$name.la"
7399 fi
7400 fi
7401 fi
7402 ;;
7403 esac
7404 if test "X$found_dir" != "X"; then
7405 break
7406 fi
7407 done
7408 fi
7409 if test "X$found_dir" != "X"; then
7410 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7411 if test "X$found_so" != "X"; then
7412 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7413 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7414 else
7415 haveit=
7416 for x in $ltrpathdirs; do
7417 if test "X$x" = "X$found_dir"; then
7418 haveit=yes
7419 break
7420 fi
7421 done
7422 if test -z "$haveit"; then
7423 ltrpathdirs="$ltrpathdirs $found_dir"
7424 fi
7425 if test "$hardcode_direct" = yes; then
7426 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7427 else
7428 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7429 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7430 haveit=
7431 for x in $rpathdirs; do
7432 if test "X$x" = "X$found_dir"; then
7433 haveit=yes
7434 break
7435 fi
7436 done
7437 if test -z "$haveit"; then
7438 rpathdirs="$rpathdirs $found_dir"
7439 fi
7440 else
7441 haveit=
7442 for x in $LDFLAGS $LIBICONV; do
7443
7444 acl_save_prefix="$prefix"
7445 prefix="$acl_final_prefix"
7446 acl_save_exec_prefix="$exec_prefix"
7447 exec_prefix="$acl_final_exec_prefix"
7448 eval x=\"$x\"
7449 exec_prefix="$acl_save_exec_prefix"
7450 prefix="$acl_save_prefix"
7451
7452 if test "X$x" = "X-L$found_dir"; then
7453 haveit=yes
7454 break
7455 fi
7456 done
7457 if test -z "$haveit"; then
7458 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7459 fi
7460 if test "$hardcode_minus_L" != no; then
7461 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7462 else
7463 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7464 fi
7465 fi
7466 fi
7467 fi
7468 else
7469 if test "X$found_a" != "X"; then
7470 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7471 else
7472 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7473 fi
7474 fi
7475 additional_includedir=
7476 case "$found_dir" in
7477 */lib | */lib/)
7478 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7479 additional_includedir="$basedir/include"
7480 ;;
7481 esac
7482 if test "X$additional_includedir" != "X"; then
7483 if test "X$additional_includedir" != "X/usr/include"; then
7484 haveit=
7485 if test "X$additional_includedir" = "X/usr/local/include"; then
7486 if test -n "$GCC"; then
7487 case $host_os in
7488 linux*) haveit=yes;;
7489 esac
7490 fi
7491 fi
7492 if test -z "$haveit"; then
7493 for x in $CPPFLAGS $INCICONV; do
7494
7495 acl_save_prefix="$prefix"
7496 prefix="$acl_final_prefix"
7497 acl_save_exec_prefix="$exec_prefix"
7498 exec_prefix="$acl_final_exec_prefix"
7499 eval x=\"$x\"
7500 exec_prefix="$acl_save_exec_prefix"
7501 prefix="$acl_save_prefix"
7502
7503 if test "X$x" = "X-I$additional_includedir"; then
7504 haveit=yes
7505 break
7506 fi
7507 done
7508 if test -z "$haveit"; then
7509 if test -d "$additional_includedir"; then
7510 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7511 fi
7512 fi
7513 fi
7514 fi
7515 fi
7516 if test -n "$found_la"; then
7517 save_libdir="$libdir"
7518 case "$found_la" in
7519 */* | *\\*) . "$found_la" ;;
7520 *) . "./$found_la" ;;
7521 esac
7522 libdir="$save_libdir"
7523 for dep in $dependency_libs; do
7524 case "$dep" in
7525 -L*)
7526 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7527 if test "X$additional_libdir" != "X/usr/lib"; then
7528 haveit=
7529 if test "X$additional_libdir" = "X/usr/local/lib"; then
7530 if test -n "$GCC"; then
7531 case $host_os in
7532 linux*) haveit=yes;;
7533 esac
7534 fi
7535 fi
7536 if test -z "$haveit"; then
7537 haveit=
7538 for x in $LDFLAGS $LIBICONV; do
7539
7540 acl_save_prefix="$prefix"
7541 prefix="$acl_final_prefix"
7542 acl_save_exec_prefix="$exec_prefix"
7543 exec_prefix="$acl_final_exec_prefix"
7544 eval x=\"$x\"
7545 exec_prefix="$acl_save_exec_prefix"
7546 prefix="$acl_save_prefix"
7547
7548 if test "X$x" = "X-L$additional_libdir"; then
7549 haveit=yes
7550 break
7551 fi
7552 done
7553 if test -z "$haveit"; then
7554 if test -d "$additional_libdir"; then
7555 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7556 fi
7557 fi
7558 haveit=
7559 for x in $LDFLAGS $LTLIBICONV; do
7560
7561 acl_save_prefix="$prefix"
7562 prefix="$acl_final_prefix"
7563 acl_save_exec_prefix="$exec_prefix"
7564 exec_prefix="$acl_final_exec_prefix"
7565 eval x=\"$x\"
7566 exec_prefix="$acl_save_exec_prefix"
7567 prefix="$acl_save_prefix"
7568
7569 if test "X$x" = "X-L$additional_libdir"; then
7570 haveit=yes
7571 break
7572 fi
7573 done
7574 if test -z "$haveit"; then
7575 if test -d "$additional_libdir"; then
7576 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7577 fi
7578 fi
7579 fi
7580 fi
7581 ;;
7582 -R*)
7583 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7584 if test "$enable_rpath" != no; then
7585 haveit=
7586 for x in $rpathdirs; do
7587 if test "X$x" = "X$dir"; then
7588 haveit=yes
7589 break
7590 fi
7591 done
7592 if test -z "$haveit"; then
7593 rpathdirs="$rpathdirs $dir"
7594 fi
7595 haveit=
7596 for x in $ltrpathdirs; do
7597 if test "X$x" = "X$dir"; then
7598 haveit=yes
7599 break
7600 fi
7601 done
7602 if test -z "$haveit"; then
7603 ltrpathdirs="$ltrpathdirs $dir"
7604 fi
7605 fi
7606 ;;
7607 -l*)
7608 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7609 ;;
7610 *.la)
7611 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7612 ;;
7613 *)
7614 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7615 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7616 ;;
7617 esac
7618 done
7619 fi
7620 else
7621 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7622 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7623 fi
7624 fi
7625 fi
7626 done
7627 done
7628 if test "X$rpathdirs" != "X"; then
7629 if test -n "$hardcode_libdir_separator"; then
7630 alldirs=
7631 for found_dir in $rpathdirs; do
7632 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7633 done
7634 acl_save_libdir="$libdir"
7635 libdir="$alldirs"
7636 eval flag=\"$hardcode_libdir_flag_spec\"
7637 libdir="$acl_save_libdir"
7638 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7639 else
7640 for found_dir in $rpathdirs; do
7641 acl_save_libdir="$libdir"
7642 libdir="$found_dir"
7643 eval flag=\"$hardcode_libdir_flag_spec\"
7644 libdir="$acl_save_libdir"
7645 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7646 done
7647 fi
7648 fi
7649 if test "X$ltrpathdirs" != "X"; then
7650 for found_dir in $ltrpathdirs; do
7651 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7652 done
7653 fi
7654
7655
7656
7657
7658
7659
7660
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7662 $as_echo_n "checking for iconv... " >&6; }
7663 if test "${am_cv_func_iconv+set}" = set; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666
7667 am_cv_func_iconv="no, consider installing GNU libiconv"
7668 am_cv_lib_iconv=no
7669 am_save_CPPFLAGS="$CPPFLAGS"
7670 CPPFLAGS="$CPPFLAGS $INCICONV"
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7673 #include <stdlib.h>
7674 #include <iconv.h>
7675 int
7676 main ()
7677 {
7678 iconv_t cd = iconv_open("","");
7679 iconv(cd,NULL,NULL,NULL,NULL);
7680 iconv_close(cd);
7681 ;
7682 return 0;
7683 }
7684 _ACEOF
7685 if ac_fn_c_try_link "$LINENO"; then :
7686 am_cv_func_iconv=yes
7687 fi
7688 rm -f core conftest.err conftest.$ac_objext \
7689 conftest$ac_exeext conftest.$ac_ext
7690 CPPFLAGS="$am_save_CPPFLAGS"
7691
7692 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
7693 for _libs in .libs _libs; do
7694 am_save_CPPFLAGS="$CPPFLAGS"
7695 am_save_LIBS="$LIBS"
7696 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
7697 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7700 #include <stdlib.h>
7701 #include <iconv.h>
7702 int
7703 main ()
7704 {
7705 iconv_t cd = iconv_open("","");
7706 iconv(cd,NULL,NULL,NULL,NULL);
7707 iconv_close(cd);
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 if ac_fn_c_try_link "$LINENO"; then :
7713 INCICONV="-I../libiconv/include"
7714 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
7715 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
7716 am_cv_lib_iconv=yes
7717 am_cv_func_iconv=yes
7718 fi
7719 rm -f core conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7721 CPPFLAGS="$am_save_CPPFLAGS"
7722 LIBS="$am_save_LIBS"
7723 if test "$am_cv_func_iconv" = "yes"; then
7724 break
7725 fi
7726 done
7727 fi
7728
7729 if test "$am_cv_func_iconv" != yes; then
7730 am_save_CPPFLAGS="$CPPFLAGS"
7731 am_save_LIBS="$LIBS"
7732 CPPFLAGS="$LIBS $INCICONV"
7733 LIBS="$LIBS $LIBICONV"
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7736 #include <stdlib.h>
7737 #include <iconv.h>
7738 int
7739 main ()
7740 {
7741 iconv_t cd = iconv_open("","");
7742 iconv(cd,NULL,NULL,NULL,NULL);
7743 iconv_close(cd);
7744 ;
7745 return 0;
7746 }
7747 _ACEOF
7748 if ac_fn_c_try_link "$LINENO"; then :
7749 am_cv_lib_iconv=yes
7750 am_cv_func_iconv=yes
7751 fi
7752 rm -f core conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
7754 CPPFLAGS="$am_save_CPPFLAGS"
7755 LIBS="$am_save_LIBS"
7756 fi
7757
7758 fi
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7760 $as_echo "$am_cv_func_iconv" >&6; }
7761 if test "$am_cv_func_iconv" = yes; then
7762
7763 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7764
7765 fi
7766 if test "$am_cv_lib_iconv" = yes; then
7767
7768 for element in $INCICONV; do
7769 haveit=
7770 for x in $CPPFLAGS; do
7771
7772 acl_save_prefix="$prefix"
7773 prefix="$acl_final_prefix"
7774 acl_save_exec_prefix="$exec_prefix"
7775 exec_prefix="$acl_final_exec_prefix"
7776 eval x=\"$x\"
7777 exec_prefix="$acl_save_exec_prefix"
7778 prefix="$acl_save_prefix"
7779
7780 if test "X$x" = "X$element"; then
7781 haveit=yes
7782 break
7783 fi
7784 done
7785 if test -z "$haveit"; then
7786 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7787 fi
7788 done
7789
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7791 $as_echo_n "checking how to link with libiconv... " >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7793 $as_echo "$LIBICONV" >&6; }
7794 else
7795 LIBICONV=
7796 LTLIBICONV=
7797 fi
7798
7799
7800
7801 if test "$am_cv_func_iconv" = yes; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7803 $as_echo_n "checking for iconv declaration... " >&6; }
7804 if test "${am_cv_proto_iconv+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7810
7811 #include <stdlib.h>
7812 #include <iconv.h>
7813 extern
7814 #ifdef __cplusplus
7815 "C"
7816 #endif
7817 #if defined(__STDC__) || defined(__cplusplus)
7818 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7819 #else
7820 size_t iconv();
7821 #endif
7822
7823 int
7824 main ()
7825 {
7826
7827 ;
7828 return 0;
7829 }
7830 _ACEOF
7831 if ac_fn_c_try_compile "$LINENO"; then :
7832 am_cv_proto_iconv_arg1=""
7833 else
7834 am_cv_proto_iconv_arg1="const"
7835 fi
7836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7837 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);"
7838 fi
7839
7840 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7842 }$am_cv_proto_iconv" >&5
7843 $as_echo "${ac_t:-
7844 }$am_cv_proto_iconv" >&6; }
7845
7846 cat >>confdefs.h <<_ACEOF
7847 #define ICONV_CONST $am_cv_proto_iconv_arg1
7848 _ACEOF
7849
7850 fi
7851
7852
7853 # GDB may fork/exec the iconv program to get the list of supported character
7854 # sets. Allow the user to specify where to find it.
7855 # There are several factors affecting the choice of option name:
7856 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7857 # the build-time location of libiconv files.
7858 # - The program we need to find is iconv, which comes with glibc. The user
7859 # doesn't necessarily have libiconv installed. Therefore naming this
7860 # --with-libiconv-foo feels wrong.
7861 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7862 # defined to work on directories not files (though it really doesn't know
7863 # the difference).
7864 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7865 # with --with-libiconv-prefix.
7866 # Putting these together is why the option name is --with-iconv-bin.
7867
7868
7869 # Check whether --with-iconv-bin was given.
7870 if test "${with_iconv_bin+set}" = set; then :
7871 withval=$with_iconv_bin; iconv_bin="${withval}"
7872
7873 cat >>confdefs.h <<_ACEOF
7874 #define ICONV_BIN "${iconv_bin}"
7875 _ACEOF
7876
7877
7878 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7879 if test "x$prefix" = xNONE; then
7880 test_prefix=/usr/local
7881 else
7882 test_prefix=$prefix
7883 fi
7884 else
7885 test_prefix=$exec_prefix
7886 fi
7887 value=0
7888 case ${iconv_bin} in
7889 "${test_prefix}"|"${test_prefix}/"*|\
7890 '${exec_prefix}'|'${exec_prefix}/'*)
7891 value=1
7892 ;;
7893 esac
7894
7895 cat >>confdefs.h <<_ACEOF
7896 #define ICONV_BIN_RELOCATABLE $value
7897 _ACEOF
7898
7899
7900
7901 fi
7902
7903
7904 # For the TUI, we need enhanced curses functionality.
7905 if test x"$enable_tui" != xno; then
7906 prefer_curses=yes
7907 fi
7908
7909 curses_found=no
7910 if test x"$prefer_curses" = xyes; then
7911 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7912 # curses library because the latter might not provide all the
7913 # functionality we need. However, this leads to problems on systems
7914 # where the linker searches /usr/local/lib, but the compiler doesn't
7915 # search /usr/local/include, if ncurses is installed in /usr/local. A
7916 # default installation of ncurses on alpha*-dec-osf* will lead to such
7917 # a situation.
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7919 $as_echo_n "checking for library containing waddstr... " >&6; }
7920 if test "${ac_cv_search_waddstr+set}" = set; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 ac_func_search_save_LIBS=$LIBS
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926
7927 /* Override any GCC internal prototype to avoid an error.
7928 Use char because int might match the return type of a GCC
7929 builtin and then its argument prototype would still apply. */
7930 #ifdef __cplusplus
7931 extern "C"
7932 #endif
7933 char waddstr ();
7934 int
7935 main ()
7936 {
7937 return waddstr ();
7938 ;
7939 return 0;
7940 }
7941 _ACEOF
7942 for ac_lib in '' ncurses cursesX curses; do
7943 if test -z "$ac_lib"; then
7944 ac_res="none required"
7945 else
7946 ac_res=-l$ac_lib
7947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7948 fi
7949 if ac_fn_c_try_link "$LINENO"; then :
7950 ac_cv_search_waddstr=$ac_res
7951 fi
7952 rm -f core conftest.err conftest.$ac_objext \
7953 conftest$ac_exeext
7954 if test "${ac_cv_search_waddstr+set}" = set; then :
7955 break
7956 fi
7957 done
7958 if test "${ac_cv_search_waddstr+set}" = set; then :
7959
7960 else
7961 ac_cv_search_waddstr=no
7962 fi
7963 rm conftest.$ac_ext
7964 LIBS=$ac_func_search_save_LIBS
7965 fi
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7967 $as_echo "$ac_cv_search_waddstr" >&6; }
7968 ac_res=$ac_cv_search_waddstr
7969 if test "$ac_res" != no; then :
7970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7971
7972 fi
7973
7974
7975 if test "$ac_cv_search_waddstr" != no; then
7976 curses_found=yes
7977 fi
7978 fi
7979
7980 # Check whether we should enable the TUI, but only do so if we really
7981 # can.
7982 if test x"$enable_tui" != xno; then
7983 if test -d $srcdir/tui; then
7984 if test "$curses_found" != no; then
7985 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7986 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7987 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7988 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7989 else
7990 if test x"$enable_tui" = xyes; then
7991 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7994 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7995 fi
7996 fi
7997 fi
7998 fi
7999
8000 # Since GDB uses Readline, we need termcap functionality. In many
8001 # cases this will be provided by the curses library, but some systems
8002 # have a seperate termcap library, or no curses library at all.
8003
8004 case $host_os in
8005 cygwin*)
8006 if test -d $srcdir/libtermcap; then
8007 LIBS="../libtermcap/libtermcap.a $LIBS"
8008 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8009 fi ;;
8010 go32* | *djgpp*)
8011 ac_cv_search_tgetent="none required"
8012 ;;
8013 esac
8014
8015 # These are the libraries checked by Readline.
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8017 $as_echo_n "checking for library containing tgetent... " >&6; }
8018 if test "${ac_cv_search_tgetent+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 ac_func_search_save_LIBS=$LIBS
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8024
8025 /* Override any GCC internal prototype to avoid an error.
8026 Use char because int might match the return type of a GCC
8027 builtin and then its argument prototype would still apply. */
8028 #ifdef __cplusplus
8029 extern "C"
8030 #endif
8031 char tgetent ();
8032 int
8033 main ()
8034 {
8035 return tgetent ();
8036 ;
8037 return 0;
8038 }
8039 _ACEOF
8040 for ac_lib in '' termcap tinfo curses ncurses; do
8041 if test -z "$ac_lib"; then
8042 ac_res="none required"
8043 else
8044 ac_res=-l$ac_lib
8045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8046 fi
8047 if ac_fn_c_try_link "$LINENO"; then :
8048 ac_cv_search_tgetent=$ac_res
8049 fi
8050 rm -f core conftest.err conftest.$ac_objext \
8051 conftest$ac_exeext
8052 if test "${ac_cv_search_tgetent+set}" = set; then :
8053 break
8054 fi
8055 done
8056 if test "${ac_cv_search_tgetent+set}" = set; then :
8057
8058 else
8059 ac_cv_search_tgetent=no
8060 fi
8061 rm conftest.$ac_ext
8062 LIBS=$ac_func_search_save_LIBS
8063 fi
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8065 $as_echo "$ac_cv_search_tgetent" >&6; }
8066 ac_res=$ac_cv_search_tgetent
8067 if test "$ac_res" != no; then :
8068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8069
8070 fi
8071
8072
8073 if test "$ac_cv_search_tgetent" = no; then
8074 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
8075 fi
8076
8077
8078 # Check whether --with-system-readline was given.
8079 if test "${with_system_readline+set}" = set; then :
8080 withval=$with_system_readline;
8081 fi
8082
8083
8084 if test "$with_system_readline" = yes; then
8085 READLINE=-lreadline
8086 READLINE_DEPS=
8087 READLINE_CFLAGS=
8088 READLINE_TEXI_INCFLAG=
8089 else
8090 READLINE='$(READLINE_DIR)/libreadline.a'
8091 READLINE_DEPS='$(READLINE)'
8092 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
8093 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
8094 fi
8095
8096
8097
8098
8099
8100 # Generate jit-reader.h
8101
8102 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
8103 TARGET_PTR=
8104
8105 # The cast to long int works around a bug in the HP C Compiler
8106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8108 # This bug is HP SR number 8606223364.
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
8110 $as_echo_n "checking size of unsigned long long... " >&6; }
8111 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
8115
8116 else
8117 if test "$ac_cv_type_unsigned_long_long" = yes; then
8118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8120 { as_fn_set_status 77
8121 as_fn_error "cannot compute sizeof (unsigned long long)
8122 See \`config.log' for more details." "$LINENO" 5; }; }
8123 else
8124 ac_cv_sizeof_unsigned_long_long=0
8125 fi
8126 fi
8127
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
8130 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8131
8132
8133
8134 cat >>confdefs.h <<_ACEOF
8135 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8136 _ACEOF
8137
8138
8139 # The cast to long int works around a bug in the HP C Compiler
8140 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8141 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8142 # This bug is HP SR number 8606223364.
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8144 $as_echo_n "checking size of unsigned long... " >&6; }
8145 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8149
8150 else
8151 if test "$ac_cv_type_unsigned_long" = yes; then
8152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8154 { as_fn_set_status 77
8155 as_fn_error "cannot compute sizeof (unsigned long)
8156 See \`config.log' for more details." "$LINENO" 5; }; }
8157 else
8158 ac_cv_sizeof_unsigned_long=0
8159 fi
8160 fi
8161
8162 fi
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8164 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8165
8166
8167
8168 cat >>confdefs.h <<_ACEOF
8169 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8170 _ACEOF
8171
8172
8173 # The cast to long int works around a bug in the HP C Compiler
8174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8176 # This bug is HP SR number 8606223364.
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
8178 $as_echo_n "checking size of unsigned __int128... " >&6; }
8179 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
8183
8184 else
8185 if test "$ac_cv_type_unsigned___int128" = yes; then
8186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8188 { as_fn_set_status 77
8189 as_fn_error "cannot compute sizeof (unsigned __int128)
8190 See \`config.log' for more details." "$LINENO" 5; }; }
8191 else
8192 ac_cv_sizeof_unsigned___int128=0
8193 fi
8194 fi
8195
8196 fi
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
8198 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
8199
8200
8201
8202 cat >>confdefs.h <<_ACEOF
8203 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
8204 _ACEOF
8205
8206
8207
8208 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
8209 TARGET_PTR="unsigned long"
8210 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
8211 TARGET_PTR="unsigned long long"
8212 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
8213 TARGET_PTR="unsigned __int128"
8214 else
8215 TARGET_PTR="unsigned long"
8216 fi
8217
8218
8219 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
8220
8221
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8223 $as_echo_n "checking for library containing dlopen... " >&6; }
8224 if test "${ac_cv_search_dlopen+set}" = set; then :
8225 $as_echo_n "(cached) " >&6
8226 else
8227 ac_func_search_save_LIBS=$LIBS
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230
8231 /* Override any GCC internal prototype to avoid an error.
8232 Use char because int might match the return type of a GCC
8233 builtin and then its argument prototype would still apply. */
8234 #ifdef __cplusplus
8235 extern "C"
8236 #endif
8237 char dlopen ();
8238 int
8239 main ()
8240 {
8241 return dlopen ();
8242 ;
8243 return 0;
8244 }
8245 _ACEOF
8246 for ac_lib in '' dl; do
8247 if test -z "$ac_lib"; then
8248 ac_res="none required"
8249 else
8250 ac_res=-l$ac_lib
8251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8252 fi
8253 if ac_fn_c_try_link "$LINENO"; then :
8254 ac_cv_search_dlopen=$ac_res
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext \
8257 conftest$ac_exeext
8258 if test "${ac_cv_search_dlopen+set}" = set; then :
8259 break
8260 fi
8261 done
8262 if test "${ac_cv_search_dlopen+set}" = set; then :
8263
8264 else
8265 ac_cv_search_dlopen=no
8266 fi
8267 rm conftest.$ac_ext
8268 LIBS=$ac_func_search_save_LIBS
8269 fi
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8271 $as_echo "$ac_cv_search_dlopen" >&6; }
8272 ac_res=$ac_cv_search_dlopen
8273 if test "$ac_res" != no; then :
8274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8275
8276 fi
8277
8278
8279
8280
8281 # Check whether --with-jit-reader-dir was given.
8282 if test "${with_jit_reader_dir+set}" = set; then :
8283 withval=$with_jit_reader_dir;
8284 JIT_READER_DIR=$withval
8285 else
8286 JIT_READER_DIR=${libdir}/gdb
8287 fi
8288
8289
8290 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8292 ac_define_dir=`eval echo $JIT_READER_DIR`
8293 ac_define_dir=`eval echo $ac_define_dir`
8294
8295 cat >>confdefs.h <<_ACEOF
8296 #define JIT_READER_DIR "$ac_define_dir"
8297 _ACEOF
8298
8299
8300
8301
8302 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8303 if test "x$prefix" = xNONE; then
8304 test_prefix=/usr/local
8305 else
8306 test_prefix=$prefix
8307 fi
8308 else
8309 test_prefix=$exec_prefix
8310 fi
8311 value=0
8312 case ${ac_define_dir} in
8313 "${test_prefix}"|"${test_prefix}/"*|\
8314 '${exec_prefix}'|'${exec_prefix}/'*)
8315 value=1
8316 ;;
8317 esac
8318
8319 cat >>confdefs.h <<_ACEOF
8320 #define JIT_READER_DIR_RELOCATABLE $value
8321 _ACEOF
8322
8323
8324
8325
8326
8327 # Check whether --with-expat was given.
8328 if test "${with_expat+set}" = set; then :
8329 withval=$with_expat;
8330 else
8331 with_expat=auto
8332 fi
8333
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8335 $as_echo_n "checking whether to use expat... " >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8337 $as_echo "$with_expat" >&6; }
8338
8339 if test "${with_expat}" = no; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8341 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8342 HAVE_LIBEXPAT=no
8343 else
8344
8345
8346
8347
8348
8349
8350
8351
8352 use_additional=yes
8353
8354 acl_save_prefix="$prefix"
8355 prefix="$acl_final_prefix"
8356 acl_save_exec_prefix="$exec_prefix"
8357 exec_prefix="$acl_final_exec_prefix"
8358
8359 eval additional_includedir=\"$includedir\"
8360 eval additional_libdir=\"$libdir\"
8361
8362 exec_prefix="$acl_save_exec_prefix"
8363 prefix="$acl_save_prefix"
8364
8365
8366 # Check whether --with-libexpat-prefix was given.
8367 if test "${with_libexpat_prefix+set}" = set; then :
8368 withval=$with_libexpat_prefix;
8369 if test "X$withval" = "Xno"; then
8370 use_additional=no
8371 else
8372 if test "X$withval" = "X"; then
8373
8374 acl_save_prefix="$prefix"
8375 prefix="$acl_final_prefix"
8376 acl_save_exec_prefix="$exec_prefix"
8377 exec_prefix="$acl_final_exec_prefix"
8378
8379 eval additional_includedir=\"$includedir\"
8380 eval additional_libdir=\"$libdir\"
8381
8382 exec_prefix="$acl_save_exec_prefix"
8383 prefix="$acl_save_prefix"
8384
8385 else
8386 additional_includedir="$withval/include"
8387 additional_libdir="$withval/lib"
8388 fi
8389 fi
8390
8391 fi
8392
8393 LIBEXPAT=
8394 LTLIBEXPAT=
8395 INCEXPAT=
8396 rpathdirs=
8397 ltrpathdirs=
8398 names_already_handled=
8399 names_next_round='expat '
8400 while test -n "$names_next_round"; do
8401 names_this_round="$names_next_round"
8402 names_next_round=
8403 for name in $names_this_round; do
8404 already_handled=
8405 for n in $names_already_handled; do
8406 if test "$n" = "$name"; then
8407 already_handled=yes
8408 break
8409 fi
8410 done
8411 if test -z "$already_handled"; then
8412 names_already_handled="$names_already_handled $name"
8413 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8414 eval value=\"\$HAVE_LIB$uppername\"
8415 if test -n "$value"; then
8416 if test "$value" = yes; then
8417 eval value=\"\$LIB$uppername\"
8418 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
8419 eval value=\"\$LTLIB$uppername\"
8420 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8421 else
8422 :
8423 fi
8424 else
8425 found_dir=
8426 found_la=
8427 found_so=
8428 found_a=
8429 if test $use_additional = yes; then
8430 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8431 found_dir="$additional_libdir"
8432 found_so="$additional_libdir/lib$name.$shlibext"
8433 if test -f "$additional_libdir/lib$name.la"; then
8434 found_la="$additional_libdir/lib$name.la"
8435 fi
8436 else
8437 if test -f "$additional_libdir/lib$name.$libext"; then
8438 found_dir="$additional_libdir"
8439 found_a="$additional_libdir/lib$name.$libext"
8440 if test -f "$additional_libdir/lib$name.la"; then
8441 found_la="$additional_libdir/lib$name.la"
8442 fi
8443 fi
8444 fi
8445 fi
8446 if test "X$found_dir" = "X"; then
8447 for x in $LDFLAGS $LTLIBEXPAT; do
8448
8449 acl_save_prefix="$prefix"
8450 prefix="$acl_final_prefix"
8451 acl_save_exec_prefix="$exec_prefix"
8452 exec_prefix="$acl_final_exec_prefix"
8453 eval x=\"$x\"
8454 exec_prefix="$acl_save_exec_prefix"
8455 prefix="$acl_save_prefix"
8456
8457 case "$x" in
8458 -L*)
8459 dir=`echo "X$x" | sed -e 's/^X-L//'`
8460 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8461 found_dir="$dir"
8462 found_so="$dir/lib$name.$shlibext"
8463 if test -f "$dir/lib$name.la"; then
8464 found_la="$dir/lib$name.la"
8465 fi
8466 else
8467 if test -f "$dir/lib$name.$libext"; then
8468 found_dir="$dir"
8469 found_a="$dir/lib$name.$libext"
8470 if test -f "$dir/lib$name.la"; then
8471 found_la="$dir/lib$name.la"
8472 fi
8473 fi
8474 fi
8475 ;;
8476 esac
8477 if test "X$found_dir" != "X"; then
8478 break
8479 fi
8480 done
8481 fi
8482 if test "X$found_dir" != "X"; then
8483 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8484 if test "X$found_so" != "X"; then
8485 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8486 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8487 else
8488 haveit=
8489 for x in $ltrpathdirs; do
8490 if test "X$x" = "X$found_dir"; then
8491 haveit=yes
8492 break
8493 fi
8494 done
8495 if test -z "$haveit"; then
8496 ltrpathdirs="$ltrpathdirs $found_dir"
8497 fi
8498 if test "$hardcode_direct" = yes; then
8499 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8500 else
8501 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8502 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8503 haveit=
8504 for x in $rpathdirs; do
8505 if test "X$x" = "X$found_dir"; then
8506 haveit=yes
8507 break
8508 fi
8509 done
8510 if test -z "$haveit"; then
8511 rpathdirs="$rpathdirs $found_dir"
8512 fi
8513 else
8514 haveit=
8515 for x in $LDFLAGS $LIBEXPAT; do
8516
8517 acl_save_prefix="$prefix"
8518 prefix="$acl_final_prefix"
8519 acl_save_exec_prefix="$exec_prefix"
8520 exec_prefix="$acl_final_exec_prefix"
8521 eval x=\"$x\"
8522 exec_prefix="$acl_save_exec_prefix"
8523 prefix="$acl_save_prefix"
8524
8525 if test "X$x" = "X-L$found_dir"; then
8526 haveit=yes
8527 break
8528 fi
8529 done
8530 if test -z "$haveit"; then
8531 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8532 fi
8533 if test "$hardcode_minus_L" != no; then
8534 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8535 else
8536 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8537 fi
8538 fi
8539 fi
8540 fi
8541 else
8542 if test "X$found_a" != "X"; then
8543 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8544 else
8545 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8546 fi
8547 fi
8548 additional_includedir=
8549 case "$found_dir" in
8550 */lib | */lib/)
8551 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8552 additional_includedir="$basedir/include"
8553 ;;
8554 esac
8555 if test "X$additional_includedir" != "X"; then
8556 if test "X$additional_includedir" != "X/usr/include"; then
8557 haveit=
8558 if test "X$additional_includedir" = "X/usr/local/include"; then
8559 if test -n "$GCC"; then
8560 case $host_os in
8561 linux*) haveit=yes;;
8562 esac
8563 fi
8564 fi
8565 if test -z "$haveit"; then
8566 for x in $CPPFLAGS $INCEXPAT; do
8567
8568 acl_save_prefix="$prefix"
8569 prefix="$acl_final_prefix"
8570 acl_save_exec_prefix="$exec_prefix"
8571 exec_prefix="$acl_final_exec_prefix"
8572 eval x=\"$x\"
8573 exec_prefix="$acl_save_exec_prefix"
8574 prefix="$acl_save_prefix"
8575
8576 if test "X$x" = "X-I$additional_includedir"; then
8577 haveit=yes
8578 break
8579 fi
8580 done
8581 if test -z "$haveit"; then
8582 if test -d "$additional_includedir"; then
8583 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8584 fi
8585 fi
8586 fi
8587 fi
8588 fi
8589 if test -n "$found_la"; then
8590 save_libdir="$libdir"
8591 case "$found_la" in
8592 */* | *\\*) . "$found_la" ;;
8593 *) . "./$found_la" ;;
8594 esac
8595 libdir="$save_libdir"
8596 for dep in $dependency_libs; do
8597 case "$dep" in
8598 -L*)
8599 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8600 if test "X$additional_libdir" != "X/usr/lib"; then
8601 haveit=
8602 if test "X$additional_libdir" = "X/usr/local/lib"; then
8603 if test -n "$GCC"; then
8604 case $host_os in
8605 linux*) haveit=yes;;
8606 esac
8607 fi
8608 fi
8609 if test -z "$haveit"; then
8610 haveit=
8611 for x in $LDFLAGS $LIBEXPAT; do
8612
8613 acl_save_prefix="$prefix"
8614 prefix="$acl_final_prefix"
8615 acl_save_exec_prefix="$exec_prefix"
8616 exec_prefix="$acl_final_exec_prefix"
8617 eval x=\"$x\"
8618 exec_prefix="$acl_save_exec_prefix"
8619 prefix="$acl_save_prefix"
8620
8621 if test "X$x" = "X-L$additional_libdir"; then
8622 haveit=yes
8623 break
8624 fi
8625 done
8626 if test -z "$haveit"; then
8627 if test -d "$additional_libdir"; then
8628 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8629 fi
8630 fi
8631 haveit=
8632 for x in $LDFLAGS $LTLIBEXPAT; do
8633
8634 acl_save_prefix="$prefix"
8635 prefix="$acl_final_prefix"
8636 acl_save_exec_prefix="$exec_prefix"
8637 exec_prefix="$acl_final_exec_prefix"
8638 eval x=\"$x\"
8639 exec_prefix="$acl_save_exec_prefix"
8640 prefix="$acl_save_prefix"
8641
8642 if test "X$x" = "X-L$additional_libdir"; then
8643 haveit=yes
8644 break
8645 fi
8646 done
8647 if test -z "$haveit"; then
8648 if test -d "$additional_libdir"; then
8649 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8650 fi
8651 fi
8652 fi
8653 fi
8654 ;;
8655 -R*)
8656 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8657 if test "$enable_rpath" != no; then
8658 haveit=
8659 for x in $rpathdirs; do
8660 if test "X$x" = "X$dir"; then
8661 haveit=yes
8662 break
8663 fi
8664 done
8665 if test -z "$haveit"; then
8666 rpathdirs="$rpathdirs $dir"
8667 fi
8668 haveit=
8669 for x in $ltrpathdirs; do
8670 if test "X$x" = "X$dir"; then
8671 haveit=yes
8672 break
8673 fi
8674 done
8675 if test -z "$haveit"; then
8676 ltrpathdirs="$ltrpathdirs $dir"
8677 fi
8678 fi
8679 ;;
8680 -l*)
8681 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8682 ;;
8683 *.la)
8684 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8685 ;;
8686 *)
8687 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8688 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8689 ;;
8690 esac
8691 done
8692 fi
8693 else
8694 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8695 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8696 fi
8697 fi
8698 fi
8699 done
8700 done
8701 if test "X$rpathdirs" != "X"; then
8702 if test -n "$hardcode_libdir_separator"; then
8703 alldirs=
8704 for found_dir in $rpathdirs; do
8705 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8706 done
8707 acl_save_libdir="$libdir"
8708 libdir="$alldirs"
8709 eval flag=\"$hardcode_libdir_flag_spec\"
8710 libdir="$acl_save_libdir"
8711 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8712 else
8713 for found_dir in $rpathdirs; do
8714 acl_save_libdir="$libdir"
8715 libdir="$found_dir"
8716 eval flag=\"$hardcode_libdir_flag_spec\"
8717 libdir="$acl_save_libdir"
8718 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8719 done
8720 fi
8721 fi
8722 if test "X$ltrpathdirs" != "X"; then
8723 for found_dir in $ltrpathdirs; do
8724 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8725 done
8726 fi
8727
8728
8729 ac_save_CPPFLAGS="$CPPFLAGS"
8730
8731 for element in $INCEXPAT; do
8732 haveit=
8733 for x in $CPPFLAGS; do
8734
8735 acl_save_prefix="$prefix"
8736 prefix="$acl_final_prefix"
8737 acl_save_exec_prefix="$exec_prefix"
8738 exec_prefix="$acl_final_exec_prefix"
8739 eval x=\"$x\"
8740 exec_prefix="$acl_save_exec_prefix"
8741 prefix="$acl_save_prefix"
8742
8743 if test "X$x" = "X$element"; then
8744 haveit=yes
8745 break
8746 fi
8747 done
8748 if test -z "$haveit"; then
8749 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8750 fi
8751 done
8752
8753
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8755 $as_echo_n "checking for libexpat... " >&6; }
8756 if test "${ac_cv_libexpat+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759
8760 ac_save_LIBS="$LIBS"
8761 LIBS="$LIBS $LIBEXPAT"
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8764 #include "expat.h"
8765 int
8766 main ()
8767 {
8768 XML_Parser p = XML_ParserCreate (0);
8769 ;
8770 return 0;
8771 }
8772 _ACEOF
8773 if ac_fn_c_try_link "$LINENO"; then :
8774 ac_cv_libexpat=yes
8775 else
8776 ac_cv_libexpat=no
8777 fi
8778 rm -f core conftest.err conftest.$ac_objext \
8779 conftest$ac_exeext conftest.$ac_ext
8780 LIBS="$ac_save_LIBS"
8781
8782 fi
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8784 $as_echo "$ac_cv_libexpat" >&6; }
8785 if test "$ac_cv_libexpat" = yes; then
8786 HAVE_LIBEXPAT=yes
8787
8788 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8789
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8791 $as_echo_n "checking how to link with libexpat... " >&6; }
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8793 $as_echo "$LIBEXPAT" >&6; }
8794 else
8795 HAVE_LIBEXPAT=no
8796 CPPFLAGS="$ac_save_CPPFLAGS"
8797 LIBEXPAT=
8798 LTLIBEXPAT=
8799 fi
8800
8801
8802
8803
8804
8805
8806 if test "$HAVE_LIBEXPAT" != yes; then
8807 if test "$with_expat" = yes; then
8808 as_fn_error "expat is missing or unusable" "$LINENO" 5
8809 else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8811 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8812 fi
8813 else
8814 save_LIBS=$LIBS
8815 LIBS="$LIBS $LIBEXPAT"
8816 for ac_func in XML_StopParser
8817 do :
8818 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8819 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
8820 cat >>confdefs.h <<_ACEOF
8821 #define HAVE_XML_STOPPARSER 1
8822 _ACEOF
8823
8824 fi
8825 done
8826
8827 LIBS=$save_LIBS
8828 fi
8829 fi
8830
8831 # --------------------- #
8832 # Check for libpython. #
8833 # --------------------- #
8834
8835
8836
8837
8838
8839
8840 # Check whether --with-python was given.
8841 if test "${with_python+set}" = set; then :
8842 withval=$with_python;
8843 else
8844 with_python=auto
8845 fi
8846
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8848 $as_echo_n "checking whether to use python... " >&6; }
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8850 $as_echo "$with_python" >&6; }
8851
8852 if test "${with_python}" = no; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8854 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8855 have_libpython=no
8856 else
8857 case "${with_python}" in
8858 [\\/]* | ?:[\\/]*)
8859 if test -d ${with_python}; then
8860 # Assume the python binary is ${with_python}/bin/python.
8861 python_prog="${with_python}/bin/python"
8862 python_prefix=
8863 # If python does not exit ${with_python}/bin, then try in
8864 # ${with_python}. On Windows/MinGW, this is where the Python
8865 # executable is.
8866 if test ! -x "${python_prog}"; then
8867 python_prog="${with_python}/python"
8868 python_prefix=
8869 fi
8870 if test ! -x "${python_prog}"; then
8871 # Fall back to gdb 7.0/7.1 behaviour.
8872 python_prog=missing
8873 python_prefix=${with_python}
8874 fi
8875 elif test -x "${with_python}"; then
8876 # While we can't run python compiled for $host (unless host == build),
8877 # the user could write a script that provides the needed information,
8878 # so we support that.
8879 python_prog=${with_python}
8880 python_prefix=
8881 else
8882 as_fn_error "invalid value for --with-python" "$LINENO" 5
8883 fi
8884 ;;
8885 */*)
8886 # Disallow --with-python=foo/bar.
8887 as_fn_error "invalid value for --with-python" "$LINENO" 5
8888 ;;
8889 *)
8890 # The user has either specified auto, yes, or the name of the python
8891 # program assumed to be in $PATH.
8892 python_prefix=
8893 case "${with_python}" in
8894 yes | auto)
8895 if test ${build} = ${host}; then
8896 # Extract the first word of "python", so it can be a program name with args.
8897 set dummy python; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 case $python_prog_path in
8904 [\\/]* | ?:[\\/]*)
8905 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8906 ;;
8907 *)
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH
8910 do
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8915 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 break 2
8918 fi
8919 done
8920 done
8921 IFS=$as_save_IFS
8922
8923 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8924 ;;
8925 esac
8926 fi
8927 python_prog_path=$ac_cv_path_python_prog_path
8928 if test -n "$python_prog_path"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8930 $as_echo "$python_prog_path" >&6; }
8931 else
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8934 fi
8935
8936
8937 if test "${python_prog_path}" = missing; then
8938 python_prog=missing
8939 else
8940 python_prog=${python_prog_path}
8941 fi
8942 else
8943 # Not much we can do except assume the cross-compiler will find the
8944 # right files.
8945 python_prog=missing
8946 fi
8947 ;;
8948 *)
8949 # While we can't run python compiled for $host (unless host == build),
8950 # the user could write a script that provides the needed information,
8951 # so we support that.
8952 python_prog="${with_python}"
8953 # Extract the first word of "${python_prog}", so it can be a program name with args.
8954 set dummy ${python_prog}; ac_word=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 case $python_prog_path in
8961 [\\/]* | ?:[\\/]*)
8962 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8963 ;;
8964 *)
8965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966 for as_dir in $PATH
8967 do
8968 IFS=$as_save_IFS
8969 test -z "$as_dir" && as_dir=.
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8972 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 break 2
8975 fi
8976 done
8977 done
8978 IFS=$as_save_IFS
8979
8980 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8981 ;;
8982 esac
8983 fi
8984 python_prog_path=$ac_cv_path_python_prog_path
8985 if test -n "$python_prog_path"; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8987 $as_echo "$python_prog_path" >&6; }
8988 else
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990 $as_echo "no" >&6; }
8991 fi
8992
8993
8994 if test "${python_prog_path}" = missing; then
8995 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8996 fi
8997 ;;
8998 esac
8999 esac
9000
9001 if test "${python_prog}" != missing; then
9002 # We have a python program to use, but it may be too old.
9003 # Don't flag an error for --with-python=auto (the default).
9004 have_python_config=yes
9005 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
9006 if test $? != 0; then
9007 have_python_config=failed
9008 if test "${with_python}" != auto; then
9009 as_fn_error "failure running python-config --includes" "$LINENO" 5
9010 fi
9011 fi
9012 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
9013 if test $? != 0; then
9014 have_python_config=failed
9015 if test "${with_python}" != auto; then
9016 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
9017 fi
9018 fi
9019 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
9020 if test $? != 0; then
9021 have_python_config=failed
9022 if test "${with_python}" != auto; then
9023 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
9024 fi
9025 fi
9026 else
9027 # We do not have a python executable we can use to determine where
9028 # to find the Python headers and libs. We cannot guess the include
9029 # path from the python_prefix either, because that include path
9030 # depends on the Python version. So, there is nothing much we can
9031 # do except assume that the compiler will be able to find those files.
9032 python_includes=
9033 python_libs=
9034 have_python_config=no
9035 fi
9036
9037 # If we have python-config, only try the configuration it provides.
9038 # Otherwise fallback on the old way of trying different versions of
9039 # python in turn.
9040
9041 have_libpython=no
9042 if test "${have_python_config}" = yes; then
9043 # Determine the Python version by extracting "-lpython<version>"
9044 # part of the python_libs. <version> is usually X.Y with X and Y
9045 # being decimal numbers, but can also be XY (seen on Windows).
9046 #
9047 # The extraction is performed using sed with a regular expression.
9048 # Initially, the regexp used was using the '?' quantifier to make
9049 # the dot in the version number optional. Unfortunately, this
9050 # does not work with non-GNU versions of sed because, because of
9051 # what looks like a limitation (the '?' quantifier does not work
9052 # with back-references). We work around this limitation by using
9053 # the '*' quantifier instead. It means that, in theory, we might
9054 # match unexpected version strings such as "-lpython2..7", but
9055 # this seems unlikely in practice. And even if that happens,
9056 # an error will be triggered later on, when checking that version
9057 # number.
9058 python_version=`echo " ${python_libs} " \
9059 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
9060 case "${python_version}" in
9061 python*)
9062
9063 version=${python_version}
9064
9065 new_CPPFLAGS=${python_includes}
9066 new_LIBS=${python_libs}
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9068 $as_echo_n "checking for ${version}... " >&6; }
9069 save_CPPFLAGS=$CPPFLAGS
9070 save_LIBS=$LIBS
9071 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9072 LIBS="$LIBS $new_LIBS"
9073 found_usable_python=no
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #include "Python.h"
9077 int
9078 main ()
9079 {
9080 Py_Initialize ();
9081 ;
9082 return 0;
9083 }
9084 _ACEOF
9085 if ac_fn_c_try_link "$LINENO"; then :
9086 have_libpython=${version}
9087 found_usable_python=yes
9088 PYTHON_CPPFLAGS=$new_CPPFLAGS
9089 PYTHON_LIBS=$new_LIBS
9090 fi
9091 rm -f core conftest.err conftest.$ac_objext \
9092 conftest$ac_exeext conftest.$ac_ext
9093 CPPFLAGS=$save_CPPFLAGS
9094 LIBS=$save_LIBS
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9096 $as_echo "${found_usable_python}" >&6; }
9097
9098 ;;
9099 *)
9100 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
9101 ;;
9102 esac
9103 elif test "${have_python_config}" != failed; then
9104 if test "${have_libpython}" = no; then
9105
9106 version=python2.7
9107
9108 new_CPPFLAGS=${python_includes}
9109 new_LIBS="${python_libs} -lpython2.7"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9111 $as_echo_n "checking for ${version}... " >&6; }
9112 save_CPPFLAGS=$CPPFLAGS
9113 save_LIBS=$LIBS
9114 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9115 LIBS="$LIBS $new_LIBS"
9116 found_usable_python=no
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 #include "Python.h"
9120 int
9121 main ()
9122 {
9123 Py_Initialize ();
9124 ;
9125 return 0;
9126 }
9127 _ACEOF
9128 if ac_fn_c_try_link "$LINENO"; then :
9129 have_libpython=${version}
9130 found_usable_python=yes
9131 PYTHON_CPPFLAGS=$new_CPPFLAGS
9132 PYTHON_LIBS=$new_LIBS
9133 fi
9134 rm -f core conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext conftest.$ac_ext
9136 CPPFLAGS=$save_CPPFLAGS
9137 LIBS=$save_LIBS
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9139 $as_echo "${found_usable_python}" >&6; }
9140
9141 fi
9142 if test "${have_libpython}" = no; then
9143
9144 version=python2.6
9145
9146 new_CPPFLAGS=${python_includes}
9147 new_LIBS="${python_libs} -lpython2.6"
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9149 $as_echo_n "checking for ${version}... " >&6; }
9150 save_CPPFLAGS=$CPPFLAGS
9151 save_LIBS=$LIBS
9152 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9153 LIBS="$LIBS $new_LIBS"
9154 found_usable_python=no
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9157 #include "Python.h"
9158 int
9159 main ()
9160 {
9161 Py_Initialize ();
9162 ;
9163 return 0;
9164 }
9165 _ACEOF
9166 if ac_fn_c_try_link "$LINENO"; then :
9167 have_libpython=${version}
9168 found_usable_python=yes
9169 PYTHON_CPPFLAGS=$new_CPPFLAGS
9170 PYTHON_LIBS=$new_LIBS
9171 fi
9172 rm -f core conftest.err conftest.$ac_objext \
9173 conftest$ac_exeext conftest.$ac_ext
9174 CPPFLAGS=$save_CPPFLAGS
9175 LIBS=$save_LIBS
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9177 $as_echo "${found_usable_python}" >&6; }
9178
9179 fi
9180 if test ${have_libpython} = no; then
9181
9182 version=python2.5
9183
9184 new_CPPFLAGS=${python_includes}
9185 new_LIBS="${python_libs} -lpython2.5"
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9187 $as_echo_n "checking for ${version}... " >&6; }
9188 save_CPPFLAGS=$CPPFLAGS
9189 save_LIBS=$LIBS
9190 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9191 LIBS="$LIBS $new_LIBS"
9192 found_usable_python=no
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9195 #include "Python.h"
9196 int
9197 main ()
9198 {
9199 Py_Initialize ();
9200 ;
9201 return 0;
9202 }
9203 _ACEOF
9204 if ac_fn_c_try_link "$LINENO"; then :
9205 have_libpython=${version}
9206 found_usable_python=yes
9207 PYTHON_CPPFLAGS=$new_CPPFLAGS
9208 PYTHON_LIBS=$new_LIBS
9209 fi
9210 rm -f core conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212 CPPFLAGS=$save_CPPFLAGS
9213 LIBS=$save_LIBS
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9215 $as_echo "${found_usable_python}" >&6; }
9216
9217 fi
9218 if test ${have_libpython} = no; then
9219
9220 version=python2.4
9221
9222 new_CPPFLAGS=${python_includes}
9223 new_LIBS="${python_libs} -lpython2.4"
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9225 $as_echo_n "checking for ${version}... " >&6; }
9226 save_CPPFLAGS=$CPPFLAGS
9227 save_LIBS=$LIBS
9228 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9229 LIBS="$LIBS $new_LIBS"
9230 found_usable_python=no
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include "Python.h"
9234 int
9235 main ()
9236 {
9237 Py_Initialize ();
9238 ;
9239 return 0;
9240 }
9241 _ACEOF
9242 if ac_fn_c_try_link "$LINENO"; then :
9243 have_libpython=${version}
9244 found_usable_python=yes
9245 PYTHON_CPPFLAGS=$new_CPPFLAGS
9246 PYTHON_LIBS=$new_LIBS
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250 CPPFLAGS=$save_CPPFLAGS
9251 LIBS=$save_LIBS
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9253 $as_echo "${found_usable_python}" >&6; }
9254
9255 fi
9256 fi
9257 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
9258
9259 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
9260
9261 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
9262
9263 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9264
9265 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
9266
9267 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9268
9269 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
9270
9271 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9272
9273 fi
9274
9275 if test "${have_libpython}" = no; then
9276 case "${with_python}" in
9277 yes)
9278 as_fn_error "python is missing or unusable" "$LINENO" 5
9279 ;;
9280 auto)
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9282 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9283 ;;
9284 *)
9285 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
9286 ;;
9287 esac
9288 else
9289 if test -n "${python_prefix}"; then
9290
9291 cat >>confdefs.h <<_ACEOF
9292 #define WITH_PYTHON_PATH "${python_prefix}"
9293 _ACEOF
9294
9295
9296 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9297 if test "x$prefix" = xNONE; then
9298 test_prefix=/usr/local
9299 else
9300 test_prefix=$prefix
9301 fi
9302 else
9303 test_prefix=$exec_prefix
9304 fi
9305 value=0
9306 case ${python_prefix} in
9307 "${test_prefix}"|"${test_prefix}/"*|\
9308 '${exec_prefix}'|'${exec_prefix}/'*)
9309 value=1
9310 ;;
9311 esac
9312
9313 cat >>confdefs.h <<_ACEOF
9314 #define PYTHON_PATH_RELOCATABLE $value
9315 _ACEOF
9316
9317
9318 fi
9319 fi
9320 fi
9321
9322 if test "${have_libpython}" != no; then
9323
9324 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9325
9326 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9327 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9328 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9329 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
9330 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9331
9332 # Flags needed to compile Python code (taken from python-config --cflags).
9333 # We cannot call python-config directly because it will output whatever was
9334 # used when compiling the Python interpreter itself, including flags which
9335 # would make the python-related objects be compiled differently from the
9336 # rest of GDB (e.g., -O2 and -fPIC).
9337 if test "${GCC}" = yes; then
9338 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
9339 fi
9340
9341 if test "x${tentative_python_cflags}" != x; then
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9343 $as_echo_n "checking compiler flags for python code... " >&6; }
9344 for flag in ${tentative_python_cflags}; do
9345 # Check that the compiler accepts it
9346 saved_CFLAGS="$CFLAGS"
9347 CFLAGS="$CFLAGS $flag"
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9350
9351 int
9352 main ()
9353 {
9354
9355 ;
9356 return 0;
9357 }
9358 _ACEOF
9359 if ac_fn_c_try_compile "$LINENO"; then :
9360 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
9361 fi
9362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9363 CFLAGS="$saved_CFLAGS"
9364 done
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9366 $as_echo "${PYTHON_CFLAGS}" >&6; }
9367 fi
9368
9369 # On x64 Windows, Python's include headers, and pyconfig.h in
9370 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
9371 # version of Windows. Unfortunately, MS_WIN64 is only defined if
9372 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
9373 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
9374 # The issue was reported to the Python community, but still isn't
9375 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
9376
9377 case "$gdb_host" in
9378 mingw64)
9379 if test "${GCC}" = yes; then
9380 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
9381 fi
9382 ;;
9383 esac
9384
9385 # Note that "python -m threading" cannot be used to check for
9386 # threading support due to a bug in Python 2.7.3
9387 # (http://bugs.python.org/issue15567).
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
9389 $as_echo_n "checking whether python supports threads... " >&6; }
9390 saved_CPPFLAGS="${CPPFLAGS}"
9391 CPPFLAGS="${PYTHON_CPPFLAGS}"
9392 # Note that the test is reversed so that python_has_threads=yes on
9393 # unexpected failures.
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9396
9397 #include <Python.h>
9398 #ifdef WITH_THREAD
9399 # error
9400 #endif
9401
9402 _ACEOF
9403 if ac_fn_c_try_cpp "$LINENO"; then :
9404 python_has_threads=no
9405 else
9406 python_has_threads=yes
9407 fi
9408 rm -f conftest.err conftest.$ac_ext
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9410 $as_echo "${python_has_threads}" >&6; }
9411 CPPFLAGS="${saved_CPPFLAGS}"
9412 else
9413 # Even if Python support is not compiled in, we need to have this file
9414 # included so that the "python" command, et.al., still exists.
9415 CONFIG_OBS="$CONFIG_OBS python.o"
9416 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
9417 fi
9418
9419 # Work around Python http://bugs.python.org/issue10112. See also
9420 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
9421 # no effect. Note that the only test after this that uses Python is
9422 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
9423 # run without -export-dynamic too.
9424 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
9425
9426
9427
9428
9429 if test "${have_libpython}" != no; then
9430 HAVE_PYTHON_TRUE=
9431 HAVE_PYTHON_FALSE='#'
9432 else
9433 HAVE_PYTHON_TRUE='#'
9434 HAVE_PYTHON_FALSE=
9435 fi
9436
9437
9438 # -------------------- #
9439 # Check for libguile. #
9440 # -------------------- #
9441
9442
9443
9444
9445
9446
9447 # Check whether --with-guile was given.
9448 if test "${with_guile+set}" = set; then :
9449 withval=$with_guile;
9450 else
9451 with_guile=auto
9452 fi
9453
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9455 $as_echo_n "checking whether to use guile... " >&6; }
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9457 $as_echo "$with_guile" >&6; }
9458
9459 # Extract the first word of "pkg-config", so it can be a program name with args.
9460 set dummy pkg-config; ac_word=$2
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462 $as_echo_n "checking for $ac_word... " >&6; }
9463 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 case $pkg_config_prog_path in
9467 [\\/]* | ?:[\\/]*)
9468 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
9469 ;;
9470 *)
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 for as_dir in $PATH
9473 do
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9478 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9481 fi
9482 done
9483 done
9484 IFS=$as_save_IFS
9485
9486 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
9487 ;;
9488 esac
9489 fi
9490 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
9491 if test -n "$pkg_config_prog_path"; then
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9493 $as_echo "$pkg_config_prog_path" >&6; }
9494 else
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9496 $as_echo "no" >&6; }
9497 fi
9498
9499
9500
9501 try_guile_versions="guile-2.2 guile-2.0"
9502 have_libguile=no
9503 case "${with_guile}" in
9504 no)
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9506 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9507 ;;
9508 auto)
9509 if test "${pkg_config_prog_path}" = "missing"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9511 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9512 else
9513
9514 pkg_config=${pkg_config_prog_path}
9515 guile_version_list=${try_guile_versions}
9516 flag_errors=no
9517
9518 found_usable_guile=checking
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9520 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9521 for guile_version in ${guile_version_list}; do
9522 ${pkg_config} --exists ${guile_version} 2>/dev/null
9523 if test $? != 0; then
9524 continue
9525 fi
9526 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9527 if test $? != 0; then
9528 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9529 fi
9530 new_LIBS=`${pkg_config} --libs ${guile_version}`
9531 if test $? != 0; then
9532 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9533 fi
9534 found_usable_guile=${guile_version}
9535 break
9536 done
9537 if test "${found_usable_guile}" = "checking"; then
9538 if test "${flag_errors}" = "yes"; then
9539 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9540 else
9541 found_usable_guile=no
9542 fi
9543 fi
9544 if test "${found_usable_guile}" != no; then
9545 save_CPPFLAGS=$CPPFLAGS
9546 save_LIBS=$LIBS
9547 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9548 LIBS="$LIBS $new_LIBS"
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9551 #include "libguile.h"
9552 int
9553 main ()
9554 {
9555 scm_init_guile ();
9556 ;
9557 return 0;
9558 }
9559 _ACEOF
9560 if ac_fn_c_try_link "$LINENO"; then :
9561 have_libguile=yes
9562 GUILE_CPPFLAGS=$new_CPPFLAGS
9563 GUILE_LIBS=$new_LIBS
9564 else
9565 found_usable_guile=no
9566 fi
9567 rm -f core conftest.err conftest.$ac_objext \
9568 conftest$ac_exeext conftest.$ac_ext
9569 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9570 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9571
9572 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9573
9574
9575 fi
9576
9577 CPPFLAGS=$save_CPPFLAGS
9578 LIBS=$save_LIBS
9579 if test "${found_usable_guile}" = no; then
9580 if test "${flag_errors}" = yes; then
9581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9583 as_fn_error "linking guile version ${guile_version} test program failed
9584 See \`config.log' for more details." "$LINENO" 5; }
9585 fi
9586 fi
9587 fi
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9589 $as_echo "${found_usable_guile}" >&6; }
9590
9591 fi
9592 ;;
9593 yes)
9594 if test "${pkg_config_prog_path}" = "missing"; then
9595 as_fn_error "pkg-config not found" "$LINENO" 5
9596 fi
9597
9598 pkg_config=${pkg_config_prog_path}
9599 guile_version_list=${try_guile_versions}
9600 flag_errors=yes
9601
9602 found_usable_guile=checking
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9604 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9605 for guile_version in ${guile_version_list}; do
9606 ${pkg_config} --exists ${guile_version} 2>/dev/null
9607 if test $? != 0; then
9608 continue
9609 fi
9610 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9611 if test $? != 0; then
9612 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9613 fi
9614 new_LIBS=`${pkg_config} --libs ${guile_version}`
9615 if test $? != 0; then
9616 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9617 fi
9618 found_usable_guile=${guile_version}
9619 break
9620 done
9621 if test "${found_usable_guile}" = "checking"; then
9622 if test "${flag_errors}" = "yes"; then
9623 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9624 else
9625 found_usable_guile=no
9626 fi
9627 fi
9628 if test "${found_usable_guile}" != no; then
9629 save_CPPFLAGS=$CPPFLAGS
9630 save_LIBS=$LIBS
9631 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9632 LIBS="$LIBS $new_LIBS"
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 #include "libguile.h"
9636 int
9637 main ()
9638 {
9639 scm_init_guile ();
9640 ;
9641 return 0;
9642 }
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9645 have_libguile=yes
9646 GUILE_CPPFLAGS=$new_CPPFLAGS
9647 GUILE_LIBS=$new_LIBS
9648 else
9649 found_usable_guile=no
9650 fi
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9654 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9655
9656 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9657
9658
9659 fi
9660
9661 CPPFLAGS=$save_CPPFLAGS
9662 LIBS=$save_LIBS
9663 if test "${found_usable_guile}" = no; then
9664 if test "${flag_errors}" = yes; then
9665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9667 as_fn_error "linking guile version ${guile_version} test program failed
9668 See \`config.log' for more details." "$LINENO" 5; }
9669 fi
9670 fi
9671 fi
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9673 $as_echo "${found_usable_guile}" >&6; }
9674
9675 ;;
9676 [\\/]* | ?:[\\/]*)
9677 if test -x "${with_guile}"; then
9678
9679 pkg_config=${with_guile}
9680 guile_version_list=${try_guile_versions}
9681 flag_errors=yes
9682
9683 found_usable_guile=checking
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9685 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9686 for guile_version in ${guile_version_list}; do
9687 ${pkg_config} --exists ${guile_version} 2>/dev/null
9688 if test $? != 0; then
9689 continue
9690 fi
9691 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9692 if test $? != 0; then
9693 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9694 fi
9695 new_LIBS=`${pkg_config} --libs ${guile_version}`
9696 if test $? != 0; then
9697 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9698 fi
9699 found_usable_guile=${guile_version}
9700 break
9701 done
9702 if test "${found_usable_guile}" = "checking"; then
9703 if test "${flag_errors}" = "yes"; then
9704 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9705 else
9706 found_usable_guile=no
9707 fi
9708 fi
9709 if test "${found_usable_guile}" != no; then
9710 save_CPPFLAGS=$CPPFLAGS
9711 save_LIBS=$LIBS
9712 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9713 LIBS="$LIBS $new_LIBS"
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716 #include "libguile.h"
9717 int
9718 main ()
9719 {
9720 scm_init_guile ();
9721 ;
9722 return 0;
9723 }
9724 _ACEOF
9725 if ac_fn_c_try_link "$LINENO"; then :
9726 have_libguile=yes
9727 GUILE_CPPFLAGS=$new_CPPFLAGS
9728 GUILE_LIBS=$new_LIBS
9729 else
9730 found_usable_guile=no
9731 fi
9732 rm -f core conftest.err conftest.$ac_objext \
9733 conftest$ac_exeext conftest.$ac_ext
9734 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9735 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9736
9737 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9738
9739
9740 fi
9741
9742 CPPFLAGS=$save_CPPFLAGS
9743 LIBS=$save_LIBS
9744 if test "${found_usable_guile}" = no; then
9745 if test "${flag_errors}" = yes; then
9746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9748 as_fn_error "linking guile version ${guile_version} test program failed
9749 See \`config.log' for more details." "$LINENO" 5; }
9750 fi
9751 fi
9752 fi
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9754 $as_echo "${found_usable_guile}" >&6; }
9755
9756 else
9757 as_fn_error "Guile config program not executable: ${with_guile}" "$LINENO" 5
9758 fi
9759 ;;
9760 "" | */*)
9761 # Disallow --with=guile="" and --with-guile=foo/bar.
9762 as_fn_error "invalid value for --with-guile" "$LINENO" 5
9763 ;;
9764 *)
9765 # A space separate list of guile versions to try, in order.
9766 if test "${pkg_config_prog_path}" = "missing"; then
9767 as_fn_error "pkg-config not found" "$LINENO" 5
9768 fi
9769
9770 pkg_config=${pkg_config_prog_path}
9771 guile_version_list=${with_guile}
9772 flag_errors=yes
9773
9774 found_usable_guile=checking
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9776 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9777 for guile_version in ${guile_version_list}; do
9778 ${pkg_config} --exists ${guile_version} 2>/dev/null
9779 if test $? != 0; then
9780 continue
9781 fi
9782 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9783 if test $? != 0; then
9784 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9785 fi
9786 new_LIBS=`${pkg_config} --libs ${guile_version}`
9787 if test $? != 0; then
9788 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9789 fi
9790 found_usable_guile=${guile_version}
9791 break
9792 done
9793 if test "${found_usable_guile}" = "checking"; then
9794 if test "${flag_errors}" = "yes"; then
9795 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9796 else
9797 found_usable_guile=no
9798 fi
9799 fi
9800 if test "${found_usable_guile}" != no; then
9801 save_CPPFLAGS=$CPPFLAGS
9802 save_LIBS=$LIBS
9803 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9804 LIBS="$LIBS $new_LIBS"
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9807 #include "libguile.h"
9808 int
9809 main ()
9810 {
9811 scm_init_guile ();
9812 ;
9813 return 0;
9814 }
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"; then :
9817 have_libguile=yes
9818 GUILE_CPPFLAGS=$new_CPPFLAGS
9819 GUILE_LIBS=$new_LIBS
9820 else
9821 found_usable_guile=no
9822 fi
9823 rm -f core conftest.err conftest.$ac_objext \
9824 conftest$ac_exeext conftest.$ac_ext
9825 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9826 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9827
9828 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9829
9830
9831 fi
9832
9833 CPPFLAGS=$save_CPPFLAGS
9834 LIBS=$save_LIBS
9835 if test "${found_usable_guile}" = no; then
9836 if test "${flag_errors}" = yes; then
9837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9839 as_fn_error "linking guile version ${guile_version} test program failed
9840 See \`config.log' for more details." "$LINENO" 5; }
9841 fi
9842 fi
9843 fi
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9845 $as_echo "${found_usable_guile}" >&6; }
9846
9847 ;;
9848 esac
9849
9850 if test "${have_libguile}" != no; then
9851 case "${with_guile}" in
9852 [\\/]* | ?:[\\/]*)
9853
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9855 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9856 if test "${ac_cv_guild_program_name+set}" = set; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
9860
9861 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9862 # the 'guild' and 'bindir' variables. In that case, try to guess
9863 # what the program name is, at the risk of getting it wrong if
9864 # Guile was configured with '--program-suffix' or similar.
9865 if test "x$ac_cv_guild_program_name" = "x"; then
9866 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9867 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9868 fi
9869
9870 fi
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9872 $as_echo "$ac_cv_guild_program_name" >&6; }
9873
9874 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9875 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9876 fi
9877
9878 GUILD="$ac_cv_guild_program_name"
9879
9880
9881 ;;
9882 *)
9883
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9885 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9886 if test "${ac_cv_guild_program_name+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9888 else
9889 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9890
9891 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9892 # the 'guild' and 'bindir' variables. In that case, try to guess
9893 # what the program name is, at the risk of getting it wrong if
9894 # Guile was configured with '--program-suffix' or similar.
9895 if test "x$ac_cv_guild_program_name" = "x"; then
9896 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9897 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9898 fi
9899
9900 fi
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9902 $as_echo "$ac_cv_guild_program_name" >&6; }
9903
9904 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9905 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9906 fi
9907
9908 GUILD="$ac_cv_guild_program_name"
9909
9910
9911 ;;
9912 esac
9913
9914
9915 if test "$cross_compiling" = no; then
9916 GUILD_TARGET_FLAG=
9917 else
9918 GUILD_TARGET_FLAG="--target=$host"
9919 fi
9920
9921
9922
9923
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9925 $as_echo_n "checking whether guild supports this host... " >&6; }
9926 if test "${ac_cv_guild_ok+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9930 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9931 ac_cv_guild_ok=yes
9932 else
9933 ac_cv_guild_ok=no
9934 fi
9935 fi
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9937 $as_echo "$ac_cv_guild_ok" >&6; }
9938
9939 if test "$ac_cv_guild_ok" = no; then
9940 have_libguile=no
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9942 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9943 fi
9944 fi
9945
9946 if test "${have_libguile}" != no; then
9947
9948 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9949
9950 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9951 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9952 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9953 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
9954 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9955
9956 save_LIBS="$LIBS"
9957 save_CPPFLAGS="$CPPFLAGS"
9958 LIBS="$GUILE_LIBS"
9959 CPPFLAGS="$GUILE_CPPFLAGS"
9960 for ac_func in scm_new_smob
9961 do :
9962 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9963 if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
9964 cat >>confdefs.h <<_ACEOF
9965 #define HAVE_SCM_NEW_SMOB 1
9966 _ACEOF
9967
9968 fi
9969 done
9970
9971 LIBS="$save_LIBS"
9972 CPPFLAGS="$save_CPPFLAGS"
9973 else
9974 # Even if Guile support is not compiled in, we need to have these files
9975 # included.
9976 CONFIG_OBS="$CONFIG_OBS guile.o"
9977 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
9978 fi
9979
9980
9981 if test "${have_libguile}" != no; then
9982 HAVE_GUILE_TRUE=
9983 HAVE_GUILE_FALSE='#'
9984 else
9985 HAVE_GUILE_TRUE='#'
9986 HAVE_GUILE_FALSE=
9987 fi
9988
9989
9990 # --------------------- #
9991 # Check for libmcheck. #
9992 # --------------------- #
9993
9994 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9995 # but turn it off if Python is enabled with threads, since -lmcheck is
9996 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9997 # and for releases.
9998 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
9999 && $development; then
10000 libmcheck_default=yes
10001 else
10002 libmcheck_default=no
10003 fi
10004
10005 # Check whether --enable-libmcheck was given.
10006 if test "${enable_libmcheck+set}" = set; then :
10007 enableval=$enable_libmcheck; case "${enableval}" in
10008 yes | y) ENABLE_LIBMCHECK="yes" ;;
10009 no | n) ENABLE_LIBMCHECK="no" ;;
10010 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
10011 esac
10012 fi
10013
10014
10015 if test -z "${ENABLE_LIBMCHECK}"; then
10016 ENABLE_LIBMCHECK=${libmcheck_default}
10017 fi
10018
10019 if test "$ENABLE_LIBMCHECK" = "yes" ; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
10021 $as_echo_n "checking for main in -lmcheck... " >&6; }
10022 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-lmcheck $LIBS"
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029
10030
10031 int
10032 main ()
10033 {
10034 return main ();
10035 ;
10036 return 0;
10037 }
10038 _ACEOF
10039 if ac_fn_c_try_link "$LINENO"; then :
10040 ac_cv_lib_mcheck_main=yes
10041 else
10042 ac_cv_lib_mcheck_main=no
10043 fi
10044 rm -f core conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10046 LIBS=$ac_check_lib_save_LIBS
10047 fi
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
10049 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
10050 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
10051 cat >>confdefs.h <<_ACEOF
10052 #define HAVE_LIBMCHECK 1
10053 _ACEOF
10054
10055 LIBS="-lmcheck $LIBS"
10056
10057 fi
10058
10059 fi
10060
10061
10062 if test "$ENABLE_LIBMCHECK" = "yes" \
10063 -a "${have_libpython}" != "no" \
10064 -a "${python_has_threads}" = "yes" ; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
10066 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
10067 fi
10068
10069
10070 # Check whether --with-intel_pt was given.
10071 if test "${with_intel_pt+set}" = set; then :
10072 withval=$with_intel_pt;
10073 else
10074 with_intel_pt=auto
10075 fi
10076
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
10078 $as_echo_n "checking whether to use intel pt... " >&6; }
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
10080 $as_echo "$with_intel_pt" >&6; }
10081
10082 if test "${with_intel_pt}" = no; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
10084 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
10085 HAVE_LIBIPT=no
10086 else
10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088 /* end confdefs.h. */
10089
10090 #include <linux/perf_event.h>
10091 #ifndef PERF_ATTR_SIZE_VER5
10092 # error
10093 #endif
10094
10095 _ACEOF
10096 if ac_fn_c_try_cpp "$LINENO"; then :
10097 perf_event=yes
10098 else
10099 perf_event=no
10100 fi
10101 rm -f conftest.err conftest.$ac_ext
10102 if test "$perf_event" != yes; then
10103 if test "$with_intel_pt" = yes; then
10104 as_fn_error "linux/perf_event.h missing or too old" "$LINENO" 5
10105 else
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
10107 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
10108 fi
10109 fi
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119 use_additional=yes
10120
10121 acl_save_prefix="$prefix"
10122 prefix="$acl_final_prefix"
10123 acl_save_exec_prefix="$exec_prefix"
10124 exec_prefix="$acl_final_exec_prefix"
10125
10126 eval additional_includedir=\"$includedir\"
10127 eval additional_libdir=\"$libdir\"
10128
10129 exec_prefix="$acl_save_exec_prefix"
10130 prefix="$acl_save_prefix"
10131
10132
10133 # Check whether --with-libipt-prefix was given.
10134 if test "${with_libipt_prefix+set}" = set; then :
10135 withval=$with_libipt_prefix;
10136 if test "X$withval" = "Xno"; then
10137 use_additional=no
10138 else
10139 if test "X$withval" = "X"; then
10140
10141 acl_save_prefix="$prefix"
10142 prefix="$acl_final_prefix"
10143 acl_save_exec_prefix="$exec_prefix"
10144 exec_prefix="$acl_final_exec_prefix"
10145
10146 eval additional_includedir=\"$includedir\"
10147 eval additional_libdir=\"$libdir\"
10148
10149 exec_prefix="$acl_save_exec_prefix"
10150 prefix="$acl_save_prefix"
10151
10152 else
10153 additional_includedir="$withval/include"
10154 additional_libdir="$withval/lib"
10155 fi
10156 fi
10157
10158 fi
10159
10160 LIBIPT=
10161 LTLIBIPT=
10162 INCIPT=
10163 rpathdirs=
10164 ltrpathdirs=
10165 names_already_handled=
10166 names_next_round='ipt '
10167 while test -n "$names_next_round"; do
10168 names_this_round="$names_next_round"
10169 names_next_round=
10170 for name in $names_this_round; do
10171 already_handled=
10172 for n in $names_already_handled; do
10173 if test "$n" = "$name"; then
10174 already_handled=yes
10175 break
10176 fi
10177 done
10178 if test -z "$already_handled"; then
10179 names_already_handled="$names_already_handled $name"
10180 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10181 eval value=\"\$HAVE_LIB$uppername\"
10182 if test -n "$value"; then
10183 if test "$value" = yes; then
10184 eval value=\"\$LIB$uppername\"
10185 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
10186 eval value=\"\$LTLIB$uppername\"
10187 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
10188 else
10189 :
10190 fi
10191 else
10192 found_dir=
10193 found_la=
10194 found_so=
10195 found_a=
10196 if test $use_additional = yes; then
10197 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10198 found_dir="$additional_libdir"
10199 found_so="$additional_libdir/lib$name.$shlibext"
10200 if test -f "$additional_libdir/lib$name.la"; then
10201 found_la="$additional_libdir/lib$name.la"
10202 fi
10203 else
10204 if test -f "$additional_libdir/lib$name.$libext"; then
10205 found_dir="$additional_libdir"
10206 found_a="$additional_libdir/lib$name.$libext"
10207 if test -f "$additional_libdir/lib$name.la"; then
10208 found_la="$additional_libdir/lib$name.la"
10209 fi
10210 fi
10211 fi
10212 fi
10213 if test "X$found_dir" = "X"; then
10214 for x in $LDFLAGS $LTLIBIPT; do
10215
10216 acl_save_prefix="$prefix"
10217 prefix="$acl_final_prefix"
10218 acl_save_exec_prefix="$exec_prefix"
10219 exec_prefix="$acl_final_exec_prefix"
10220 eval x=\"$x\"
10221 exec_prefix="$acl_save_exec_prefix"
10222 prefix="$acl_save_prefix"
10223
10224 case "$x" in
10225 -L*)
10226 dir=`echo "X$x" | sed -e 's/^X-L//'`
10227 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10228 found_dir="$dir"
10229 found_so="$dir/lib$name.$shlibext"
10230 if test -f "$dir/lib$name.la"; then
10231 found_la="$dir/lib$name.la"
10232 fi
10233 else
10234 if test -f "$dir/lib$name.$libext"; then
10235 found_dir="$dir"
10236 found_a="$dir/lib$name.$libext"
10237 if test -f "$dir/lib$name.la"; then
10238 found_la="$dir/lib$name.la"
10239 fi
10240 fi
10241 fi
10242 ;;
10243 esac
10244 if test "X$found_dir" != "X"; then
10245 break
10246 fi
10247 done
10248 fi
10249 if test "X$found_dir" != "X"; then
10250 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
10251 if test "X$found_so" != "X"; then
10252 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10253 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10254 else
10255 haveit=
10256 for x in $ltrpathdirs; do
10257 if test "X$x" = "X$found_dir"; then
10258 haveit=yes
10259 break
10260 fi
10261 done
10262 if test -z "$haveit"; then
10263 ltrpathdirs="$ltrpathdirs $found_dir"
10264 fi
10265 if test "$hardcode_direct" = yes; then
10266 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10267 else
10268 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10269 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10270 haveit=
10271 for x in $rpathdirs; do
10272 if test "X$x" = "X$found_dir"; then
10273 haveit=yes
10274 break
10275 fi
10276 done
10277 if test -z "$haveit"; then
10278 rpathdirs="$rpathdirs $found_dir"
10279 fi
10280 else
10281 haveit=
10282 for x in $LDFLAGS $LIBIPT; do
10283
10284 acl_save_prefix="$prefix"
10285 prefix="$acl_final_prefix"
10286 acl_save_exec_prefix="$exec_prefix"
10287 exec_prefix="$acl_final_exec_prefix"
10288 eval x=\"$x\"
10289 exec_prefix="$acl_save_exec_prefix"
10290 prefix="$acl_save_prefix"
10291
10292 if test "X$x" = "X-L$found_dir"; then
10293 haveit=yes
10294 break
10295 fi
10296 done
10297 if test -z "$haveit"; then
10298 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10299 fi
10300 if test "$hardcode_minus_L" != no; then
10301 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10302 else
10303 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10304 fi
10305 fi
10306 fi
10307 fi
10308 else
10309 if test "X$found_a" != "X"; then
10310 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
10311 else
10312 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10313 fi
10314 fi
10315 additional_includedir=
10316 case "$found_dir" in
10317 */lib | */lib/)
10318 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10319 additional_includedir="$basedir/include"
10320 ;;
10321 esac
10322 if test "X$additional_includedir" != "X"; then
10323 if test "X$additional_includedir" != "X/usr/include"; then
10324 haveit=
10325 if test "X$additional_includedir" = "X/usr/local/include"; then
10326 if test -n "$GCC"; then
10327 case $host_os in
10328 linux*) haveit=yes;;
10329 esac
10330 fi
10331 fi
10332 if test -z "$haveit"; then
10333 for x in $CPPFLAGS $INCIPT; do
10334
10335 acl_save_prefix="$prefix"
10336 prefix="$acl_final_prefix"
10337 acl_save_exec_prefix="$exec_prefix"
10338 exec_prefix="$acl_final_exec_prefix"
10339 eval x=\"$x\"
10340 exec_prefix="$acl_save_exec_prefix"
10341 prefix="$acl_save_prefix"
10342
10343 if test "X$x" = "X-I$additional_includedir"; then
10344 haveit=yes
10345 break
10346 fi
10347 done
10348 if test -z "$haveit"; then
10349 if test -d "$additional_includedir"; then
10350 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10351 fi
10352 fi
10353 fi
10354 fi
10355 fi
10356 if test -n "$found_la"; then
10357 save_libdir="$libdir"
10358 case "$found_la" in
10359 */* | *\\*) . "$found_la" ;;
10360 *) . "./$found_la" ;;
10361 esac
10362 libdir="$save_libdir"
10363 for dep in $dependency_libs; do
10364 case "$dep" in
10365 -L*)
10366 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10367 if test "X$additional_libdir" != "X/usr/lib"; then
10368 haveit=
10369 if test "X$additional_libdir" = "X/usr/local/lib"; then
10370 if test -n "$GCC"; then
10371 case $host_os in
10372 linux*) haveit=yes;;
10373 esac
10374 fi
10375 fi
10376 if test -z "$haveit"; then
10377 haveit=
10378 for x in $LDFLAGS $LIBIPT; do
10379
10380 acl_save_prefix="$prefix"
10381 prefix="$acl_final_prefix"
10382 acl_save_exec_prefix="$exec_prefix"
10383 exec_prefix="$acl_final_exec_prefix"
10384 eval x=\"$x\"
10385 exec_prefix="$acl_save_exec_prefix"
10386 prefix="$acl_save_prefix"
10387
10388 if test "X$x" = "X-L$additional_libdir"; then
10389 haveit=yes
10390 break
10391 fi
10392 done
10393 if test -z "$haveit"; then
10394 if test -d "$additional_libdir"; then
10395 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10396 fi
10397 fi
10398 haveit=
10399 for x in $LDFLAGS $LTLIBIPT; do
10400
10401 acl_save_prefix="$prefix"
10402 prefix="$acl_final_prefix"
10403 acl_save_exec_prefix="$exec_prefix"
10404 exec_prefix="$acl_final_exec_prefix"
10405 eval x=\"$x\"
10406 exec_prefix="$acl_save_exec_prefix"
10407 prefix="$acl_save_prefix"
10408
10409 if test "X$x" = "X-L$additional_libdir"; then
10410 haveit=yes
10411 break
10412 fi
10413 done
10414 if test -z "$haveit"; then
10415 if test -d "$additional_libdir"; then
10416 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10417 fi
10418 fi
10419 fi
10420 fi
10421 ;;
10422 -R*)
10423 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10424 if test "$enable_rpath" != no; then
10425 haveit=
10426 for x in $rpathdirs; do
10427 if test "X$x" = "X$dir"; then
10428 haveit=yes
10429 break
10430 fi
10431 done
10432 if test -z "$haveit"; then
10433 rpathdirs="$rpathdirs $dir"
10434 fi
10435 haveit=
10436 for x in $ltrpathdirs; do
10437 if test "X$x" = "X$dir"; then
10438 haveit=yes
10439 break
10440 fi
10441 done
10442 if test -z "$haveit"; then
10443 ltrpathdirs="$ltrpathdirs $dir"
10444 fi
10445 fi
10446 ;;
10447 -l*)
10448 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10449 ;;
10450 *.la)
10451 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10452 ;;
10453 *)
10454 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10455 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10456 ;;
10457 esac
10458 done
10459 fi
10460 else
10461 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10462 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10463 fi
10464 fi
10465 fi
10466 done
10467 done
10468 if test "X$rpathdirs" != "X"; then
10469 if test -n "$hardcode_libdir_separator"; then
10470 alldirs=
10471 for found_dir in $rpathdirs; do
10472 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10473 done
10474 acl_save_libdir="$libdir"
10475 libdir="$alldirs"
10476 eval flag=\"$hardcode_libdir_flag_spec\"
10477 libdir="$acl_save_libdir"
10478 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10479 else
10480 for found_dir in $rpathdirs; do
10481 acl_save_libdir="$libdir"
10482 libdir="$found_dir"
10483 eval flag=\"$hardcode_libdir_flag_spec\"
10484 libdir="$acl_save_libdir"
10485 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10486 done
10487 fi
10488 fi
10489 if test "X$ltrpathdirs" != "X"; then
10490 for found_dir in $ltrpathdirs; do
10491 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10492 done
10493 fi
10494
10495
10496 ac_save_CPPFLAGS="$CPPFLAGS"
10497
10498 for element in $INCIPT; do
10499 haveit=
10500 for x in $CPPFLAGS; do
10501
10502 acl_save_prefix="$prefix"
10503 prefix="$acl_final_prefix"
10504 acl_save_exec_prefix="$exec_prefix"
10505 exec_prefix="$acl_final_exec_prefix"
10506 eval x=\"$x\"
10507 exec_prefix="$acl_save_exec_prefix"
10508 prefix="$acl_save_prefix"
10509
10510 if test "X$x" = "X$element"; then
10511 haveit=yes
10512 break
10513 fi
10514 done
10515 if test -z "$haveit"; then
10516 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10517 fi
10518 done
10519
10520
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10522 $as_echo_n "checking for libipt... " >&6; }
10523 if test "${ac_cv_libipt+set}" = set; then :
10524 $as_echo_n "(cached) " >&6
10525 else
10526
10527 ac_save_LIBS="$LIBS"
10528 LIBS="$LIBS $LIBIPT"
10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10531 #include "intel-pt.h"
10532 int
10533 main ()
10534 {
10535 pt_insn_alloc_decoder (0);
10536 ;
10537 return 0;
10538 }
10539 _ACEOF
10540 if ac_fn_c_try_link "$LINENO"; then :
10541 ac_cv_libipt=yes
10542 else
10543 ac_cv_libipt=no
10544 fi
10545 rm -f core conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext conftest.$ac_ext
10547 LIBS="$ac_save_LIBS"
10548
10549 fi
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10551 $as_echo "$ac_cv_libipt" >&6; }
10552 if test "$ac_cv_libipt" = yes; then
10553 HAVE_LIBIPT=yes
10554
10555 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10556
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10558 $as_echo_n "checking how to link with libipt... " >&6; }
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10560 $as_echo "$LIBIPT" >&6; }
10561 else
10562 HAVE_LIBIPT=no
10563 CPPFLAGS="$ac_save_CPPFLAGS"
10564 LIBIPT=
10565 LTLIBIPT=
10566 fi
10567
10568
10569
10570
10571
10572
10573 if test "$HAVE_LIBIPT" != yes; then
10574 if test "$with_intel_pt" = yes; then
10575 as_fn_error "libipt is missing or unusable" "$LINENO" 5
10576 else
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10578 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10579 fi
10580 fi
10581 fi
10582
10583 # ------------------------- #
10584 # Checks for header files. #
10585 # ------------------------- #
10586
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10588 $as_echo_n "checking for ANSI C header files... " >&6; }
10589 if test "${ac_cv_header_stdc+set}" = set; then :
10590 $as_echo_n "(cached) " >&6
10591 else
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10594 #include <stdlib.h>
10595 #include <stdarg.h>
10596 #include <string.h>
10597 #include <float.h>
10598
10599 int
10600 main ()
10601 {
10602
10603 ;
10604 return 0;
10605 }
10606 _ACEOF
10607 if ac_fn_c_try_compile "$LINENO"; then :
10608 ac_cv_header_stdc=yes
10609 else
10610 ac_cv_header_stdc=no
10611 fi
10612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10613
10614 if test $ac_cv_header_stdc = yes; then
10615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10618 #include <string.h>
10619
10620 _ACEOF
10621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10622 $EGREP "memchr" >/dev/null 2>&1; then :
10623
10624 else
10625 ac_cv_header_stdc=no
10626 fi
10627 rm -f conftest*
10628
10629 fi
10630
10631 if test $ac_cv_header_stdc = yes; then
10632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635 #include <stdlib.h>
10636
10637 _ACEOF
10638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10639 $EGREP "free" >/dev/null 2>&1; then :
10640
10641 else
10642 ac_cv_header_stdc=no
10643 fi
10644 rm -f conftest*
10645
10646 fi
10647
10648 if test $ac_cv_header_stdc = yes; then
10649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10650 if test "$cross_compiling" = yes; then :
10651 :
10652 else
10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654 /* end confdefs.h. */
10655 #include <ctype.h>
10656 #include <stdlib.h>
10657 #if ((' ' & 0x0FF) == 0x020)
10658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10660 #else
10661 # define ISLOWER(c) \
10662 (('a' <= (c) && (c) <= 'i') \
10663 || ('j' <= (c) && (c) <= 'r') \
10664 || ('s' <= (c) && (c) <= 'z'))
10665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10666 #endif
10667
10668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10669 int
10670 main ()
10671 {
10672 int i;
10673 for (i = 0; i < 256; i++)
10674 if (XOR (islower (i), ISLOWER (i))
10675 || toupper (i) != TOUPPER (i))
10676 return 2;
10677 return 0;
10678 }
10679 _ACEOF
10680 if ac_fn_c_try_run "$LINENO"; then :
10681
10682 else
10683 ac_cv_header_stdc=no
10684 fi
10685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10686 conftest.$ac_objext conftest.beam conftest.$ac_ext
10687 fi
10688
10689 fi
10690 fi
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10692 $as_echo "$ac_cv_header_stdc" >&6; }
10693 if test $ac_cv_header_stdc = yes; then
10694
10695 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10696
10697 fi
10698
10699 # elf_hp.h is for HP/UX 64-bit shared library support.
10700 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
10701 thread_db.h \
10702 sys/fault.h \
10703 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
10704 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
10705 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
10706 termios.h termio.h \
10707 sgtty.h elf_hp.h \
10708 dlfcn.h
10709 do :
10710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10711 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10712 eval as_val=\$$as_ac_Header
10713 if test "x$as_val" = x""yes; then :
10714 cat >>confdefs.h <<_ACEOF
10715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10716 _ACEOF
10717
10718 fi
10719
10720 done
10721
10722 for ac_header in sys/proc.h
10723 do :
10724 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10725 # include <sys/param.h>
10726 #endif
10727
10728 "
10729 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
10730 cat >>confdefs.h <<_ACEOF
10731 #define HAVE_SYS_PROC_H 1
10732 _ACEOF
10733
10734 fi
10735
10736 done
10737
10738 for ac_header in sys/user.h
10739 do :
10740 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10741 # include <sys/param.h>
10742 #endif
10743
10744 "
10745 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
10746 cat >>confdefs.h <<_ACEOF
10747 #define HAVE_SYS_USER_H 1
10748 _ACEOF
10749
10750 fi
10751
10752 done
10753
10754
10755 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10756 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10757 # think that we don't have <curses.h> if we're using GCC.
10758 case $host_os in
10759 solaris2.[789])
10760 if test "$GCC" = yes; then
10761
10762 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10763
10764 fi ;;
10765 esac
10766 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
10767 do :
10768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10769 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10770 eval as_val=\$$as_ac_Header
10771 if test "x$as_val" = x""yes; then :
10772 cat >>confdefs.h <<_ACEOF
10773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10774 _ACEOF
10775
10776 fi
10777
10778 done
10779
10780 for ac_header in term.h
10781 do :
10782 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10783 # include <curses.h>
10784 #endif
10785
10786 "
10787 if test "x$ac_cv_header_term_h" = x""yes; then :
10788 cat >>confdefs.h <<_ACEOF
10789 #define HAVE_TERM_H 1
10790 _ACEOF
10791
10792 fi
10793
10794 done
10795
10796
10797 # ------------------------- #
10798 # Checks for declarations. #
10799 # ------------------------- #
10800
10801
10802 # Check for presence and size of long long.
10803 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10804 if test "x$ac_cv_type_long_long" = x""yes; then :
10805
10806 cat >>confdefs.h <<_ACEOF
10807 #define HAVE_LONG_LONG 1
10808 _ACEOF
10809
10810 # The cast to long int works around a bug in the HP C Compiler
10811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10813 # This bug is HP SR number 8606223364.
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10815 $as_echo_n "checking size of long long... " >&6; }
10816 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10817 $as_echo_n "(cached) " >&6
10818 else
10819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10820
10821 else
10822 if test "$ac_cv_type_long_long" = yes; then
10823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10825 { as_fn_set_status 77
10826 as_fn_error "cannot compute sizeof (long long)
10827 See \`config.log' for more details." "$LINENO" 5; }; }
10828 else
10829 ac_cv_sizeof_long_long=0
10830 fi
10831 fi
10832
10833 fi
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10835 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10836
10837
10838
10839 cat >>confdefs.h <<_ACEOF
10840 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10841 _ACEOF
10842
10843
10844 fi
10845
10846
10847 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
10848 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
10849 ac_have_decl=1
10850 else
10851 ac_have_decl=0
10852 fi
10853
10854 cat >>confdefs.h <<_ACEOF
10855 #define HAVE_DECL_BASENAME $ac_have_decl
10856 _ACEOF
10857 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10858 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
10859 ac_have_decl=1
10860 else
10861 ac_have_decl=0
10862 fi
10863
10864 cat >>confdefs.h <<_ACEOF
10865 #define HAVE_DECL_FFS $ac_have_decl
10866 _ACEOF
10867 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10868 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
10869 ac_have_decl=1
10870 else
10871 ac_have_decl=0
10872 fi
10873
10874 cat >>confdefs.h <<_ACEOF
10875 #define HAVE_DECL_ASPRINTF $ac_have_decl
10876 _ACEOF
10877 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10878 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
10879 ac_have_decl=1
10880 else
10881 ac_have_decl=0
10882 fi
10883
10884 cat >>confdefs.h <<_ACEOF
10885 #define HAVE_DECL_VASPRINTF $ac_have_decl
10886 _ACEOF
10887 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10888 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10889 ac_have_decl=1
10890 else
10891 ac_have_decl=0
10892 fi
10893
10894 cat >>confdefs.h <<_ACEOF
10895 #define HAVE_DECL_SNPRINTF $ac_have_decl
10896 _ACEOF
10897 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10898 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
10899 ac_have_decl=1
10900 else
10901 ac_have_decl=0
10902 fi
10903
10904 cat >>confdefs.h <<_ACEOF
10905 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10906 _ACEOF
10907
10908 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10909 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
10910 ac_have_decl=1
10911 else
10912 ac_have_decl=0
10913 fi
10914
10915 cat >>confdefs.h <<_ACEOF
10916 #define HAVE_DECL_STRTOL $ac_have_decl
10917 _ACEOF
10918 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10919 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
10920 ac_have_decl=1
10921 else
10922 ac_have_decl=0
10923 fi
10924
10925 cat >>confdefs.h <<_ACEOF
10926 #define HAVE_DECL_STRTOUL $ac_have_decl
10927 _ACEOF
10928 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10929 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
10930 ac_have_decl=1
10931 else
10932 ac_have_decl=0
10933 fi
10934
10935 cat >>confdefs.h <<_ACEOF
10936 #define HAVE_DECL_STRTOLL $ac_have_decl
10937 _ACEOF
10938 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10939 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
10940 ac_have_decl=1
10941 else
10942 ac_have_decl=0
10943 fi
10944
10945 cat >>confdefs.h <<_ACEOF
10946 #define HAVE_DECL_STRTOULL $ac_have_decl
10947 _ACEOF
10948
10949 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10950 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
10951 ac_have_decl=1
10952 else
10953 ac_have_decl=0
10954 fi
10955
10956 cat >>confdefs.h <<_ACEOF
10957 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10958 _ACEOF
10959
10960
10961
10962 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10963 if test "x$ac_cv_have_decl_free" = x""yes; then :
10964 ac_have_decl=1
10965 else
10966 ac_have_decl=0
10967 fi
10968
10969 cat >>confdefs.h <<_ACEOF
10970 #define HAVE_DECL_FREE $ac_have_decl
10971 _ACEOF
10972 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10973 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
10974 ac_have_decl=1
10975 else
10976 ac_have_decl=0
10977 fi
10978
10979 cat >>confdefs.h <<_ACEOF
10980 #define HAVE_DECL_MALLOC $ac_have_decl
10981 _ACEOF
10982 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10983 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
10984 ac_have_decl=1
10985 else
10986 ac_have_decl=0
10987 fi
10988
10989 cat >>confdefs.h <<_ACEOF
10990 #define HAVE_DECL_REALLOC $ac_have_decl
10991 _ACEOF
10992 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10993 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10994 ac_have_decl=1
10995 else
10996 ac_have_decl=0
10997 fi
10998
10999 cat >>confdefs.h <<_ACEOF
11000 #define HAVE_DECL_SNPRINTF $ac_have_decl
11001 _ACEOF
11002
11003
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11005 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11006 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11011 #include <locale.h>
11012 int
11013 main ()
11014 {
11015 return LC_MESSAGES
11016 ;
11017 return 0;
11018 }
11019 _ACEOF
11020 if ac_fn_c_try_link "$LINENO"; then :
11021 am_cv_val_LC_MESSAGES=yes
11022 else
11023 am_cv_val_LC_MESSAGES=no
11024 fi
11025 rm -f core conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
11027 fi
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11029 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11030 if test $am_cv_val_LC_MESSAGES = yes; then
11031
11032 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11033
11034 fi
11035
11036
11037 # ----------------------- #
11038 # Checks for structures. #
11039 # ----------------------- #
11040
11041 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11042 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11043
11044 cat >>confdefs.h <<_ACEOF
11045 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11046 _ACEOF
11047
11048
11049 fi
11050 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11051 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11052
11053 cat >>confdefs.h <<_ACEOF
11054 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11055 _ACEOF
11056
11057
11058 fi
11059
11060
11061 # ------------------ #
11062 # Checks for types. #
11063 # ------------------ #
11064
11065 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11066 #include <sys/socket.h>
11067
11068 "
11069 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11070
11071 cat >>confdefs.h <<_ACEOF
11072 #define HAVE_SOCKLEN_T 1
11073 _ACEOF
11074
11075
11076 fi
11077
11078
11079 # ------------------------------------- #
11080 # Checks for compiler characteristics. #
11081 # ------------------------------------- #
11082
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11084 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11085 if test "${ac_cv_c_const+set}" = set; then :
11086 $as_echo_n "(cached) " >&6
11087 else
11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11090
11091 int
11092 main ()
11093 {
11094 /* FIXME: Include the comments suggested by Paul. */
11095 #ifndef __cplusplus
11096 /* Ultrix mips cc rejects this. */
11097 typedef int charset[2];
11098 const charset cs;
11099 /* SunOS 4.1.1 cc rejects this. */
11100 char const *const *pcpcc;
11101 char **ppc;
11102 /* NEC SVR4.0.2 mips cc rejects this. */
11103 struct point {int x, y;};
11104 static struct point const zero = {0,0};
11105 /* AIX XL C 1.02.0.0 rejects this.
11106 It does not let you subtract one const X* pointer from another in
11107 an arm of an if-expression whose if-part is not a constant
11108 expression */
11109 const char *g = "string";
11110 pcpcc = &g + (g ? g-g : 0);
11111 /* HPUX 7.0 cc rejects these. */
11112 ++pcpcc;
11113 ppc = (char**) pcpcc;
11114 pcpcc = (char const *const *) ppc;
11115 { /* SCO 3.2v4 cc rejects this. */
11116 char *t;
11117 char const *s = 0 ? (char *) 0 : (char const *) 0;
11118
11119 *t++ = 0;
11120 if (s) return 0;
11121 }
11122 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11123 int x[] = {25, 17};
11124 const int *foo = &x[0];
11125 ++foo;
11126 }
11127 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11128 typedef const int *iptr;
11129 iptr p = 0;
11130 ++p;
11131 }
11132 { /* AIX XL C 1.02.0.0 rejects this saying
11133 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11134 struct s { int j; const int *ap[3]; };
11135 struct s *b; b->j = 5;
11136 }
11137 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11138 const int foo = 10;
11139 if (!foo) return 0;
11140 }
11141 return !cs[0] && !zero.x;
11142 #endif
11143
11144 ;
11145 return 0;
11146 }
11147 _ACEOF
11148 if ac_fn_c_try_compile "$LINENO"; then :
11149 ac_cv_c_const=yes
11150 else
11151 ac_cv_c_const=no
11152 fi
11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11154 fi
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11156 $as_echo "$ac_cv_c_const" >&6; }
11157 if test $ac_cv_c_const = no; then
11158
11159 $as_echo "#define const /**/" >>confdefs.h
11160
11161 fi
11162
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11164 $as_echo_n "checking for inline... " >&6; }
11165 if test "${ac_cv_c_inline+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 ac_cv_c_inline=no
11169 for ac_kw in inline __inline__ __inline; do
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11172 #ifndef __cplusplus
11173 typedef int foo_t;
11174 static $ac_kw foo_t static_foo () {return 0; }
11175 $ac_kw foo_t foo () {return 0; }
11176 #endif
11177
11178 _ACEOF
11179 if ac_fn_c_try_compile "$LINENO"; then :
11180 ac_cv_c_inline=$ac_kw
11181 fi
11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183 test "$ac_cv_c_inline" != no && break
11184 done
11185
11186 fi
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11188 $as_echo "$ac_cv_c_inline" >&6; }
11189
11190 case $ac_cv_c_inline in
11191 inline | yes) ;;
11192 *)
11193 case $ac_cv_c_inline in
11194 no) ac_val=;;
11195 *) ac_val=$ac_cv_c_inline;;
11196 esac
11197 cat >>confdefs.h <<_ACEOF
11198 #ifndef __cplusplus
11199 #define inline $ac_val
11200 #endif
11201 _ACEOF
11202 ;;
11203 esac
11204
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11206 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11207 if test "${ac_cv_c_bigendian+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
11209 else
11210 ac_cv_c_bigendian=unknown
11211 # See if we're dealing with a universal compiler.
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11214 #ifndef __APPLE_CC__
11215 not a universal capable compiler
11216 #endif
11217 typedef int dummy;
11218
11219 _ACEOF
11220 if ac_fn_c_try_compile "$LINENO"; then :
11221
11222 # Check for potential -arch flags. It is not universal unless
11223 # there are at least two -arch flags with different values.
11224 ac_arch=
11225 ac_prev=
11226 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11227 if test -n "$ac_prev"; then
11228 case $ac_word in
11229 i?86 | x86_64 | ppc | ppc64)
11230 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11231 ac_arch=$ac_word
11232 else
11233 ac_cv_c_bigendian=universal
11234 break
11235 fi
11236 ;;
11237 esac
11238 ac_prev=
11239 elif test "x$ac_word" = "x-arch"; then
11240 ac_prev=arch
11241 fi
11242 done
11243 fi
11244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11245 if test $ac_cv_c_bigendian = unknown; then
11246 # See if sys/param.h defines the BYTE_ORDER macro.
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <sys/types.h>
11250 #include <sys/param.h>
11251
11252 int
11253 main ()
11254 {
11255 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11256 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11257 && LITTLE_ENDIAN)
11258 bogus endian macros
11259 #endif
11260
11261 ;
11262 return 0;
11263 }
11264 _ACEOF
11265 if ac_fn_c_try_compile "$LINENO"; then :
11266 # It does; now see whether it defined to BIG_ENDIAN or not.
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11269 #include <sys/types.h>
11270 #include <sys/param.h>
11271
11272 int
11273 main ()
11274 {
11275 #if BYTE_ORDER != BIG_ENDIAN
11276 not big endian
11277 #endif
11278
11279 ;
11280 return 0;
11281 }
11282 _ACEOF
11283 if ac_fn_c_try_compile "$LINENO"; then :
11284 ac_cv_c_bigendian=yes
11285 else
11286 ac_cv_c_bigendian=no
11287 fi
11288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 fi
11290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291 fi
11292 if test $ac_cv_c_bigendian = unknown; then
11293 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11296 #include <limits.h>
11297
11298 int
11299 main ()
11300 {
11301 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11302 bogus endian macros
11303 #endif
11304
11305 ;
11306 return 0;
11307 }
11308 _ACEOF
11309 if ac_fn_c_try_compile "$LINENO"; then :
11310 # It does; now see whether it defined to _BIG_ENDIAN or not.
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11313 #include <limits.h>
11314
11315 int
11316 main ()
11317 {
11318 #ifndef _BIG_ENDIAN
11319 not big endian
11320 #endif
11321
11322 ;
11323 return 0;
11324 }
11325 _ACEOF
11326 if ac_fn_c_try_compile "$LINENO"; then :
11327 ac_cv_c_bigendian=yes
11328 else
11329 ac_cv_c_bigendian=no
11330 fi
11331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11332 fi
11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 fi
11335 if test $ac_cv_c_bigendian = unknown; then
11336 # Compile a test program.
11337 if test "$cross_compiling" = yes; then :
11338 # Try to guess by grepping values from an object file.
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11341 short int ascii_mm[] =
11342 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11343 short int ascii_ii[] =
11344 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11345 int use_ascii (int i) {
11346 return ascii_mm[i] + ascii_ii[i];
11347 }
11348 short int ebcdic_ii[] =
11349 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11350 short int ebcdic_mm[] =
11351 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11352 int use_ebcdic (int i) {
11353 return ebcdic_mm[i] + ebcdic_ii[i];
11354 }
11355 extern int foo;
11356
11357 int
11358 main ()
11359 {
11360 return use_ascii (foo) == use_ebcdic (foo);
11361 ;
11362 return 0;
11363 }
11364 _ACEOF
11365 if ac_fn_c_try_compile "$LINENO"; then :
11366 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11367 ac_cv_c_bigendian=yes
11368 fi
11369 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11370 if test "$ac_cv_c_bigendian" = unknown; then
11371 ac_cv_c_bigendian=no
11372 else
11373 # finding both strings is unlikely to happen, but who knows?
11374 ac_cv_c_bigendian=unknown
11375 fi
11376 fi
11377 fi
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 else
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382 $ac_includes_default
11383 int
11384 main ()
11385 {
11386
11387 /* Are we little or big endian? From Harbison&Steele. */
11388 union
11389 {
11390 long int l;
11391 char c[sizeof (long int)];
11392 } u;
11393 u.l = 1;
11394 return u.c[sizeof (long int) - 1] == 1;
11395
11396 ;
11397 return 0;
11398 }
11399 _ACEOF
11400 if ac_fn_c_try_run "$LINENO"; then :
11401 ac_cv_c_bigendian=no
11402 else
11403 ac_cv_c_bigendian=yes
11404 fi
11405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11406 conftest.$ac_objext conftest.beam conftest.$ac_ext
11407 fi
11408
11409 fi
11410 fi
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11412 $as_echo "$ac_cv_c_bigendian" >&6; }
11413 case $ac_cv_c_bigendian in #(
11414 yes)
11415 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11416 ;; #(
11417 no)
11418 ;; #(
11419 universal)
11420
11421 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11422
11423 ;; #(
11424 *)
11425 as_fn_error "unknown endianness
11426 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11427 esac
11428
11429
11430 # ------------------------------ #
11431 # Checks for library functions. #
11432 # ------------------------------ #
11433
11434 for ac_header in stdlib.h unistd.h
11435 do :
11436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11437 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11438 eval as_val=\$$as_ac_Header
11439 if test "x$as_val" = x""yes; then :
11440 cat >>confdefs.h <<_ACEOF
11441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11442 _ACEOF
11443
11444 fi
11445
11446 done
11447
11448 for ac_func in getpagesize
11449 do :
11450 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11451 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11452 cat >>confdefs.h <<_ACEOF
11453 #define HAVE_GETPAGESIZE 1
11454 _ACEOF
11455
11456 fi
11457 done
11458
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11460 $as_echo_n "checking for working mmap... " >&6; }
11461 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 if test "$cross_compiling" = yes; then :
11465 ac_cv_func_mmap_fixed_mapped=no
11466 else
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469 $ac_includes_default
11470 /* malloc might have been renamed as rpl_malloc. */
11471 #undef malloc
11472
11473 /* Thanks to Mike Haertel and Jim Avera for this test.
11474 Here is a matrix of mmap possibilities:
11475 mmap private not fixed
11476 mmap private fixed at somewhere currently unmapped
11477 mmap private fixed at somewhere already mapped
11478 mmap shared not fixed
11479 mmap shared fixed at somewhere currently unmapped
11480 mmap shared fixed at somewhere already mapped
11481 For private mappings, we should verify that changes cannot be read()
11482 back from the file, nor mmap's back from the file at a different
11483 address. (There have been systems where private was not correctly
11484 implemented like the infamous i386 svr4.0, and systems where the
11485 VM page cache was not coherent with the file system buffer cache
11486 like early versions of FreeBSD and possibly contemporary NetBSD.)
11487 For shared mappings, we should conversely verify that changes get
11488 propagated back to all the places they're supposed to be.
11489
11490 Grep wants private fixed already mapped.
11491 The main things grep needs to know about mmap are:
11492 * does it exist and is it safe to write into the mmap'd area
11493 * how to use it (BSD variants) */
11494
11495 #include <fcntl.h>
11496 #include <sys/mman.h>
11497
11498 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11499 char *malloc ();
11500 #endif
11501
11502 /* This mess was copied from the GNU getpagesize.h. */
11503 #ifndef HAVE_GETPAGESIZE
11504 /* Assume that all systems that can run configure have sys/param.h. */
11505 # ifndef HAVE_SYS_PARAM_H
11506 # define HAVE_SYS_PARAM_H 1
11507 # endif
11508
11509 # ifdef _SC_PAGESIZE
11510 # define getpagesize() sysconf(_SC_PAGESIZE)
11511 # else /* no _SC_PAGESIZE */
11512 # ifdef HAVE_SYS_PARAM_H
11513 # include <sys/param.h>
11514 # ifdef EXEC_PAGESIZE
11515 # define getpagesize() EXEC_PAGESIZE
11516 # else /* no EXEC_PAGESIZE */
11517 # ifdef NBPG
11518 # define getpagesize() NBPG * CLSIZE
11519 # ifndef CLSIZE
11520 # define CLSIZE 1
11521 # endif /* no CLSIZE */
11522 # else /* no NBPG */
11523 # ifdef NBPC
11524 # define getpagesize() NBPC
11525 # else /* no NBPC */
11526 # ifdef PAGESIZE
11527 # define getpagesize() PAGESIZE
11528 # endif /* PAGESIZE */
11529 # endif /* no NBPC */
11530 # endif /* no NBPG */
11531 # endif /* no EXEC_PAGESIZE */
11532 # else /* no HAVE_SYS_PARAM_H */
11533 # define getpagesize() 8192 /* punt totally */
11534 # endif /* no HAVE_SYS_PARAM_H */
11535 # endif /* no _SC_PAGESIZE */
11536
11537 #endif /* no HAVE_GETPAGESIZE */
11538
11539 int
11540 main ()
11541 {
11542 char *data, *data2, *data3;
11543 int i, pagesize;
11544 int fd;
11545
11546 pagesize = getpagesize ();
11547
11548 /* First, make a file with some known garbage in it. */
11549 data = (char *) malloc (pagesize);
11550 if (!data)
11551 return 1;
11552 for (i = 0; i < pagesize; ++i)
11553 *(data + i) = rand ();
11554 umask (0);
11555 fd = creat ("conftest.mmap", 0600);
11556 if (fd < 0)
11557 return 1;
11558 if (write (fd, data, pagesize) != pagesize)
11559 return 1;
11560 close (fd);
11561
11562 /* Next, try to mmap the file at a fixed address which already has
11563 something else allocated at it. If we can, also make sure that
11564 we see the same garbage. */
11565 fd = open ("conftest.mmap", O_RDWR);
11566 if (fd < 0)
11567 return 1;
11568 data2 = (char *) malloc (2 * pagesize);
11569 if (!data2)
11570 return 1;
11571 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11572 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11573 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11574 return 1;
11575 for (i = 0; i < pagesize; ++i)
11576 if (*(data + i) != *(data2 + i))
11577 return 1;
11578
11579 /* Finally, make sure that changes to the mapped area do not
11580 percolate back to the file as seen by read(). (This is a bug on
11581 some variants of i386 svr4.0.) */
11582 for (i = 0; i < pagesize; ++i)
11583 *(data2 + i) = *(data2 + i) + 1;
11584 data3 = (char *) malloc (pagesize);
11585 if (!data3)
11586 return 1;
11587 if (read (fd, data3, pagesize) != pagesize)
11588 return 1;
11589 for (i = 0; i < pagesize; ++i)
11590 if (*(data + i) != *(data3 + i))
11591 return 1;
11592 close (fd);
11593 return 0;
11594 }
11595 _ACEOF
11596 if ac_fn_c_try_run "$LINENO"; then :
11597 ac_cv_func_mmap_fixed_mapped=yes
11598 else
11599 ac_cv_func_mmap_fixed_mapped=no
11600 fi
11601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11602 conftest.$ac_objext conftest.beam conftest.$ac_ext
11603 fi
11604
11605 fi
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11607 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11608 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11609
11610 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11611
11612 fi
11613 rm -f conftest.mmap
11614
11615 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11616 if test "x$ac_cv_type_pid_t" = x""yes; then :
11617
11618 else
11619
11620 cat >>confdefs.h <<_ACEOF
11621 #define pid_t int
11622 _ACEOF
11623
11624 fi
11625
11626 for ac_header in vfork.h
11627 do :
11628 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11629 if test "x$ac_cv_header_vfork_h" = x""yes; then :
11630 cat >>confdefs.h <<_ACEOF
11631 #define HAVE_VFORK_H 1
11632 _ACEOF
11633
11634 fi
11635
11636 done
11637
11638 for ac_func in fork vfork
11639 do :
11640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11642 eval as_val=\$$as_ac_var
11643 if test "x$as_val" = x""yes; then :
11644 cat >>confdefs.h <<_ACEOF
11645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11646 _ACEOF
11647
11648 fi
11649 done
11650
11651 if test "x$ac_cv_func_fork" = xyes; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11653 $as_echo_n "checking for working fork... " >&6; }
11654 if test "${ac_cv_func_fork_works+set}" = set; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 if test "$cross_compiling" = yes; then :
11658 ac_cv_func_fork_works=cross
11659 else
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11662 $ac_includes_default
11663 int
11664 main ()
11665 {
11666
11667 /* By Ruediger Kuhlmann. */
11668 return fork () < 0;
11669
11670 ;
11671 return 0;
11672 }
11673 _ACEOF
11674 if ac_fn_c_try_run "$LINENO"; then :
11675 ac_cv_func_fork_works=yes
11676 else
11677 ac_cv_func_fork_works=no
11678 fi
11679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11680 conftest.$ac_objext conftest.beam conftest.$ac_ext
11681 fi
11682
11683 fi
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11685 $as_echo "$ac_cv_func_fork_works" >&6; }
11686
11687 else
11688 ac_cv_func_fork_works=$ac_cv_func_fork
11689 fi
11690 if test "x$ac_cv_func_fork_works" = xcross; then
11691 case $host in
11692 *-*-amigaos* | *-*-msdosdjgpp*)
11693 # Override, as these systems have only a dummy fork() stub
11694 ac_cv_func_fork_works=no
11695 ;;
11696 *)
11697 ac_cv_func_fork_works=yes
11698 ;;
11699 esac
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11701 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11702 fi
11703 ac_cv_func_vfork_works=$ac_cv_func_vfork
11704 if test "x$ac_cv_func_vfork" = xyes; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11706 $as_echo_n "checking for working vfork... " >&6; }
11707 if test "${ac_cv_func_vfork_works+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 if test "$cross_compiling" = yes; then :
11711 ac_cv_func_vfork_works=cross
11712 else
11713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11715 /* Thanks to Paul Eggert for this test. */
11716 $ac_includes_default
11717 #include <sys/wait.h>
11718 #ifdef HAVE_VFORK_H
11719 # include <vfork.h>
11720 #endif
11721 /* On some sparc systems, changes by the child to local and incoming
11722 argument registers are propagated back to the parent. The compiler
11723 is told about this with #include <vfork.h>, but some compilers
11724 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11725 static variable whose address is put into a register that is
11726 clobbered by the vfork. */
11727 static void
11728 #ifdef __cplusplus
11729 sparc_address_test (int arg)
11730 # else
11731 sparc_address_test (arg) int arg;
11732 #endif
11733 {
11734 static pid_t child;
11735 if (!child) {
11736 child = vfork ();
11737 if (child < 0) {
11738 perror ("vfork");
11739 _exit(2);
11740 }
11741 if (!child) {
11742 arg = getpid();
11743 write(-1, "", 0);
11744 _exit (arg);
11745 }
11746 }
11747 }
11748
11749 int
11750 main ()
11751 {
11752 pid_t parent = getpid ();
11753 pid_t child;
11754
11755 sparc_address_test (0);
11756
11757 child = vfork ();
11758
11759 if (child == 0) {
11760 /* Here is another test for sparc vfork register problems. This
11761 test uses lots of local variables, at least as many local
11762 variables as main has allocated so far including compiler
11763 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11764 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11765 reuse the register of parent for one of the local variables,
11766 since it will think that parent can't possibly be used any more
11767 in this routine. Assigning to the local variable will thus
11768 munge parent in the parent process. */
11769 pid_t
11770 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11771 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11772 /* Convince the compiler that p..p7 are live; otherwise, it might
11773 use the same hardware register for all 8 local variables. */
11774 if (p != p1 || p != p2 || p != p3 || p != p4
11775 || p != p5 || p != p6 || p != p7)
11776 _exit(1);
11777
11778 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11779 from child file descriptors. If the child closes a descriptor
11780 before it execs or exits, this munges the parent's descriptor
11781 as well. Test for this by closing stdout in the child. */
11782 _exit(close(fileno(stdout)) != 0);
11783 } else {
11784 int status;
11785 struct stat st;
11786
11787 while (wait(&status) != child)
11788 ;
11789 return (
11790 /* Was there some problem with vforking? */
11791 child < 0
11792
11793 /* Did the child fail? (This shouldn't happen.) */
11794 || status
11795
11796 /* Did the vfork/compiler bug occur? */
11797 || parent != getpid()
11798
11799 /* Did the file descriptor bug occur? */
11800 || fstat(fileno(stdout), &st) != 0
11801 );
11802 }
11803 }
11804 _ACEOF
11805 if ac_fn_c_try_run "$LINENO"; then :
11806 ac_cv_func_vfork_works=yes
11807 else
11808 ac_cv_func_vfork_works=no
11809 fi
11810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11811 conftest.$ac_objext conftest.beam conftest.$ac_ext
11812 fi
11813
11814 fi
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11816 $as_echo "$ac_cv_func_vfork_works" >&6; }
11817
11818 fi;
11819 if test "x$ac_cv_func_fork_works" = xcross; then
11820 ac_cv_func_vfork_works=$ac_cv_func_vfork
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11822 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11823 fi
11824
11825 if test "x$ac_cv_func_vfork_works" = xyes; then
11826
11827 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11828
11829 else
11830
11831 $as_echo "#define vfork fork" >>confdefs.h
11832
11833 fi
11834 if test "x$ac_cv_func_fork_works" = xyes; then
11835
11836 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11837
11838 fi
11839
11840 for ac_func in getauxval getrusage getuid getgid \
11841 pipe poll pread pread64 pwrite resize_term \
11842 sbrk setpgid setpgrp setsid \
11843 sigaction sigprocmask sigsetmask socketpair \
11844 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
11845 setrlimit getrlimit posix_madvise waitpid \
11846 ptrace64 sigaltstack mkdtemp setns
11847 do :
11848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11849 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11850 eval as_val=\$$as_ac_var
11851 if test "x$as_val" = x""yes; then :
11852 cat >>confdefs.h <<_ACEOF
11853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11854 _ACEOF
11855
11856 fi
11857 done
11858
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11861 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11862 if test "${am_cv_langinfo_codeset+set}" = set; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11867 #include <langinfo.h>
11868 int
11869 main ()
11870 {
11871 char* cs = nl_langinfo(CODESET);
11872 ;
11873 return 0;
11874 }
11875 _ACEOF
11876 if ac_fn_c_try_link "$LINENO"; then :
11877 am_cv_langinfo_codeset=yes
11878 else
11879 am_cv_langinfo_codeset=no
11880 fi
11881 rm -f core conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11883
11884 fi
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11886 $as_echo "$am_cv_langinfo_codeset" >&6; }
11887 if test $am_cv_langinfo_codeset = yes; then
11888
11889 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11890
11891 fi
11892
11893
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11895 $as_echo_n "checking for ANSI C header files... " >&6; }
11896 if test "${ac_cv_header_stdc+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
11898 else
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h. */
11901 #include <stdlib.h>
11902 #include <stdarg.h>
11903 #include <string.h>
11904 #include <float.h>
11905
11906 int
11907 main ()
11908 {
11909
11910 ;
11911 return 0;
11912 }
11913 _ACEOF
11914 if ac_fn_c_try_compile "$LINENO"; then :
11915 ac_cv_header_stdc=yes
11916 else
11917 ac_cv_header_stdc=no
11918 fi
11919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11920
11921 if test $ac_cv_header_stdc = yes; then
11922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925 #include <string.h>
11926
11927 _ACEOF
11928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11929 $EGREP "memchr" >/dev/null 2>&1; then :
11930
11931 else
11932 ac_cv_header_stdc=no
11933 fi
11934 rm -f conftest*
11935
11936 fi
11937
11938 if test $ac_cv_header_stdc = yes; then
11939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11942 #include <stdlib.h>
11943
11944 _ACEOF
11945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11946 $EGREP "free" >/dev/null 2>&1; then :
11947
11948 else
11949 ac_cv_header_stdc=no
11950 fi
11951 rm -f conftest*
11952
11953 fi
11954
11955 if test $ac_cv_header_stdc = yes; then
11956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11957 if test "$cross_compiling" = yes; then :
11958 :
11959 else
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962 #include <ctype.h>
11963 #include <stdlib.h>
11964 #if ((' ' & 0x0FF) == 0x020)
11965 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11966 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11967 #else
11968 # define ISLOWER(c) \
11969 (('a' <= (c) && (c) <= 'i') \
11970 || ('j' <= (c) && (c) <= 'r') \
11971 || ('s' <= (c) && (c) <= 'z'))
11972 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11973 #endif
11974
11975 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11976 int
11977 main ()
11978 {
11979 int i;
11980 for (i = 0; i < 256; i++)
11981 if (XOR (islower (i), ISLOWER (i))
11982 || toupper (i) != TOUPPER (i))
11983 return 2;
11984 return 0;
11985 }
11986 _ACEOF
11987 if ac_fn_c_try_run "$LINENO"; then :
11988
11989 else
11990 ac_cv_header_stdc=no
11991 fi
11992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11993 conftest.$ac_objext conftest.beam conftest.$ac_ext
11994 fi
11995
11996 fi
11997 fi
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11999 $as_echo "$ac_cv_header_stdc" >&6; }
12000 if test $ac_cv_header_stdc = yes; then
12001
12002 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12003
12004 fi
12005
12006 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12007 # for constant arguments. Useless!
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12009 $as_echo_n "checking for working alloca.h... " >&6; }
12010 if test "${ac_cv_working_alloca_h+set}" = set; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h. */
12015 #include <alloca.h>
12016 int
12017 main ()
12018 {
12019 char *p = (char *) alloca (2 * sizeof (int));
12020 if (p) return 0;
12021 ;
12022 return 0;
12023 }
12024 _ACEOF
12025 if ac_fn_c_try_link "$LINENO"; then :
12026 ac_cv_working_alloca_h=yes
12027 else
12028 ac_cv_working_alloca_h=no
12029 fi
12030 rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12032 fi
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12034 $as_echo "$ac_cv_working_alloca_h" >&6; }
12035 if test $ac_cv_working_alloca_h = yes; then
12036
12037 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12038
12039 fi
12040
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12042 $as_echo_n "checking for alloca... " >&6; }
12043 if test "${ac_cv_func_alloca_works+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12048 #ifdef __GNUC__
12049 # define alloca __builtin_alloca
12050 #else
12051 # ifdef _MSC_VER
12052 # include <malloc.h>
12053 # define alloca _alloca
12054 # else
12055 # ifdef HAVE_ALLOCA_H
12056 # include <alloca.h>
12057 # else
12058 # ifdef _AIX
12059 #pragma alloca
12060 # else
12061 # ifndef alloca /* predefined by HP cc +Olibcalls */
12062 char *alloca ();
12063 # endif
12064 # endif
12065 # endif
12066 # endif
12067 #endif
12068
12069 int
12070 main ()
12071 {
12072 char *p = (char *) alloca (1);
12073 if (p) return 0;
12074 ;
12075 return 0;
12076 }
12077 _ACEOF
12078 if ac_fn_c_try_link "$LINENO"; then :
12079 ac_cv_func_alloca_works=yes
12080 else
12081 ac_cv_func_alloca_works=no
12082 fi
12083 rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 fi
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12087 $as_echo "$ac_cv_func_alloca_works" >&6; }
12088
12089 if test $ac_cv_func_alloca_works = yes; then
12090
12091 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12092
12093 else
12094 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12095 # that cause trouble. Some versions do not even contain alloca or
12096 # contain a buggy version. If you still want to use their alloca,
12097 # use ar to extract alloca.o from them instead of compiling alloca.c.
12098
12099 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12100
12101 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12102
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12105 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12106 if test "${ac_cv_os_cray+set}" = set; then :
12107 $as_echo_n "(cached) " >&6
12108 else
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111 #if defined CRAY && ! defined CRAY2
12112 webecray
12113 #else
12114 wenotbecray
12115 #endif
12116
12117 _ACEOF
12118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12119 $EGREP "webecray" >/dev/null 2>&1; then :
12120 ac_cv_os_cray=yes
12121 else
12122 ac_cv_os_cray=no
12123 fi
12124 rm -f conftest*
12125
12126 fi
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12128 $as_echo "$ac_cv_os_cray" >&6; }
12129 if test $ac_cv_os_cray = yes; then
12130 for ac_func in _getb67 GETB67 getb67; do
12131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12132 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12133 eval as_val=\$$as_ac_var
12134 if test "x$as_val" = x""yes; then :
12135
12136 cat >>confdefs.h <<_ACEOF
12137 #define CRAY_STACKSEG_END $ac_func
12138 _ACEOF
12139
12140 break
12141 fi
12142
12143 done
12144 fi
12145
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12147 $as_echo_n "checking stack direction for C alloca... " >&6; }
12148 if test "${ac_cv_c_stack_direction+set}" = set; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 if test "$cross_compiling" = yes; then :
12152 ac_cv_c_stack_direction=0
12153 else
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12156 $ac_includes_default
12157 int
12158 find_stack_direction ()
12159 {
12160 static char *addr = 0;
12161 auto char dummy;
12162 if (addr == 0)
12163 {
12164 addr = &dummy;
12165 return find_stack_direction ();
12166 }
12167 else
12168 return (&dummy > addr) ? 1 : -1;
12169 }
12170
12171 int
12172 main ()
12173 {
12174 return find_stack_direction () < 0;
12175 }
12176 _ACEOF
12177 if ac_fn_c_try_run "$LINENO"; then :
12178 ac_cv_c_stack_direction=1
12179 else
12180 ac_cv_c_stack_direction=-1
12181 fi
12182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12183 conftest.$ac_objext conftest.beam conftest.$ac_ext
12184 fi
12185
12186 fi
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12188 $as_echo "$ac_cv_c_stack_direction" >&6; }
12189 cat >>confdefs.h <<_ACEOF
12190 #define STACK_DIRECTION $ac_cv_c_stack_direction
12191 _ACEOF
12192
12193
12194 fi
12195
12196
12197
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12199 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12200 if test "${am_cv_langinfo_codeset+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12205 #include <langinfo.h>
12206 int
12207 main ()
12208 {
12209 char* cs = nl_langinfo(CODESET);
12210 ;
12211 return 0;
12212 }
12213 _ACEOF
12214 if ac_fn_c_try_link "$LINENO"; then :
12215 am_cv_langinfo_codeset=yes
12216 else
12217 am_cv_langinfo_codeset=no
12218 fi
12219 rm -f core conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12221
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12224 $as_echo "$am_cv_langinfo_codeset" >&6; }
12225 if test $am_cv_langinfo_codeset = yes; then
12226
12227 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12228
12229 fi
12230
12231
12232 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h
12233 do :
12234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12235 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12236 eval as_val=\$$as_ac_Header
12237 if test "x$as_val" = x""yes; then :
12238 cat >>confdefs.h <<_ACEOF
12239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12240 _ACEOF
12241
12242 fi
12243
12244 done
12245
12246
12247 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction
12248 do :
12249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12250 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12251 eval as_val=\$$as_ac_var
12252 if test "x$as_val" = x""yes; then :
12253 cat >>confdefs.h <<_ACEOF
12254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12255 _ACEOF
12256
12257 fi
12258 done
12259
12260
12261 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
12262 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
12263 ac_have_decl=1
12264 else
12265 ac_have_decl=0
12266 fi
12267
12268 cat >>confdefs.h <<_ACEOF
12269 #define HAVE_DECL_STRERROR $ac_have_decl
12270 _ACEOF
12271 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12272 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12273 ac_have_decl=1
12274 else
12275 ac_have_decl=0
12276 fi
12277
12278 cat >>confdefs.h <<_ACEOF
12279 #define HAVE_DECL_STRSTR $ac_have_decl
12280 _ACEOF
12281
12282
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12284 $as_echo_n "checking for sigsetjmp... " >&6; }
12285 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12290
12291 #include <setjmp.h>
12292
12293 int
12294 main ()
12295 {
12296 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12297 ;
12298 return 0;
12299 }
12300 _ACEOF
12301 if ac_fn_c_try_compile "$LINENO"; then :
12302 gdb_cv_func_sigsetjmp=yes
12303 else
12304 gdb_cv_func_sigsetjmp=no
12305 fi
12306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12307 fi
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12309 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12310 if test $gdb_cv_func_sigsetjmp = yes; then
12311
12312 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12313
12314 fi
12315
12316
12317 # Check the return and argument types of ptrace.
12318
12319
12320 for ac_header in sys/ptrace.h ptrace.h
12321 do :
12322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12323 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12324 eval as_val=\$$as_ac_Header
12325 if test "x$as_val" = x""yes; then :
12326 cat >>confdefs.h <<_ACEOF
12327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12328 _ACEOF
12329
12330 fi
12331
12332 done
12333
12334
12335 gdb_ptrace_headers='
12336 #include <sys/types.h>
12337 #if HAVE_SYS_PTRACE_H
12338 # include <sys/ptrace.h>
12339 #endif
12340 #if HAVE_UNISTD_H
12341 # include <unistd.h>
12342 #endif
12343 '
12344 # There is no point in checking if we don't have a prototype.
12345 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12346 "
12347 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12348 ac_have_decl=1
12349 else
12350 ac_have_decl=0
12351 fi
12352
12353 cat >>confdefs.h <<_ACEOF
12354 #define HAVE_DECL_PTRACE $ac_have_decl
12355 _ACEOF
12356 if test $ac_have_decl = 1; then :
12357
12358 else
12359
12360 : ${gdb_cv_func_ptrace_ret='int'}
12361 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12362
12363 fi
12364
12365 # Check return type. Varargs (used on GNU/Linux) conflict with the
12366 # empty argument list, so check for that explicitly.
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12368 $as_echo_n "checking return type of ptrace... " >&6; }
12369 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374 $gdb_ptrace_headers
12375 int
12376 main ()
12377 {
12378 extern long ptrace (enum __ptrace_request, ...);
12379 ;
12380 return 0;
12381 }
12382 _ACEOF
12383 if ac_fn_c_try_compile "$LINENO"; then :
12384 gdb_cv_func_ptrace_ret='long'
12385 else
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388 $gdb_ptrace_headers
12389 int
12390 main ()
12391 {
12392 extern int ptrace ();
12393 ;
12394 return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_c_try_compile "$LINENO"; then :
12398 gdb_cv_func_ptrace_ret='int'
12399 else
12400 gdb_cv_func_ptrace_ret='long'
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 fi
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 fi
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12407 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12408
12409 cat >>confdefs.h <<_ACEOF
12410 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12411 _ACEOF
12412
12413 # Check argument types.
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12415 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12416 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12422 $gdb_ptrace_headers
12423 int
12424 main ()
12425 {
12426 extern long ptrace (enum __ptrace_request, ...);
12427 ;
12428 return 0;
12429 }
12430 _ACEOF
12431 if ac_fn_c_try_compile "$LINENO"; then :
12432 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
12433 else
12434
12435 for gdb_arg1 in 'int' 'long'; do
12436 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12437 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12438 for gdb_arg4 in 'int' 'long' 'void *'; do
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441 $gdb_ptrace_headers
12442 int
12443 main ()
12444 {
12445
12446 extern $gdb_cv_func_ptrace_ret
12447 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12448
12449 ;
12450 return 0;
12451 }
12452 _ACEOF
12453 if ac_fn_c_try_compile "$LINENO"; then :
12454 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12455 break 4;
12456 fi
12457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12458 for gdb_arg5 in 'int *' 'int' 'long'; do
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12461 $gdb_ptrace_headers
12462 int
12463 main ()
12464 {
12465
12466 extern $gdb_cv_func_ptrace_ret
12467 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12468
12469 ;
12470 return 0;
12471 }
12472 _ACEOF
12473 if ac_fn_c_try_compile "$LINENO"; then :
12474
12475 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12476 break 5;
12477 fi
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 done
12480 done
12481 done
12482 done
12483 done
12484 # Provide a safe default value.
12485 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12486
12487 fi
12488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489 fi
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12491 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12492 ac_save_IFS=$IFS; IFS=','
12493 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12494 IFS=$ac_save_IFS
12495 shift
12496
12497 cat >>confdefs.h <<_ACEOF
12498 #define PTRACE_TYPE_ARG1 $1
12499 _ACEOF
12500
12501
12502 cat >>confdefs.h <<_ACEOF
12503 #define PTRACE_TYPE_ARG3 $3
12504 _ACEOF
12505
12506
12507 cat >>confdefs.h <<_ACEOF
12508 #define PTRACE_TYPE_ARG4 $4
12509 _ACEOF
12510
12511 if test -n "$5"; then
12512
12513 cat >>confdefs.h <<_ACEOF
12514 #define PTRACE_TYPE_ARG5 $5
12515 _ACEOF
12516
12517 fi
12518
12519
12520 if test "$cross_compiling" = no; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12522 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12523 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12526 if test "$cross_compiling" = yes; then :
12527 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12528 else
12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12530 /* end confdefs.h. */
12531 $ac_includes_default
12532 int
12533 main ()
12534 {
12535 /* If this system has a BSD-style setpgrp which takes arguments,
12536 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12537 exit successfully. */
12538 return setpgrp (1,1) != -1;
12539 ;
12540 return 0;
12541 }
12542 _ACEOF
12543 if ac_fn_c_try_run "$LINENO"; then :
12544 ac_cv_func_setpgrp_void=no
12545 else
12546 ac_cv_func_setpgrp_void=yes
12547 fi
12548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12549 conftest.$ac_objext conftest.beam conftest.$ac_ext
12550 fi
12551
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12554 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12555 if test $ac_cv_func_setpgrp_void = yes; then
12556
12557 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12558
12559 fi
12560
12561 else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12563 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12564 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12569
12570 #include <unistd.h>
12571
12572 int
12573 main ()
12574 {
12575
12576 if (setpgrp(1,1) == -1)
12577 exit (0);
12578 else
12579 exit (1);
12580
12581 ;
12582 return 0;
12583 }
12584 _ACEOF
12585 if ac_fn_c_try_compile "$LINENO"; then :
12586 ac_cv_func_setpgrp_void=no
12587 else
12588 ac_cv_func_setpgrp_void=yes
12589 fi
12590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12591 fi
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12593 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12594 if test $ac_cv_func_setpgrp_void = yes; then
12595 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12596
12597 fi
12598 fi
12599
12600 # Assume we'll default to using the included libiberty regex.
12601 gdb_use_included_regex=yes
12602
12603 # However, if the system regex is GNU regex, then default to *not*
12604 # using the included regex.
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12606 $as_echo_n "checking for GNU regex... " >&6; }
12607 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12608 $as_echo_n "(cached) " >&6
12609 else
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612 #include <gnu-versions.h>
12613 int
12614 main ()
12615 {
12616 #define REGEX_INTERFACE_VERSION 1
12617 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12618 # error "Version mismatch"
12619 #endif
12620 ;
12621 return 0;
12622 }
12623 _ACEOF
12624 if ac_fn_c_try_compile "$LINENO"; then :
12625 gdb_cv_have_gnu_regex=yes
12626 else
12627 gdb_cv_have_gnu_regex=no
12628 fi
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 fi
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12632 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12633 if test $gdb_cv_have_gnu_regex = yes; then
12634 gdb_use_included_regex=no
12635 fi
12636
12637
12638 # Check whether --with-included-regex was given.
12639 if test "${with_included_regex+set}" = set; then :
12640 withval=$with_included_regex; gdb_with_regex=$withval
12641 else
12642 gdb_with_regex=$gdb_use_included_regex
12643 fi
12644
12645 if test "$gdb_with_regex" = yes; then
12646
12647 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12648
12649 fi
12650
12651 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12652 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12653 #include <sys/proc.h>
12654
12655 "
12656 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12657
12658 cat >>confdefs.h <<_ACEOF
12659 #define HAVE_STRUCT_THREAD_TD_PCB 1
12660 _ACEOF
12661
12662
12663 fi
12664
12665
12666 # See if <sys/lwp.h> defines `struct lwp`.
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12668 $as_echo_n "checking for struct lwp... " >&6; }
12669 if test "${gdb_cv_struct_lwp+set}" = set; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12674 #include <sys/param.h>
12675 #include <sys/lwp.h>
12676 int
12677 main ()
12678 {
12679 struct lwp l;
12680 ;
12681 return 0;
12682 }
12683 _ACEOF
12684 if ac_fn_c_try_compile "$LINENO"; then :
12685 gdb_cv_struct_lwp=yes
12686 else
12687 gdb_cv_struct_lwp=no
12688 fi
12689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690 fi
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12692 $as_echo "$gdb_cv_struct_lwp" >&6; }
12693 if test $gdb_cv_struct_lwp = yes; then
12694
12695 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12696
12697 fi
12698
12699 # See if <machine/reg.h> degines `struct reg'.
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12701 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12702 if test "${gdb_cv_struct_reg+set}" = set; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12707 #include <sys/types.h>
12708 #include <machine/reg.h>
12709 int
12710 main ()
12711 {
12712 struct reg r;
12713 ;
12714 return 0;
12715 }
12716 _ACEOF
12717 if ac_fn_c_try_compile "$LINENO"; then :
12718 gdb_cv_struct_reg=yes
12719 else
12720 gdb_cv_struct_reg=no
12721 fi
12722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12725 $as_echo "$gdb_cv_struct_reg" >&6; }
12726 if test $gdb_cv_struct_reg = yes; then
12727
12728 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12729
12730 fi
12731
12732 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12733 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12734 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
12735 #include <machine/reg.h>
12736 "
12737 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
12738
12739 cat >>confdefs.h <<_ACEOF
12740 #define HAVE_STRUCT_REG_R_FS 1
12741 _ACEOF
12742
12743
12744 fi
12745 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
12746 #include <machine/reg.h>
12747 "
12748 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
12749
12750 cat >>confdefs.h <<_ACEOF
12751 #define HAVE_STRUCT_REG_R_GS 1
12752 _ACEOF
12753
12754
12755 fi
12756
12757
12758 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
12759 # Older amd64 Linux's don't have the fs_base and gs_base members of
12760 # `struct user_regs_struct'.
12761 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/user.h>
12762 "
12763 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
12764
12765 cat >>confdefs.h <<_ACEOF
12766 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
12767 _ACEOF
12768
12769
12770 fi
12771 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/user.h>
12772 "
12773 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
12774
12775 cat >>confdefs.h <<_ACEOF
12776 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
12777 _ACEOF
12778
12779
12780 fi
12781
12782
12783 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12785 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12786 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12787 $as_echo_n "(cached) " >&6
12788 else
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12791 #include <sys/ptrace.h>
12792 int
12793 main ()
12794 {
12795 PTRACE_GETREGS;
12796 ;
12797 return 0;
12798 }
12799 _ACEOF
12800 if ac_fn_c_try_compile "$LINENO"; then :
12801 gdb_cv_have_ptrace_getregs=yes
12802 else
12803 gdb_cv_have_ptrace_getregs=no
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 fi
12807
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12809 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12810 if test $gdb_cv_have_ptrace_getregs = yes; then
12811
12812 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12813
12814 fi
12815
12816 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12818 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12819 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824 #include <sys/ptrace.h>
12825 int
12826 main ()
12827 {
12828 PTRACE_GETFPXREGS;
12829 ;
12830 return 0;
12831 }
12832 _ACEOF
12833 if ac_fn_c_try_compile "$LINENO"; then :
12834 gdb_cv_have_ptrace_getfpxregs=yes
12835 else
12836 gdb_cv_have_ptrace_getfpxregs=no
12837 fi
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 fi
12840
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12842 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12843 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12844
12845 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12846
12847 fi
12848
12849 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12851 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12852 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12857 #include <sys/types.h>
12858 #include <sys/ptrace.h>
12859 int
12860 main ()
12861 {
12862 PT_GETDBREGS;
12863 ;
12864 return 0;
12865 }
12866 _ACEOF
12867 if ac_fn_c_try_compile "$LINENO"; then :
12868 gdb_cv_have_pt_getdbregs=yes
12869 else
12870 gdb_cv_have_pt_getdbregs=no
12871 fi
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 fi
12874
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12876 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12877 if test $gdb_cv_have_pt_getdbregs = yes; then
12878
12879 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12880
12881 fi
12882
12883 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12885 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12886 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12887 $as_echo_n "(cached) " >&6
12888 else
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12891 #include <sys/types.h>
12892 #include <sys/ptrace.h>
12893 int
12894 main ()
12895 {
12896 PT_GETXMMREGS;
12897 ;
12898 return 0;
12899 }
12900 _ACEOF
12901 if ac_fn_c_try_compile "$LINENO"; then :
12902 gdb_cv_have_pt_getxmmregs=yes
12903 else
12904 gdb_cv_have_pt_getxmmregs=no
12905 fi
12906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12907 fi
12908
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12910 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12911 if test $gdb_cv_have_pt_getxmmregs = yes; then
12912
12913 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12914
12915 fi
12916
12917 # See if <sys/ptrace.h> supports LWP names on FreeBSD
12918 # Older FreeBSD versions don't have the pl_tdname member of
12919 # `struct ptrace_lwpinfo'.
12920 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
12921 "
12922 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = x""yes; then :
12923
12924 cat >>confdefs.h <<_ACEOF
12925 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
12926 _ACEOF
12927
12928
12929 fi
12930
12931
12932 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
12933 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
12934 # FreeBSD 10.3.
12935 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
12936 "
12937 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = x""yes; then :
12938
12939 cat >>confdefs.h <<_ACEOF
12940 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
12941 _ACEOF
12942
12943
12944 fi
12945
12946
12947 # Detect which type of /proc is in use, such as for Solaris.
12948
12949 if test "${target}" = "${host}"; then
12950 case "${host}" in
12951 *-*-sysv4.2* | *-*-sysv5* )
12952
12953 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12954
12955 ;;
12956 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
12957
12958 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12959
12960 ;;
12961 mips-sgi-irix5*)
12962 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12963
12964 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12965
12966 ;;
12967 esac
12968 fi
12969
12970 if test "$ac_cv_header_sys_procfs_h" = yes; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12972 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12973 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12974 $as_echo_n "(cached) " >&6
12975 else
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12978
12979 #define _SYSCALL32
12980 /* Needed for new procfs interface on sparc-solaris. */
12981 #define _STRUCTURED_PROC 1
12982 #include <sys/procfs.h>
12983 int
12984 main ()
12985 {
12986 gregset_t avar
12987 ;
12988 return 0;
12989 }
12990 _ACEOF
12991 if ac_fn_c_try_compile "$LINENO"; then :
12992 bfd_cv_have_sys_procfs_type_gregset_t=yes
12993 else
12994 bfd_cv_have_sys_procfs_type_gregset_t=no
12995
12996 fi
12997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998 fi
12999
13000 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13001
13002 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13003
13004 fi
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13006 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13007
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13009 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13010 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13011 $as_echo_n "(cached) " >&6
13012 else
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13015
13016 #define _SYSCALL32
13017 /* Needed for new procfs interface on sparc-solaris. */
13018 #define _STRUCTURED_PROC 1
13019 #include <sys/procfs.h>
13020 int
13021 main ()
13022 {
13023 fpregset_t avar
13024 ;
13025 return 0;
13026 }
13027 _ACEOF
13028 if ac_fn_c_try_compile "$LINENO"; then :
13029 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13030 else
13031 bfd_cv_have_sys_procfs_type_fpregset_t=no
13032
13033 fi
13034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035 fi
13036
13037 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13038
13039 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13040
13041 fi
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13043 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13044
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13046 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13047 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13052
13053 #define _SYSCALL32
13054 /* Needed for new procfs interface on sparc-solaris. */
13055 #define _STRUCTURED_PROC 1
13056 #include <sys/procfs.h>
13057 int
13058 main ()
13059 {
13060 prgregset_t avar
13061 ;
13062 return 0;
13063 }
13064 _ACEOF
13065 if ac_fn_c_try_compile "$LINENO"; then :
13066 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13067 else
13068 bfd_cv_have_sys_procfs_type_prgregset_t=no
13069
13070 fi
13071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13072 fi
13073
13074 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13075
13076 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13077
13078 fi
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13080 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13081
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13083 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13084 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13085 $as_echo_n "(cached) " >&6
13086 else
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089
13090 #define _SYSCALL32
13091 /* Needed for new procfs interface on sparc-solaris. */
13092 #define _STRUCTURED_PROC 1
13093 #include <sys/procfs.h>
13094 int
13095 main ()
13096 {
13097 prfpregset_t avar
13098 ;
13099 return 0;
13100 }
13101 _ACEOF
13102 if ac_fn_c_try_compile "$LINENO"; then :
13103 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13104 else
13105 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13106
13107 fi
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109 fi
13110
13111 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13112
13113 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13114
13115 fi
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13117 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13118
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13120 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13121 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13126
13127 #define _SYSCALL32
13128 /* Needed for new procfs interface on sparc-solaris. */
13129 #define _STRUCTURED_PROC 1
13130 #include <sys/procfs.h>
13131 int
13132 main ()
13133 {
13134 prgregset32_t avar
13135 ;
13136 return 0;
13137 }
13138 _ACEOF
13139 if ac_fn_c_try_compile "$LINENO"; then :
13140 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13141 else
13142 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13143
13144 fi
13145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13146 fi
13147
13148 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13149
13150 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13151
13152 fi
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13154 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13155
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13157 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13158 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13163
13164 #define _SYSCALL32
13165 /* Needed for new procfs interface on sparc-solaris. */
13166 #define _STRUCTURED_PROC 1
13167 #include <sys/procfs.h>
13168 int
13169 main ()
13170 {
13171 lwpid_t avar
13172 ;
13173 return 0;
13174 }
13175 _ACEOF
13176 if ac_fn_c_try_compile "$LINENO"; then :
13177 bfd_cv_have_sys_procfs_type_lwpid_t=yes
13178 else
13179 bfd_cv_have_sys_procfs_type_lwpid_t=no
13180
13181 fi
13182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183 fi
13184
13185 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13186
13187 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13188
13189 fi
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13191 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13192
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13194 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13195 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13196 $as_echo_n "(cached) " >&6
13197 else
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13200
13201 #define _SYSCALL32
13202 /* Needed for new procfs interface on sparc-solaris. */
13203 #define _STRUCTURED_PROC 1
13204 #include <sys/procfs.h>
13205 int
13206 main ()
13207 {
13208 psaddr_t avar
13209 ;
13210 return 0;
13211 }
13212 _ACEOF
13213 if ac_fn_c_try_compile "$LINENO"; then :
13214 bfd_cv_have_sys_procfs_type_psaddr_t=yes
13215 else
13216 bfd_cv_have_sys_procfs_type_psaddr_t=no
13217
13218 fi
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 fi
13221
13222 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13223
13224 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13225
13226 fi
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13228 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13229
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13231 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13232 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237
13238 #define _SYSCALL32
13239 /* Needed for new procfs interface on sparc-solaris. */
13240 #define _STRUCTURED_PROC 1
13241 #include <sys/procfs.h>
13242 int
13243 main ()
13244 {
13245 prsysent_t avar
13246 ;
13247 return 0;
13248 }
13249 _ACEOF
13250 if ac_fn_c_try_compile "$LINENO"; then :
13251 bfd_cv_have_sys_procfs_type_prsysent_t=yes
13252 else
13253 bfd_cv_have_sys_procfs_type_prsysent_t=no
13254
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13257 fi
13258
13259 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13260
13261 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13262
13263 fi
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13265 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13266
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13268 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13269 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13270 $as_echo_n "(cached) " >&6
13271 else
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13274
13275 #define _SYSCALL32
13276 /* Needed for new procfs interface on sparc-solaris. */
13277 #define _STRUCTURED_PROC 1
13278 #include <sys/procfs.h>
13279 int
13280 main ()
13281 {
13282 pr_sigset_t avar
13283 ;
13284 return 0;
13285 }
13286 _ACEOF
13287 if ac_fn_c_try_compile "$LINENO"; then :
13288 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13289 else
13290 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13291
13292 fi
13293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 fi
13295
13296 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13297
13298 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13299
13300 fi
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13302 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13303
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13305 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13306 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13311
13312 #define _SYSCALL32
13313 /* Needed for new procfs interface on sparc-solaris. */
13314 #define _STRUCTURED_PROC 1
13315 #include <sys/procfs.h>
13316 int
13317 main ()
13318 {
13319 pr_sigaction64_t avar
13320 ;
13321 return 0;
13322 }
13323 _ACEOF
13324 if ac_fn_c_try_compile "$LINENO"; then :
13325 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13326 else
13327 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13328
13329 fi
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331 fi
13332
13333 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13334
13335 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13336
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13339 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13340
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13342 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13343 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13344 $as_echo_n "(cached) " >&6
13345 else
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13348
13349 #define _SYSCALL32
13350 /* Needed for new procfs interface on sparc-solaris. */
13351 #define _STRUCTURED_PROC 1
13352 #include <sys/procfs.h>
13353 int
13354 main ()
13355 {
13356 pr_siginfo64_t avar
13357 ;
13358 return 0;
13359 }
13360 _ACEOF
13361 if ac_fn_c_try_compile "$LINENO"; then :
13362 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13363 else
13364 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13365
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 fi
13369
13370 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13371
13372 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13373
13374 fi
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13376 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13377
13378
13379
13380
13381
13382 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13384 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13385 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 if test "$cross_compiling" = yes; then :
13389 gdb_cv_prfpregset_t_broken=yes
13390 else
13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13393 #include <sys/procfs.h>
13394 int main ()
13395 {
13396 if (sizeof (prfpregset_t) == sizeof (void *))
13397 return 1;
13398 return 0;
13399 }
13400 _ACEOF
13401 if ac_fn_c_try_run "$LINENO"; then :
13402 gdb_cv_prfpregset_t_broken=no
13403 else
13404 gdb_cv_prfpregset_t_broken=yes
13405 fi
13406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13407 conftest.$ac_objext conftest.beam conftest.$ac_ext
13408 fi
13409
13410 fi
13411
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13413 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13414 if test $gdb_cv_prfpregset_t_broken = yes; then
13415
13416 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13417
13418 fi
13419 fi
13420 fi
13421
13422 # Check if the compiler supports the `long long' type.
13423
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13425 $as_echo_n "checking for long long support in compiler... " >&6; }
13426 if test "${gdb_cv_c_long_long+set}" = set; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13431 extern long long foo;
13432 int
13433 main ()
13434 {
13435 switch (foo & 2) { case 0: return 1; }
13436 ;
13437 return 0;
13438 }
13439 _ACEOF
13440 if ac_fn_c_try_compile "$LINENO"; then :
13441 gdb_cv_c_long_long=yes
13442 else
13443 gdb_cv_c_long_long=no
13444 fi
13445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13446 fi
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13448 $as_echo "$gdb_cv_c_long_long" >&6; }
13449 if test $gdb_cv_c_long_long != yes; then
13450 # libdecnumber requires long long.
13451 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
13452 fi
13453
13454 # Check if the compiler and runtime support printing long longs.
13455
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13457 $as_echo_n "checking for long long support in printf... " >&6; }
13458 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13459 $as_echo_n "(cached) " >&6
13460 else
13461 if test "$cross_compiling" = yes; then :
13462 gdb_cv_printf_has_long_long=no
13463 else
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h. */
13466 $ac_includes_default
13467 int
13468 main ()
13469 {
13470 char buf[32];
13471 long long l = 0;
13472 l = (l << 16) + 0x0123;
13473 l = (l << 16) + 0x4567;
13474 l = (l << 16) + 0x89ab;
13475 l = (l << 16) + 0xcdef;
13476 sprintf (buf, "0x%016llx", l);
13477 return (strcmp ("0x0123456789abcdef", buf));
13478 ;
13479 return 0;
13480 }
13481 _ACEOF
13482 if ac_fn_c_try_run "$LINENO"; then :
13483 gdb_cv_printf_has_long_long=yes
13484 else
13485 gdb_cv_printf_has_long_long=no
13486 fi
13487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13488 conftest.$ac_objext conftest.beam conftest.$ac_ext
13489 fi
13490
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13493 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13494 if test $gdb_cv_printf_has_long_long = yes; then
13495
13496 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13497
13498 fi
13499
13500 # Check if the compiler and runtime support printing decfloats.
13501
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13503 $as_echo_n "checking for decfloat support in printf... " >&6; }
13504 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13505 $as_echo_n "(cached) " >&6
13506 else
13507 if test "$cross_compiling" = yes; then :
13508 gdb_cv_printf_has_decfloat=no
13509 else
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13512 $ac_includes_default
13513 int
13514 main ()
13515 {
13516 char buf[64];
13517 _Decimal32 d32 = 1.2345df;
13518 _Decimal64 d64 = 1.2345dd;
13519 _Decimal128 d128 = 1.2345dl;
13520 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13521 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13522 ;
13523 return 0;
13524 }
13525 _ACEOF
13526 if ac_fn_c_try_run "$LINENO"; then :
13527 gdb_cv_printf_has_decfloat=yes
13528 else
13529 gdb_cv_printf_has_decfloat=no
13530 fi
13531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13532 conftest.$ac_objext conftest.beam conftest.$ac_ext
13533 fi
13534
13535 fi
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13537 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13538 if test $gdb_cv_printf_has_decfloat = yes; then
13539
13540 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13541
13542 fi
13543
13544 # Check if the compiler supports the `long double' type. We can't use
13545 # AC_C_LONG_DOUBLE because that one does additional checks on the
13546 # constants defined in <float.h> that fail on some systems,
13547 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13548
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13550 $as_echo_n "checking for long double support in compiler... " >&6; }
13551 if test "${gdb_cv_c_long_double+set}" = set; then :
13552 $as_echo_n "(cached) " >&6
13553 else
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556 long double foo;
13557 _ACEOF
13558 if ac_fn_c_try_compile "$LINENO"; then :
13559 gdb_cv_c_long_double=yes
13560 else
13561 gdb_cv_c_long_double=no
13562 fi
13563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13564 fi
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13566 $as_echo "$gdb_cv_c_long_double" >&6; }
13567 if test $gdb_cv_c_long_double = yes; then
13568
13569 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13570
13571 fi
13572
13573 # Check if the compiler and runtime support printing long doubles.
13574
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
13576 $as_echo_n "checking for long double support in printf... " >&6; }
13577 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 if test "$cross_compiling" = yes; then :
13581 gdb_cv_printf_has_long_double=no
13582 else
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 $ac_includes_default
13586 int
13587 main ()
13588 {
13589 char buf[16];
13590 long double f = 3.141592653;
13591 sprintf (buf, "%Lg", f);
13592 return (strncmp ("3.14159", buf, 7));
13593 ;
13594 return 0;
13595 }
13596 _ACEOF
13597 if ac_fn_c_try_run "$LINENO"; then :
13598 gdb_cv_printf_has_long_double=yes
13599 else
13600 gdb_cv_printf_has_long_double=no
13601 fi
13602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13603 conftest.$ac_objext conftest.beam conftest.$ac_ext
13604 fi
13605
13606 fi
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
13608 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
13609 if test $gdb_cv_printf_has_long_double = yes; then
13610
13611 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
13612
13613 fi
13614
13615 # Check if the compiler and runtime support scanning long doubles.
13616
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
13618 $as_echo_n "checking for long double support in scanf... " >&6; }
13619 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
13620 $as_echo_n "(cached) " >&6
13621 else
13622 if test "$cross_compiling" = yes; then :
13623 gdb_cv_scanf_has_long_double=no
13624 else
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13627 #include <stdio.h>
13628 int
13629 main ()
13630 {
13631 char *buf = "3.141592653";
13632 long double f = 0;
13633 sscanf (buf, "%Lg", &f);
13634 return !(f > 3.14159 && f < 3.14160);
13635 ;
13636 return 0;
13637 }
13638 _ACEOF
13639 if ac_fn_c_try_run "$LINENO"; then :
13640 gdb_cv_scanf_has_long_double=yes
13641 else
13642 gdb_cv_scanf_has_long_double=no
13643 fi
13644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13645 conftest.$ac_objext conftest.beam conftest.$ac_ext
13646 fi
13647
13648 fi
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
13650 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
13651 if test $gdb_cv_scanf_has_long_double = yes; then
13652
13653 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
13654
13655 fi
13656
13657 case ${host_os} in
13658 aix*)
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
13660 $as_echo_n "checking for -bbigtoc option... " >&6; }
13661 if test "${gdb_cv_bigtoc+set}" = set; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664
13665 SAVE_LDFLAGS=$LDFLAGS
13666
13667 case $GCC in
13668 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
13669 *) gdb_cv_bigtoc=-bbigtoc ;;
13670 esac
13671
13672 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13675
13676 int
13677 main ()
13678 {
13679 int i;
13680 ;
13681 return 0;
13682 }
13683 _ACEOF
13684 if ac_fn_c_try_link "$LINENO"; then :
13685
13686 else
13687 gdb_cv_bigtoc=
13688 fi
13689 rm -f core conftest.err conftest.$ac_objext \
13690 conftest$ac_exeext conftest.$ac_ext
13691 LDFLAGS="${SAVE_LDFLAGS}"
13692
13693 fi
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
13695 $as_echo "$gdb_cv_bigtoc" >&6; }
13696 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
13697 ;;
13698 esac
13699
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
13701 $as_echo_n "checking for the dynamic export flag... " >&6; }
13702 dynamic_list=false
13703 if test "${gdb_native}" = yes; then
13704 # The dynamically loaded libthread_db needs access to symbols in the gdb
13705 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
13706 # may not be supported there.
13707 old_LDFLAGS="$LDFLAGS"
13708 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
13709 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
13710 LDFLAGS="$LDFLAGS $RDYNAMIC"
13711 if test "${have_libpython}" = no; then
13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h. */
13714
13715 int
13716 main ()
13717 {
13718
13719 ;
13720 return 0;
13721 }
13722 _ACEOF
13723 if ac_fn_c_try_link "$LINENO"; then :
13724 dynamic_list=true
13725 fi
13726 rm -f core conftest.err conftest.$ac_objext \
13727 conftest$ac_exeext conftest.$ac_ext
13728 else
13729 # Workaround http://bugs.python.org/issue4434 where static
13730 # libpythonX.Y.a would get its symbols required for
13731 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
13732 # Problem does not happen for the recommended libpythonX.Y.so linkage.
13733
13734 # Note the workaround for Python
13735 # http://bugs.python.org/issue10112 earlier has removed
13736 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
13737 # here too, as otherwise it'd make this -Wl,--dynamic-list test
13738 # always pass.
13739 old_CFLAGS="$CFLAGS"
13740 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
13741 old_LIBS="$LIBS"
13742 LIBS="$LIBS $PYTHON_LIBS"
13743 old_CPPFLAGS="$CPPFLAGS"
13744 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
13745 if test "$cross_compiling" = yes; then :
13746 true
13747 else
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 #include "Python.h"
13751 int
13752 main ()
13753 {
13754 int err;
13755 Py_Initialize ();
13756 err = PyRun_SimpleString ("import itertools\n");
13757 Py_Finalize ();
13758 return err == 0 ? 0 : 1;
13759 ;
13760 return 0;
13761 }
13762 _ACEOF
13763 if ac_fn_c_try_run "$LINENO"; then :
13764 dynamic_list=true
13765 fi
13766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13767 conftest.$ac_objext conftest.beam conftest.$ac_ext
13768 fi
13769
13770 LIBS="$old_LIBS"
13771 CFLAGS="$old_CFLAGS"
13772 CPPFLAGS="$old_CPPFLAGS"
13773 fi
13774 LDFLAGS="$old_LDFLAGS"
13775 fi
13776 if $dynamic_list; then
13777 found="-Wl,--dynamic-list"
13778 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
13779 else
13780 found="-rdynamic"
13781 RDYNAMIC="-rdynamic"
13782 fi
13783
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13785 $as_echo "$found" >&6; }
13786
13787
13788 if test ${build} = ${host} -a ${host} = ${target} ; then
13789 case ${host_os} in
13790 solaris*)
13791 # See if thread_db library is around for Solaris thread debugging.
13792 # Note that we must explicitly test for version 1 of the library
13793 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
13794 # the same API.
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
13796 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
13797 if test -f /usr/lib/libthread_db.so.1 ; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13799 $as_echo "yes" >&6; }
13800
13801 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
13802
13803 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
13804 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13806 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13807 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13808 $as_echo_n "(cached) " >&6
13809 else
13810 ac_check_lib_save_LIBS=$LIBS
13811 LIBS="-ldl $LIBS"
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814
13815 /* Override any GCC internal prototype to avoid an error.
13816 Use char because int might match the return type of a GCC
13817 builtin and then its argument prototype would still apply. */
13818 #ifdef __cplusplus
13819 extern "C"
13820 #endif
13821 char dlopen ();
13822 int
13823 main ()
13824 {
13825 return dlopen ();
13826 ;
13827 return 0;
13828 }
13829 _ACEOF
13830 if ac_fn_c_try_link "$LINENO"; then :
13831 ac_cv_lib_dl_dlopen=yes
13832 else
13833 ac_cv_lib_dl_dlopen=no
13834 fi
13835 rm -f core conftest.err conftest.$ac_objext \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13838 fi
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13840 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13841 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13842 cat >>confdefs.h <<_ACEOF
13843 #define HAVE_LIBDL 1
13844 _ACEOF
13845
13846 LIBS="-ldl $LIBS"
13847
13848 fi
13849
13850 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
13851 # Sun randomly tweaked the prototypes in <proc_service.h>
13852 # at one point.
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13854 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
13855 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13856 $as_echo_n "(cached) " >&6
13857 else
13858
13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h. */
13861
13862 #include <proc_service.h>
13863 ps_err_e ps_pdwrite
13864 (struct ps_prochandle*, psaddr_t, const void*, size_t);
13865
13866 int
13867 main ()
13868 {
13869
13870 ;
13871 return 0;
13872 }
13873 _ACEOF
13874 if ac_fn_c_try_compile "$LINENO"; then :
13875 gdb_cv_proc_service_is_old=no
13876 else
13877 gdb_cv_proc_service_is_old=yes
13878 fi
13879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880
13881 fi
13882
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13884 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13885 if test $gdb_cv_proc_service_is_old = yes; then
13886
13887 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13888
13889 fi
13890 else
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892 $as_echo "no" >&6; }
13893 fi
13894 ;;
13895 aix*)
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13897 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13898 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13899 $as_echo_n "(cached) " >&6
13900 else
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903 #include <sys/pthdebug.h>
13904 int
13905 main ()
13906 {
13907 #ifndef PTHDB_VERSION_3
13908 #error
13909 #endif
13910 ;
13911 return 0;
13912 }
13913 _ACEOF
13914 if ac_fn_c_try_compile "$LINENO"; then :
13915 gdb_cv_have_aix_thread_debug=yes
13916 else
13917 gdb_cv_have_aix_thread_debug=no
13918 fi
13919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13920 fi
13921
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13923 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13924 if test $gdb_cv_have_aix_thread_debug = yes; then
13925 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
13926 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
13927 LIBS="$LIBS -lpthdebug"
13928
13929 # Older versions of AIX do not provide the declaration for
13930 # the getthrds function (it appears that it was introduced
13931 # with AIX 6.x).
13932 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
13933 "
13934 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
13935 ac_have_decl=1
13936 else
13937 ac_have_decl=0
13938 fi
13939
13940 cat >>confdefs.h <<_ACEOF
13941 #define HAVE_DECL_GETTHRDS $ac_have_decl
13942 _ACEOF
13943
13944 fi
13945 ;;
13946 esac
13947
13948 fi
13949
13950 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13952 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13953 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13954 $as_echo_n "(cached) " >&6
13955 else
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13958 #include <thread_db.h>
13959 int
13960 main ()
13961 {
13962 int i = TD_NOTALLOC;
13963 ;
13964 return 0;
13965 }
13966 _ACEOF
13967 if ac_fn_c_try_compile "$LINENO"; then :
13968 gdb_cv_thread_db_h_has_td_notalloc=yes
13969 else
13970 gdb_cv_thread_db_h_has_td_notalloc=no
13971
13972 fi
13973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13974
13975 fi
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13977 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13979 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13980 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13981 $as_echo_n "(cached) " >&6
13982 else
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13985 #include <thread_db.h>
13986 int
13987 main ()
13988 {
13989 int i = TD_VERSION;
13990 ;
13991 return 0;
13992 }
13993 _ACEOF
13994 if ac_fn_c_try_compile "$LINENO"; then :
13995 gdb_cv_thread_db_h_has_td_version=yes
13996 else
13997 gdb_cv_thread_db_h_has_td_version=no
13998
13999 fi
14000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001
14002 fi
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14004 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14006 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14007 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14008 $as_echo_n "(cached) " >&6
14009 else
14010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h. */
14012 #include <thread_db.h>
14013 int
14014 main ()
14015 {
14016 int i = TD_NOTLS;
14017 ;
14018 return 0;
14019 }
14020 _ACEOF
14021 if ac_fn_c_try_compile "$LINENO"; then :
14022 gdb_cv_thread_db_h_has_td_notls=yes
14023 else
14024 gdb_cv_thread_db_h_has_td_notls=no
14025
14026 fi
14027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028
14029 fi
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14031 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14032 fi
14033 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14034
14035 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14036
14037 fi
14038 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14039
14040 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14041
14042 fi
14043 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14044
14045 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14046
14047 fi
14048
14049 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14050 "
14051 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14052 ac_have_decl=1
14053 else
14054 ac_have_decl=0
14055 fi
14056
14057 cat >>confdefs.h <<_ACEOF
14058 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14059 _ACEOF
14060
14061
14062 if test "$cross_compiling" = yes; then :
14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14065 #include <sys/personality.h>
14066 int
14067 main ()
14068 {
14069
14070 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14071 # define ADDR_NO_RANDOMIZE 0x0040000
14072 # endif
14073 /* Test the flag could be set and stays set. */
14074 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14075 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14076 return 1
14077 ;
14078 return 0;
14079 }
14080 _ACEOF
14081 if ac_fn_c_try_link "$LINENO"; then :
14082 have_personality=true
14083 else
14084 have_personality=false
14085 fi
14086 rm -f core conftest.err conftest.$ac_objext \
14087 conftest$ac_exeext conftest.$ac_ext
14088 else
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091 #include <sys/personality.h>
14092 int
14093 main ()
14094 {
14095
14096 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14097 # define ADDR_NO_RANDOMIZE 0x0040000
14098 # endif
14099 /* Test the flag could be set and stays set. */
14100 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14101 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14102 return 1
14103 ;
14104 return 0;
14105 }
14106 _ACEOF
14107 if ac_fn_c_try_run "$LINENO"; then :
14108 have_personality=true
14109 else
14110 have_personality=false
14111 fi
14112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14113 conftest.$ac_objext conftest.beam conftest.$ac_ext
14114 fi
14115
14116 if $have_personality
14117 then
14118
14119 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14120
14121 fi
14122
14123 case $host_os in
14124 go32* | *djgpp*)
14125 gdbinit=gdb.ini
14126 ;;
14127 *)
14128 gdbinit=.gdbinit
14129 ;;
14130 esac
14131
14132 cat >>confdefs.h <<_ACEOF
14133 #define GDBINIT "$gdbinit"
14134 _ACEOF
14135
14136
14137
14138 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
14139 # except that the argument to --with-sysroot is optional.
14140 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
14141 if test "x$with_sysroot" = xyes; then
14142 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
14143 fi
14144
14145 # Check whether --with-sysroot was given.
14146 if test "${with_sysroot+set}" = set; then :
14147 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
14148 else
14149 TARGET_SYSTEM_ROOT=
14150 fi
14151
14152
14153 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14154 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14155 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
14156 ac_define_dir=`eval echo $ac_define_dir`
14157
14158 cat >>confdefs.h <<_ACEOF
14159 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
14160 _ACEOF
14161
14162
14163
14164
14165 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14166 if test "x$prefix" = xNONE; then
14167 test_prefix=/usr/local
14168 else
14169 test_prefix=$prefix
14170 fi
14171 else
14172 test_prefix=$exec_prefix
14173 fi
14174 value=0
14175 case ${ac_define_dir} in
14176 "${test_prefix}"|"${test_prefix}/"*|\
14177 '${exec_prefix}'|'${exec_prefix}/'*)
14178 value=1
14179 ;;
14180 esac
14181
14182 cat >>confdefs.h <<_ACEOF
14183 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
14184 _ACEOF
14185
14186
14187
14188
14189
14190 # Check whether --with-system-gdbinit was given.
14191 if test "${with_system_gdbinit+set}" = set; then :
14192 withval=$with_system_gdbinit;
14193 SYSTEM_GDBINIT=$withval
14194 else
14195 SYSTEM_GDBINIT=
14196 fi
14197
14198
14199 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14200 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14201 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14202 ac_define_dir=`eval echo $ac_define_dir`
14203
14204 cat >>confdefs.h <<_ACEOF
14205 #define SYSTEM_GDBINIT "$ac_define_dir"
14206 _ACEOF
14207
14208
14209
14210
14211 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14212 if test "x$prefix" = xNONE; then
14213 test_prefix=/usr/local
14214 else
14215 test_prefix=$prefix
14216 fi
14217 else
14218 test_prefix=$exec_prefix
14219 fi
14220 value=0
14221 case ${ac_define_dir} in
14222 "${test_prefix}"|"${test_prefix}/"*|\
14223 '${exec_prefix}'|'${exec_prefix}/'*)
14224 value=1
14225 ;;
14226 esac
14227
14228 cat >>confdefs.h <<_ACEOF
14229 #define SYSTEM_GDBINIT_RELOCATABLE $value
14230 _ACEOF
14231
14232
14233
14234
14235
14236
14237 # Check whether --enable-werror was given.
14238 if test "${enable_werror+set}" = set; then :
14239 enableval=$enable_werror; case "${enableval}" in
14240 yes | y) ERROR_ON_WARNING="yes" ;;
14241 no | n) ERROR_ON_WARNING="no" ;;
14242 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14243 esac
14244 fi
14245
14246
14247 # Enable -Werror by default when using gcc. Turn it off for releases.
14248 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
14249 ERROR_ON_WARNING=yes
14250 fi
14251
14252 WERROR_CFLAGS=""
14253 if test "${ERROR_ON_WARNING}" = yes ; then
14254 WERROR_CFLAGS="-Werror"
14255 fi
14256
14257 # These options work in either C or C++ modes.
14258 build_warnings="-Wall -Wpointer-arith \
14259 -Wno-unused -Wunused-value -Wunused-function \
14260 -Wno-switch -Wno-char-subscripts \
14261 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable"
14262
14263 # Now add in C and C++ specific options, depending on mode.
14264 if test "$enable_build_with_cxx" = "yes"; then
14265 build_warnings="$build_warnings -Wno-sign-compare -Wno-write-strings \
14266 -Wno-narrowing"
14267 else
14268 build_warnings="$build_warnings -Wpointer-sign -Wmissing-prototypes \
14269 -Wdeclaration-after-statement -Wmissing-parameter-type \
14270 -Wold-style-declaration -Wold-style-definition"
14271 fi
14272
14273 # Enable -Wno-format by default when using gcc on mingw since many
14274 # GCC versions complain about %I64.
14275 case "${host}" in
14276 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14277 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14278 esac
14279
14280 # Check whether --enable-build-warnings was given.
14281 if test "${enable_build_warnings+set}" = set; then :
14282 enableval=$enable_build_warnings; case "${enableval}" in
14283 yes) ;;
14284 no) build_warnings="-w";;
14285 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14286 build_warnings="${build_warnings} ${t}";;
14287 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14288 build_warnings="${t} ${build_warnings}";;
14289 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14290 esac
14291 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14292 echo "Setting compiler warning flags = $build_warnings" 6>&1
14293 fi
14294 fi
14295 # Check whether --enable-gdb-build-warnings was given.
14296 if test "${enable_gdb_build_warnings+set}" = set; then :
14297 enableval=$enable_gdb_build_warnings; case "${enableval}" in
14298 yes) ;;
14299 no) build_warnings="-w";;
14300 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14301 build_warnings="${build_warnings} ${t}";;
14302 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14303 build_warnings="${t} ${build_warnings}";;
14304 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14305 esac
14306 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14307 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14308 fi
14309 fi
14310
14311 # The set of warnings supported by a C++ compiler is not the same as
14312 # of the C compiler.
14313 if test "$enable_build_with_cxx" = "yes"; then
14314 ac_ext=cpp
14315 ac_cpp='$CXXCPP $CPPFLAGS'
14316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14319
14320 fi
14321
14322 WARN_CFLAGS=""
14323 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14324 then
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14326 $as_echo_n "checking compiler warning flags... " >&6; }
14327 # Separate out the -Werror flag as some files just cannot be
14328 # compiled with it enabled.
14329 for w in ${build_warnings}; do
14330 # GCC does not complain about -Wno-unknown-warning. Invert
14331 # and test -Wunknown-warning instead.
14332 case $w in
14333 -Wno-*)
14334 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
14335 *)
14336 wtest=$w ;;
14337 esac
14338
14339 case $w in
14340 -Werr*) WERROR_CFLAGS=-Werror ;;
14341 *)
14342 # Check whether GCC accepts it.
14343 saved_CFLAGS="$CFLAGS"
14344 CFLAGS="$CFLAGS $wtest"
14345 saved_CXXFLAGS="$CXXFLAGS"
14346 CXXFLAGS="$CXXFLAGS $wtest"
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14349
14350 int
14351 main ()
14352 {
14353
14354 ;
14355 return 0;
14356 }
14357 _ACEOF
14358 if ac_fn_cxx_try_compile "$LINENO"; then :
14359 WARN_CFLAGS="${WARN_CFLAGS} $w"
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362 CFLAGS="$saved_CFLAGS"
14363 CXXFLAGS="$saved_CXXFLAGS"
14364 esac
14365 done
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14367 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14368 fi
14369
14370
14371
14372 if test "$enable_build_with_cxx" = "yes"; then
14373 ac_ext=c
14374 ac_cpp='$CPP $CPPFLAGS'
14375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14378
14379 fi
14380
14381
14382 # In the Cygwin environment, we need some additional flags.
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14384 $as_echo_n "checking for cygwin... " >&6; }
14385 if test "${gdb_cv_os_cygwin+set}" = set; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390
14391 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14392 lose
14393 #endif
14394 _ACEOF
14395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14396 $EGREP "^lose$" >/dev/null 2>&1; then :
14397 gdb_cv_os_cygwin=yes
14398 else
14399 gdb_cv_os_cygwin=no
14400 fi
14401 rm -f conftest*
14402
14403 fi
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14405 $as_echo "$gdb_cv_os_cygwin" >&6; }
14406
14407
14408 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14409 case ${host} in
14410 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14411 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14412 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14413 esac
14414
14415
14416 # libreadline needs libuser32.a in a cygwin environment
14417 WIN32LIBS=
14418 if test x$gdb_cv_os_cygwin = xyes; then
14419 WIN32LIBS="-luser32"
14420 case "${target}" in
14421 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14422 ;;
14423 esac
14424 fi
14425
14426 # The ser-tcp.c module requires sockets.
14427 case ${host} in
14428 *mingw32*)
14429
14430 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14431
14432 WIN32LIBS="$WIN32LIBS -lws2_32"
14433 ;;
14434 esac
14435
14436
14437 # Add ELF support to GDB, but only if BFD includes ELF support.
14438
14439 OLD_CFLAGS=$CFLAGS
14440 OLD_LDFLAGS=$LDFLAGS
14441 OLD_LIBS=$LIBS
14442 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14443 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14444 # always want our bfd.
14445 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14446 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14447 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14448 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14449 LIBS="-lbfd -liberty -lz $intl $LIBS"
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14451 $as_echo_n "checking for ELF support in BFD... " >&6; }
14452 if test "${gdb_cv_var_elf+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
14454 else
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14457 #include <stdlib.h>
14458 #include "bfd.h"
14459 #include "elf-bfd.h"
14460
14461 int
14462 main ()
14463 {
14464 return bfd_get_elf_phdr_upper_bound (NULL);
14465 ;
14466 return 0;
14467 }
14468 _ACEOF
14469 if ac_fn_c_try_link "$LINENO"; then :
14470 gdb_cv_var_elf=yes
14471 else
14472 gdb_cv_var_elf=no
14473 fi
14474 rm -f core conftest.err conftest.$ac_objext \
14475 conftest$ac_exeext conftest.$ac_ext
14476 fi
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14478 $as_echo "$gdb_cv_var_elf" >&6; }
14479 CFLAGS=$OLD_CFLAGS
14480 LDFLAGS=$OLD_LDFLAGS
14481 LIBS=$OLD_LIBS
14482 if test $gdb_cv_var_elf = yes; then
14483 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
14484
14485 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14486
14487 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14488 if test "$plugins" = "yes"; then
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14490 $as_echo_n "checking for library containing dlopen... " >&6; }
14491 if test "${ac_cv_search_dlopen+set}" = set; then :
14492 $as_echo_n "(cached) " >&6
14493 else
14494 ac_func_search_save_LIBS=$LIBS
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14497
14498 /* Override any GCC internal prototype to avoid an error.
14499 Use char because int might match the return type of a GCC
14500 builtin and then its argument prototype would still apply. */
14501 #ifdef __cplusplus
14502 extern "C"
14503 #endif
14504 char dlopen ();
14505 int
14506 main ()
14507 {
14508 return dlopen ();
14509 ;
14510 return 0;
14511 }
14512 _ACEOF
14513 for ac_lib in '' dl; do
14514 if test -z "$ac_lib"; then
14515 ac_res="none required"
14516 else
14517 ac_res=-l$ac_lib
14518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14519 fi
14520 if ac_fn_c_try_link "$LINENO"; then :
14521 ac_cv_search_dlopen=$ac_res
14522 fi
14523 rm -f core conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext
14525 if test "${ac_cv_search_dlopen+set}" = set; then :
14526 break
14527 fi
14528 done
14529 if test "${ac_cv_search_dlopen+set}" = set; then :
14530
14531 else
14532 ac_cv_search_dlopen=no
14533 fi
14534 rm conftest.$ac_ext
14535 LIBS=$ac_func_search_save_LIBS
14536 fi
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14538 $as_echo "$ac_cv_search_dlopen" >&6; }
14539 ac_res=$ac_cv_search_dlopen
14540 if test "$ac_res" != no; then :
14541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14542
14543 fi
14544
14545 fi
14546 fi
14547
14548 # Add macho support to GDB, but only if BFD includes it.
14549
14550 OLD_CFLAGS=$CFLAGS
14551 OLD_LDFLAGS=$LDFLAGS
14552 OLD_LIBS=$LIBS
14553 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14554 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14555 # always want our bfd.
14556 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14557 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14558 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14559 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14560 LIBS="-lbfd -liberty -lz $intl $LIBS"
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
14562 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
14563 if test "${gdb_cv_var_macho+set}" = set; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 #include <stdlib.h>
14569 #include "bfd.h"
14570 #include "mach-o.h"
14571
14572 int
14573 main ()
14574 {
14575 return bfd_mach_o_lookup_command (NULL, 0, NULL);
14576 ;
14577 return 0;
14578 }
14579 _ACEOF
14580 if ac_fn_c_try_link "$LINENO"; then :
14581 gdb_cv_var_macho=yes
14582 else
14583 gdb_cv_var_macho=no
14584 fi
14585 rm -f core conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext conftest.$ac_ext
14587 fi
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
14589 $as_echo "$gdb_cv_var_macho" >&6; }
14590 CFLAGS=$OLD_CFLAGS
14591 LDFLAGS=$OLD_LDFLAGS
14592 LIBS=$OLD_LIBS
14593 if test $gdb_cv_var_macho = yes; then
14594 CONFIG_OBS="$CONFIG_OBS machoread.o"
14595 fi
14596
14597 # Add any host-specific objects to GDB.
14598 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14599
14600 # If building on ELF, look for lzma support for embedded compressed debug info.
14601 if test $gdb_cv_var_elf = yes; then
14602
14603 # Check whether --with-lzma was given.
14604 if test "${with_lzma+set}" = set; then :
14605 withval=$with_lzma;
14606 else
14607 with_lzma=auto
14608 fi
14609
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
14611 $as_echo_n "checking whether to use lzma... " >&6; }
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
14613 $as_echo "$with_lzma" >&6; }
14614
14615 if test "${with_lzma}" != no; then
14616
14617
14618
14619
14620
14621
14622
14623
14624 use_additional=yes
14625
14626 acl_save_prefix="$prefix"
14627 prefix="$acl_final_prefix"
14628 acl_save_exec_prefix="$exec_prefix"
14629 exec_prefix="$acl_final_exec_prefix"
14630
14631 eval additional_includedir=\"$includedir\"
14632 eval additional_libdir=\"$libdir\"
14633
14634 exec_prefix="$acl_save_exec_prefix"
14635 prefix="$acl_save_prefix"
14636
14637
14638 # Check whether --with-liblzma-prefix was given.
14639 if test "${with_liblzma_prefix+set}" = set; then :
14640 withval=$with_liblzma_prefix;
14641 if test "X$withval" = "Xno"; then
14642 use_additional=no
14643 else
14644 if test "X$withval" = "X"; then
14645
14646 acl_save_prefix="$prefix"
14647 prefix="$acl_final_prefix"
14648 acl_save_exec_prefix="$exec_prefix"
14649 exec_prefix="$acl_final_exec_prefix"
14650
14651 eval additional_includedir=\"$includedir\"
14652 eval additional_libdir=\"$libdir\"
14653
14654 exec_prefix="$acl_save_exec_prefix"
14655 prefix="$acl_save_prefix"
14656
14657 else
14658 additional_includedir="$withval/include"
14659 additional_libdir="$withval/lib"
14660 fi
14661 fi
14662
14663 fi
14664
14665 LIBLZMA=
14666 LTLIBLZMA=
14667 INCLZMA=
14668 rpathdirs=
14669 ltrpathdirs=
14670 names_already_handled=
14671 names_next_round='lzma '
14672 while test -n "$names_next_round"; do
14673 names_this_round="$names_next_round"
14674 names_next_round=
14675 for name in $names_this_round; do
14676 already_handled=
14677 for n in $names_already_handled; do
14678 if test "$n" = "$name"; then
14679 already_handled=yes
14680 break
14681 fi
14682 done
14683 if test -z "$already_handled"; then
14684 names_already_handled="$names_already_handled $name"
14685 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14686 eval value=\"\$HAVE_LIB$uppername\"
14687 if test -n "$value"; then
14688 if test "$value" = yes; then
14689 eval value=\"\$LIB$uppername\"
14690 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
14691 eval value=\"\$LTLIB$uppername\"
14692 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
14693 else
14694 :
14695 fi
14696 else
14697 found_dir=
14698 found_la=
14699 found_so=
14700 found_a=
14701 if test $use_additional = yes; then
14702 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14703 found_dir="$additional_libdir"
14704 found_so="$additional_libdir/lib$name.$shlibext"
14705 if test -f "$additional_libdir/lib$name.la"; then
14706 found_la="$additional_libdir/lib$name.la"
14707 fi
14708 else
14709 if test -f "$additional_libdir/lib$name.$libext"; then
14710 found_dir="$additional_libdir"
14711 found_a="$additional_libdir/lib$name.$libext"
14712 if test -f "$additional_libdir/lib$name.la"; then
14713 found_la="$additional_libdir/lib$name.la"
14714 fi
14715 fi
14716 fi
14717 fi
14718 if test "X$found_dir" = "X"; then
14719 for x in $LDFLAGS $LTLIBLZMA; do
14720
14721 acl_save_prefix="$prefix"
14722 prefix="$acl_final_prefix"
14723 acl_save_exec_prefix="$exec_prefix"
14724 exec_prefix="$acl_final_exec_prefix"
14725 eval x=\"$x\"
14726 exec_prefix="$acl_save_exec_prefix"
14727 prefix="$acl_save_prefix"
14728
14729 case "$x" in
14730 -L*)
14731 dir=`echo "X$x" | sed -e 's/^X-L//'`
14732 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14733 found_dir="$dir"
14734 found_so="$dir/lib$name.$shlibext"
14735 if test -f "$dir/lib$name.la"; then
14736 found_la="$dir/lib$name.la"
14737 fi
14738 else
14739 if test -f "$dir/lib$name.$libext"; then
14740 found_dir="$dir"
14741 found_a="$dir/lib$name.$libext"
14742 if test -f "$dir/lib$name.la"; then
14743 found_la="$dir/lib$name.la"
14744 fi
14745 fi
14746 fi
14747 ;;
14748 esac
14749 if test "X$found_dir" != "X"; then
14750 break
14751 fi
14752 done
14753 fi
14754 if test "X$found_dir" != "X"; then
14755 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
14756 if test "X$found_so" != "X"; then
14757 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14758 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14759 else
14760 haveit=
14761 for x in $ltrpathdirs; do
14762 if test "X$x" = "X$found_dir"; then
14763 haveit=yes
14764 break
14765 fi
14766 done
14767 if test -z "$haveit"; then
14768 ltrpathdirs="$ltrpathdirs $found_dir"
14769 fi
14770 if test "$hardcode_direct" = yes; then
14771 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14772 else
14773 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14774 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14775 haveit=
14776 for x in $rpathdirs; do
14777 if test "X$x" = "X$found_dir"; then
14778 haveit=yes
14779 break
14780 fi
14781 done
14782 if test -z "$haveit"; then
14783 rpathdirs="$rpathdirs $found_dir"
14784 fi
14785 else
14786 haveit=
14787 for x in $LDFLAGS $LIBLZMA; do
14788
14789 acl_save_prefix="$prefix"
14790 prefix="$acl_final_prefix"
14791 acl_save_exec_prefix="$exec_prefix"
14792 exec_prefix="$acl_final_exec_prefix"
14793 eval x=\"$x\"
14794 exec_prefix="$acl_save_exec_prefix"
14795 prefix="$acl_save_prefix"
14796
14797 if test "X$x" = "X-L$found_dir"; then
14798 haveit=yes
14799 break
14800 fi
14801 done
14802 if test -z "$haveit"; then
14803 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
14804 fi
14805 if test "$hardcode_minus_L" != no; then
14806 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14807 else
14808 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14809 fi
14810 fi
14811 fi
14812 fi
14813 else
14814 if test "X$found_a" != "X"; then
14815 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
14816 else
14817 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
14818 fi
14819 fi
14820 additional_includedir=
14821 case "$found_dir" in
14822 */lib | */lib/)
14823 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14824 additional_includedir="$basedir/include"
14825 ;;
14826 esac
14827 if test "X$additional_includedir" != "X"; then
14828 if test "X$additional_includedir" != "X/usr/include"; then
14829 haveit=
14830 if test "X$additional_includedir" = "X/usr/local/include"; then
14831 if test -n "$GCC"; then
14832 case $host_os in
14833 linux*) haveit=yes;;
14834 esac
14835 fi
14836 fi
14837 if test -z "$haveit"; then
14838 for x in $CPPFLAGS $INCLZMA; do
14839
14840 acl_save_prefix="$prefix"
14841 prefix="$acl_final_prefix"
14842 acl_save_exec_prefix="$exec_prefix"
14843 exec_prefix="$acl_final_exec_prefix"
14844 eval x=\"$x\"
14845 exec_prefix="$acl_save_exec_prefix"
14846 prefix="$acl_save_prefix"
14847
14848 if test "X$x" = "X-I$additional_includedir"; then
14849 haveit=yes
14850 break
14851 fi
14852 done
14853 if test -z "$haveit"; then
14854 if test -d "$additional_includedir"; then
14855 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
14856 fi
14857 fi
14858 fi
14859 fi
14860 fi
14861 if test -n "$found_la"; then
14862 save_libdir="$libdir"
14863 case "$found_la" in
14864 */* | *\\*) . "$found_la" ;;
14865 *) . "./$found_la" ;;
14866 esac
14867 libdir="$save_libdir"
14868 for dep in $dependency_libs; do
14869 case "$dep" in
14870 -L*)
14871 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14872 if test "X$additional_libdir" != "X/usr/lib"; then
14873 haveit=
14874 if test "X$additional_libdir" = "X/usr/local/lib"; then
14875 if test -n "$GCC"; then
14876 case $host_os in
14877 linux*) haveit=yes;;
14878 esac
14879 fi
14880 fi
14881 if test -z "$haveit"; then
14882 haveit=
14883 for x in $LDFLAGS $LIBLZMA; do
14884
14885 acl_save_prefix="$prefix"
14886 prefix="$acl_final_prefix"
14887 acl_save_exec_prefix="$exec_prefix"
14888 exec_prefix="$acl_final_exec_prefix"
14889 eval x=\"$x\"
14890 exec_prefix="$acl_save_exec_prefix"
14891 prefix="$acl_save_prefix"
14892
14893 if test "X$x" = "X-L$additional_libdir"; then
14894 haveit=yes
14895 break
14896 fi
14897 done
14898 if test -z "$haveit"; then
14899 if test -d "$additional_libdir"; then
14900 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
14901 fi
14902 fi
14903 haveit=
14904 for x in $LDFLAGS $LTLIBLZMA; do
14905
14906 acl_save_prefix="$prefix"
14907 prefix="$acl_final_prefix"
14908 acl_save_exec_prefix="$exec_prefix"
14909 exec_prefix="$acl_final_exec_prefix"
14910 eval x=\"$x\"
14911 exec_prefix="$acl_save_exec_prefix"
14912 prefix="$acl_save_prefix"
14913
14914 if test "X$x" = "X-L$additional_libdir"; then
14915 haveit=yes
14916 break
14917 fi
14918 done
14919 if test -z "$haveit"; then
14920 if test -d "$additional_libdir"; then
14921 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14922 fi
14923 fi
14924 fi
14925 fi
14926 ;;
14927 -R*)
14928 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14929 if test "$enable_rpath" != no; then
14930 haveit=
14931 for x in $rpathdirs; do
14932 if test "X$x" = "X$dir"; then
14933 haveit=yes
14934 break
14935 fi
14936 done
14937 if test -z "$haveit"; then
14938 rpathdirs="$rpathdirs $dir"
14939 fi
14940 haveit=
14941 for x in $ltrpathdirs; do
14942 if test "X$x" = "X$dir"; then
14943 haveit=yes
14944 break
14945 fi
14946 done
14947 if test -z "$haveit"; then
14948 ltrpathdirs="$ltrpathdirs $dir"
14949 fi
14950 fi
14951 ;;
14952 -l*)
14953 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14954 ;;
14955 *.la)
14956 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14957 ;;
14958 *)
14959 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
14960 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14961 ;;
14962 esac
14963 done
14964 fi
14965 else
14966 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14967 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
14968 fi
14969 fi
14970 fi
14971 done
14972 done
14973 if test "X$rpathdirs" != "X"; then
14974 if test -n "$hardcode_libdir_separator"; then
14975 alldirs=
14976 for found_dir in $rpathdirs; do
14977 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14978 done
14979 acl_save_libdir="$libdir"
14980 libdir="$alldirs"
14981 eval flag=\"$hardcode_libdir_flag_spec\"
14982 libdir="$acl_save_libdir"
14983 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14984 else
14985 for found_dir in $rpathdirs; do
14986 acl_save_libdir="$libdir"
14987 libdir="$found_dir"
14988 eval flag=\"$hardcode_libdir_flag_spec\"
14989 libdir="$acl_save_libdir"
14990 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14991 done
14992 fi
14993 fi
14994 if test "X$ltrpathdirs" != "X"; then
14995 for found_dir in $ltrpathdirs; do
14996 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
14997 done
14998 fi
14999
15000
15001 ac_save_CPPFLAGS="$CPPFLAGS"
15002
15003 for element in $INCLZMA; do
15004 haveit=
15005 for x in $CPPFLAGS; do
15006
15007 acl_save_prefix="$prefix"
15008 prefix="$acl_final_prefix"
15009 acl_save_exec_prefix="$exec_prefix"
15010 exec_prefix="$acl_final_exec_prefix"
15011 eval x=\"$x\"
15012 exec_prefix="$acl_save_exec_prefix"
15013 prefix="$acl_save_prefix"
15014
15015 if test "X$x" = "X$element"; then
15016 haveit=yes
15017 break
15018 fi
15019 done
15020 if test -z "$haveit"; then
15021 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15022 fi
15023 done
15024
15025
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
15027 $as_echo_n "checking for liblzma... " >&6; }
15028 if test "${ac_cv_liblzma+set}" = set; then :
15029 $as_echo_n "(cached) " >&6
15030 else
15031
15032 ac_save_LIBS="$LIBS"
15033 LIBS="$LIBS $LIBLZMA"
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15036 #include "lzma.h"
15037 int
15038 main ()
15039 {
15040 lzma_index_iter iter;
15041 lzma_index_iter_init (&iter, 0);
15042 lzma_mf_is_supported (LZMA_MF_HC3);
15043 ;
15044 return 0;
15045 }
15046 _ACEOF
15047 if ac_fn_c_try_link "$LINENO"; then :
15048 ac_cv_liblzma=yes
15049 else
15050 ac_cv_liblzma=no
15051 fi
15052 rm -f core conftest.err conftest.$ac_objext \
15053 conftest$ac_exeext conftest.$ac_ext
15054 LIBS="$ac_save_LIBS"
15055
15056 fi
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
15058 $as_echo "$ac_cv_liblzma" >&6; }
15059 if test "$ac_cv_liblzma" = yes; then
15060 HAVE_LIBLZMA=yes
15061
15062 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
15063
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
15065 $as_echo_n "checking how to link with liblzma... " >&6; }
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
15067 $as_echo "$LIBLZMA" >&6; }
15068 else
15069 HAVE_LIBLZMA=no
15070 CPPFLAGS="$ac_save_CPPFLAGS"
15071 LIBLZMA=
15072 LTLIBLZMA=
15073 fi
15074
15075
15076
15077
15078
15079
15080 if test "$HAVE_LIBLZMA" != yes; then
15081 if test "$with_lzma" = yes; then
15082 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
15083 fi
15084 fi
15085 fi
15086 fi
15087
15088 LIBGUI="../libgui/src/libgui.a"
15089 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
15090
15091
15092
15093 WIN32LDAPP=
15094
15095
15096
15097 case "${host}" in
15098 *-*-cygwin* | *-*-mingw* )
15099 configdir="win"
15100 ;;
15101 *)
15102 configdir="unix"
15103 ;;
15104 esac
15105
15106 GDBTKLIBS=
15107 if test "${enable_gdbtk}" = "yes"; then
15108
15109 # Gdbtk must have an absolute path to srcdir in order to run
15110 # properly when not installed.
15111 here=`pwd`
15112 cd ${srcdir}
15113 GDBTK_SRC_DIR=`pwd`
15114 cd $here
15115
15116
15117 #
15118 # Ok, lets find the tcl configuration
15119 # First, look for one uninstalled.
15120 # the alternative search directory is invoked by --with-tcl
15121 #
15122
15123 if test x"${no_tcl}" = x ; then
15124 # we reset no_tcl in case something fails here
15125 no_tcl=true
15126
15127 # Check whether --with-tcl was given.
15128 if test "${with_tcl+set}" = set; then :
15129 withval=$with_tcl; with_tclconfig=${withval}
15130 fi
15131
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15133 $as_echo_n "checking for Tcl configuration... " >&6; }
15134 if test "${ac_cv_c_tclconfig+set}" = set; then :
15135 $as_echo_n "(cached) " >&6
15136 else
15137
15138
15139 # First check to see if --with-tcl was specified.
15140 case "${host}" in
15141 *-*-cygwin*) platDir="win" ;;
15142 *) platDir="unix" ;;
15143 esac
15144 if test x"${with_tclconfig}" != x ; then
15145 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15146 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15147 else
15148 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15149 fi
15150 fi
15151
15152 # then check for a private Tcl installation
15153 if test x"${ac_cv_c_tclconfig}" = x ; then
15154 for i in \
15155 ../tcl \
15156 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15157 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15158 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15159 ../../tcl \
15160 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15161 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15162 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15163 ../../../tcl \
15164 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15165 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15166 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15167 if test -f "$i/$platDir/tclConfig.sh" ; then
15168 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15169 break
15170 fi
15171 done
15172 fi
15173
15174 # on Darwin, check in Framework installation locations
15175 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15176 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15177 `ls -d /Library/Frameworks 2>/dev/null` \
15178 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15179 `ls -d /System/Library/Frameworks 2>/dev/null` \
15180 ; do
15181 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15182 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15183 break
15184 fi
15185 done
15186 fi
15187
15188 # check in a few common install locations
15189 if test x"${ac_cv_c_tclconfig}" = x ; then
15190 for i in `ls -d ${libdir} 2>/dev/null` \
15191 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15192 `ls -d ${prefix}/lib 2>/dev/null` \
15193 `ls -d /usr/local/lib 2>/dev/null` \
15194 `ls -d /usr/contrib/lib 2>/dev/null` \
15195 `ls -d /usr/lib 2>/dev/null` \
15196 ; do
15197 if test -f "$i/tclConfig.sh" ; then
15198 ac_cv_c_tclconfig=`(cd $i; pwd)`
15199 break
15200 fi
15201 done
15202 fi
15203
15204 # check in a few other private locations
15205 if test x"${ac_cv_c_tclconfig}" = x ; then
15206 for i in \
15207 ${srcdir}/../tcl \
15208 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15209 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15210 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15211 if test -f "$i/$platDir/tclConfig.sh" ; then
15212 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15213 break
15214 fi
15215 done
15216 fi
15217
15218 fi
15219
15220
15221 if test x"${ac_cv_c_tclconfig}" = x ; then
15222 TCL_BIN_DIR="# no Tcl configs found"
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15224 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15225 else
15226 no_tcl=
15227 TCL_BIN_DIR=${ac_cv_c_tclconfig}
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15229 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15230 fi
15231 fi
15232
15233
15234 # If $no_tk is nonempty, then we can't do Tk, and there is no
15235 # point to doing Tcl.
15236
15237 #
15238 # Ok, lets find the tk configuration
15239 # First, look for one uninstalled.
15240 # the alternative search directory is invoked by --with-tk
15241 #
15242
15243 if test x"${no_tk}" = x ; then
15244 # we reset no_tk in case something fails here
15245 no_tk=true
15246
15247 # Check whether --with-tk was given.
15248 if test "${with_tk+set}" = set; then :
15249 withval=$with_tk; with_tkconfig=${withval}
15250 fi
15251
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15253 $as_echo_n "checking for Tk configuration... " >&6; }
15254 if test "${ac_cv_c_tkconfig+set}" = set; then :
15255 $as_echo_n "(cached) " >&6
15256 else
15257
15258
15259 # First check to see if --with-tkconfig was specified.
15260 if test x"${with_tkconfig}" != x ; then
15261 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15262 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15263 else
15264 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15265 fi
15266 fi
15267
15268 # then check for a private Tk library
15269 case "${host}" in
15270 *-*-cygwin*) platDir="win" ;;
15271 *) platDir="unix" ;;
15272 esac
15273 if test x"${ac_cv_c_tkconfig}" = x ; then
15274 for i in \
15275 ../tk \
15276 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15277 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15278 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15279 ../../tk \
15280 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15281 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15282 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15283 ../../../tk \
15284 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15285 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15286 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15287 if test -f "$i/$platDir/tkConfig.sh" ; then
15288 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15289 break
15290 fi
15291 done
15292 fi
15293
15294 # on Darwin, check in Framework installation locations
15295 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15296 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15297 `ls -d /Library/Frameworks 2>/dev/null` \
15298 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15299 `ls -d /System/Library/Frameworks 2>/dev/null` \
15300 ; do
15301 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15302 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15303 break
15304 fi
15305 done
15306 fi
15307
15308 # check in a few common install locations
15309 if test x"${ac_cv_c_tkconfig}" = x ; then
15310 for i in `ls -d ${libdir} 2>/dev/null` \
15311 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15312 `ls -d ${prefix}/lib 2>/dev/null` \
15313 `ls -d /usr/local/lib 2>/dev/null` \
15314 `ls -d /usr/contrib/lib 2>/dev/null` \
15315 `ls -d /usr/lib 2>/dev/null` \
15316 ; do
15317 if test -f "$i/tkConfig.sh" ; then
15318 ac_cv_c_tkconfig=`(cd $i; pwd)`
15319 break
15320 fi
15321 done
15322 fi
15323 # check in a few other private locations
15324 if test x"${ac_cv_c_tkconfig}" = x ; then
15325 for i in \
15326 ${srcdir}/../tk \
15327 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15328 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15329 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15330 if test -f "$i/$platDir/tkConfig.sh" ; then
15331 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15332 break
15333 fi
15334 done
15335 fi
15336
15337 fi
15338
15339
15340 if test x"${ac_cv_c_tkconfig}" = x ; then
15341 TK_BIN_DIR="# no Tk configs found"
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15343 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15344 else
15345 no_tk=
15346 TK_BIN_DIR=${ac_cv_c_tkconfig}
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15348 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15349 fi
15350 fi
15351
15352
15353 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15354
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15356 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15357
15358 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15360 $as_echo "loading" >&6; }
15361 . ${TCL_BIN_DIR}/tclConfig.sh
15362 else
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15364 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15365 fi
15366
15367 # eval is required to do the TCL_DBGX substitution
15368 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15369 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15370
15371 # If the TCL_BIN_DIR is the build directory (not the install directory),
15372 # then set the common variable name to the value of the build variables.
15373 # For example, the variable TCL_LIB_SPEC will be set to the value
15374 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15375 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15376 # installed and uninstalled version of Tcl.
15377 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15378 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15379 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15380 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15381 elif test "`uname -s`" = "Darwin"; then
15382 # If Tcl was built as a framework, attempt to use the libraries
15383 # from the framework at the given location so that linking works
15384 # against Tcl.framework installed in an arbitrary location.
15385 case ${TCL_DEFS} in
15386 *TCL_FRAMEWORK*)
15387 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15388 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15389 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15390 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15391 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15392 break
15393 fi
15394 done
15395 fi
15396 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15397 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15398 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15399 fi
15400 ;;
15401 esac
15402 fi
15403
15404 # eval is required to do the TCL_DBGX substitution
15405 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15406 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15407 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15408 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424 # Check for in-tree tcl
15425 here=`pwd`
15426 cd ${srcdir}/..
15427 topdir=`pwd`
15428 cd ${here}
15429
15430 intree="no"
15431 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15432 intree="yes"
15433 fi
15434
15435 # Find Tcl private headers
15436 if test x"${intree}" = xno; then
15437
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15439 $as_echo_n "checking for Tcl private headers... " >&6; }
15440 private_dir=""
15441 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15442 if test -f ${dir}/tclInt.h ; then
15443 private_dir=${dir}
15444 fi
15445
15446 if test x"${private_dir}" = x; then
15447 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15448 else
15449 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15451 $as_echo "${private_dir}" >&6; }
15452 fi
15453
15454 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15455 TCL_LIBRARY="${TCL_LIB_SPEC}"
15456 TCL_DEPS=""
15457 else
15458 # If building tcl in the same src tree, private headers
15459 # are not needed, but we need to be sure to use the right
15460 # headers library
15461 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15462 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15463 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15464 fi
15465
15466
15467
15468
15469
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15471 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15472
15473 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15475 $as_echo "loading" >&6; }
15476 . ${TK_BIN_DIR}/tkConfig.sh
15477 else
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15479 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15480 fi
15481
15482 # eval is required to do the TK_DBGX substitution
15483 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15484 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15485
15486 # If the TK_BIN_DIR is the build directory (not the install directory),
15487 # then set the common variable name to the value of the build variables.
15488 # For example, the variable TK_LIB_SPEC will be set to the value
15489 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15490 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15491 # installed and uninstalled version of Tcl.
15492 if test -f "${TK_BIN_DIR}/Makefile" ; then
15493 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15494 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15495 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15496 elif test "`uname -s`" = "Darwin"; then
15497 # If Tk was built as a framework, attempt to use the libraries
15498 # from the framework at the given location so that linking works
15499 # against Tk.framework installed in an arbitrary location.
15500 case ${TK_DEFS} in
15501 *TK_FRAMEWORK*)
15502 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15503 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15504 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15505 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15506 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15507 break
15508 fi
15509 done
15510 fi
15511 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15512 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15513 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15514 fi
15515 ;;
15516 esac
15517 fi
15518
15519 # eval is required to do the TK_DBGX substitution
15520 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15521 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15522 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15523 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538 # Check for in-tree Tk
15539 intree="no"
15540 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15541 intree="yes"
15542 fi
15543
15544 # Find Tk private headers
15545 if test x"${intree}" = xno; then
15546
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15548 $as_echo_n "checking for Tk private headers... " >&6; }
15549 private_dir=""
15550 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15551 if test -f ${dir}/tkInt.h; then
15552 private_dir=${dir}
15553 fi
15554
15555 if test x"${private_dir}" = x; then
15556 as_fn_error "could not find Tk private headers" "$LINENO" 5
15557 else
15558 TK_PRIVATE_INCLUDE="-I${private_dir}"
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15560 $as_echo "${private_dir}" >&6; }
15561 fi
15562
15563 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15564 TK_LIBRARY=${TK_LIB_SPEC}
15565 TK_DEPS=""
15566 else
15567 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15568 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15569 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15570 fi
15571
15572
15573
15574
15575
15576 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15577
15578 # Include some libraries that Tcl and Tk want.
15579 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15580 # Yes, the ordering seems wrong here. But it isn't.
15581 # TK_LIBS is the list of libraries that need to be linked
15582 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15583 # were in LIBS then any link tests after this point would
15584 # try to include things like `$(LIBGUI)', which wouldn't work.
15585 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15586
15587 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15588 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15589 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15590 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15591 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15592 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15593 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15594
15595 if test x$gdb_cv_os_cygwin = xyes; then
15596 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15597 WIN32LDAPP="-Wl,--subsystem,console"
15598 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15599 fi
15600
15601 subdirs="$subdirs gdbtk"
15602
15603 fi
15604 fi
15605
15606
15607
15608
15609
15610
15611
15612
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15614 $as_echo_n "checking for X... " >&6; }
15615
15616
15617 # Check whether --with-x was given.
15618 if test "${with_x+set}" = set; then :
15619 withval=$with_x;
15620 fi
15621
15622 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15623 if test "x$with_x" = xno; then
15624 # The user explicitly disabled X.
15625 have_x=disabled
15626 else
15627 case $x_includes,$x_libraries in #(
15628 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15629 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632 # One or both of the vars are not set, and there is no cached value.
15633 ac_x_includes=no ac_x_libraries=no
15634 rm -f -r conftest.dir
15635 if mkdir conftest.dir; then
15636 cd conftest.dir
15637 cat >Imakefile <<'_ACEOF'
15638 incroot:
15639 @echo incroot='${INCROOT}'
15640 usrlibdir:
15641 @echo usrlibdir='${USRLIBDIR}'
15642 libdir:
15643 @echo libdir='${LIBDIR}'
15644 _ACEOF
15645 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15647 for ac_var in incroot usrlibdir libdir; do
15648 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15649 done
15650 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15651 for ac_extension in a so sl dylib la dll; do
15652 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15653 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15654 ac_im_usrlibdir=$ac_im_libdir; break
15655 fi
15656 done
15657 # Screen out bogus values from the imake configuration. They are
15658 # bogus both because they are the default anyway, and because
15659 # using them would break gcc on systems where it needs fixed includes.
15660 case $ac_im_incroot in
15661 /usr/include) ac_x_includes= ;;
15662 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15663 esac
15664 case $ac_im_usrlibdir in
15665 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15666 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15667 esac
15668 fi
15669 cd ..
15670 rm -f -r conftest.dir
15671 fi
15672
15673 # Standard set of common directories for X headers.
15674 # Check X11 before X11Rn because it is often a symlink to the current release.
15675 ac_x_header_dirs='
15676 /usr/X11/include
15677 /usr/X11R7/include
15678 /usr/X11R6/include
15679 /usr/X11R5/include
15680 /usr/X11R4/include
15681
15682 /usr/include/X11
15683 /usr/include/X11R7
15684 /usr/include/X11R6
15685 /usr/include/X11R5
15686 /usr/include/X11R4
15687
15688 /usr/local/X11/include
15689 /usr/local/X11R7/include
15690 /usr/local/X11R6/include
15691 /usr/local/X11R5/include
15692 /usr/local/X11R4/include
15693
15694 /usr/local/include/X11
15695 /usr/local/include/X11R7
15696 /usr/local/include/X11R6
15697 /usr/local/include/X11R5
15698 /usr/local/include/X11R4
15699
15700 /usr/X386/include
15701 /usr/x386/include
15702 /usr/XFree86/include/X11
15703
15704 /usr/include
15705 /usr/local/include
15706 /usr/unsupported/include
15707 /usr/athena/include
15708 /usr/local/x11r5/include
15709 /usr/lpp/Xamples/include
15710
15711 /usr/openwin/include
15712 /usr/openwin/share/include'
15713
15714 if test "$ac_x_includes" = no; then
15715 # Guess where to find include files, by looking for Xlib.h.
15716 # First, try using that file with no special directory specified.
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15719 #include <X11/Xlib.h>
15720 _ACEOF
15721 if ac_fn_c_try_cpp "$LINENO"; then :
15722 # We can compile using X headers with no special include directory.
15723 ac_x_includes=
15724 else
15725 for ac_dir in $ac_x_header_dirs; do
15726 if test -r "$ac_dir/X11/Xlib.h"; then
15727 ac_x_includes=$ac_dir
15728 break
15729 fi
15730 done
15731 fi
15732 rm -f conftest.err conftest.$ac_ext
15733 fi # $ac_x_includes = no
15734
15735 if test "$ac_x_libraries" = no; then
15736 # Check for the libraries.
15737 # See if we find them without any special options.
15738 # Don't add to $LIBS permanently.
15739 ac_save_LIBS=$LIBS
15740 LIBS="-lX11 $LIBS"
15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h. */
15743 #include <X11/Xlib.h>
15744 int
15745 main ()
15746 {
15747 XrmInitialize ()
15748 ;
15749 return 0;
15750 }
15751 _ACEOF
15752 if ac_fn_c_try_link "$LINENO"; then :
15753 LIBS=$ac_save_LIBS
15754 # We can link X programs with no special library path.
15755 ac_x_libraries=
15756 else
15757 LIBS=$ac_save_LIBS
15758 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15759 do
15760 # Don't even attempt the hair of trying to link an X program!
15761 for ac_extension in a so sl dylib la dll; do
15762 if test -r "$ac_dir/libX11.$ac_extension"; then
15763 ac_x_libraries=$ac_dir
15764 break 2
15765 fi
15766 done
15767 done
15768 fi
15769 rm -f core conftest.err conftest.$ac_objext \
15770 conftest$ac_exeext conftest.$ac_ext
15771 fi # $ac_x_libraries = no
15772
15773 case $ac_x_includes,$ac_x_libraries in #(
15774 no,* | *,no | *\'*)
15775 # Didn't find X, or a directory has "'" in its name.
15776 ac_cv_have_x="have_x=no";; #(
15777 *)
15778 # Record where we found X for the cache.
15779 ac_cv_have_x="have_x=yes\
15780 ac_x_includes='$ac_x_includes'\
15781 ac_x_libraries='$ac_x_libraries'"
15782 esac
15783 fi
15784 ;; #(
15785 *) have_x=yes;;
15786 esac
15787 eval "$ac_cv_have_x"
15788 fi # $with_x != no
15789
15790 if test "$have_x" != yes; then
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15792 $as_echo "$have_x" >&6; }
15793 no_x=yes
15794 else
15795 # If each of the values was on the command line, it overrides each guess.
15796 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15797 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15798 # Update the cache value to reflect the command line values.
15799 ac_cv_have_x="have_x=yes\
15800 ac_x_includes='$x_includes'\
15801 ac_x_libraries='$x_libraries'"
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15803 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15804 fi
15805
15806
15807 # Unlike the sim directory, whether a simulator is linked is controlled by
15808 # presence of a gdb_sim definition in the target configure.tgt entry.
15809 # This code just checks for a few cases where we'd like to ignore those
15810 # definitions, even when they're present in the '.mt' file. These cases
15811 # are when --disable-sim is specified, or if the simulator directory is
15812 # not part of the source tree.
15813 #
15814 # Check whether --enable-sim was given.
15815 if test "${enable_sim+set}" = set; then :
15816 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15817 echo "enableval = ${enableval}";
15818 case "${enableval}" in
15819 yes) ignore_sim=false ;;
15820 no) ignore_sim=true ;;
15821 *) ignore_sim=false ;;
15822 esac
15823 else
15824 ignore_sim=false
15825 fi
15826
15827
15828 if test ! -d "${srcdir}/../sim"; then
15829 ignore_sim=true
15830 fi
15831
15832 SIM=
15833 SIM_OBS=
15834 if test "${ignore_sim}" = "false"; then
15835 if test x"${gdb_sim}" != x ; then
15836 SIM="${gdb_sim}"
15837 SIM_OBS="remote-sim.o"
15838
15839 $as_echo "#define WITH_SIM 1" >>confdefs.h
15840
15841
15842 # Some tdep code should only be compiled in when the ppc sim is
15843 # built. PR sim/13418.
15844 case $target in
15845 powerpc*-*-*)
15846
15847 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
15848
15849 ;;
15850 esac
15851 fi
15852 fi
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867 # List of host floatformats.
15868
15869 cat >>confdefs.h <<_ACEOF
15870 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15871 _ACEOF
15872
15873
15874 cat >>confdefs.h <<_ACEOF
15875 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15876 _ACEOF
15877
15878
15879 cat >>confdefs.h <<_ACEOF
15880 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15881 _ACEOF
15882
15883
15884 # target_subdir is used by the testsuite to find the target libraries.
15885 target_subdir=
15886 if test "${host}" != "${target}"; then
15887 target_subdir="${target_alias}/"
15888 fi
15889
15890
15891 frags=
15892 if test "${gdb_native}" = "yes"; then
15893 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15894 if test ! -f ${host_makefile_frag}; then
15895 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15896 fi
15897 frags="$frags $host_makefile_frag"
15898 else
15899 host_makefile_frag=/dev/null
15900 fi
15901
15902
15903
15904
15905 if test "${gdb_native}" = "yes"; then
15906 # We pick this up from the host configuration file (.mh) because we
15907 # do not have a native configuration Makefile fragment.
15908 nativefile=`sed -n '
15909 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15910 ' ${host_makefile_frag}`
15911 fi
15912
15913
15914 if test x"${gdb_osabi}" != x ; then
15915
15916 cat >>confdefs.h <<_ACEOF
15917 #define GDB_OSABI_DEFAULT $gdb_osabi
15918 _ACEOF
15919
15920 fi
15921
15922 # Enable multi-ice-gdb-server.
15923 # Check whether --enable-multi-ice was given.
15924 if test "${enable_multi_ice+set}" = set; then :
15925 enableval=$enable_multi_ice; case $enableval in
15926 yes | no)
15927 ;;
15928 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15929 esac
15930 fi
15931
15932 if test "x$enable_multi_ice" = xyes; then
15933 subdirs="$subdirs multi-ice"
15934
15935 fi
15936
15937 # Check whether --enable-gdbserver was given.
15938 if test "${enable_gdbserver+set}" = set; then :
15939 enableval=$enable_gdbserver; case "${enableval}" in
15940 yes| no|auto) ;;
15941 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15942 esac
15943 else
15944 enable_gdbserver=auto
15945 fi
15946
15947
15948 # We only build gdbserver automatically in a native configuration, and
15949 # only if the user did not explicitly disable its build.
15950 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15952 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15953 if test "x$build_gdbserver" = xyes; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15955 $as_echo "yes" >&6; }
15956 subdirs="$subdirs gdbserver"
15957
15958 gdbserver_build_enabled=yes
15959 else
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15961 $as_echo "no" >&6; }
15962 fi
15963 fi
15964
15965 # If the user explicitly request the gdbserver to be built, verify that
15966 # we were in fact able to enable it.
15967 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15968 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15969 fi
15970
15971 # Check for babeltrace and babeltrace-ctf
15972
15973 # Check whether --with-babeltrace was given.
15974 if test "${with_babeltrace+set}" = set; then :
15975 withval=$with_babeltrace;
15976 else
15977 with_babeltrace=auto
15978 fi
15979
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
15981 $as_echo_n "checking whether to use babeltrace... " >&6; }
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
15983 $as_echo "$with_babeltrace" >&6; }
15984
15985 if test "x$with_babeltrace" = "xno"; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
15987 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
15988 else
15989 # Append -Werror to CFLAGS so that configure can catch the warning
15990 # "assignment from incompatible pointer type", which is related to
15991 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
15992 # in GDB, while babeltrace 1.0.3 is broken.
15993 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
15994 # safe to save and restore CFLAGS here.
15995 saved_CFLAGS=$CFLAGS
15996 CFLAGS="$CFLAGS -Werror"
15997
15998
15999
16000
16001
16002
16003
16004
16005 use_additional=yes
16006
16007 acl_save_prefix="$prefix"
16008 prefix="$acl_final_prefix"
16009 acl_save_exec_prefix="$exec_prefix"
16010 exec_prefix="$acl_final_exec_prefix"
16011
16012 eval additional_includedir=\"$includedir\"
16013 eval additional_libdir=\"$libdir\"
16014
16015 exec_prefix="$acl_save_exec_prefix"
16016 prefix="$acl_save_prefix"
16017
16018
16019 # Check whether --with-libbabeltrace-prefix was given.
16020 if test "${with_libbabeltrace_prefix+set}" = set; then :
16021 withval=$with_libbabeltrace_prefix;
16022 if test "X$withval" = "Xno"; then
16023 use_additional=no
16024 else
16025 if test "X$withval" = "X"; then
16026
16027 acl_save_prefix="$prefix"
16028 prefix="$acl_final_prefix"
16029 acl_save_exec_prefix="$exec_prefix"
16030 exec_prefix="$acl_final_exec_prefix"
16031
16032 eval additional_includedir=\"$includedir\"
16033 eval additional_libdir=\"$libdir\"
16034
16035 exec_prefix="$acl_save_exec_prefix"
16036 prefix="$acl_save_prefix"
16037
16038 else
16039 additional_includedir="$withval/include"
16040 additional_libdir="$withval/lib"
16041 fi
16042 fi
16043
16044 fi
16045
16046 LIBBABELTRACE=
16047 LTLIBBABELTRACE=
16048 INCBABELTRACE=
16049 rpathdirs=
16050 ltrpathdirs=
16051 names_already_handled=
16052 names_next_round='babeltrace babeltrace-ctf'
16053 while test -n "$names_next_round"; do
16054 names_this_round="$names_next_round"
16055 names_next_round=
16056 for name in $names_this_round; do
16057 already_handled=
16058 for n in $names_already_handled; do
16059 if test "$n" = "$name"; then
16060 already_handled=yes
16061 break
16062 fi
16063 done
16064 if test -z "$already_handled"; then
16065 names_already_handled="$names_already_handled $name"
16066 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16067 eval value=\"\$HAVE_LIB$uppername\"
16068 if test -n "$value"; then
16069 if test "$value" = yes; then
16070 eval value=\"\$LIB$uppername\"
16071 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
16072 eval value=\"\$LTLIB$uppername\"
16073 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
16074 else
16075 :
16076 fi
16077 else
16078 found_dir=
16079 found_la=
16080 found_so=
16081 found_a=
16082 if test $use_additional = yes; then
16083 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16084 found_dir="$additional_libdir"
16085 found_so="$additional_libdir/lib$name.$shlibext"
16086 if test -f "$additional_libdir/lib$name.la"; then
16087 found_la="$additional_libdir/lib$name.la"
16088 fi
16089 else
16090 if test -f "$additional_libdir/lib$name.$libext"; then
16091 found_dir="$additional_libdir"
16092 found_a="$additional_libdir/lib$name.$libext"
16093 if test -f "$additional_libdir/lib$name.la"; then
16094 found_la="$additional_libdir/lib$name.la"
16095 fi
16096 fi
16097 fi
16098 fi
16099 if test "X$found_dir" = "X"; then
16100 for x in $LDFLAGS $LTLIBBABELTRACE; do
16101
16102 acl_save_prefix="$prefix"
16103 prefix="$acl_final_prefix"
16104 acl_save_exec_prefix="$exec_prefix"
16105 exec_prefix="$acl_final_exec_prefix"
16106 eval x=\"$x\"
16107 exec_prefix="$acl_save_exec_prefix"
16108 prefix="$acl_save_prefix"
16109
16110 case "$x" in
16111 -L*)
16112 dir=`echo "X$x" | sed -e 's/^X-L//'`
16113 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16114 found_dir="$dir"
16115 found_so="$dir/lib$name.$shlibext"
16116 if test -f "$dir/lib$name.la"; then
16117 found_la="$dir/lib$name.la"
16118 fi
16119 else
16120 if test -f "$dir/lib$name.$libext"; then
16121 found_dir="$dir"
16122 found_a="$dir/lib$name.$libext"
16123 if test -f "$dir/lib$name.la"; then
16124 found_la="$dir/lib$name.la"
16125 fi
16126 fi
16127 fi
16128 ;;
16129 esac
16130 if test "X$found_dir" != "X"; then
16131 break
16132 fi
16133 done
16134 fi
16135 if test "X$found_dir" != "X"; then
16136 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
16137 if test "X$found_so" != "X"; then
16138 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16139 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16140 else
16141 haveit=
16142 for x in $ltrpathdirs; do
16143 if test "X$x" = "X$found_dir"; then
16144 haveit=yes
16145 break
16146 fi
16147 done
16148 if test -z "$haveit"; then
16149 ltrpathdirs="$ltrpathdirs $found_dir"
16150 fi
16151 if test "$hardcode_direct" = yes; then
16152 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16153 else
16154 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16155 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16156 haveit=
16157 for x in $rpathdirs; do
16158 if test "X$x" = "X$found_dir"; then
16159 haveit=yes
16160 break
16161 fi
16162 done
16163 if test -z "$haveit"; then
16164 rpathdirs="$rpathdirs $found_dir"
16165 fi
16166 else
16167 haveit=
16168 for x in $LDFLAGS $LIBBABELTRACE; do
16169
16170 acl_save_prefix="$prefix"
16171 prefix="$acl_final_prefix"
16172 acl_save_exec_prefix="$exec_prefix"
16173 exec_prefix="$acl_final_exec_prefix"
16174 eval x=\"$x\"
16175 exec_prefix="$acl_save_exec_prefix"
16176 prefix="$acl_save_prefix"
16177
16178 if test "X$x" = "X-L$found_dir"; then
16179 haveit=yes
16180 break
16181 fi
16182 done
16183 if test -z "$haveit"; then
16184 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
16185 fi
16186 if test "$hardcode_minus_L" != no; then
16187 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16188 else
16189 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16190 fi
16191 fi
16192 fi
16193 fi
16194 else
16195 if test "X$found_a" != "X"; then
16196 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
16197 else
16198 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
16199 fi
16200 fi
16201 additional_includedir=
16202 case "$found_dir" in
16203 */lib | */lib/)
16204 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16205 additional_includedir="$basedir/include"
16206 ;;
16207 esac
16208 if test "X$additional_includedir" != "X"; then
16209 if test "X$additional_includedir" != "X/usr/include"; then
16210 haveit=
16211 if test "X$additional_includedir" = "X/usr/local/include"; then
16212 if test -n "$GCC"; then
16213 case $host_os in
16214 linux*) haveit=yes;;
16215 esac
16216 fi
16217 fi
16218 if test -z "$haveit"; then
16219 for x in $CPPFLAGS $INCBABELTRACE; do
16220
16221 acl_save_prefix="$prefix"
16222 prefix="$acl_final_prefix"
16223 acl_save_exec_prefix="$exec_prefix"
16224 exec_prefix="$acl_final_exec_prefix"
16225 eval x=\"$x\"
16226 exec_prefix="$acl_save_exec_prefix"
16227 prefix="$acl_save_prefix"
16228
16229 if test "X$x" = "X-I$additional_includedir"; then
16230 haveit=yes
16231 break
16232 fi
16233 done
16234 if test -z "$haveit"; then
16235 if test -d "$additional_includedir"; then
16236 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
16237 fi
16238 fi
16239 fi
16240 fi
16241 fi
16242 if test -n "$found_la"; then
16243 save_libdir="$libdir"
16244 case "$found_la" in
16245 */* | *\\*) . "$found_la" ;;
16246 *) . "./$found_la" ;;
16247 esac
16248 libdir="$save_libdir"
16249 for dep in $dependency_libs; do
16250 case "$dep" in
16251 -L*)
16252 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16253 if test "X$additional_libdir" != "X/usr/lib"; then
16254 haveit=
16255 if test "X$additional_libdir" = "X/usr/local/lib"; then
16256 if test -n "$GCC"; then
16257 case $host_os in
16258 linux*) haveit=yes;;
16259 esac
16260 fi
16261 fi
16262 if test -z "$haveit"; then
16263 haveit=
16264 for x in $LDFLAGS $LIBBABELTRACE; do
16265
16266 acl_save_prefix="$prefix"
16267 prefix="$acl_final_prefix"
16268 acl_save_exec_prefix="$exec_prefix"
16269 exec_prefix="$acl_final_exec_prefix"
16270 eval x=\"$x\"
16271 exec_prefix="$acl_save_exec_prefix"
16272 prefix="$acl_save_prefix"
16273
16274 if test "X$x" = "X-L$additional_libdir"; then
16275 haveit=yes
16276 break
16277 fi
16278 done
16279 if test -z "$haveit"; then
16280 if test -d "$additional_libdir"; then
16281 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
16282 fi
16283 fi
16284 haveit=
16285 for x in $LDFLAGS $LTLIBBABELTRACE; do
16286
16287 acl_save_prefix="$prefix"
16288 prefix="$acl_final_prefix"
16289 acl_save_exec_prefix="$exec_prefix"
16290 exec_prefix="$acl_final_exec_prefix"
16291 eval x=\"$x\"
16292 exec_prefix="$acl_save_exec_prefix"
16293 prefix="$acl_save_prefix"
16294
16295 if test "X$x" = "X-L$additional_libdir"; then
16296 haveit=yes
16297 break
16298 fi
16299 done
16300 if test -z "$haveit"; then
16301 if test -d "$additional_libdir"; then
16302 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
16303 fi
16304 fi
16305 fi
16306 fi
16307 ;;
16308 -R*)
16309 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16310 if test "$enable_rpath" != no; then
16311 haveit=
16312 for x in $rpathdirs; do
16313 if test "X$x" = "X$dir"; then
16314 haveit=yes
16315 break
16316 fi
16317 done
16318 if test -z "$haveit"; then
16319 rpathdirs="$rpathdirs $dir"
16320 fi
16321 haveit=
16322 for x in $ltrpathdirs; do
16323 if test "X$x" = "X$dir"; then
16324 haveit=yes
16325 break
16326 fi
16327 done
16328 if test -z "$haveit"; then
16329 ltrpathdirs="$ltrpathdirs $dir"
16330 fi
16331 fi
16332 ;;
16333 -l*)
16334 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16335 ;;
16336 *.la)
16337 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16338 ;;
16339 *)
16340 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
16341 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
16342 ;;
16343 esac
16344 done
16345 fi
16346 else
16347 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16348 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
16349 fi
16350 fi
16351 fi
16352 done
16353 done
16354 if test "X$rpathdirs" != "X"; then
16355 if test -n "$hardcode_libdir_separator"; then
16356 alldirs=
16357 for found_dir in $rpathdirs; do
16358 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16359 done
16360 acl_save_libdir="$libdir"
16361 libdir="$alldirs"
16362 eval flag=\"$hardcode_libdir_flag_spec\"
16363 libdir="$acl_save_libdir"
16364 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16365 else
16366 for found_dir in $rpathdirs; do
16367 acl_save_libdir="$libdir"
16368 libdir="$found_dir"
16369 eval flag=\"$hardcode_libdir_flag_spec\"
16370 libdir="$acl_save_libdir"
16371 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16372 done
16373 fi
16374 fi
16375 if test "X$ltrpathdirs" != "X"; then
16376 for found_dir in $ltrpathdirs; do
16377 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
16378 done
16379 fi
16380
16381
16382 ac_save_CPPFLAGS="$CPPFLAGS"
16383
16384 for element in $INCBABELTRACE; do
16385 haveit=
16386 for x in $CPPFLAGS; do
16387
16388 acl_save_prefix="$prefix"
16389 prefix="$acl_final_prefix"
16390 acl_save_exec_prefix="$exec_prefix"
16391 exec_prefix="$acl_final_exec_prefix"
16392 eval x=\"$x\"
16393 exec_prefix="$acl_save_exec_prefix"
16394 prefix="$acl_save_prefix"
16395
16396 if test "X$x" = "X$element"; then
16397 haveit=yes
16398 break
16399 fi
16400 done
16401 if test -z "$haveit"; then
16402 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16403 fi
16404 done
16405
16406
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
16408 $as_echo_n "checking for libbabeltrace... " >&6; }
16409 if test "${ac_cv_libbabeltrace+set}" = set; then :
16410 $as_echo_n "(cached) " >&6
16411 else
16412
16413 ac_save_LIBS="$LIBS"
16414 LIBS="$LIBS $LIBBABELTRACE"
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417 #include <babeltrace/babeltrace.h>
16418 #include <babeltrace/ctf/events.h>
16419 #include <babeltrace/ctf/iterator.h>
16420 int
16421 main ()
16422 {
16423 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
16424 struct bt_ctf_event *event = NULL;
16425 const struct bt_definition *scope;
16426
16427 pos->type = BT_SEEK_BEGIN;
16428 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
16429 scope = bt_ctf_get_top_level_scope (event,
16430 BT_STREAM_EVENT_HEADER);
16431 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
16432
16433 ;
16434 return 0;
16435 }
16436 _ACEOF
16437 if ac_fn_c_try_link "$LINENO"; then :
16438 ac_cv_libbabeltrace=yes
16439 else
16440 ac_cv_libbabeltrace=no
16441 fi
16442 rm -f core conftest.err conftest.$ac_objext \
16443 conftest$ac_exeext conftest.$ac_ext
16444 LIBS="$ac_save_LIBS"
16445
16446 fi
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
16448 $as_echo "$ac_cv_libbabeltrace" >&6; }
16449 if test "$ac_cv_libbabeltrace" = yes; then
16450 HAVE_LIBBABELTRACE=yes
16451
16452 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
16453
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
16455 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
16457 $as_echo "$LIBBABELTRACE" >&6; }
16458 else
16459 HAVE_LIBBABELTRACE=no
16460 CPPFLAGS="$ac_save_CPPFLAGS"
16461 LIBBABELTRACE=
16462 LTLIBBABELTRACE=
16463 fi
16464
16465
16466
16467
16468
16469
16470 CFLAGS=$saved_CFLAGS
16471
16472 if test "$HAVE_LIBBABELTRACE" != yes; then
16473 if test "$with_babeltrace" = yes; then
16474 as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
16475 else
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
16477 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
16478 fi
16479 fi
16480 fi
16481
16482 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16483 # to an empty version.
16484
16485 files=
16486 links=
16487
16488 rm -f nm.h
16489 if test "${nativefile}" != ""; then
16490 case "${nativefile}" in
16491 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
16492 * ) GDB_NM_FILE="${nativefile}"
16493 esac
16494 files="${files} ${GDB_NM_FILE}"
16495 links="${links} nm.h"
16496
16497 cat >>confdefs.h <<_ACEOF
16498 #define GDB_NM_FILE "${GDB_NM_FILE}"
16499 _ACEOF
16500
16501 fi
16502
16503
16504 for ac_prog in xsltproc
16505 do
16506 # Extract the first word of "$ac_prog", so it can be a program name with args.
16507 set dummy $ac_prog; ac_word=$2
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16509 $as_echo_n "checking for $ac_word... " >&6; }
16510 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
16511 $as_echo_n "(cached) " >&6
16512 else
16513 case $XSLTPROC in
16514 [\\/]* | ?:[\\/]*)
16515 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
16516 ;;
16517 *)
16518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16519 for as_dir in $PATH
16520 do
16521 IFS=$as_save_IFS
16522 test -z "$as_dir" && as_dir=.
16523 for ac_exec_ext in '' $ac_executable_extensions; do
16524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16525 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
16526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16527 break 2
16528 fi
16529 done
16530 done
16531 IFS=$as_save_IFS
16532
16533 ;;
16534 esac
16535 fi
16536 XSLTPROC=$ac_cv_path_XSLTPROC
16537 if test -n "$XSLTPROC"; then
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
16539 $as_echo "$XSLTPROC" >&6; }
16540 else
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542 $as_echo "no" >&6; }
16543 fi
16544
16545
16546 test -n "$XSLTPROC" && break
16547 done
16548 test -n "$XSLTPROC" || XSLTPROC="missing"
16549
16550 if test "x$USE_MAINTAINER_MODE" = xyes; then
16551 if test "${XSLTPROC}" = missing; then
16552 as_fn_error "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
16553 fi
16554 fi
16555
16556
16557 ac_sources="$files"
16558 ac_dests="$links"
16559 while test -n "$ac_sources"; do
16560 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16561 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16562 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
16563 done
16564 ac_config_links="$ac_config_links $ac_config_links_1"
16565
16566
16567
16568
16569
16570 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16571
16572
16573 if $development; then
16574
16575 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
16576
16577 fi
16578
16579
16580 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16581 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
16582 if test "x$GDB_TRANSFORM_NAME" = x; then
16583 GDB_TRANSFORM_NAME=gdb
16584 fi
16585
16586
16587
16588 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16589 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
16590 if test "x$GCORE_TRANSFORM_NAME" = x; then
16591 GCORE_TRANSFORM_NAME=gcore
16592 fi
16593
16594
16595 ac_config_files="$ac_config_files gcore"
16596
16597 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
16598
16599
16600 cat >confcache <<\_ACEOF
16601 # This file is a shell script that caches the results of configure
16602 # tests run on this system so they can be shared between configure
16603 # scripts and configure runs, see configure's option --config-cache.
16604 # It is not useful on other systems. If it contains results you don't
16605 # want to keep, you may remove or edit it.
16606 #
16607 # config.status only pays attention to the cache file if you give it
16608 # the --recheck option to rerun configure.
16609 #
16610 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16611 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16612 # following values.
16613
16614 _ACEOF
16615
16616 # The following way of writing the cache mishandles newlines in values,
16617 # but we know of no workaround that is simple, portable, and efficient.
16618 # So, we kill variables containing newlines.
16619 # Ultrix sh set writes to stderr and can't be redirected directly,
16620 # and sets the high bit in the cache file unless we assign to the vars.
16621 (
16622 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16623 eval ac_val=\$$ac_var
16624 case $ac_val in #(
16625 *${as_nl}*)
16626 case $ac_var in #(
16627 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16628 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16629 esac
16630 case $ac_var in #(
16631 _ | IFS | as_nl) ;; #(
16632 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16633 *) { eval $ac_var=; unset $ac_var;} ;;
16634 esac ;;
16635 esac
16636 done
16637
16638 (set) 2>&1 |
16639 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16640 *${as_nl}ac_space=\ *)
16641 # `set' does not quote correctly, so add quotes: double-quote
16642 # substitution turns \\\\ into \\, and sed turns \\ into \.
16643 sed -n \
16644 "s/'/'\\\\''/g;
16645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16646 ;; #(
16647 *)
16648 # `set' quotes correctly as required by POSIX, so do not add quotes.
16649 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16650 ;;
16651 esac |
16652 sort
16653 ) |
16654 sed '
16655 /^ac_cv_env_/b end
16656 t clear
16657 :clear
16658 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16659 t end
16660 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16661 :end' >>confcache
16662 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16663 if test -w "$cache_file"; then
16664 test "x$cache_file" != "x/dev/null" &&
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16666 $as_echo "$as_me: updating cache $cache_file" >&6;}
16667 cat confcache >$cache_file
16668 else
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16670 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16671 fi
16672 fi
16673 rm -f confcache
16674
16675 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16676 # Let make expand exec_prefix.
16677 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16678
16679 DEFS=-DHAVE_CONFIG_H
16680
16681 ac_libobjs=
16682 ac_ltlibobjs=
16683 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16684 # 1. Remove the extension, and $U if already installed.
16685 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16686 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16687 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16688 # will be set to the directory where LIBOBJS objects are built.
16689 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16690 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16691 done
16692 LIBOBJS=$ac_libobjs
16693
16694 LTLIBOBJS=$ac_ltlibobjs
16695
16696
16697 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16698 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16700 fi
16701 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16702 as_fn_error "conditional \"GMAKE\" was never defined.
16703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16704 fi
16705 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16706 as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
16707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16708 fi
16709 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
16710 as_fn_error "conditional \"HAVE_GUILE\" was never defined.
16711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16712 fi
16713
16714
16715 : ${CONFIG_STATUS=./config.status}
16716 ac_write_fail=0
16717 ac_clean_files_save=$ac_clean_files
16718 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16720 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16721 as_write_fail=0
16722 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16723 #! $SHELL
16724 # Generated by $as_me.
16725 # Run this file to recreate the current configuration.
16726 # Compiler output produced by configure, useful for debugging
16727 # configure, is in config.log if it exists.
16728
16729 debug=false
16730 ac_cs_recheck=false
16731 ac_cs_silent=false
16732
16733 SHELL=\${CONFIG_SHELL-$SHELL}
16734 export SHELL
16735 _ASEOF
16736 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16737 ## -------------------- ##
16738 ## M4sh Initialization. ##
16739 ## -------------------- ##
16740
16741 # Be more Bourne compatible
16742 DUALCASE=1; export DUALCASE # for MKS sh
16743 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16744 emulate sh
16745 NULLCMD=:
16746 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16747 # is contrary to our usage. Disable this feature.
16748 alias -g '${1+"$@"}'='"$@"'
16749 setopt NO_GLOB_SUBST
16750 else
16751 case `(set -o) 2>/dev/null` in #(
16752 *posix*) :
16753 set -o posix ;; #(
16754 *) :
16755 ;;
16756 esac
16757 fi
16758
16759
16760 as_nl='
16761 '
16762 export as_nl
16763 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16764 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16766 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16767 # Prefer a ksh shell builtin over an external printf program on Solaris,
16768 # but without wasting forks for bash or zsh.
16769 if test -z "$BASH_VERSION$ZSH_VERSION" \
16770 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16771 as_echo='print -r --'
16772 as_echo_n='print -rn --'
16773 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16774 as_echo='printf %s\n'
16775 as_echo_n='printf %s'
16776 else
16777 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16778 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16779 as_echo_n='/usr/ucb/echo -n'
16780 else
16781 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16782 as_echo_n_body='eval
16783 arg=$1;
16784 case $arg in #(
16785 *"$as_nl"*)
16786 expr "X$arg" : "X\\(.*\\)$as_nl";
16787 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16788 esac;
16789 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16790 '
16791 export as_echo_n_body
16792 as_echo_n='sh -c $as_echo_n_body as_echo'
16793 fi
16794 export as_echo_body
16795 as_echo='sh -c $as_echo_body as_echo'
16796 fi
16797
16798 # The user is always right.
16799 if test "${PATH_SEPARATOR+set}" != set; then
16800 PATH_SEPARATOR=:
16801 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16802 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16803 PATH_SEPARATOR=';'
16804 }
16805 fi
16806
16807
16808 # IFS
16809 # We need space, tab and new line, in precisely that order. Quoting is
16810 # there to prevent editors from complaining about space-tab.
16811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16812 # splitting by setting IFS to empty value.)
16813 IFS=" "" $as_nl"
16814
16815 # Find who we are. Look in the path if we contain no directory separator.
16816 case $0 in #((
16817 *[\\/]* ) as_myself=$0 ;;
16818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16819 for as_dir in $PATH
16820 do
16821 IFS=$as_save_IFS
16822 test -z "$as_dir" && as_dir=.
16823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16824 done
16825 IFS=$as_save_IFS
16826
16827 ;;
16828 esac
16829 # We did not find ourselves, most probably we were run as `sh COMMAND'
16830 # in which case we are not to be found in the path.
16831 if test "x$as_myself" = x; then
16832 as_myself=$0
16833 fi
16834 if test ! -f "$as_myself"; then
16835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16836 exit 1
16837 fi
16838
16839 # Unset variables that we do not need and which cause bugs (e.g. in
16840 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16841 # suppresses any "Segmentation fault" message there. '((' could
16842 # trigger a bug in pdksh 5.2.14.
16843 for as_var in BASH_ENV ENV MAIL MAILPATH
16844 do eval test x\${$as_var+set} = xset \
16845 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16846 done
16847 PS1='$ '
16848 PS2='> '
16849 PS4='+ '
16850
16851 # NLS nuisances.
16852 LC_ALL=C
16853 export LC_ALL
16854 LANGUAGE=C
16855 export LANGUAGE
16856
16857 # CDPATH.
16858 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16859
16860
16861 # as_fn_error ERROR [LINENO LOG_FD]
16862 # ---------------------------------
16863 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16864 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16865 # script with status $?, using 1 if that was 0.
16866 as_fn_error ()
16867 {
16868 as_status=$?; test $as_status -eq 0 && as_status=1
16869 if test "$3"; then
16870 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16871 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16872 fi
16873 $as_echo "$as_me: error: $1" >&2
16874 as_fn_exit $as_status
16875 } # as_fn_error
16876
16877
16878 # as_fn_set_status STATUS
16879 # -----------------------
16880 # Set $? to STATUS, without forking.
16881 as_fn_set_status ()
16882 {
16883 return $1
16884 } # as_fn_set_status
16885
16886 # as_fn_exit STATUS
16887 # -----------------
16888 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16889 as_fn_exit ()
16890 {
16891 set +e
16892 as_fn_set_status $1
16893 exit $1
16894 } # as_fn_exit
16895
16896 # as_fn_unset VAR
16897 # ---------------
16898 # Portably unset VAR.
16899 as_fn_unset ()
16900 {
16901 { eval $1=; unset $1;}
16902 }
16903 as_unset=as_fn_unset
16904 # as_fn_append VAR VALUE
16905 # ----------------------
16906 # Append the text in VALUE to the end of the definition contained in VAR. Take
16907 # advantage of any shell optimizations that allow amortized linear growth over
16908 # repeated appends, instead of the typical quadratic growth present in naive
16909 # implementations.
16910 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16911 eval 'as_fn_append ()
16912 {
16913 eval $1+=\$2
16914 }'
16915 else
16916 as_fn_append ()
16917 {
16918 eval $1=\$$1\$2
16919 }
16920 fi # as_fn_append
16921
16922 # as_fn_arith ARG...
16923 # ------------------
16924 # Perform arithmetic evaluation on the ARGs, and store the result in the
16925 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16926 # must be portable across $(()) and expr.
16927 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16928 eval 'as_fn_arith ()
16929 {
16930 as_val=$(( $* ))
16931 }'
16932 else
16933 as_fn_arith ()
16934 {
16935 as_val=`expr "$@" || test $? -eq 1`
16936 }
16937 fi # as_fn_arith
16938
16939
16940 if expr a : '\(a\)' >/dev/null 2>&1 &&
16941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16942 as_expr=expr
16943 else
16944 as_expr=false
16945 fi
16946
16947 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16948 as_basename=basename
16949 else
16950 as_basename=false
16951 fi
16952
16953 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16954 as_dirname=dirname
16955 else
16956 as_dirname=false
16957 fi
16958
16959 as_me=`$as_basename -- "$0" ||
16960 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16961 X"$0" : 'X\(//\)$' \| \
16962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16963 $as_echo X/"$0" |
16964 sed '/^.*\/\([^/][^/]*\)\/*$/{
16965 s//\1/
16966 q
16967 }
16968 /^X\/\(\/\/\)$/{
16969 s//\1/
16970 q
16971 }
16972 /^X\/\(\/\).*/{
16973 s//\1/
16974 q
16975 }
16976 s/.*/./; q'`
16977
16978 # Avoid depending upon Character Ranges.
16979 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16980 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16981 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16982 as_cr_digits='0123456789'
16983 as_cr_alnum=$as_cr_Letters$as_cr_digits
16984
16985 ECHO_C= ECHO_N= ECHO_T=
16986 case `echo -n x` in #(((((
16987 -n*)
16988 case `echo 'xy\c'` in
16989 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16990 xy) ECHO_C='\c';;
16991 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16992 ECHO_T=' ';;
16993 esac;;
16994 *)
16995 ECHO_N='-n';;
16996 esac
16997
16998 rm -f conf$$ conf$$.exe conf$$.file
16999 if test -d conf$$.dir; then
17000 rm -f conf$$.dir/conf$$.file
17001 else
17002 rm -f conf$$.dir
17003 mkdir conf$$.dir 2>/dev/null
17004 fi
17005 if (echo >conf$$.file) 2>/dev/null; then
17006 if ln -s conf$$.file conf$$ 2>/dev/null; then
17007 as_ln_s='ln -s'
17008 # ... but there are two gotchas:
17009 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17010 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17011 # In both cases, we have to default to `cp -p'.
17012 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17013 as_ln_s='cp -p'
17014 elif ln conf$$.file conf$$ 2>/dev/null; then
17015 as_ln_s=ln
17016 else
17017 as_ln_s='cp -p'
17018 fi
17019 else
17020 as_ln_s='cp -p'
17021 fi
17022 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17023 rmdir conf$$.dir 2>/dev/null
17024
17025
17026 # as_fn_mkdir_p
17027 # -------------
17028 # Create "$as_dir" as a directory, including parents if necessary.
17029 as_fn_mkdir_p ()
17030 {
17031
17032 case $as_dir in #(
17033 -*) as_dir=./$as_dir;;
17034 esac
17035 test -d "$as_dir" || eval $as_mkdir_p || {
17036 as_dirs=
17037 while :; do
17038 case $as_dir in #(
17039 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17040 *) as_qdir=$as_dir;;
17041 esac
17042 as_dirs="'$as_qdir' $as_dirs"
17043 as_dir=`$as_dirname -- "$as_dir" ||
17044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17045 X"$as_dir" : 'X\(//\)[^/]' \| \
17046 X"$as_dir" : 'X\(//\)$' \| \
17047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17048 $as_echo X"$as_dir" |
17049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17050 s//\1/
17051 q
17052 }
17053 /^X\(\/\/\)[^/].*/{
17054 s//\1/
17055 q
17056 }
17057 /^X\(\/\/\)$/{
17058 s//\1/
17059 q
17060 }
17061 /^X\(\/\).*/{
17062 s//\1/
17063 q
17064 }
17065 s/.*/./; q'`
17066 test -d "$as_dir" && break
17067 done
17068 test -z "$as_dirs" || eval "mkdir $as_dirs"
17069 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17070
17071
17072 } # as_fn_mkdir_p
17073 if mkdir -p . 2>/dev/null; then
17074 as_mkdir_p='mkdir -p "$as_dir"'
17075 else
17076 test -d ./-p && rmdir ./-p
17077 as_mkdir_p=false
17078 fi
17079
17080 if test -x / >/dev/null 2>&1; then
17081 as_test_x='test -x'
17082 else
17083 if ls -dL / >/dev/null 2>&1; then
17084 as_ls_L_option=L
17085 else
17086 as_ls_L_option=
17087 fi
17088 as_test_x='
17089 eval sh -c '\''
17090 if test -d "$1"; then
17091 test -d "$1/.";
17092 else
17093 case $1 in #(
17094 -*)set "./$1";;
17095 esac;
17096 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17097 ???[sx]*):;;*)false;;esac;fi
17098 '\'' sh
17099 '
17100 fi
17101 as_executable_p=$as_test_x
17102
17103 # Sed expression to map a string onto a valid CPP name.
17104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17105
17106 # Sed expression to map a string onto a valid variable name.
17107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17108
17109
17110 exec 6>&1
17111 ## ----------------------------------- ##
17112 ## Main body of $CONFIG_STATUS script. ##
17113 ## ----------------------------------- ##
17114 _ASEOF
17115 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17116
17117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17118 # Save the log message, to keep $0 and so on meaningful, and to
17119 # report actual input values of CONFIG_FILES etc. instead of their
17120 # values after options handling.
17121 ac_log="
17122 This file was extended by $as_me, which was
17123 generated by GNU Autoconf 2.64. Invocation command line was
17124
17125 CONFIG_FILES = $CONFIG_FILES
17126 CONFIG_HEADERS = $CONFIG_HEADERS
17127 CONFIG_LINKS = $CONFIG_LINKS
17128 CONFIG_COMMANDS = $CONFIG_COMMANDS
17129 $ $0 $@
17130
17131 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17132 "
17133
17134 _ACEOF
17135
17136 case $ac_config_files in *"
17137 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17138 esac
17139
17140 case $ac_config_headers in *"
17141 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17142 esac
17143
17144
17145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17146 # Files that config.status was made for.
17147 config_files="$ac_config_files"
17148 config_headers="$ac_config_headers"
17149 config_links="$ac_config_links"
17150 config_commands="$ac_config_commands"
17151
17152 _ACEOF
17153
17154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17155 ac_cs_usage="\
17156 \`$as_me' instantiates files and other configuration actions
17157 from templates according to the current configuration. Unless the files
17158 and actions are specified as TAGs, all are instantiated by default.
17159
17160 Usage: $0 [OPTION]... [TAG]...
17161
17162 -h, --help print this help, then exit
17163 -V, --version print version number and configuration settings, then exit
17164 -q, --quiet, --silent
17165 do not print progress messages
17166 -d, --debug don't remove temporary files
17167 --recheck update $as_me by reconfiguring in the same conditions
17168 --file=FILE[:TEMPLATE]
17169 instantiate the configuration file FILE
17170 --header=FILE[:TEMPLATE]
17171 instantiate the configuration header FILE
17172
17173 Configuration files:
17174 $config_files
17175
17176 Configuration headers:
17177 $config_headers
17178
17179 Configuration links:
17180 $config_links
17181
17182 Configuration commands:
17183 $config_commands
17184
17185 Report bugs to the package provider."
17186
17187 _ACEOF
17188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17189 ac_cs_version="\\
17190 config.status
17191 configured by $0, generated by GNU Autoconf 2.64,
17192 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17193
17194 Copyright (C) 2009 Free Software Foundation, Inc.
17195 This config.status script is free software; the Free Software Foundation
17196 gives unlimited permission to copy, distribute and modify it."
17197
17198 ac_pwd='$ac_pwd'
17199 srcdir='$srcdir'
17200 INSTALL='$INSTALL'
17201 AWK='$AWK'
17202 test -n "\$AWK" || AWK=awk
17203 _ACEOF
17204
17205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17206 # The default lists apply if the user does not specify any file.
17207 ac_need_defaults=:
17208 while test $# != 0
17209 do
17210 case $1 in
17211 --*=*)
17212 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17213 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17214 ac_shift=:
17215 ;;
17216 *)
17217 ac_option=$1
17218 ac_optarg=$2
17219 ac_shift=shift
17220 ;;
17221 esac
17222
17223 case $ac_option in
17224 # Handling of the options.
17225 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17226 ac_cs_recheck=: ;;
17227 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17228 $as_echo "$ac_cs_version"; exit ;;
17229 --debug | --debu | --deb | --de | --d | -d )
17230 debug=: ;;
17231 --file | --fil | --fi | --f )
17232 $ac_shift
17233 case $ac_optarg in
17234 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17235 esac
17236 as_fn_append CONFIG_FILES " '$ac_optarg'"
17237 ac_need_defaults=false;;
17238 --header | --heade | --head | --hea )
17239 $ac_shift
17240 case $ac_optarg in
17241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17242 esac
17243 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17244 ac_need_defaults=false;;
17245 --he | --h)
17246 # Conflict between --help and --header
17247 as_fn_error "ambiguous option: \`$1'
17248 Try \`$0 --help' for more information.";;
17249 --help | --hel | -h )
17250 $as_echo "$ac_cs_usage"; exit ;;
17251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17252 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17253 ac_cs_silent=: ;;
17254
17255 # This is an error.
17256 -*) as_fn_error "unrecognized option: \`$1'
17257 Try \`$0 --help' for more information." ;;
17258
17259 *) as_fn_append ac_config_targets " $1"
17260 ac_need_defaults=false ;;
17261
17262 esac
17263 shift
17264 done
17265
17266 ac_configure_extra_args=
17267
17268 if $ac_cs_silent; then
17269 exec 6>/dev/null
17270 ac_configure_extra_args="$ac_configure_extra_args --silent"
17271 fi
17272
17273 _ACEOF
17274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17275 if \$ac_cs_recheck; then
17276 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17277 shift
17278 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17279 CONFIG_SHELL='$SHELL'
17280 export CONFIG_SHELL
17281 exec "\$@"
17282 fi
17283
17284 _ACEOF
17285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17286 exec 5>>config.log
17287 {
17288 echo
17289 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17290 ## Running $as_me. ##
17291 _ASBOX
17292 $as_echo "$ac_log"
17293 } >&5
17294
17295 _ACEOF
17296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17297 #
17298 # INIT-COMMANDS
17299 #
17300 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17301
17302 _ACEOF
17303
17304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17305
17306 # Handling of arguments.
17307 for ac_config_target in $ac_config_targets
17308 do
17309 case $ac_config_target in
17310 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17311 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
17312 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
17313 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
17314 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
17315 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17316 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
17317 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17318 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
17319
17320 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17321 esac
17322 done
17323
17324
17325 # If the user did not use the arguments to specify the items to instantiate,
17326 # then the envvar interface is used. Set only those that are not.
17327 # We use the long form for the default assignment because of an extremely
17328 # bizarre bug on SunOS 4.1.3.
17329 if $ac_need_defaults; then
17330 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17331 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17332 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17333 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17334 fi
17335
17336 # Have a temporary directory for convenience. Make it in the build tree
17337 # simply because there is no reason against having it here, and in addition,
17338 # creating and moving files from /tmp can sometimes cause problems.
17339 # Hook for its removal unless debugging.
17340 # Note that there is a small window in which the directory will not be cleaned:
17341 # after its creation but before its name has been assigned to `$tmp'.
17342 $debug ||
17343 {
17344 tmp=
17345 trap 'exit_status=$?
17346 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17347 ' 0
17348 trap 'as_fn_exit 1' 1 2 13 15
17349 }
17350 # Create a (secure) tmp directory for tmp files.
17351
17352 {
17353 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17354 test -n "$tmp" && test -d "$tmp"
17355 } ||
17356 {
17357 tmp=./conf$$-$RANDOM
17358 (umask 077 && mkdir "$tmp")
17359 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17360
17361 # Set up the scripts for CONFIG_FILES section.
17362 # No need to generate them if there are no CONFIG_FILES.
17363 # This happens for instance with `./config.status config.h'.
17364 if test -n "$CONFIG_FILES"; then
17365
17366 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17367 ac_cs_awk_getline=:
17368 ac_cs_awk_pipe_init=
17369 ac_cs_awk_read_file='
17370 while ((getline aline < (F[key])) > 0)
17371 print(aline)
17372 close(F[key])'
17373 ac_cs_awk_pipe_fini=
17374 else
17375 ac_cs_awk_getline=false
17376 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17377 ac_cs_awk_read_file='
17378 print "|#_!!_#|"
17379 print "cat " F[key] " &&"
17380 '$ac_cs_awk_pipe_init
17381 # The final `:' finishes the AND list.
17382 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17383 fi
17384 ac_cr=`echo X | tr X '\015'`
17385 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17386 # But we know of no other shell where ac_cr would be empty at this
17387 # point, so we can use a bashism as a fallback.
17388 if test "x$ac_cr" = x; then
17389 eval ac_cr=\$\'\\r\'
17390 fi
17391 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17392 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17393 ac_cs_awk_cr='\r'
17394 else
17395 ac_cs_awk_cr=$ac_cr
17396 fi
17397
17398 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17399 _ACEOF
17400
17401 # Create commands to substitute file output variables.
17402 {
17403 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17404 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17405 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17406 echo "_ACAWK" &&
17407 echo "_ACEOF"
17408 } >conf$$files.sh &&
17409 . ./conf$$files.sh ||
17410 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17411 rm -f conf$$files.sh
17412
17413 {
17414 echo "cat >conf$$subs.awk <<_ACEOF" &&
17415 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17416 echo "_ACEOF"
17417 } >conf$$subs.sh ||
17418 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17419 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17420 ac_delim='%!_!# '
17421 for ac_last_try in false false false false false :; do
17422 . ./conf$$subs.sh ||
17423 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17424
17425 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17426 if test $ac_delim_n = $ac_delim_num; then
17427 break
17428 elif $ac_last_try; then
17429 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17430 else
17431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17432 fi
17433 done
17434 rm -f conf$$subs.sh
17435
17436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17437 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17438 _ACEOF
17439 sed -n '
17440 h
17441 s/^/S["/; s/!.*/"]=/
17442 p
17443 g
17444 s/^[^!]*!//
17445 :repl
17446 t repl
17447 s/'"$ac_delim"'$//
17448 t delim
17449 :nl
17450 h
17451 s/\(.\{148\}\).*/\1/
17452 t more1
17453 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17454 p
17455 n
17456 b repl
17457 :more1
17458 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17459 p
17460 g
17461 s/.\{148\}//
17462 t nl
17463 :delim
17464 h
17465 s/\(.\{148\}\).*/\1/
17466 t more2
17467 s/["\\]/\\&/g; s/^/"/; s/$/"/
17468 p
17469 b
17470 :more2
17471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17472 p
17473 g
17474 s/.\{148\}//
17475 t delim
17476 ' <conf$$subs.awk | sed '
17477 /^[^""]/{
17478 N
17479 s/\n//
17480 }
17481 ' >>$CONFIG_STATUS || ac_write_fail=1
17482 rm -f conf$$subs.awk
17483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17484 _ACAWK
17485 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17486 for (key in S) S_is_set[key] = 1
17487 FS = "\a"
17488 \$ac_cs_awk_pipe_init
17489 }
17490 {
17491 line = $ 0
17492 nfields = split(line, field, "@")
17493 substed = 0
17494 len = length(field[1])
17495 for (i = 2; i < nfields; i++) {
17496 key = field[i]
17497 keylen = length(key)
17498 if (S_is_set[key]) {
17499 value = S[key]
17500 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17501 len += length(value) + length(field[++i])
17502 substed = 1
17503 } else
17504 len += 1 + keylen
17505 }
17506 if (nfields == 3 && !substed) {
17507 key = field[2]
17508 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17509 \$ac_cs_awk_read_file
17510 next
17511 }
17512 }
17513 print line
17514 }
17515 \$ac_cs_awk_pipe_fini
17516 _ACAWK
17517 _ACEOF
17518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17519 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17520 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17521 else
17522 cat
17523 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17524 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17525 _ACEOF
17526
17527 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17528 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17529 # trailing colons and then remove the whole line if VPATH becomes empty
17530 # (actually we leave an empty line to preserve line numbers).
17531 if test "x$srcdir" = x.; then
17532 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17533 s/:*\$(srcdir):*/:/
17534 s/:*\${srcdir}:*/:/
17535 s/:*@srcdir@:*/:/
17536 s/^\([^=]*=[ ]*\):*/\1/
17537 s/:*$//
17538 s/^[^=]*=[ ]*$//
17539 }'
17540 fi
17541
17542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17543 fi # test -n "$CONFIG_FILES"
17544
17545 # Set up the scripts for CONFIG_HEADERS section.
17546 # No need to generate them if there are no CONFIG_HEADERS.
17547 # This happens for instance with `./config.status Makefile'.
17548 if test -n "$CONFIG_HEADERS"; then
17549 cat >"$tmp/defines.awk" <<\_ACAWK ||
17550 BEGIN {
17551 _ACEOF
17552
17553 # Transform confdefs.h into an awk script `defines.awk', embedded as
17554 # here-document in config.status, that substitutes the proper values into
17555 # config.h.in to produce config.h.
17556
17557 # Create a delimiter string that does not exist in confdefs.h, to ease
17558 # handling of long lines.
17559 ac_delim='%!_!# '
17560 for ac_last_try in false false :; do
17561 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17562 if test -z "$ac_t"; then
17563 break
17564 elif $ac_last_try; then
17565 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17566 else
17567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17568 fi
17569 done
17570
17571 # For the awk script, D is an array of macro values keyed by name,
17572 # likewise P contains macro parameters if any. Preserve backslash
17573 # newline sequences.
17574
17575 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17576 sed -n '
17577 s/.\{148\}/&'"$ac_delim"'/g
17578 t rset
17579 :rset
17580 s/^[ ]*#[ ]*define[ ][ ]*/ /
17581 t def
17582 d
17583 :def
17584 s/\\$//
17585 t bsnl
17586 s/["\\]/\\&/g
17587 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17588 D["\1"]=" \3"/p
17589 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17590 d
17591 :bsnl
17592 s/["\\]/\\&/g
17593 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17594 D["\1"]=" \3\\\\\\n"\\/p
17595 t cont
17596 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17597 t cont
17598 d
17599 :cont
17600 n
17601 s/.\{148\}/&'"$ac_delim"'/g
17602 t clear
17603 :clear
17604 s/\\$//
17605 t bsnlc
17606 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17607 d
17608 :bsnlc
17609 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17610 b cont
17611 ' <confdefs.h | sed '
17612 s/'"$ac_delim"'/"\\\
17613 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17614
17615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17616 for (key in D) D_is_set[key] = 1
17617 FS = "\a"
17618 }
17619 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17620 line = \$ 0
17621 split(line, arg, " ")
17622 if (arg[1] == "#") {
17623 defundef = arg[2]
17624 mac1 = arg[3]
17625 } else {
17626 defundef = substr(arg[1], 2)
17627 mac1 = arg[2]
17628 }
17629 split(mac1, mac2, "(") #)
17630 macro = mac2[1]
17631 prefix = substr(line, 1, index(line, defundef) - 1)
17632 if (D_is_set[macro]) {
17633 # Preserve the white space surrounding the "#".
17634 print prefix "define", macro P[macro] D[macro]
17635 next
17636 } else {
17637 # Replace #undef with comments. This is necessary, for example,
17638 # in the case of _POSIX_SOURCE, which is predefined and required
17639 # on some systems where configure will not decide to define it.
17640 if (defundef == "undef") {
17641 print "/*", prefix defundef, macro, "*/"
17642 next
17643 }
17644 }
17645 }
17646 { print }
17647 _ACAWK
17648 _ACEOF
17649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17650 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17651 fi # test -n "$CONFIG_HEADERS"
17652
17653
17654 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17655 shift
17656 for ac_tag
17657 do
17658 case $ac_tag in
17659 :[FHLC]) ac_mode=$ac_tag; continue;;
17660 esac
17661 case $ac_mode$ac_tag in
17662 :[FHL]*:*);;
17663 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17664 :[FH]-) ac_tag=-:-;;
17665 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17666 esac
17667 ac_save_IFS=$IFS
17668 IFS=:
17669 set x $ac_tag
17670 IFS=$ac_save_IFS
17671 shift
17672 ac_file=$1
17673 shift
17674
17675 case $ac_mode in
17676 :L) ac_source=$1;;
17677 :[FH])
17678 ac_file_inputs=
17679 for ac_f
17680 do
17681 case $ac_f in
17682 -) ac_f="$tmp/stdin";;
17683 *) # Look for the file first in the build tree, then in the source tree
17684 # (if the path is not absolute). The absolute path cannot be DOS-style,
17685 # because $ac_f cannot contain `:'.
17686 test -f "$ac_f" ||
17687 case $ac_f in
17688 [\\/$]*) false;;
17689 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17690 esac ||
17691 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17692 esac
17693 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17694 as_fn_append ac_file_inputs " '$ac_f'"
17695 done
17696
17697 # Let's still pretend it is `configure' which instantiates (i.e., don't
17698 # use $as_me), people would be surprised to read:
17699 # /* config.h. Generated by config.status. */
17700 configure_input='Generated from '`
17701 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17702 `' by configure.'
17703 if test x"$ac_file" != x-; then
17704 configure_input="$ac_file. $configure_input"
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17706 $as_echo "$as_me: creating $ac_file" >&6;}
17707 fi
17708 # Neutralize special characters interpreted by sed in replacement strings.
17709 case $configure_input in #(
17710 *\&* | *\|* | *\\* )
17711 ac_sed_conf_input=`$as_echo "$configure_input" |
17712 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17713 *) ac_sed_conf_input=$configure_input;;
17714 esac
17715
17716 case $ac_tag in
17717 *:-:* | *:-) cat >"$tmp/stdin" \
17718 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17719 esac
17720 ;;
17721 esac
17722
17723 ac_dir=`$as_dirname -- "$ac_file" ||
17724 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17725 X"$ac_file" : 'X\(//\)[^/]' \| \
17726 X"$ac_file" : 'X\(//\)$' \| \
17727 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17728 $as_echo X"$ac_file" |
17729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17730 s//\1/
17731 q
17732 }
17733 /^X\(\/\/\)[^/].*/{
17734 s//\1/
17735 q
17736 }
17737 /^X\(\/\/\)$/{
17738 s//\1/
17739 q
17740 }
17741 /^X\(\/\).*/{
17742 s//\1/
17743 q
17744 }
17745 s/.*/./; q'`
17746 as_dir="$ac_dir"; as_fn_mkdir_p
17747 ac_builddir=.
17748
17749 case "$ac_dir" in
17750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17751 *)
17752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17753 # A ".." for each directory in $ac_dir_suffix.
17754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17755 case $ac_top_builddir_sub in
17756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17758 esac ;;
17759 esac
17760 ac_abs_top_builddir=$ac_pwd
17761 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17762 # for backward compatibility:
17763 ac_top_builddir=$ac_top_build_prefix
17764
17765 case $srcdir in
17766 .) # We are building in place.
17767 ac_srcdir=.
17768 ac_top_srcdir=$ac_top_builddir_sub
17769 ac_abs_top_srcdir=$ac_pwd ;;
17770 [\\/]* | ?:[\\/]* ) # Absolute name.
17771 ac_srcdir=$srcdir$ac_dir_suffix;
17772 ac_top_srcdir=$srcdir
17773 ac_abs_top_srcdir=$srcdir ;;
17774 *) # Relative name.
17775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17776 ac_top_srcdir=$ac_top_build_prefix$srcdir
17777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17778 esac
17779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17780
17781
17782 case $ac_mode in
17783 :F)
17784 #
17785 # CONFIG_FILE
17786 #
17787
17788 case $INSTALL in
17789 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17790 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17791 esac
17792 _ACEOF
17793
17794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17795 # If the template does not know about datarootdir, expand it.
17796 # FIXME: This hack should be removed a few years after 2.60.
17797 ac_datarootdir_hack=; ac_datarootdir_seen=
17798 ac_sed_dataroot='
17799 /datarootdir/ {
17800 p
17801 q
17802 }
17803 /@datadir@/p
17804 /@docdir@/p
17805 /@infodir@/p
17806 /@localedir@/p
17807 /@mandir@/p'
17808 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17809 *datarootdir*) ac_datarootdir_seen=yes;;
17810 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17812 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17813 _ACEOF
17814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17815 ac_datarootdir_hack='
17816 s&@datadir@&$datadir&g
17817 s&@docdir@&$docdir&g
17818 s&@infodir@&$infodir&g
17819 s&@localedir@&$localedir&g
17820 s&@mandir@&$mandir&g
17821 s&\\\${datarootdir}&$datarootdir&g' ;;
17822 esac
17823 _ACEOF
17824
17825 # Neutralize VPATH when `$srcdir' = `.'.
17826 # Shell code in configure.ac might set extrasub.
17827 # FIXME: do we really want to maintain this feature?
17828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17829 ac_sed_extra="$ac_vpsub
17830 $extrasub
17831 _ACEOF
17832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17833 :t
17834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17835 s|@configure_input@|$ac_sed_conf_input|;t t
17836 s&@top_builddir@&$ac_top_builddir_sub&;t t
17837 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17838 s&@srcdir@&$ac_srcdir&;t t
17839 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17840 s&@top_srcdir@&$ac_top_srcdir&;t t
17841 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17842 s&@builddir@&$ac_builddir&;t t
17843 s&@abs_builddir@&$ac_abs_builddir&;t t
17844 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17845 s&@INSTALL@&$ac_INSTALL&;t t
17846 $ac_datarootdir_hack
17847 "
17848 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17849 if $ac_cs_awk_getline; then
17850 $AWK -f "$tmp/subs.awk"
17851 else
17852 $AWK -f "$tmp/subs.awk" | $SHELL
17853 fi >$tmp/out \
17854 || as_fn_error "could not create $ac_file" "$LINENO" 5
17855
17856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17857 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17860 which seems to be undefined. Please make sure it is defined." >&5
17861 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17862 which seems to be undefined. Please make sure it is defined." >&2;}
17863
17864 rm -f "$tmp/stdin"
17865 case $ac_file in
17866 -) cat "$tmp/out" && rm -f "$tmp/out";;
17867 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17868 esac \
17869 || as_fn_error "could not create $ac_file" "$LINENO" 5
17870 ;;
17871 :H)
17872 #
17873 # CONFIG_HEADER
17874 #
17875 if test x"$ac_file" != x-; then
17876 {
17877 $as_echo "/* $configure_input */" \
17878 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17879 } >"$tmp/config.h" \
17880 || as_fn_error "could not create $ac_file" "$LINENO" 5
17881 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17883 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17884 else
17885 rm -f "$ac_file"
17886 mv "$tmp/config.h" "$ac_file" \
17887 || as_fn_error "could not create $ac_file" "$LINENO" 5
17888 fi
17889 else
17890 $as_echo "/* $configure_input */" \
17891 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17892 || as_fn_error "could not create -" "$LINENO" 5
17893 fi
17894 ;;
17895 :L)
17896 #
17897 # CONFIG_LINK
17898 #
17899
17900 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17901 :
17902 else
17903 # Prefer the file from the source tree if names are identical.
17904 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17905 ac_source=$srcdir/$ac_source
17906 fi
17907
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17909 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17910
17911 if test ! -r "$ac_source"; then
17912 as_fn_error "$ac_source: file not found" "$LINENO" 5
17913 fi
17914 rm -f "$ac_file"
17915
17916 # Try a relative symlink, then a hard link, then a copy.
17917 case $srcdir in
17918 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17919 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17920 esac
17921 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17922 ln "$ac_source" "$ac_file" 2>/dev/null ||
17923 cp -p "$ac_source" "$ac_file" ||
17924 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17925 fi
17926 ;;
17927 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17928 $as_echo "$as_me: executing $ac_file commands" >&6;}
17929 ;;
17930 esac
17931
17932
17933 case $ac_file$ac_mode in
17934 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17935 "gcore":F) chmod +x gcore ;;
17936 "Makefile":F)
17937 case x$CONFIG_HEADERS in
17938 xconfig.h:config.in)
17939 echo > stamp-h ;;
17940 esac
17941 ;;
17942 "gdb-gdb.gdb":F)
17943 case x$CONFIG_HEADERS in
17944 xconfig.h:config.in)
17945 echo > stamp-h ;;
17946 esac
17947 ;;
17948 "doc/Makefile":F)
17949 case x$CONFIG_HEADERS in
17950 xconfig.h:config.in)
17951 echo > stamp-h ;;
17952 esac
17953 ;;
17954 "data-directory/Makefile":F)
17955 case x$CONFIG_HEADERS in
17956 xconfig.h:config.in)
17957 echo > stamp-h ;;
17958 esac
17959 ;;
17960
17961 esac
17962 done # for ac_tag
17963
17964
17965 as_fn_exit 0
17966 _ACEOF
17967 ac_clean_files=$ac_clean_files_save
17968
17969 test $ac_write_fail = 0 ||
17970 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17971
17972
17973 # configure is writing to config.log, and then calls config.status.
17974 # config.status does its own redirection, appending to config.log.
17975 # Unfortunately, on DOS this fails, as config.log is still kept open
17976 # by configure, so config.status won't be able to write to it; its
17977 # output is simply discarded. So we exec the FD to /dev/null,
17978 # effectively closing config.log, so it can be properly (re)opened and
17979 # appended to by config.status. When coming back to configure, we
17980 # need to make the FD available again.
17981 if test "$no_create" != yes; then
17982 ac_cs_success=:
17983 ac_config_status_args=
17984 test "$silent" = yes &&
17985 ac_config_status_args="$ac_config_status_args --quiet"
17986 exec 5>/dev/null
17987 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17988 exec 5>>config.log
17989 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17990 # would make configure fail if this is the last instruction.
17991 $ac_cs_success || as_fn_exit $?
17992 fi
17993
17994 #
17995 # CONFIG_SUBDIRS section.
17996 #
17997 if test "$no_recursion" != yes; then
17998
17999 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18000 # so they do not pile up.
18001 ac_sub_configure_args=
18002 ac_prev=
18003 eval "set x $ac_configure_args"
18004 shift
18005 for ac_arg
18006 do
18007 if test -n "$ac_prev"; then
18008 ac_prev=
18009 continue
18010 fi
18011 case $ac_arg in
18012 -cache-file | --cache-file | --cache-fil | --cache-fi \
18013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18014 ac_prev=cache_file ;;
18015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18017 | --c=*)
18018 ;;
18019 --config-cache | -C)
18020 ;;
18021 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18022 ac_prev=srcdir ;;
18023 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18024 ;;
18025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18026 ac_prev=prefix ;;
18027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18028 ;;
18029 --disable-option-checking)
18030 ;;
18031 *)
18032 case $ac_arg in
18033 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18034 esac
18035 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18036 esac
18037 done
18038
18039 # Always prepend --prefix to ensure using the same prefix
18040 # in subdir configurations.
18041 ac_arg="--prefix=$prefix"
18042 case $ac_arg in
18043 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18044 esac
18045 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18046
18047 # Pass --silent
18048 if test "$silent" = yes; then
18049 ac_sub_configure_args="--silent $ac_sub_configure_args"
18050 fi
18051
18052 # Always prepend --disable-option-checking to silence warnings, since
18053 # different subdirs can have different --enable and --with options.
18054 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18055
18056 ac_popdir=`pwd`
18057 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18058
18059 # Do not complain, so a configure script can configure whichever
18060 # parts of a large source tree are present.
18061 test -d "$srcdir/$ac_dir" || continue
18062
18063 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18064 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18065 $as_echo "$ac_msg" >&6
18066 as_dir="$ac_dir"; as_fn_mkdir_p
18067 ac_builddir=.
18068
18069 case "$ac_dir" in
18070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18071 *)
18072 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18073 # A ".." for each directory in $ac_dir_suffix.
18074 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18075 case $ac_top_builddir_sub in
18076 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18077 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18078 esac ;;
18079 esac
18080 ac_abs_top_builddir=$ac_pwd
18081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18082 # for backward compatibility:
18083 ac_top_builddir=$ac_top_build_prefix
18084
18085 case $srcdir in
18086 .) # We are building in place.
18087 ac_srcdir=.
18088 ac_top_srcdir=$ac_top_builddir_sub
18089 ac_abs_top_srcdir=$ac_pwd ;;
18090 [\\/]* | ?:[\\/]* ) # Absolute name.
18091 ac_srcdir=$srcdir$ac_dir_suffix;
18092 ac_top_srcdir=$srcdir
18093 ac_abs_top_srcdir=$srcdir ;;
18094 *) # Relative name.
18095 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18096 ac_top_srcdir=$ac_top_build_prefix$srcdir
18097 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18098 esac
18099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18100
18101
18102 cd "$ac_dir"
18103
18104 # Check for guested configure; otherwise get Cygnus style configure.
18105 if test -f "$ac_srcdir/configure.gnu"; then
18106 ac_sub_configure=$ac_srcdir/configure.gnu
18107 elif test -f "$ac_srcdir/configure"; then
18108 ac_sub_configure=$ac_srcdir/configure
18109 elif test -f "$ac_srcdir/configure.in"; then
18110 # This should be Cygnus configure.
18111 ac_sub_configure=$ac_aux_dir/configure
18112 else
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18114 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18115 ac_sub_configure=
18116 fi
18117
18118 # The recursion is here.
18119 if test -n "$ac_sub_configure"; then
18120 # Make the cache file name correct relative to the subdirectory.
18121 case $cache_file in
18122 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18123 *) # Relative name.
18124 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18125 esac
18126
18127 { $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
18128 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18129 # The eval makes quoting arguments work.
18130 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18131 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18132 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18133 fi
18134
18135 cd "$ac_popdir"
18136 done
18137 fi
18138 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18140 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18141 fi
18142
This page took 0.657516 seconds and 4 git commands to generate.