gdb: Add Markus Metzger as btrace maintainer
[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 GDB_NM_FILE
597 LTLIBBABELTRACE
598 LIBBABELTRACE
599 HAVE_LIBBABELTRACE
600 frags
601 target_subdir
602 CONFIG_UNINSTALL
603 CONFIG_INSTALL
604 CONFIG_CLEAN
605 CONFIG_ALL
606 CONFIG_SRCS
607 CONFIG_DEPS
608 CONFIG_OBS
609 PROFILE_CFLAGS
610 ENABLE_CFLAGS
611 SIM_OBS
612 SIM
613 XMKMF
614 GDBTK_SRC_DIR
615 GDBTK_CFLAGS
616 GDBTKLIBS
617 X_LIBS
618 X_LDFLAGS
619 X_CFLAGS
620 TK_XINCLUDES
621 TK_DEPS
622 TK_LIBRARY
623 TK_INCLUDE
624 TK_STUB_LIB_SPEC
625 TK_STUB_LIB_FLAG
626 TK_STUB_LIB_FILE
627 TK_LIB_SPEC
628 TK_LIB_FLAG
629 TK_LIB_FILE
630 TK_SRC_DIR
631 TK_BIN_DIR
632 TK_VERSION
633 TCL_DEPS
634 TCL_LIBRARY
635 TCL_INCLUDE
636 TCL_STUB_LIB_SPEC
637 TCL_STUB_LIB_FLAG
638 TCL_STUB_LIB_FILE
639 TCL_LIB_SPEC
640 TCL_LIB_FLAG
641 TCL_LIB_FILE
642 TCL_SRC_DIR
643 TCL_BIN_DIR
644 TCL_PATCH_LEVEL
645 TCL_VERSION
646 WIN32LDAPP
647 GUI_CFLAGS_X
648 LIBGUI
649 LTLIBLZMA
650 LIBLZMA
651 HAVE_LIBLZMA
652 WIN32LIBS
653 SER_HARDWIRE
654 WERROR_CFLAGS
655 WARN_CFLAGS
656 SYSTEM_GDBINIT
657 TARGET_SYSTEM_ROOT
658 CONFIG_LDFLAGS
659 RDYNAMIC
660 ALLOCA
661 LTLIBIPT
662 LIBIPT
663 HAVE_LIBIPT
664 HAVE_GUILE_FALSE
665 HAVE_GUILE_TRUE
666 GUILE_LIBS
667 GUILE_CPPFLAGS
668 GUILD_TARGET_FLAG
669 GUILD
670 pkg_config_prog_path
671 HAVE_PYTHON_FALSE
672 HAVE_PYTHON_TRUE
673 PYTHON_LIBS
674 PYTHON_CPPFLAGS
675 PYTHON_CFLAGS
676 python_prog_path
677 LTLIBEXPAT
678 LIBEXPAT
679 HAVE_LIBEXPAT
680 JIT_READER_DIR
681 TARGET_PTR
682 READLINE_TEXI_INCFLAG
683 READLINE_CFLAGS
684 READLINE_DEPS
685 READLINE
686 LTLIBICONV
687 LIBICONV
688 zlibinc
689 zlibdir
690 MIG
691 WINDRES
692 DLLTOOL
693 AR
694 YFLAGS
695 YACC
696 RANLIB
697 LN_S
698 INSTALL_DATA
699 INSTALL_SCRIPT
700 INSTALL_PROGRAM
701 AWK
702 REPORT_BUGS_TEXI
703 REPORT_BUGS_TO
704 PKGVERSION
705 HAVE_NATIVE_GCORE_TARGET
706 TARGET_OBS
707 subdirs
708 GDB_DATADIR
709 DEBUGDIR
710 MAKEINFO_EXTRA_FLAGS
711 MAKEINFOFLAGS
712 MAKEINFO
713 PACKAGE
714 GNULIB_STDINT_H
715 CATOBJEXT
716 GENCAT
717 INSTOBJEXT
718 DATADIRNAME
719 CATALOGS
720 POSUB
721 GMSGFMT
722 XGETTEXT
723 INCINTL
724 LIBINTL_DEP
725 LIBINTL
726 USE_NLS
727 SET_MAKE
728 GMAKE_FALSE
729 GMAKE_TRUE
730 MAKE
731 CCDEPMODE
732 DEPDIR
733 am__leading_dot
734 COMPILER
735 INSTALL_STRIP_PROGRAM
736 STRIP
737 install_sh
738 target_os
739 target_vendor
740 target_cpu
741 target
742 host_os
743 host_vendor
744 host_cpu
745 host
746 build_os
747 build_vendor
748 build_cpu
749 build
750 EGREP
751 GREP
752 CPP
753 ac_ct_CXX
754 CXXFLAGS
755 CXX
756 OBJEXT
757 EXEEXT
758 ac_ct_CC
759 CPPFLAGS
760 LDFLAGS
761 CFLAGS
762 CC
763 MAINT
764 MAINTAINER_MODE_FALSE
765 MAINTAINER_MODE_TRUE
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_URL
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL'
804 ac_subst_files='host_makefile_frag'
805 ac_user_opts='
806 enable_option_checking
807 enable_maintainer_mode
808 enable_plugins
809 enable_largefile
810 enable_build_with_cxx
811 with_separate_debug_dir
812 with_gdb_datadir
813 with_relocated_sources
814 with_auto_load_dir
815 with_auto_load_safe_path
816 enable_targets
817 enable_64_bit_bfd
818 enable_gdbcli
819 enable_gdbmi
820 enable_tui
821 enable_gdbtk
822 with_libunwind_ia64
823 with_curses
824 enable_profiling
825 with_pkgversion
826 with_bugurl
827 with_system_zlib
828 with_gnu_ld
829 enable_rpath
830 with_libiconv_prefix
831 with_iconv_bin
832 with_system_readline
833 with_jit_reader_dir
834 with_expat
835 with_libexpat_prefix
836 with_python
837 with_guile
838 enable_libmcheck
839 with_intel_pt
840 with_libipt_prefix
841 with_included_regex
842 with_sysroot
843 with_system_gdbinit
844 enable_werror
845 enable_build_warnings
846 enable_gdb_build_warnings
847 with_lzma
848 with_liblzma_prefix
849 with_tcl
850 with_tk
851 with_x
852 enable_sim
853 enable_multi_ice
854 enable_gdbserver
855 with_babeltrace
856 with_libbabeltrace_prefix
857 '
858 ac_precious_vars='build_alias
859 host_alias
860 target_alias
861 CC
862 CFLAGS
863 LDFLAGS
864 LIBS
865 CPPFLAGS
866 CXX
867 CXXFLAGS
868 CCC
869 CPP
870 MAKEINFO
871 MAKEINFOFLAGS
872 YACC
873 YFLAGS
874 XMKMF'
875 ac_subdirs_all='testsuite
876 gdbtk
877 multi-ice
878 gdbserver'
879
880 # Initialize some variables set by options.
881 ac_init_help=
882 ac_init_version=false
883 ac_unrecognized_opts=
884 ac_unrecognized_sep=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
887 cache_file=/dev/null
888 exec_prefix=NONE
889 no_create=
890 no_recursion=
891 prefix=NONE
892 program_prefix=NONE
893 program_suffix=NONE
894 program_transform_name=s,x,x,
895 silent=
896 site=
897 srcdir=
898 verbose=
899 x_includes=NONE
900 x_libraries=NONE
901
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE}'
919 infodir='${datarootdir}/info'
920 htmldir='${docdir}'
921 dvidir='${docdir}'
922 pdfdir='${docdir}'
923 psdir='${docdir}'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
927
928 ac_prev=
929 ac_dashdash=
930 for ac_option
931 do
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
935 ac_prev=
936 continue
937 fi
938
939 case $ac_option in
940 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *) ac_optarg=yes ;;
942 esac
943
944 # Accept the important Cygnus configure options, so we can diagnose typos.
945
946 case $ac_dashdash$ac_option in
947 --)
948 ac_dashdash=yes ;;
949
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 bindir=$ac_optarg ;;
954
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
959
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
966
967 --config-cache | -C)
968 cache_file=config.cache ;;
969
970 -datadir | --datadir | --datadi | --datad)
971 ac_prev=datadir ;;
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
974
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
981
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=no ;;
997
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1002
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1007
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=\$ac_optarg ;;
1227
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=no ;;
1243
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1247
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1254
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1261
1262 -*) as_fn_error "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information."
1264 ;;
1265
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1272 esac
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1275
1276 *)
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282 ;;
1283
1284 esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error "missing argument to $ac_option"
1290 fi
1291
1292 if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1294 no) ;;
1295 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 esac
1298 fi
1299
1300 # Check all directory arguments for consistency.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1305 do
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1308 case $ac_val in
1309 */ )
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1312 esac
1313 # Be sure to have absolute directory names.
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1319 done
1320
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1327
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1333 If a cross compiler is detected then cross compile mode will be used." >&2
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337 fi
1338
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342 test "$silent" = yes && exec 6>/dev/null
1343
1344
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error "pwd does not report name of working directory"
1351
1352
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1383 fi
1384 else
1385 ac_srcdir_defaulted=no
1386 fi
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1390 fi
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1394 pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398 fi
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1411
1412 #
1413 # Report the --help message.
1414 #
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419 \`configure' configures this package to adapt to many kinds of systems.
1420
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1425
1426 Defaults for the options are specified in brackets.
1427
1428 Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1444
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1449
1450 For better control, use the options below.
1451
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472 _ACEOF
1473
1474 cat <<\_ACEOF
1475
1476 Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480
1481 X features:
1482 --x-includes=DIR X include files are in DIR
1483 --x-libraries=DIR X library files are in DIR
1484
1485 System types:
1486 --build=BUILD configure for building on BUILD [guessed]
1487 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1488 --target=TARGET configure for building compilers for TARGET [HOST]
1489 _ACEOF
1490 fi
1491
1492 if test -n "$ac_init_help"; then
1493
1494 cat <<\_ACEOF
1495
1496 Optional Features:
1497 --disable-option-checking ignore unrecognized --enable/--with options
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1500 --enable-maintainer-mode enable make rules and dependencies not useful
1501 (and sometimes confusing) to the casual installer
1502 --enable-plugins Enable support for plugins
1503 --disable-largefile omit support for large files
1504 --enable-build-with-cxx build with C++ compiler instead of C compiler
1505 --enable-targets=TARGETS
1506 alternative target configurations
1507 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1508 --disable-gdbcli disable command-line interface (CLI)
1509 --disable-gdbmi disable machine-interface (MI)
1510 --enable-tui enable full-screen terminal user interface (TUI)
1511 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1512 --enable-profiling enable profiling of GDB
1513 --disable-rpath do not hardcode runtime library paths
1514 --enable-libmcheck Try linking with -lmcheck if available
1515 --enable-werror treat compile warnings as errors
1516 --enable-build-warnings enable build-time compiler warnings if gcc is used
1517 --enable-gdb-build-warnings
1518 enable GDB specific build-time compiler warnings if
1519 gcc is used
1520 --enable-sim link gdb with simulator
1521 --enable-multi-ice build the multi-ice-gdb-server
1522 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1523 is auto)
1524
1525 Optional Packages:
1526 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1527 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1528 --with-separate-debug-dir=PATH
1529 look for global separate debug info in this path
1530 [LIBDIR/debug]
1531 --with-gdb-datadir=PATH look for global separate data files in this path
1532 [DATADIR/gdb]
1533 --with-relocated-sources=PATH
1534 automatically relocate this path for source files
1535 --with-auto-load-dir=PATH
1536 directories from which to load auto-loaded scripts
1537 [$debugdir:$datadir/auto-load]
1538 --with-auto-load-safe-path=PATH
1539 directories safe to hold auto-loaded files
1540 [--with-auto-load-dir]
1541 --without-auto-load-safe-path
1542 do not restrict auto-loaded files locations
1543 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1544 --with-curses use the curses library instead of the termcap
1545 library
1546 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1547 --with-bugurl=URL Direct users to URL to report a bug
1548 --with-system-zlib use installed libz
1549 --with-gnu-ld assume the C compiler uses GNU ld default=no
1550 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1551 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1552 --with-iconv-bin=PATH specify where to find the iconv program
1553 --with-system-readline use installed readline library
1554 --with-jit-reader-dir=PATH
1555 directory to load the JIT readers from
1556 --with-expat include expat support (auto/yes/no)
1557 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1558 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1559 --with-python[=PYTHON] include python support
1560 (auto/yes/no/<python-program>)
1561 --with-guile[=GUILE] include guile support
1562 (auto/yes/no/<guile-version>/<pkg-config-program>)
1563 --with-intel-pt include Intel(R) Processor Trace support
1564 (auto/yes/no)
1565 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1566 --without-libipt-prefix don't search for libipt in includedir and libdir
1567 --without-included-regex
1568 don't use included regex; this is the default on
1569 systems with version 2 of the GNU C library (use
1570 with caution on other system)
1571 --with-sysroot[=DIR] search for usr/lib et al within DIR
1572 --with-system-gdbinit=PATH
1573 automatically load a system-wide gdbinit file
1574 --with-lzma support lzma compression (auto/yes/no)
1575 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1576 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1577 --with-tcl directory containing tcl configuration (tclConfig.sh)
1578 --with-tk directory containing tk configuration (tkConfig.sh)
1579 --with-x use the X Window System
1580 --with-babeltrace include babeltrace support (auto/yes/no)
1581 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1582 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1583
1584 Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 LIBS libraries to pass to the linker, e.g. -l<library>
1590 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1591 you have headers in a nonstandard directory <include dir>
1592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
1594 CPP C preprocessor
1595 MAKEINFO Parent configure detects if it is of sufficient version.
1596 MAKEINFOFLAGS
1597 Parameters for MAKEINFO.
1598 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1599 the first program found out of: `bison -y', `byacc', `yacc'.
1600 YFLAGS The list of arguments that will be passed by default to $YACC.
1601 This script will default YFLAGS to the empty string to avoid a
1602 default value of `-d' given by some make applications.
1603 XMKMF Path to xmkmf, Makefile generator for X Window System
1604
1605 Use these variables to override the choices made by `configure' or to help
1606 it to find libraries and programs with nonstandard names/locations.
1607
1608 Report bugs to the package provider.
1609 _ACEOF
1610 ac_status=$?
1611 fi
1612
1613 if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618 continue
1619 ac_builddir=.
1620
1621 case "$ac_dir" in
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *)
1624 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630 esac ;;
1631 esac
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1636
1637 case $srcdir in
1638 .) # We are building in place.
1639 ac_srcdir=.
1640 ac_top_srcdir=$ac_top_builddir_sub
1641 ac_abs_top_srcdir=$ac_pwd ;;
1642 [\\/]* | ?:[\\/]* ) # Absolute name.
1643 ac_srcdir=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir=$srcdir
1645 ac_abs_top_srcdir=$srcdir ;;
1646 *) # Relative name.
1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650 esac
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653 cd "$ac_dir" || { ac_status=$?; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure" --help=recursive
1661 else
1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663 fi || ac_status=$?
1664 cd "$ac_pwd" || { ac_status=$?; break; }
1665 done
1666 fi
1667
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1670 cat <<\_ACEOF
1671 configure
1672 generated by GNU Autoconf 2.64
1673
1674 Copyright (C) 2009 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1677 _ACEOF
1678 exit
1679 fi
1680
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1684
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext
1692 if { { ac_try="$ac_compile"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1705 fi
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.$ac_objext; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717 fi
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719 return $ac_retval
1720
1721 } # ac_fn_c_try_compile
1722
1723 # ac_fn_cxx_try_compile LINENO
1724 # ----------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_cxx_try_compile ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext
1730 if { { ac_try="$ac_compile"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_compile") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1743 fi
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_cxx_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest.$ac_objext; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1
1755 fi
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 return $ac_retval
1758
1759 } # ac_fn_cxx_try_compile
1760
1761 # ac_fn_c_try_cpp LINENO
1762 # ----------------------
1763 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_cpp ()
1765 {
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 if { { ac_try="$ac_cpp conftest.$ac_ext"
1768 case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1775 ac_status=$?
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1780 fi
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } >/dev/null && {
1783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 }; then :
1786 ac_retval=0
1787 else
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 ac_retval=1
1792 fi
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794 return $ac_retval
1795
1796 } # ac_fn_c_try_cpp
1797
1798 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1801 # the include files in INCLUDES and setting the cache variable VAR
1802 # accordingly.
1803 ac_fn_c_check_header_mongrel ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1810 $as_echo_n "(cached) " >&6
1811 fi
1812 eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 else
1816 # Is the header compilable?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1818 $as_echo_n "checking $2 usability... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 $4
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825 ac_header_compiler=yes
1826 else
1827 ac_header_compiler=no
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1831 $as_echo "$ac_header_compiler" >&6; }
1832
1833 # Is the header present?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1835 $as_echo_n "checking $2 presence... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_cpp "$LINENO"; then :
1841 ac_header_preproc=yes
1842 else
1843 ac_header_preproc=no
1844 fi
1845 rm -f conftest.err conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1847 $as_echo "$ac_header_preproc" >&6; }
1848
1849 # So? What about this header?
1850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1851 yes:no: )
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1853 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1856 ;;
1857 no:yes:* )
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1859 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1861 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1863 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1865 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868 ;;
1869 esac
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 eval "$3=\$ac_header_compiler"
1876 fi
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 fi
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882
1883 } # ac_fn_c_check_header_mongrel
1884
1885 # ac_fn_c_try_run LINENO
1886 # ----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1888 # that executables *can* be run.
1889 ac_fn_c_try_run ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if { { ac_try="$ac_link"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>&5
1900 ac_status=$?
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1903 { { case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_try") 2>&5
1910 ac_status=$?
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; }; }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: program exited with status $ac_status" >&5
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 ac_retval=$ac_status
1920 fi
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923 return $ac_retval
1924
1925 } # ac_fn_c_try_run
1926
1927 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1928 # -------------------------------------------------------
1929 # Tests whether HEADER exists and can be compiled using the include files in
1930 # INCLUDES, setting the cache variable VAR accordingly.
1931 ac_fn_c_check_header_compile ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 $4
1942 #include <$2>
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945 eval "$3=yes"
1946 else
1947 eval "$3=no"
1948 fi
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 fi
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955
1956 } # ac_fn_c_check_header_compile
1957
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1961 ac_fn_c_try_link ()
1962 {
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext conftest$ac_exeext
1965 if { { ac_try="$ac_link"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>conftest.err
1973 ac_status=$?
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1978 fi
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest$ac_exeext && {
1984 test "$cross_compiling" = yes ||
1985 $as_test_x conftest$ac_exeext
1986 }; then :
1987 ac_retval=0
1988 else
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1991
1992 ac_retval=1
1993 fi
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 return $ac_retval
2001
2002 } # ac_fn_c_try_link
2003
2004 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2005 # --------------------------------------------
2006 # Tries to find the compile-time value of EXPR in a program that includes
2007 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2008 # computed
2009 ac_fn_c_compute_int ()
2010 {
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if test "$cross_compiling" = yes; then
2013 # Depending upon the size, compute the lo and hi bounds.
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 $4
2017 int
2018 main ()
2019 {
2020 static int test_array [1 - 2 * !(($2) >= 0)];
2021 test_array [0] = 0
2022
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_lo=0 ac_mid=0
2029 while :; do
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2032 $4
2033 int
2034 main ()
2035 {
2036 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2037 test_array [0] = 0
2038
2039 ;
2040 return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_hi=$ac_mid; break
2045 else
2046 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2047 if test $ac_lo -le $ac_mid; then
2048 ac_lo= ac_hi=
2049 break
2050 fi
2051 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 done
2055 else
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $4
2059 int
2060 main ()
2061 {
2062 static int test_array [1 - 2 * !(($2) < 0)];
2063 test_array [0] = 0
2064
2065 ;
2066 return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_hi=-1 ac_mid=-1
2071 while :; do
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $4
2075 int
2076 main ()
2077 {
2078 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2079 test_array [0] = 0
2080
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 ac_lo=$ac_mid; break
2087 else
2088 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2089 if test $ac_mid -le $ac_hi; then
2090 ac_lo= ac_hi=
2091 break
2092 fi
2093 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 done
2097 else
2098 ac_lo= ac_hi=
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 # Binary search between lo and hi bounds.
2104 while test "x$ac_lo" != "x$ac_hi"; do
2105 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2108 $4
2109 int
2110 main ()
2111 {
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113 test_array [0] = 0
2114
2115 ;
2116 return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=$ac_mid
2121 else
2122 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 done
2126 case $ac_lo in #((
2127 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2128 '') ac_retval=1 ;;
2129 esac
2130 else
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2133 $4
2134 static long int longval () { return $2; }
2135 static unsigned long int ulongval () { return $2; }
2136 #include <stdio.h>
2137 #include <stdlib.h>
2138 int
2139 main ()
2140 {
2141
2142 FILE *f = fopen ("conftest.val", "w");
2143 if (! f)
2144 return 1;
2145 if (($2) < 0)
2146 {
2147 long int i = longval ();
2148 if (i != ($2))
2149 return 1;
2150 fprintf (f, "%ld", i);
2151 }
2152 else
2153 {
2154 unsigned long int i = ulongval ();
2155 if (i != ($2))
2156 return 1;
2157 fprintf (f, "%lu", i);
2158 }
2159 /* Do not output a trailing newline, as this causes \r\n confusion
2160 on some platforms. */
2161 return ferror (f) || fclose (f) != 0;
2162
2163 ;
2164 return 0;
2165 }
2166 _ACEOF
2167 if ac_fn_c_try_run "$LINENO"; then :
2168 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2169 else
2170 ac_retval=1
2171 fi
2172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2173 conftest.$ac_objext conftest.beam conftest.$ac_ext
2174 rm -f conftest.val
2175
2176 fi
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2178 return $ac_retval
2179
2180 } # ac_fn_c_compute_int
2181
2182 # ac_fn_c_check_func LINENO FUNC VAR
2183 # ----------------------------------
2184 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2185 ac_fn_c_check_func ()
2186 {
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2191 $as_echo_n "(cached) " >&6
2192 else
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2195 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2197 #define $2 innocuous_$2
2198
2199 /* System header to define __stub macros and hopefully few prototypes,
2200 which can conflict with char $2 (); below.
2201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2202 <limits.h> exists even on freestanding compilers. */
2203
2204 #ifdef __STDC__
2205 # include <limits.h>
2206 #else
2207 # include <assert.h>
2208 #endif
2209
2210 #undef $2
2211
2212 /* Override any GCC internal prototype to avoid an error.
2213 Use char because int might match the return type of a GCC
2214 builtin and then its argument prototype would still apply. */
2215 #ifdef __cplusplus
2216 extern "C"
2217 #endif
2218 char $2 ();
2219 /* The GNU C library defines this for functions which it implements
2220 to always fail with ENOSYS. Some functions are actually named
2221 something starting with __ and the normal name is an alias. */
2222 #if defined __stub_$2 || defined __stub___$2
2223 choke me
2224 #endif
2225
2226 int
2227 main ()
2228 {
2229 return $2 ();
2230 ;
2231 return 0;
2232 }
2233 _ACEOF
2234 if ac_fn_c_try_link "$LINENO"; then :
2235 eval "$3=yes"
2236 else
2237 eval "$3=no"
2238 fi
2239 rm -f core conftest.err conftest.$ac_objext \
2240 conftest$ac_exeext conftest.$ac_ext
2241 fi
2242 eval ac_res=\$$3
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246
2247 } # ac_fn_c_check_func
2248
2249 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2250 # -------------------------------------------
2251 # Tests whether TYPE exists after having included INCLUDES, setting cache
2252 # variable VAR accordingly.
2253 ac_fn_c_check_type ()
2254 {
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257 $as_echo_n "checking for $2... " >&6; }
2258 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259 $as_echo_n "(cached) " >&6
2260 else
2261 eval "$3=no"
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2264 $4
2265 int
2266 main ()
2267 {
2268 if (sizeof ($2))
2269 return 0;
2270 ;
2271 return 0;
2272 }
2273 _ACEOF
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2277 $4
2278 int
2279 main ()
2280 {
2281 if (sizeof (($2)))
2282 return 0;
2283 ;
2284 return 0;
2285 }
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288
2289 else
2290 eval "$3=yes"
2291 fi
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 fi
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 fi
2296 eval ac_res=\$$3
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300
2301 } # ac_fn_c_check_type
2302
2303 # ac_fn_c_check_decl LINENO SYMBOL VAR
2304 # ------------------------------------
2305 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2306 ac_fn_c_check_decl ()
2307 {
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 as_decl_name=`echo $2|sed 's/ *(.*//'`
2310 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2312 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2313 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2318 $4
2319 int
2320 main ()
2321 {
2322 #ifndef $as_decl_name
2323 #ifdef __cplusplus
2324 (void) $as_decl_use;
2325 #else
2326 (void) $as_decl_name;
2327 #endif
2328 #endif
2329
2330 ;
2331 return 0;
2332 }
2333 _ACEOF
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335 eval "$3=yes"
2336 else
2337 eval "$3=no"
2338 fi
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 fi
2341 eval ac_res=\$$3
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2345
2346 } # ac_fn_c_check_decl
2347
2348 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2349 # ----------------------------------------------------
2350 # Tries to find if the field MEMBER exists in type AGGR, after including
2351 # INCLUDES, setting cache variable VAR accordingly.
2352 ac_fn_c_check_member ()
2353 {
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2356 $as_echo_n "checking for $2.$3... " >&6; }
2357 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2358 $as_echo_n "(cached) " >&6
2359 else
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2362 $5
2363 int
2364 main ()
2365 {
2366 static $2 ac_aggr;
2367 if (ac_aggr.$3)
2368 return 0;
2369 ;
2370 return 0;
2371 }
2372 _ACEOF
2373 if ac_fn_c_try_compile "$LINENO"; then :
2374 eval "$4=yes"
2375 else
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2378 $5
2379 int
2380 main ()
2381 {
2382 static $2 ac_aggr;
2383 if (sizeof ac_aggr.$3)
2384 return 0;
2385 ;
2386 return 0;
2387 }
2388 _ACEOF
2389 if ac_fn_c_try_compile "$LINENO"; then :
2390 eval "$4=yes"
2391 else
2392 eval "$4=no"
2393 fi
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 fi
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 fi
2398 eval ac_res=\$$4
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402
2403 } # ac_fn_c_check_member
2404
2405 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2406 # --------------------------------------
2407 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2408 ac_fn_cxx_check_decl ()
2409 {
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 as_decl_name=`echo $2|sed 's/ *(.*//'`
2412 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2414 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2415 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2416 $as_echo_n "(cached) " >&6
2417 else
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2420 $4
2421 int
2422 main ()
2423 {
2424 #ifndef $as_decl_name
2425 #ifdef __cplusplus
2426 (void) $as_decl_use;
2427 #else
2428 (void) $as_decl_name;
2429 #endif
2430 #endif
2431
2432 ;
2433 return 0;
2434 }
2435 _ACEOF
2436 if ac_fn_cxx_try_compile "$LINENO"; then :
2437 eval "$3=yes"
2438 else
2439 eval "$3=no"
2440 fi
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 fi
2443 eval ac_res=\$$3
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447
2448 } # ac_fn_cxx_check_decl
2449 cat >config.log <<_ACEOF
2450 This file contains any messages produced by compilers while
2451 running configure, to aid debugging if configure makes a mistake.
2452
2453 It was created by $as_me, which was
2454 generated by GNU Autoconf 2.64. Invocation command line was
2455
2456 $ $0 $@
2457
2458 _ACEOF
2459 exec 5>>config.log
2460 {
2461 cat <<_ASUNAME
2462 ## --------- ##
2463 ## Platform. ##
2464 ## --------- ##
2465
2466 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2467 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2468 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2469 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2470 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2471
2472 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2473 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2474
2475 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2476 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2477 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2478 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2479 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2480 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2481 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2482
2483 _ASUNAME
2484
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 $as_echo "PATH: $as_dir"
2491 done
2492 IFS=$as_save_IFS
2493
2494 } >&5
2495
2496 cat >&5 <<_ACEOF
2497
2498
2499 ## ----------- ##
2500 ## Core tests. ##
2501 ## ----------- ##
2502
2503 _ACEOF
2504
2505
2506 # Keep a trace of the command line.
2507 # Strip out --no-create and --no-recursion so they do not pile up.
2508 # Strip out --silent because we don't want to record it for future runs.
2509 # Also quote any args containing shell meta-characters.
2510 # Make two passes to allow for proper duplicate-argument suppression.
2511 ac_configure_args=
2512 ac_configure_args0=
2513 ac_configure_args1=
2514 ac_must_keep_next=false
2515 for ac_pass in 1 2
2516 do
2517 for ac_arg
2518 do
2519 case $ac_arg in
2520 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2522 | -silent | --silent | --silen | --sile | --sil)
2523 continue ;;
2524 *\'*)
2525 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2526 esac
2527 case $ac_pass in
2528 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2529 2)
2530 as_fn_append ac_configure_args1 " '$ac_arg'"
2531 if test $ac_must_keep_next = true; then
2532 ac_must_keep_next=false # Got value, back to normal.
2533 else
2534 case $ac_arg in
2535 *=* | --config-cache | -C | -disable-* | --disable-* \
2536 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2537 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2538 | -with-* | --with-* | -without-* | --without-* | --x)
2539 case "$ac_configure_args0 " in
2540 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2541 esac
2542 ;;
2543 -* ) ac_must_keep_next=true ;;
2544 esac
2545 fi
2546 as_fn_append ac_configure_args " '$ac_arg'"
2547 ;;
2548 esac
2549 done
2550 done
2551 { ac_configure_args0=; unset ac_configure_args0;}
2552 { ac_configure_args1=; unset ac_configure_args1;}
2553
2554 # When interrupted or exit'd, cleanup temporary files, and complete
2555 # config.log. We remove comments because anyway the quotes in there
2556 # would cause problems or look ugly.
2557 # WARNING: Use '\'' to represent an apostrophe within the trap.
2558 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2559 trap 'exit_status=$?
2560 # Save into config.log some information that might help in debugging.
2561 {
2562 echo
2563
2564 cat <<\_ASBOX
2565 ## ---------------- ##
2566 ## Cache variables. ##
2567 ## ---------------- ##
2568 _ASBOX
2569 echo
2570 # The following way of writing the cache mishandles newlines in values,
2571 (
2572 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2573 eval ac_val=\$$ac_var
2574 case $ac_val in #(
2575 *${as_nl}*)
2576 case $ac_var in #(
2577 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2578 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2579 esac
2580 case $ac_var in #(
2581 _ | IFS | as_nl) ;; #(
2582 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2583 *) { eval $ac_var=; unset $ac_var;} ;;
2584 esac ;;
2585 esac
2586 done
2587 (set) 2>&1 |
2588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2589 *${as_nl}ac_space=\ *)
2590 sed -n \
2591 "s/'\''/'\''\\\\'\'''\''/g;
2592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2593 ;; #(
2594 *)
2595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2596 ;;
2597 esac |
2598 sort
2599 )
2600 echo
2601
2602 cat <<\_ASBOX
2603 ## ----------------- ##
2604 ## Output variables. ##
2605 ## ----------------- ##
2606 _ASBOX
2607 echo
2608 for ac_var in $ac_subst_vars
2609 do
2610 eval ac_val=\$$ac_var
2611 case $ac_val in
2612 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2613 esac
2614 $as_echo "$ac_var='\''$ac_val'\''"
2615 done | sort
2616 echo
2617
2618 if test -n "$ac_subst_files"; then
2619 cat <<\_ASBOX
2620 ## ------------------- ##
2621 ## File substitutions. ##
2622 ## ------------------- ##
2623 _ASBOX
2624 echo
2625 for ac_var in $ac_subst_files
2626 do
2627 eval ac_val=\$$ac_var
2628 case $ac_val in
2629 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2630 esac
2631 $as_echo "$ac_var='\''$ac_val'\''"
2632 done | sort
2633 echo
2634 fi
2635
2636 if test -s confdefs.h; then
2637 cat <<\_ASBOX
2638 ## ----------- ##
2639 ## confdefs.h. ##
2640 ## ----------- ##
2641 _ASBOX
2642 echo
2643 cat confdefs.h
2644 echo
2645 fi
2646 test "$ac_signal" != 0 &&
2647 $as_echo "$as_me: caught signal $ac_signal"
2648 $as_echo "$as_me: exit $exit_status"
2649 } >&5
2650 rm -f core *.core core.conftest.* &&
2651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2652 exit $exit_status
2653 ' 0
2654 for ac_signal in 1 2 13 15; do
2655 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2656 done
2657 ac_signal=0
2658
2659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2660 rm -f -r conftest* confdefs.h
2661
2662 $as_echo "/* confdefs.h */" > confdefs.h
2663
2664 # Predefined preprocessor variables.
2665
2666 cat >>confdefs.h <<_ACEOF
2667 #define PACKAGE_NAME "$PACKAGE_NAME"
2668 _ACEOF
2669
2670 cat >>confdefs.h <<_ACEOF
2671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2672 _ACEOF
2673
2674 cat >>confdefs.h <<_ACEOF
2675 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2676 _ACEOF
2677
2678 cat >>confdefs.h <<_ACEOF
2679 #define PACKAGE_STRING "$PACKAGE_STRING"
2680 _ACEOF
2681
2682 cat >>confdefs.h <<_ACEOF
2683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2684 _ACEOF
2685
2686 cat >>confdefs.h <<_ACEOF
2687 #define PACKAGE_URL "$PACKAGE_URL"
2688 _ACEOF
2689
2690
2691 # Let the site file select an alternate cache file if it wants to.
2692 # Prefer an explicitly selected file to automatically selected ones.
2693 ac_site_file1=NONE
2694 ac_site_file2=NONE
2695 if test -n "$CONFIG_SITE"; then
2696 ac_site_file1=$CONFIG_SITE
2697 elif test "x$prefix" != xNONE; then
2698 ac_site_file1=$prefix/share/config.site
2699 ac_site_file2=$prefix/etc/config.site
2700 else
2701 ac_site_file1=$ac_default_prefix/share/config.site
2702 ac_site_file2=$ac_default_prefix/etc/config.site
2703 fi
2704 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2705 do
2706 test "x$ac_site_file" = xNONE && continue
2707 if test -r "$ac_site_file"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2709 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2710 sed 's/^/| /' "$ac_site_file" >&5
2711 . "$ac_site_file"
2712 fi
2713 done
2714
2715 if test -r "$cache_file"; then
2716 # Some versions of bash will fail to source /dev/null (special
2717 # files actually), so we avoid doing that.
2718 if test -f "$cache_file"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2720 $as_echo "$as_me: loading cache $cache_file" >&6;}
2721 case $cache_file in
2722 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2723 *) . "./$cache_file";;
2724 esac
2725 fi
2726 else
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2728 $as_echo "$as_me: creating cache $cache_file" >&6;}
2729 >$cache_file
2730 fi
2731
2732 # Check that the precious variables saved in the cache have kept the same
2733 # value.
2734 ac_cache_corrupted=false
2735 for ac_var in $ac_precious_vars; do
2736 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2737 eval ac_new_set=\$ac_env_${ac_var}_set
2738 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2739 eval ac_new_val=\$ac_env_${ac_var}_value
2740 case $ac_old_set,$ac_new_set in
2741 set,)
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2743 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2744 ac_cache_corrupted=: ;;
2745 ,set)
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2747 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2748 ac_cache_corrupted=: ;;
2749 ,);;
2750 *)
2751 if test "x$ac_old_val" != "x$ac_new_val"; then
2752 # differences in whitespace do not lead to failure.
2753 ac_old_val_w=`echo x $ac_old_val`
2754 ac_new_val_w=`echo x $ac_new_val`
2755 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2757 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2758 ac_cache_corrupted=:
2759 else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2761 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2762 eval $ac_var=\$ac_old_val
2763 fi
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2765 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2767 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2768 fi;;
2769 esac
2770 # Pass precious variables to config.status.
2771 if test "$ac_new_set" = set; then
2772 case $ac_new_val in
2773 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2774 *) ac_arg=$ac_var=$ac_new_val ;;
2775 esac
2776 case " $ac_configure_args " in
2777 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2778 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2779 esac
2780 fi
2781 done
2782 if $ac_cache_corrupted; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2786 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2787 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2788 fi
2789 ## -------------------- ##
2790 ## Main body of script. ##
2791 ## -------------------- ##
2792
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
2799
2800
2801
2802
2803 ac_config_headers="$ac_config_headers config.h:config.in"
2804
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2807 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2808 # Check whether --enable-maintainer-mode was given.
2809 if test "${enable_maintainer_mode+set}" = set; then :
2810 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2811 else
2812 USE_MAINTAINER_MODE=no
2813 fi
2814
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2816 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2817 if test $USE_MAINTAINER_MODE = yes; then
2818 MAINTAINER_MODE_TRUE=
2819 MAINTAINER_MODE_FALSE='#'
2820 else
2821 MAINTAINER_MODE_TRUE='#'
2822 MAINTAINER_MODE_FALSE=
2823 fi
2824
2825 MAINT=$MAINTAINER_MODE_TRUE
2826
2827
2828
2829 # Set the 'development' global.
2830 . $srcdir/../bfd/development.sh
2831
2832 ac_ext=c
2833 ac_cpp='$CPP $CPPFLAGS'
2834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837 if test -n "$ac_tool_prefix"; then
2838 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2839 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2858 fi
2859 done
2860 done
2861 IFS=$as_save_IFS
2862
2863 fi
2864 fi
2865 CC=$ac_cv_prog_CC
2866 if test -n "$CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2869 else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2872 fi
2873
2874
2875 fi
2876 if test -z "$ac_cv_prog_CC"; then
2877 ac_ct_CC=$CC
2878 # Extract the first word of "gcc", so it can be a program name with args.
2879 set dummy gcc; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2883 $as_echo_n "(cached) " >&6
2884 else
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_ac_ct_CC="gcc"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899 done
2900 done
2901 IFS=$as_save_IFS
2902
2903 fi
2904 fi
2905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2906 if test -n "$ac_ct_CC"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2908 $as_echo "$ac_ct_CC" >&6; }
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2912 fi
2913
2914 if test "x$ac_ct_CC" = x; then
2915 CC=""
2916 else
2917 case $cross_compiling:$ac_tool_warned in
2918 yes:)
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned=yes ;;
2922 esac
2923 CC=$ac_ct_CC
2924 fi
2925 else
2926 CC="$ac_cv_prog_CC"
2927 fi
2928
2929 if test -z "$CC"; then
2930 if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}cc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_CC="${ac_tool_prefix}cc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2951 fi
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968 fi
2969 fi
2970 if test -z "$CC"; then
2971 # Extract the first word of "cc", so it can be a program name with args.
2972 set dummy cc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_CC+set}" = set; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 else
2981 ac_prog_rejected=no
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2990 ac_prog_rejected=yes
2991 continue
2992 fi
2993 ac_cv_prog_CC="cc"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2996 fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 if test $ac_prog_rejected = yes; then
3002 # We found a bogon in the path, so make sure we never use it.
3003 set dummy $ac_cv_prog_CC
3004 shift
3005 if test $# != 0; then
3006 # We chose a different compiler from the bogus one.
3007 # However, it has the same basename, so the bogon will be chosen
3008 # first if we set CC to just the basename; use the full file name.
3009 shift
3010 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3011 fi
3012 fi
3013 fi
3014 fi
3015 CC=$ac_cv_prog_CC
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 fi
3023
3024
3025 fi
3026 if test -z "$CC"; then
3027 if test -n "$ac_tool_prefix"; then
3028 for ac_prog in cl.exe
3029 do
3030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051 done
3052 done
3053 IFS=$as_save_IFS
3054
3055 fi
3056 fi
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3064 fi
3065
3066
3067 test -n "$CC" && break
3068 done
3069 fi
3070 if test -z "$CC"; then
3071 ac_ct_CC=$CC
3072 for ac_prog in cl.exe
3073 do
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test -n "$ac_ct_CC"; then
3082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_ac_ct_CC="$ac_prog"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095 done
3096 done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3102 if test -n "$ac_ct_CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3104 $as_echo "$ac_ct_CC" >&6; }
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111 test -n "$ac_ct_CC" && break
3112 done
3113
3114 if test "x$ac_ct_CC" = x; then
3115 CC=""
3116 else
3117 case $cross_compiling:$ac_tool_warned in
3118 yes:)
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned=yes ;;
3122 esac
3123 CC=$ac_ct_CC
3124 fi
3125 fi
3126
3127 fi
3128
3129
3130 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error "no acceptable C compiler found in \$PATH
3133 See \`config.log' for more details." "$LINENO" 5; }
3134
3135 # Provide some information about the compiler.
3136 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3137 set X $ac_compile
3138 ac_compiler=$2
3139 for ac_option in --version -v -V -qversion; do
3140 { { ac_try="$ac_compiler $ac_option >&5"
3141 case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3148 ac_status=$?
3149 if test -s conftest.err; then
3150 sed '10a\
3151 ... rest of stderr output deleted ...
3152 10q' conftest.err >conftest.er1
3153 cat conftest.er1 >&5
3154 rm -f conftest.er1 conftest.err
3155 fi
3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157 test $ac_status = 0; }
3158 done
3159
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3162
3163 int
3164 main ()
3165 {
3166
3167 ;
3168 return 0;
3169 }
3170 _ACEOF
3171 ac_clean_files_save=$ac_clean_files
3172 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3173 # Try to create an executable without -o first, disregard a.out.
3174 # It will help us diagnose broken compilers, and finding out an intuition
3175 # of exeext.
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3177 $as_echo_n "checking for C compiler default output file name... " >&6; }
3178 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3179
3180 # The possible output files:
3181 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3182
3183 ac_rmfiles=
3184 for ac_file in $ac_files
3185 do
3186 case $ac_file in
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3188 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3189 esac
3190 done
3191 rm -f $ac_rmfiles
3192
3193 if { { ac_try="$ac_link_default"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_link_default") 2>&5
3201 ac_status=$?
3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }; then :
3204 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3205 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3206 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3207 # so that the user can short-circuit this test for compilers unknown to
3208 # Autoconf.
3209 for ac_file in $ac_files ''
3210 do
3211 test -f "$ac_file" || continue
3212 case $ac_file in
3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3214 ;;
3215 [ab].out )
3216 # We found the default executable, but exeext='' is most
3217 # certainly right.
3218 break;;
3219 *.* )
3220 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3221 then :; else
3222 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 fi
3224 # We set ac_cv_exeext here because the later test for it is not
3225 # safe: cross compilers may not add the suffix if given an `-o'
3226 # argument, so we may need to know it at that point already.
3227 # Even if this section looks crufty: it has the advantage of
3228 # actually working.
3229 break;;
3230 * )
3231 break;;
3232 esac
3233 done
3234 test "$ac_cv_exeext" = no && ac_cv_exeext=
3235
3236 else
3237 ac_file=''
3238 fi
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3240 $as_echo "$ac_file" >&6; }
3241 if test -z "$ac_file"; then :
3242 $as_echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247 { as_fn_set_status 77
3248 as_fn_error "C compiler cannot create executables
3249 See \`config.log' for more details." "$LINENO" 5; }; }
3250 fi
3251 ac_exeext=$ac_cv_exeext
3252
3253 # Check that the compiler produces executables we can run. If not, either
3254 # the compiler is broken, or we cross compile.
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3256 $as_echo_n "checking whether the C compiler works... " >&6; }
3257 # If not cross compiling, check that we can run a simple program.
3258 if test "$cross_compiling" != yes; then
3259 if { ac_try='./$ac_file'
3260 { { case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_try") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; }; then
3270 cross_compiling=no
3271 else
3272 if test "$cross_compiling" = maybe; then
3273 cross_compiling=yes
3274 else
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error "cannot run C compiled programs.
3278 If you meant to cross compile, use \`--host'.
3279 See \`config.log' for more details." "$LINENO" 5; }
3280 fi
3281 fi
3282 fi
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3285
3286 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3287 ac_clean_files=$ac_clean_files_save
3288 # Check that the compiler produces executables we can run. If not, either
3289 # the compiler is broken, or we cross compile.
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3291 $as_echo_n "checking whether we are cross compiling... " >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3293 $as_echo "$cross_compiling" >&6; }
3294
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3296 $as_echo_n "checking for suffix of executables... " >&6; }
3297 if { { ac_try="$ac_link"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_link") 2>&5
3305 ac_status=$?
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }; then :
3308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3309 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3310 # work properly (i.e., refer to `conftest.exe'), while it won't with
3311 # `rm'.
3312 for ac_file in conftest.exe conftest conftest.*; do
3313 test -f "$ac_file" || continue
3314 case $ac_file in
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317 break;;
3318 * ) break;;
3319 esac
3320 done
3321 else
3322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 as_fn_error "cannot compute suffix of executables: cannot compile and link
3325 See \`config.log' for more details." "$LINENO" 5; }
3326 fi
3327 rm -f conftest$ac_cv_exeext
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3329 $as_echo "$ac_cv_exeext" >&6; }
3330
3331 rm -f conftest.$ac_ext
3332 EXEEXT=$ac_cv_exeext
3333 ac_exeext=$EXEEXT
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3335 $as_echo_n "checking for suffix of object files... " >&6; }
3336 if test "${ac_cv_objext+set}" = set; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3341
3342 int
3343 main ()
3344 {
3345
3346 ;
3347 return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.o conftest.obj
3351 if { { ac_try="$ac_compile"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_compile") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; then :
3362 for ac_file in conftest.o conftest.obj conftest.*; do
3363 test -f "$ac_file" || continue;
3364 case $ac_file in
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3367 break;;
3368 esac
3369 done
3370 else
3371 $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error "cannot compute suffix of object files: cannot compile
3377 See \`config.log' for more details." "$LINENO" 5; }
3378 fi
3379 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3380 fi
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3382 $as_echo "$ac_cv_objext" >&6; }
3383 OBJEXT=$ac_cv_objext
3384 ac_objext=$OBJEXT
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3386 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3387 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3392
3393 int
3394 main ()
3395 {
3396 #ifndef __GNUC__
3397 choke me
3398 #endif
3399
3400 ;
3401 return 0;
3402 }
3403 _ACEOF
3404 if ac_fn_c_try_compile "$LINENO"; then :
3405 ac_compiler_gnu=yes
3406 else
3407 ac_compiler_gnu=no
3408 fi
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3411
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3414 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3415 if test $ac_compiler_gnu = yes; then
3416 GCC=yes
3417 else
3418 GCC=
3419 fi
3420 ac_test_CFLAGS=${CFLAGS+set}
3421 ac_save_CFLAGS=$CFLAGS
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3423 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3424 if test "${ac_cv_prog_cc_g+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 ac_save_c_werror_flag=$ac_c_werror_flag
3428 ac_c_werror_flag=yes
3429 ac_cv_prog_cc_g=no
3430 CFLAGS="-g"
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433
3434 int
3435 main ()
3436 {
3437
3438 ;
3439 return 0;
3440 }
3441 _ACEOF
3442 if ac_fn_c_try_compile "$LINENO"; then :
3443 ac_cv_prog_cc_g=yes
3444 else
3445 CFLAGS=""
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448
3449 int
3450 main ()
3451 {
3452
3453 ;
3454 return 0;
3455 }
3456 _ACEOF
3457 if ac_fn_c_try_compile "$LINENO"; then :
3458
3459 else
3460 ac_c_werror_flag=$ac_save_c_werror_flag
3461 CFLAGS="-g"
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464
3465 int
3466 main ()
3467 {
3468
3469 ;
3470 return 0;
3471 }
3472 _ACEOF
3473 if ac_fn_c_try_compile "$LINENO"; then :
3474 ac_cv_prog_cc_g=yes
3475 fi
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 fi
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 fi
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_c_werror_flag=$ac_save_c_werror_flag
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3484 $as_echo "$ac_cv_prog_cc_g" >&6; }
3485 if test "$ac_test_CFLAGS" = set; then
3486 CFLAGS=$ac_save_CFLAGS
3487 elif test $ac_cv_prog_cc_g = yes; then
3488 if test "$GCC" = yes; then
3489 CFLAGS="-g -O2"
3490 else
3491 CFLAGS="-g"
3492 fi
3493 else
3494 if test "$GCC" = yes; then
3495 CFLAGS="-O2"
3496 else
3497 CFLAGS=
3498 fi
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3501 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3502 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 ac_cv_prog_cc_c89=no
3506 ac_save_CC=$CC
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3509 #include <stdarg.h>
3510 #include <stdio.h>
3511 #include <sys/types.h>
3512 #include <sys/stat.h>
3513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3514 struct buf { int x; };
3515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3516 static char *e (p, i)
3517 char **p;
3518 int i;
3519 {
3520 return p[i];
3521 }
3522 static char *f (char * (*g) (char **, int), char **p, ...)
3523 {
3524 char *s;
3525 va_list v;
3526 va_start (v,p);
3527 s = g (p, va_arg (v,int));
3528 va_end (v);
3529 return s;
3530 }
3531
3532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3533 function prototypes and stuff, but not '\xHH' hex character constants.
3534 These don't provoke an error unfortunately, instead are silently treated
3535 as 'x'. The following induces an error, until -std is added to get
3536 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3537 array size at least. It's necessary to write '\x00'==0 to get something
3538 that's true only with -std. */
3539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3540
3541 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3542 inside strings and character constants. */
3543 #define FOO(x) 'x'
3544 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3545
3546 int test (int i, double x);
3547 struct s1 {int (*f) (int a);};
3548 struct s2 {int (*f) (double a);};
3549 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3550 int argc;
3551 char **argv;
3552 int
3553 main ()
3554 {
3555 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3556 ;
3557 return 0;
3558 }
3559 _ACEOF
3560 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3561 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3562 do
3563 CC="$ac_save_CC $ac_arg"
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565 ac_cv_prog_cc_c89=$ac_arg
3566 fi
3567 rm -f core conftest.err conftest.$ac_objext
3568 test "x$ac_cv_prog_cc_c89" != "xno" && break
3569 done
3570 rm -f conftest.$ac_ext
3571 CC=$ac_save_CC
3572
3573 fi
3574 # AC_CACHE_VAL
3575 case "x$ac_cv_prog_cc_c89" in
3576 x)
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3578 $as_echo "none needed" >&6; } ;;
3579 xno)
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3581 $as_echo "unsupported" >&6; } ;;
3582 *)
3583 CC="$CC $ac_cv_prog_cc_c89"
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3585 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3586 esac
3587 if test "x$ac_cv_prog_cc_c89" != xno; then :
3588
3589 fi
3590
3591 ac_ext=c
3592 ac_cpp='$CPP $CPPFLAGS'
3593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3596
3597 ac_ext=cpp
3598 ac_cpp='$CXXCPP $CPPFLAGS'
3599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3602 if test -z "$CXX"; then
3603 if test -n "$CCC"; then
3604 CXX=$CCC
3605 else
3606 if test -n "$ac_tool_prefix"; then
3607 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3608 do
3609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 $as_echo_n "checking for $ac_word... " >&6; }
3613 if test "${ac_cv_prog_CXX+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 if test -n "$CXX"; then
3617 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3618 else
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH
3621 do
3622 IFS=$as_save_IFS
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3626 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3628 break 2
3629 fi
3630 done
3631 done
3632 IFS=$as_save_IFS
3633
3634 fi
3635 fi
3636 CXX=$ac_cv_prog_CXX
3637 if test -n "$CXX"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3639 $as_echo "$CXX" >&6; }
3640 else
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3643 fi
3644
3645
3646 test -n "$CXX" && break
3647 done
3648 fi
3649 if test -z "$CXX"; then
3650 ac_ct_CXX=$CXX
3651 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3652 do
3653 # Extract the first word of "$ac_prog", so it can be a program name with args.
3654 set dummy $ac_prog; ac_word=$2
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 if test -n "$ac_ct_CXX"; then
3661 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670 ac_cv_prog_ac_ct_CXX="$ac_prog"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674 done
3675 done
3676 IFS=$as_save_IFS
3677
3678 fi
3679 fi
3680 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3681 if test -n "$ac_ct_CXX"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3683 $as_echo "$ac_ct_CXX" >&6; }
3684 else
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3687 fi
3688
3689
3690 test -n "$ac_ct_CXX" && break
3691 done
3692
3693 if test "x$ac_ct_CXX" = x; then
3694 CXX="g++"
3695 else
3696 case $cross_compiling:$ac_tool_warned in
3697 yes:)
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3700 ac_tool_warned=yes ;;
3701 esac
3702 CXX=$ac_ct_CXX
3703 fi
3704 fi
3705
3706 fi
3707 fi
3708 # Provide some information about the compiler.
3709 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3710 set X $ac_compile
3711 ac_compiler=$2
3712 for ac_option in --version -v -V -qversion; do
3713 { { ac_try="$ac_compiler $ac_option >&5"
3714 case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717 esac
3718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719 $as_echo "$ac_try_echo"; } >&5
3720 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3721 ac_status=$?
3722 if test -s conftest.err; then
3723 sed '10a\
3724 ... rest of stderr output deleted ...
3725 10q' conftest.err >conftest.er1
3726 cat conftest.er1 >&5
3727 rm -f conftest.er1 conftest.err
3728 fi
3729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730 test $ac_status = 0; }
3731 done
3732
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3734 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3735 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740
3741 int
3742 main ()
3743 {
3744 #ifndef __GNUC__
3745 choke me
3746 #endif
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 if ac_fn_cxx_try_compile "$LINENO"; then :
3753 ac_compiler_gnu=yes
3754 else
3755 ac_compiler_gnu=no
3756 fi
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3759
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3762 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3763 if test $ac_compiler_gnu = yes; then
3764 GXX=yes
3765 else
3766 GXX=
3767 fi
3768 ac_test_CXXFLAGS=${CXXFLAGS+set}
3769 ac_save_CXXFLAGS=$CXXFLAGS
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3771 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3772 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3776 ac_cxx_werror_flag=yes
3777 ac_cv_prog_cxx_g=no
3778 CXXFLAGS="-g"
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781
3782 int
3783 main ()
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 if ac_fn_cxx_try_compile "$LINENO"; then :
3791 ac_cv_prog_cxx_g=yes
3792 else
3793 CXXFLAGS=""
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796
3797 int
3798 main ()
3799 {
3800
3801 ;
3802 return 0;
3803 }
3804 _ACEOF
3805 if ac_fn_cxx_try_compile "$LINENO"; then :
3806
3807 else
3808 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3809 CXXFLAGS="-g"
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812
3813 int
3814 main ()
3815 {
3816
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 if ac_fn_cxx_try_compile "$LINENO"; then :
3822 ac_cv_prog_cxx_g=yes
3823 fi
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3832 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3833 if test "$ac_test_CXXFLAGS" = set; then
3834 CXXFLAGS=$ac_save_CXXFLAGS
3835 elif test $ac_cv_prog_cxx_g = yes; then
3836 if test "$GXX" = yes; then
3837 CXXFLAGS="-g -O2"
3838 else
3839 CXXFLAGS="-g"
3840 fi
3841 else
3842 if test "$GXX" = yes; then
3843 CXXFLAGS="-O2"
3844 else
3845 CXXFLAGS=
3846 fi
3847 fi
3848 ac_ext=c
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
3854
3855
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3862 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3863 # On Suns, sometimes $CPP names a directory.
3864 if test -n "$CPP" && test -d "$CPP"; then
3865 CPP=
3866 fi
3867 if test -z "$CPP"; then
3868 if test "${ac_cv_prog_CPP+set}" = set; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 # Double quotes because CPP needs to be expanded
3872 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3873 do
3874 ac_preproc_ok=false
3875 for ac_c_preproc_warn_flag in '' yes
3876 do
3877 # Use a header file that comes with gcc, so configuring glibc
3878 # with a fresh cross-compiler works.
3879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3880 # <limits.h> exists even on freestanding compilers.
3881 # On the NeXT, cc -E runs the code through the compiler's parser,
3882 # not just through cpp. "Syntax error" is here to catch this case.
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3885 #ifdef __STDC__
3886 # include <limits.h>
3887 #else
3888 # include <assert.h>
3889 #endif
3890 Syntax error
3891 _ACEOF
3892 if ac_fn_c_try_cpp "$LINENO"; then :
3893
3894 else
3895 # Broken: fails on valid input.
3896 continue
3897 fi
3898 rm -f conftest.err conftest.$ac_ext
3899
3900 # OK, works on sane cases. Now check whether nonexistent headers
3901 # can be detected and how.
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3904 #include <ac_nonexistent.h>
3905 _ACEOF
3906 if ac_fn_c_try_cpp "$LINENO"; then :
3907 # Broken: success on invalid input.
3908 continue
3909 else
3910 # Passes both tests.
3911 ac_preproc_ok=:
3912 break
3913 fi
3914 rm -f conftest.err conftest.$ac_ext
3915
3916 done
3917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3918 rm -f conftest.err conftest.$ac_ext
3919 if $ac_preproc_ok; then :
3920 break
3921 fi
3922
3923 done
3924 ac_cv_prog_CPP=$CPP
3925
3926 fi
3927 CPP=$ac_cv_prog_CPP
3928 else
3929 ac_cv_prog_CPP=$CPP
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3932 $as_echo "$CPP" >&6; }
3933 ac_preproc_ok=false
3934 for ac_c_preproc_warn_flag in '' yes
3935 do
3936 # Use a header file that comes with gcc, so configuring glibc
3937 # with a fresh cross-compiler works.
3938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3939 # <limits.h> exists even on freestanding compilers.
3940 # On the NeXT, cc -E runs the code through the compiler's parser,
3941 # not just through cpp. "Syntax error" is here to catch this case.
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944 #ifdef __STDC__
3945 # include <limits.h>
3946 #else
3947 # include <assert.h>
3948 #endif
3949 Syntax error
3950 _ACEOF
3951 if ac_fn_c_try_cpp "$LINENO"; then :
3952
3953 else
3954 # Broken: fails on valid input.
3955 continue
3956 fi
3957 rm -f conftest.err conftest.$ac_ext
3958
3959 # OK, works on sane cases. Now check whether nonexistent headers
3960 # can be detected and how.
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963 #include <ac_nonexistent.h>
3964 _ACEOF
3965 if ac_fn_c_try_cpp "$LINENO"; then :
3966 # Broken: success on invalid input.
3967 continue
3968 else
3969 # Passes both tests.
3970 ac_preproc_ok=:
3971 break
3972 fi
3973 rm -f conftest.err conftest.$ac_ext
3974
3975 done
3976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3977 rm -f conftest.err conftest.$ac_ext
3978 if $ac_preproc_ok; then :
3979
3980 else
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3984 See \`config.log' for more details." "$LINENO" 5; }
3985 fi
3986
3987 ac_ext=c
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992
3993
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3995 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3996 if test "${ac_cv_path_GREP+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 if test -z "$GREP"; then
4000 ac_path_GREP_found=false
4001 # Loop through the user's path and test for each of PROGNAME-LIST
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4004 do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_prog in grep ggrep; do
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4010 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4011 # Check for GNU ac_path_GREP and select it if it is found.
4012 # Check for GNU $ac_path_GREP
4013 case `"$ac_path_GREP" --version 2>&1` in
4014 *GNU*)
4015 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4016 *)
4017 ac_count=0
4018 $as_echo_n 0123456789 >"conftest.in"
4019 while :
4020 do
4021 cat "conftest.in" "conftest.in" >"conftest.tmp"
4022 mv "conftest.tmp" "conftest.in"
4023 cp "conftest.in" "conftest.nl"
4024 $as_echo 'GREP' >> "conftest.nl"
4025 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4027 as_fn_arith $ac_count + 1 && ac_count=$as_val
4028 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4029 # Best one so far, save it but keep looking for a better one
4030 ac_cv_path_GREP="$ac_path_GREP"
4031 ac_path_GREP_max=$ac_count
4032 fi
4033 # 10*(2^10) chars as input seems more than enough
4034 test $ac_count -gt 10 && break
4035 done
4036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4037 esac
4038
4039 $ac_path_GREP_found && break 3
4040 done
4041 done
4042 done
4043 IFS=$as_save_IFS
4044 if test -z "$ac_cv_path_GREP"; then
4045 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4046 fi
4047 else
4048 ac_cv_path_GREP=$GREP
4049 fi
4050
4051 fi
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4053 $as_echo "$ac_cv_path_GREP" >&6; }
4054 GREP="$ac_cv_path_GREP"
4055
4056
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4058 $as_echo_n "checking for egrep... " >&6; }
4059 if test "${ac_cv_path_EGREP+set}" = set; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4063 then ac_cv_path_EGREP="$GREP -E"
4064 else
4065 if test -z "$EGREP"; then
4066 ac_path_EGREP_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070 do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_prog in egrep; do
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4076 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4077 # Check for GNU ac_path_EGREP and select it if it is found.
4078 # Check for GNU $ac_path_EGREP
4079 case `"$ac_path_EGREP" --version 2>&1` in
4080 *GNU*)
4081 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4082 *)
4083 ac_count=0
4084 $as_echo_n 0123456789 >"conftest.in"
4085 while :
4086 do
4087 cat "conftest.in" "conftest.in" >"conftest.tmp"
4088 mv "conftest.tmp" "conftest.in"
4089 cp "conftest.in" "conftest.nl"
4090 $as_echo 'EGREP' >> "conftest.nl"
4091 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093 as_fn_arith $ac_count + 1 && ac_count=$as_val
4094 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4095 # Best one so far, save it but keep looking for a better one
4096 ac_cv_path_EGREP="$ac_path_EGREP"
4097 ac_path_EGREP_max=$ac_count
4098 fi
4099 # 10*(2^10) chars as input seems more than enough
4100 test $ac_count -gt 10 && break
4101 done
4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103 esac
4104
4105 $ac_path_EGREP_found && break 3
4106 done
4107 done
4108 done
4109 IFS=$as_save_IFS
4110 if test -z "$ac_cv_path_EGREP"; then
4111 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4112 fi
4113 else
4114 ac_cv_path_EGREP=$EGREP
4115 fi
4116
4117 fi
4118 fi
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4120 $as_echo "$ac_cv_path_EGREP" >&6; }
4121 EGREP="$ac_cv_path_EGREP"
4122
4123
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4125 $as_echo_n "checking for ANSI C header files... " >&6; }
4126 if test "${ac_cv_header_stdc+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4131 #include <stdlib.h>
4132 #include <stdarg.h>
4133 #include <string.h>
4134 #include <float.h>
4135
4136 int
4137 main ()
4138 {
4139
4140 ;
4141 return 0;
4142 }
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_cv_header_stdc=yes
4146 else
4147 ac_cv_header_stdc=no
4148 fi
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150
4151 if test $ac_cv_header_stdc = yes; then
4152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <string.h>
4156
4157 _ACEOF
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159 $EGREP "memchr" >/dev/null 2>&1; then :
4160
4161 else
4162 ac_cv_header_stdc=no
4163 fi
4164 rm -f conftest*
4165
4166 fi
4167
4168 if test $ac_cv_header_stdc = yes; then
4169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 #include <stdlib.h>
4173
4174 _ACEOF
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176 $EGREP "free" >/dev/null 2>&1; then :
4177
4178 else
4179 ac_cv_header_stdc=no
4180 fi
4181 rm -f conftest*
4182
4183 fi
4184
4185 if test $ac_cv_header_stdc = yes; then
4186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4187 if test "$cross_compiling" = yes; then :
4188 :
4189 else
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192 #include <ctype.h>
4193 #include <stdlib.h>
4194 #if ((' ' & 0x0FF) == 0x020)
4195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4197 #else
4198 # define ISLOWER(c) \
4199 (('a' <= (c) && (c) <= 'i') \
4200 || ('j' <= (c) && (c) <= 'r') \
4201 || ('s' <= (c) && (c) <= 'z'))
4202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4203 #endif
4204
4205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4206 int
4207 main ()
4208 {
4209 int i;
4210 for (i = 0; i < 256; i++)
4211 if (XOR (islower (i), ISLOWER (i))
4212 || toupper (i) != TOUPPER (i))
4213 return 2;
4214 return 0;
4215 }
4216 _ACEOF
4217 if ac_fn_c_try_run "$LINENO"; then :
4218
4219 else
4220 ac_cv_header_stdc=no
4221 fi
4222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4223 conftest.$ac_objext conftest.beam conftest.$ac_ext
4224 fi
4225
4226 fi
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4229 $as_echo "$ac_cv_header_stdc" >&6; }
4230 if test $ac_cv_header_stdc = yes; then
4231
4232 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4233
4234 fi
4235
4236 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238 inttypes.h stdint.h unistd.h
4239 do :
4240 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4242 "
4243 eval as_val=\$$as_ac_Header
4244 if test "x$as_val" = x""yes; then :
4245 cat >>confdefs.h <<_ACEOF
4246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4247 _ACEOF
4248
4249 fi
4250
4251 done
4252
4253
4254
4255 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4256 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4257 MINIX=yes
4258 else
4259 MINIX=
4260 fi
4261
4262
4263 if test "$MINIX" = yes; then
4264
4265 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4266
4267
4268 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4269
4270
4271 $as_echo "#define _MINIX 1" >>confdefs.h
4272
4273 fi
4274
4275
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4277 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4278 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283
4284 # define __EXTENSIONS__ 1
4285 $ac_includes_default
4286 int
4287 main ()
4288 {
4289
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 if ac_fn_c_try_compile "$LINENO"; then :
4295 ac_cv_safe_to_define___extensions__=yes
4296 else
4297 ac_cv_safe_to_define___extensions__=no
4298 fi
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 fi
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4302 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4303 test $ac_cv_safe_to_define___extensions__ = yes &&
4304 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4305
4306 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4307
4308 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4309
4310 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4311
4312 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4313
4314
4315 ac_aux_dir=
4316 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4317 for ac_t in install-sh install.sh shtool; do
4318 if test -f "$ac_dir/$ac_t"; then
4319 ac_aux_dir=$ac_dir
4320 ac_install_sh="$ac_aux_dir/$ac_t -c"
4321 break 2
4322 fi
4323 done
4324 done
4325 if test -z "$ac_aux_dir"; then
4326 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4327 fi
4328
4329 # These three variables are undocumented and unsupported,
4330 # and are intended to be withdrawn in a future Autoconf release.
4331 # They can cause serious problems if a builder's source tree is in a directory
4332 # whose full name contains unusual characters.
4333 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4334 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4335 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4336
4337
4338 # Make sure we can run config.sub.
4339 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4340 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4343 $as_echo_n "checking build system type... " >&6; }
4344 if test "${ac_cv_build+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 ac_build_alias=$build_alias
4348 test "x$ac_build_alias" = x &&
4349 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4350 test "x$ac_build_alias" = x &&
4351 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4352 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4353 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4354
4355 fi
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4357 $as_echo "$ac_cv_build" >&6; }
4358 case $ac_cv_build in
4359 *-*-*) ;;
4360 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4361 esac
4362 build=$ac_cv_build
4363 ac_save_IFS=$IFS; IFS='-'
4364 set x $ac_cv_build
4365 shift
4366 build_cpu=$1
4367 build_vendor=$2
4368 shift; shift
4369 # Remember, the first character of IFS is used to create $*,
4370 # except with old shells:
4371 build_os=$*
4372 IFS=$ac_save_IFS
4373 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4374
4375
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4377 $as_echo_n "checking host system type... " >&6; }
4378 if test "${ac_cv_host+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if test "x$host_alias" = x; then
4382 ac_cv_host=$ac_cv_build
4383 else
4384 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4385 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4386 fi
4387
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4390 $as_echo "$ac_cv_host" >&6; }
4391 case $ac_cv_host in
4392 *-*-*) ;;
4393 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4394 esac
4395 host=$ac_cv_host
4396 ac_save_IFS=$IFS; IFS='-'
4397 set x $ac_cv_host
4398 shift
4399 host_cpu=$1
4400 host_vendor=$2
4401 shift; shift
4402 # Remember, the first character of IFS is used to create $*,
4403 # except with old shells:
4404 host_os=$*
4405 IFS=$ac_save_IFS
4406 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4407
4408
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4410 $as_echo_n "checking target system type... " >&6; }
4411 if test "${ac_cv_target+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 if test "x$target_alias" = x; then
4415 ac_cv_target=$ac_cv_host
4416 else
4417 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4418 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4419 fi
4420
4421 fi
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4423 $as_echo "$ac_cv_target" >&6; }
4424 case $ac_cv_target in
4425 *-*-*) ;;
4426 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4427 esac
4428 target=$ac_cv_target
4429 ac_save_IFS=$IFS; IFS='-'
4430 set x $ac_cv_target
4431 shift
4432 target_cpu=$1
4433 target_vendor=$2
4434 shift; shift
4435 # Remember, the first character of IFS is used to create $*,
4436 # except with old shells:
4437 target_os=$*
4438 IFS=$ac_save_IFS
4439 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4440
4441
4442 # The aliases save the names the user supplied, while $host etc.
4443 # will get canonicalized.
4444 test -n "$target_alias" &&
4445 test "$program_prefix$program_suffix$program_transform_name" = \
4446 NONENONEs,x,x, &&
4447 program_prefix=${target_alias}-
4448
4449 # The tests for host and target for $enable_largefile require
4450 # canonical names.
4451
4452
4453
4454 # As the $enable_largefile decision depends on --enable-plugins we must set it
4455 # even in directories otherwise not depending on the $plugins option.
4456
4457
4458 maybe_plugins=no
4459 for ac_header in dlfcn.h
4460 do :
4461 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4462 "
4463 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4464 cat >>confdefs.h <<_ACEOF
4465 #define HAVE_DLFCN_H 1
4466 _ACEOF
4467 maybe_plugins=yes
4468 fi
4469
4470 done
4471
4472 for ac_header in windows.h
4473 do :
4474 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4475 "
4476 if test "x$ac_cv_header_windows_h" = x""yes; then :
4477 cat >>confdefs.h <<_ACEOF
4478 #define HAVE_WINDOWS_H 1
4479 _ACEOF
4480 maybe_plugins=yes
4481 fi
4482
4483 done
4484
4485
4486 # Check whether --enable-plugins was given.
4487 if test "${enable_plugins+set}" = set; then :
4488 enableval=$enable_plugins; case "${enableval}" in
4489 no) plugins=no ;;
4490 *) plugins=yes
4491 if test "$maybe_plugins" != "yes" ; then
4492 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4493 fi ;;
4494 esac
4495 else
4496 plugins=$maybe_plugins
4497
4498 fi
4499
4500 if test "$plugins" = "yes"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4502 $as_echo_n "checking for library containing dlopen... " >&6; }
4503 if test "${ac_cv_search_dlopen+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 ac_func_search_save_LIBS=$LIBS
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509
4510 /* Override any GCC internal prototype to avoid an error.
4511 Use char because int might match the return type of a GCC
4512 builtin and then its argument prototype would still apply. */
4513 #ifdef __cplusplus
4514 extern "C"
4515 #endif
4516 char dlopen ();
4517 int
4518 main ()
4519 {
4520 return dlopen ();
4521 ;
4522 return 0;
4523 }
4524 _ACEOF
4525 for ac_lib in '' dl; do
4526 if test -z "$ac_lib"; then
4527 ac_res="none required"
4528 else
4529 ac_res=-l$ac_lib
4530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4531 fi
4532 if ac_fn_c_try_link "$LINENO"; then :
4533 ac_cv_search_dlopen=$ac_res
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext \
4536 conftest$ac_exeext
4537 if test "${ac_cv_search_dlopen+set}" = set; then :
4538 break
4539 fi
4540 done
4541 if test "${ac_cv_search_dlopen+set}" = set; then :
4542
4543 else
4544 ac_cv_search_dlopen=no
4545 fi
4546 rm conftest.$ac_ext
4547 LIBS=$ac_func_search_save_LIBS
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4550 $as_echo "$ac_cv_search_dlopen" >&6; }
4551 ac_res=$ac_cv_search_dlopen
4552 if test "$ac_res" != no; then :
4553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4554
4555 fi
4556
4557 fi
4558
4559
4560 case "${host}" in
4561 sparc-*-solaris*|i[3-7]86-*-solaris*)
4562 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4563 # are mutually exclusive; and without procfs support, the bfd/ elf module
4564 # cannot provide certain routines such as elfcore_write_prpsinfo
4565 # or elfcore_write_prstatus. So unless the user explicitly requested
4566 # large-file support through the --enable-largefile switch, disable
4567 # large-file support in favor of procfs support.
4568 test "${target}" = "${host}" -a "x$plugins" = xno \
4569 && : ${enable_largefile="no"}
4570 ;;
4571 esac
4572
4573 # Check whether --enable-largefile was given.
4574 if test "${enable_largefile+set}" = set; then :
4575 enableval=$enable_largefile;
4576 fi
4577
4578 if test "$enable_largefile" != no; then
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4581 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4582 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 ac_cv_sys_largefile_CC=no
4586 if test "$GCC" != yes; then
4587 ac_save_CC=$CC
4588 while :; do
4589 # IRIX 6.2 and later do not support large files by default,
4590 # so use the C compiler's -n32 option if that helps.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <sys/types.h>
4594 /* Check that off_t can represent 2**63 - 1 correctly.
4595 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4596 since some C++ compilers masquerading as C compilers
4597 incorrectly reject 9223372036854775807. */
4598 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4599 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4600 && LARGE_OFF_T % 2147483647 == 1)
4601 ? 1 : -1];
4602 int
4603 main ()
4604 {
4605
4606 ;
4607 return 0;
4608 }
4609 _ACEOF
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611 break
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext
4614 CC="$CC -n32"
4615 if ac_fn_c_try_compile "$LINENO"; then :
4616 ac_cv_sys_largefile_CC=' -n32'; break
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext
4619 break
4620 done
4621 CC=$ac_save_CC
4622 rm -f conftest.$ac_ext
4623 fi
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4626 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4627 if test "$ac_cv_sys_largefile_CC" != no; then
4628 CC=$CC$ac_cv_sys_largefile_CC
4629 fi
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4632 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4633 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 while :; do
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 #include <sys/types.h>
4640 /* Check that off_t can represent 2**63 - 1 correctly.
4641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4642 since some C++ compilers masquerading as C compilers
4643 incorrectly reject 9223372036854775807. */
4644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4646 && LARGE_OFF_T % 2147483647 == 1)
4647 ? 1 : -1];
4648 int
4649 main ()
4650 {
4651
4652 ;
4653 return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657 ac_cv_sys_file_offset_bits=no; break
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 #define _FILE_OFFSET_BITS 64
4663 #include <sys/types.h>
4664 /* Check that off_t can represent 2**63 - 1 correctly.
4665 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4666 since some C++ compilers masquerading as C compilers
4667 incorrectly reject 9223372036854775807. */
4668 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4669 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4670 && LARGE_OFF_T % 2147483647 == 1)
4671 ? 1 : -1];
4672 int
4673 main ()
4674 {
4675
4676 ;
4677 return 0;
4678 }
4679 _ACEOF
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681 ac_cv_sys_file_offset_bits=64; break
4682 fi
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 ac_cv_sys_file_offset_bits=unknown
4685 break
4686 done
4687 fi
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4689 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4690 case $ac_cv_sys_file_offset_bits in #(
4691 no | unknown) ;;
4692 *)
4693 cat >>confdefs.h <<_ACEOF
4694 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4695 _ACEOF
4696 ;;
4697 esac
4698 rm -rf conftest*
4699 if test $ac_cv_sys_file_offset_bits = unknown; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4701 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4702 if test "${ac_cv_sys_large_files+set}" = set; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 while :; do
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708 #include <sys/types.h>
4709 /* Check that off_t can represent 2**63 - 1 correctly.
4710 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4711 since some C++ compilers masquerading as C compilers
4712 incorrectly reject 9223372036854775807. */
4713 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4714 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4715 && LARGE_OFF_T % 2147483647 == 1)
4716 ? 1 : -1];
4717 int
4718 main ()
4719 {
4720
4721 ;
4722 return 0;
4723 }
4724 _ACEOF
4725 if ac_fn_c_try_compile "$LINENO"; then :
4726 ac_cv_sys_large_files=no; break
4727 fi
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731 #define _LARGE_FILES 1
4732 #include <sys/types.h>
4733 /* Check that off_t can represent 2**63 - 1 correctly.
4734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4735 since some C++ compilers masquerading as C compilers
4736 incorrectly reject 9223372036854775807. */
4737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4739 && LARGE_OFF_T % 2147483647 == 1)
4740 ? 1 : -1];
4741 int
4742 main ()
4743 {
4744
4745 ;
4746 return 0;
4747 }
4748 _ACEOF
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750 ac_cv_sys_large_files=1; break
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 ac_cv_sys_large_files=unknown
4754 break
4755 done
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4758 $as_echo "$ac_cv_sys_large_files" >&6; }
4759 case $ac_cv_sys_large_files in #(
4760 no | unknown) ;;
4761 *)
4762 cat >>confdefs.h <<_ACEOF
4763 #define _LARGE_FILES $ac_cv_sys_large_files
4764 _ACEOF
4765 ;;
4766 esac
4767 rm -rf conftest*
4768 fi
4769 fi
4770
4771
4772
4773
4774
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4776 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4777 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 am_cv_prog_cc_stdc=no
4781 ac_save_CC="$CC"
4782 # Don't try gcc -ansi; that turns off useful extensions and
4783 # breaks some systems' header files.
4784 # AIX -qlanglvl=ansi
4785 # Ultrix and OSF/1 -std1
4786 # HP-UX 10.20 and later -Ae
4787 # HP-UX older versions -Aa -D_HPUX_SOURCE
4788 # SVR4 -Xc -D__EXTENSIONS__
4789 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4790 do
4791 CC="$ac_save_CC $ac_arg"
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 #include <stdarg.h>
4795 #include <stdio.h>
4796 #include <sys/types.h>
4797 #include <sys/stat.h>
4798 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4799 struct buf { int x; };
4800 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4801 static char *e (p, i)
4802 char **p;
4803 int i;
4804 {
4805 return p[i];
4806 }
4807 static char *f (char * (*g) (char **, int), char **p, ...)
4808 {
4809 char *s;
4810 va_list v;
4811 va_start (v,p);
4812 s = g (p, va_arg (v,int));
4813 va_end (v);
4814 return s;
4815 }
4816 int test (int i, double x);
4817 struct s1 {int (*f) (int a);};
4818 struct s2 {int (*f) (double a);};
4819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4820 int argc;
4821 char **argv;
4822
4823 int
4824 main ()
4825 {
4826
4827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4828
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 if ac_fn_c_try_compile "$LINENO"; then :
4834 am_cv_prog_cc_stdc="$ac_arg"; break
4835 fi
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 done
4838 CC="$ac_save_CC"
4839
4840 fi
4841
4842 if test -z "$am_cv_prog_cc_stdc"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4844 $as_echo "none needed" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4847 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4848 fi
4849 case "x$am_cv_prog_cc_stdc" in
4850 x|xno) ;;
4851 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4852 esac
4853
4854 # expand $ac_aux_dir to an absolute path
4855 am_aux_dir=`cd $ac_aux_dir && pwd`
4856
4857 if test x"${install_sh}" != xset; then
4858 case $am_aux_dir in
4859 *\ * | *\ *)
4860 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4861 *)
4862 install_sh="\${SHELL} $am_aux_dir/install-sh"
4863 esac
4864 fi
4865
4866 # Installed binaries are usually stripped using `strip' when the user
4867 # run `make install-strip'. However `strip' might not be the right
4868 # tool to use in cross-compilation environments, therefore Automake
4869 # will honor the `STRIP' environment variable to overrule this program.
4870 if test "$cross_compiling" != no; then
4871 if test -n "$ac_tool_prefix"; then
4872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4873 set dummy ${ac_tool_prefix}strip; ac_word=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if test "${ac_cv_prog_STRIP+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 if test -n "$STRIP"; then
4880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4881 else
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4884 do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4892 fi
4893 done
4894 done
4895 IFS=$as_save_IFS
4896
4897 fi
4898 fi
4899 STRIP=$ac_cv_prog_STRIP
4900 if test -n "$STRIP"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4902 $as_echo "$STRIP" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4906 fi
4907
4908
4909 fi
4910 if test -z "$ac_cv_prog_STRIP"; then
4911 ac_ct_STRIP=$STRIP
4912 # Extract the first word of "strip", so it can be a program name with args.
4913 set dummy strip; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -n "$ac_ct_STRIP"; then
4920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4929 ac_cv_prog_ac_ct_STRIP="strip"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933 done
4934 done
4935 IFS=$as_save_IFS
4936
4937 fi
4938 fi
4939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4940 if test -n "$ac_ct_STRIP"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4942 $as_echo "$ac_ct_STRIP" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948 if test "x$ac_ct_STRIP" = x; then
4949 STRIP=":"
4950 else
4951 case $cross_compiling:$ac_tool_warned in
4952 yes:)
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4955 ac_tool_warned=yes ;;
4956 esac
4957 STRIP=$ac_ct_STRIP
4958 fi
4959 else
4960 STRIP="$ac_cv_prog_STRIP"
4961 fi
4962
4963 fi
4964 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4965
4966
4967 ac_aux_dir=
4968 for ac_dir in .. "$srcdir"/..; do
4969 for ac_t in install-sh install.sh shtool; do
4970 if test -f "$ac_dir/$ac_t"; then
4971 ac_aux_dir=$ac_dir
4972 ac_install_sh="$ac_aux_dir/$ac_t -c"
4973 break 2
4974 fi
4975 done
4976 done
4977 if test -z "$ac_aux_dir"; then
4978 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4979 fi
4980
4981 # These three variables are undocumented and unsupported,
4982 # and are intended to be withdrawn in a future Autoconf release.
4983 # They can cause serious problems if a builder's source tree is in a directory
4984 # whose full name contains unusual characters.
4985 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4986 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4987 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4988
4989
4990
4991 test "$program_prefix" != NONE &&
4992 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4993 # Use a double $ so make ignores it.
4994 test "$program_suffix" != NONE &&
4995 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4996 # Double any \ or $.
4997 # By default was `s,x,x', remove it if useless.
4998 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4999 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5000
5001
5002 # See if we are building with C++, and substitute COMPILER.
5003
5004 # Check whether --enable-build-with-cxx was given.
5005 if test "${enable_build_with_cxx+set}" = set; then :
5006 enableval=$enable_build_with_cxx; case $enableval in
5007 yes | no)
5008 ;;
5009 *)
5010 as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
5011 esac
5012 else
5013 enable_build_with_cxx=no
5014 fi
5015
5016
5017 if test "$enable_build_with_cxx" = "yes"; then
5018 # We're using -fpermissive as shortcut for now.
5019 COMPILER='$(CXX) -fpermissive'
5020 else
5021 COMPILER='$(CC)'
5022 fi
5023
5024
5025
5026 # Dependency checking.
5027 rm -rf .tst 2>/dev/null
5028 mkdir .tst 2>/dev/null
5029 if test -d .tst; then
5030 am__leading_dot=.
5031 else
5032 am__leading_dot=_
5033 fi
5034 rmdir .tst 2>/dev/null
5035
5036 DEPDIR="${am__leading_dot}deps"
5037
5038 ac_config_commands="$ac_config_commands depdir"
5039
5040
5041 depcc="$CC" am_compiler_list=
5042
5043 am_depcomp=$ac_aux_dir/depcomp
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5045 $as_echo_n "checking dependency style of $depcc... " >&6; }
5046 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -f "$am_depcomp"; then
5050 # We make a subdir and do the tests there. Otherwise we can end up
5051 # making bogus files that we don't know about and never remove. For
5052 # instance it was reported that on HP-UX the gcc test will end up
5053 # making a dummy file named `D' -- because `-MD' means `put the output
5054 # in D'.
5055 mkdir conftest.dir
5056 # Copy depcomp to subdir because otherwise we won't find it if we're
5057 # using a relative directory.
5058 cp "$am_depcomp" conftest.dir
5059 cd conftest.dir
5060 # We will build objects and dependencies in a subdirectory because
5061 # it helps to detect inapplicable dependency modes. For instance
5062 # both Tru64's cc and ICC support -MD to output dependencies as a
5063 # side effect of compilation, but ICC will put the dependencies in
5064 # the current directory while Tru64 will put them in the object
5065 # directory.
5066 mkdir sub
5067
5068 am_cv_CC_dependencies_compiler_type=none
5069 if test "$am_compiler_list" = ""; then
5070 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5071 fi
5072 for depmode in $am_compiler_list; do
5073 if test $depmode = none; then break; fi
5074
5075 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5076 # Setup a source with many dependencies, because some compilers
5077 # like to wrap large dependency lists on column 80 (with \), and
5078 # we should not choose a depcomp mode which is confused by this.
5079 #
5080 # We need to recreate these files for each test, as the compiler may
5081 # overwrite some of them when testing with obscure command lines.
5082 # This happens at least with the AIX C compiler.
5083 : > sub/conftest.c
5084 for i in 1 2 3 4 5 6; do
5085 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5086 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5087 # Solaris 8's {/usr,}/bin/sh.
5088 touch sub/conftst$i.h
5089 done
5090 echo "include sub/conftest.Po" > confmf
5091
5092 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5093 # mode. It turns out that the SunPro C++ compiler does not properly
5094 # handle `-M -o', and we need to detect this.
5095 depcmd="depmode=$depmode \
5096 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5097 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5098 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5099 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5100 if env $depcmd > conftest.err 2>&1 &&
5101 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5102 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5103 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5104 # icc doesn't choke on unknown options, it will just issue warnings
5105 # or remarks (even with -Werror). So we grep stderr for any message
5106 # that says an option was ignored or not supported.
5107 # When given -MP, icc 7.0 and 7.1 complain thusly:
5108 # icc: Command line warning: ignoring option '-M'; no argument required
5109 # The diagnosis changed in icc 8.0:
5110 # icc: Command line remark: option '-MP' not supported
5111 if (grep 'ignoring option' conftest.err ||
5112 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5113 am_cv_CC_dependencies_compiler_type=$depmode
5114 $as_echo "$as_me:$LINENO: success" >&5
5115 break
5116 fi
5117 fi
5118 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5119 sed -e 's/^/| /' < conftest.err >&5
5120 done
5121
5122 cd ..
5123 rm -rf conftest.dir
5124 else
5125 am_cv_CC_dependencies_compiler_type=none
5126 fi
5127
5128 fi
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5130 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5131 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
5132 then as_fn_error "no usable dependency style found" "$LINENO" 5
5133 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5134
5135 fi
5136
5137
5138 # Check for the 'make' the user wants to use.
5139 for ac_prog in make
5140 do
5141 # Extract the first word of "$ac_prog", so it can be a program name with args.
5142 set dummy $ac_prog; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if test "${ac_cv_prog_MAKE+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 if test -n "$MAKE"; then
5149 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_prog_MAKE="$ac_prog"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162 done
5163 done
5164 IFS=$as_save_IFS
5165
5166 fi
5167 fi
5168 MAKE=$ac_cv_prog_MAKE
5169 if test -n "$MAKE"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5171 $as_echo "$MAKE" >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176
5177
5178 test -n "$MAKE" && break
5179 done
5180
5181 MAKE_IS_GNU=
5182 case "`$MAKE --version 2>&1 | sed 1q`" in
5183 *GNU*)
5184 MAKE_IS_GNU=yes
5185 ;;
5186 esac
5187 if test "$MAKE_IS_GNU" = yes; then
5188 GMAKE_TRUE=
5189 GMAKE_FALSE='#'
5190 else
5191 GMAKE_TRUE='#'
5192 GMAKE_FALSE=
5193 fi
5194
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5196 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5197 set x ${MAKE-make}
5198 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5199 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 cat >conftest.make <<\_ACEOF
5203 SHELL = /bin/sh
5204 all:
5205 @echo '@@@%%%=$(MAKE)=@@@%%%'
5206 _ACEOF
5207 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5208 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5209 *@@@%%%=?*=@@@%%%*)
5210 eval ac_cv_prog_make_${ac_make}_set=yes;;
5211 *)
5212 eval ac_cv_prog_make_${ac_make}_set=no;;
5213 esac
5214 rm -f conftest.make
5215 fi
5216 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5218 $as_echo "yes" >&6; }
5219 SET_MAKE=
5220 else
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5223 SET_MAKE="MAKE=${MAKE-make}"
5224 fi
5225
5226
5227 gnulib_extra_configure_args=
5228 # If large-file support is disabled, make sure gnulib does the same.
5229 if test "$enable_largefile" = no; then
5230 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
5231 fi
5232
5233 # Configure gnulib. We need to build gnulib under some other
5234 # directory not "gnulib", to avoid the problem of both GDB and
5235 # GDBserver wanting to build it in the same directory, when building
5236 # in the source dir.
5237
5238 in_src="gnulib"
5239 in_build="build-gnulib"
5240 in_extra_args="$gnulib_extra_configure_args"
5241
5242 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5243 # so they do not pile up.
5244 ac_sub_configure_args=
5245 ac_prev=
5246 eval "set x $ac_configure_args"
5247 shift
5248 for ac_arg
5249 do
5250 if test -n "$ac_prev"; then
5251 ac_prev=
5252 continue
5253 fi
5254 case $ac_arg in
5255 -cache-file | --cache-file | --cache-fil | --cache-fi \
5256 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5257 ac_prev=cache_file ;;
5258 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5259 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5260 | --c=*)
5261 ;;
5262 --config-cache | -C)
5263 ;;
5264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5265 ac_prev=srcdir ;;
5266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5267 ;;
5268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5269 ac_prev=prefix ;;
5270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5271 ;;
5272 --disable-option-checking)
5273 ;;
5274 *)
5275 case $ac_arg in
5276 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5277 esac
5278 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5279 esac
5280 done
5281
5282 # Always prepend --prefix to ensure using the same prefix
5283 # in subdir configurations.
5284 ac_arg="--prefix=$prefix"
5285 case $ac_arg in
5286 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5287 esac
5288 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
5289
5290 # Pass --silent
5291 if test "$silent" = yes; then
5292 ac_sub_configure_args="--silent $ac_sub_configure_args"
5293 fi
5294
5295 # Always prepend --disable-option-checking to silence warnings, since
5296 # different subdirs can have different --enable and --with options.
5297 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
5298
5299 ac_popdir=`pwd`
5300 ac_dir=$in_build
5301
5302 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5303 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5304 $as_echo "$ac_msg" >&6
5305 as_dir="$ac_dir"; as_fn_mkdir_p
5306
5307 case $srcdir in
5308 [\\/]* | ?:[\\/]* )
5309 ac_srcdir=$srcdir/$in_src ;;
5310 *) # Relative name.
5311 ac_srcdir=../$srcdir/$in_src ;;
5312 esac
5313
5314 cd "$ac_dir"
5315
5316 ac_sub_configure=$ac_srcdir/configure
5317
5318 # Make the cache file name correct relative to the subdirectory.
5319 case $cache_file in
5320 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5321 *) # Relative name.
5322 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5323 esac
5324
5325 if test -n "$in_extra_args"; then
5326 # Add the extra args at the end.
5327 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
5328 fi
5329
5330 { $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
5331 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5332 # The eval makes quoting arguments work.
5333 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5334 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5335 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5336
5337 cd "$ac_popdir"
5338
5339
5340
5341 CONFIG_OBS=
5342 CONFIG_DEPS=
5343 CONFIG_SRCS=
5344 ENABLE_CFLAGS=
5345
5346 CONFIG_ALL=
5347 CONFIG_CLEAN=
5348 CONFIG_INSTALL=
5349 CONFIG_UNINSTALL=
5350
5351 # If we haven't got the data from the intl directory,
5352 # assume NLS is disabled.
5353 USE_NLS=no
5354 LIBINTL=
5355 LIBINTL_DEP=
5356 INCINTL=
5357 XGETTEXT=
5358 GMSGFMT=
5359 POSUB=
5360
5361 if test -f ../intl/config.intl; then
5362 . ../intl/config.intl
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5365 $as_echo_n "checking whether NLS is requested... " >&6; }
5366 if test x"$USE_NLS" != xyes; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5371 $as_echo "yes" >&6; }
5372
5373 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5374
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5377 $as_echo_n "checking for catalogs to be installed... " >&6; }
5378 # Look for .po and .gmo files in the source directory.
5379 CATALOGS=
5380 XLINGUAS=
5381 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5382 # If there aren't any .gmo files the shell will give us the
5383 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5384 # weeded out.
5385 case "$cat" in *\**)
5386 continue;;
5387 esac
5388 # The quadruple backslash is collapsed to a double backslash
5389 # by the backticks, then collapsed again by the double quotes,
5390 # leaving us with one backslash in the sed expression (right
5391 # before the dot that mustn't act as a wildcard).
5392 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5393 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5394 # The user is allowed to set LINGUAS to a list of languages to
5395 # install catalogs for. If it's empty that means "all of them."
5396 if test "x$LINGUAS" = x; then
5397 CATALOGS="$CATALOGS $cat"
5398 XLINGUAS="$XLINGUAS $lang"
5399 else
5400 case "$LINGUAS" in *$lang*)
5401 CATALOGS="$CATALOGS $cat"
5402 XLINGUAS="$XLINGUAS $lang"
5403 ;;
5404 esac
5405 fi
5406 done
5407 LINGUAS="$XLINGUAS"
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5409 $as_echo "$LINGUAS" >&6; }
5410
5411
5412 DATADIRNAME=share
5413
5414 INSTOBJEXT=.mo
5415
5416 GENCAT=gencat
5417
5418 CATOBJEXT=.gmo
5419
5420 fi
5421
5422 localedir='${datadir}/locale'
5423
5424
5425 if test x"$USE_NLS" = xyes; then
5426 CONFIG_ALL="$CONFIG_ALL all-po"
5427 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5428 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5429 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5430 fi
5431
5432 GNULIB=build-gnulib/import
5433
5434 # For Makefile dependencies.
5435 GNULIB_STDINT_H=
5436 if test x"$STDINT_H" != x; then
5437 GNULIB_STDINT_H=$GNULIB/$STDINT_H
5438 fi
5439
5440
5441 PACKAGE=gdb
5442
5443 cat >>confdefs.h <<_ACEOF
5444 #define PACKAGE "$PACKAGE"
5445 _ACEOF
5446
5447
5448
5449 # We never need to detect it in this sub-configure.
5450 # But preserve it for config.status --recheck.
5451
5452
5453
5454 MAKEINFO_EXTRA_FLAGS=""
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5456 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5457 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5461 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5462 gdb_cv_have_makeinfo_click=yes
5463 else
5464 gdb_cv_have_makeinfo_click=no
5465 fi
5466 fi
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5468 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5469 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
5470 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5471 fi
5472
5473
5474
5475
5476 # Check whether --with-separate-debug-dir was given.
5477 if test "${with_separate_debug_dir+set}" = set; then :
5478 withval=$with_separate_debug_dir;
5479 DEBUGDIR=$withval
5480 else
5481 DEBUGDIR=${libdir}/debug
5482 fi
5483
5484
5485 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5487 ac_define_dir=`eval echo $DEBUGDIR`
5488 ac_define_dir=`eval echo $ac_define_dir`
5489
5490 cat >>confdefs.h <<_ACEOF
5491 #define DEBUGDIR "$ac_define_dir"
5492 _ACEOF
5493
5494
5495
5496
5497 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5498 if test "x$prefix" = xNONE; then
5499 test_prefix=/usr/local
5500 else
5501 test_prefix=$prefix
5502 fi
5503 else
5504 test_prefix=$exec_prefix
5505 fi
5506 value=0
5507 case ${ac_define_dir} in
5508 "${test_prefix}"|"${test_prefix}/"*|\
5509 '${exec_prefix}'|'${exec_prefix}/'*)
5510 value=1
5511 ;;
5512 esac
5513
5514 cat >>confdefs.h <<_ACEOF
5515 #define DEBUGDIR_RELOCATABLE $value
5516 _ACEOF
5517
5518
5519
5520
5521 # We can't pass paths as command line arguments.
5522 # Mingw32 tries to be clever and will convert the paths for us.
5523 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5524 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5525 # This breaks GDB's relocatable path conversions since paths passed in
5526 # config.h would not get so translated, the path prefixes no longer match.
5527
5528 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5529 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5530 ac_define_dir=`eval echo $bindir`
5531 ac_define_dir=`eval echo $ac_define_dir`
5532
5533 cat >>confdefs.h <<_ACEOF
5534 #define BINDIR "$ac_define_dir"
5535 _ACEOF
5536
5537
5538
5539 # GDB's datadir relocation
5540
5541
5542
5543 # Check whether --with-gdb-datadir was given.
5544 if test "${with_gdb_datadir+set}" = set; then :
5545 withval=$with_gdb_datadir;
5546 GDB_DATADIR=$withval
5547 else
5548 GDB_DATADIR=${datadir}/gdb
5549 fi
5550
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 $GDB_DATADIR`
5555 ac_define_dir=`eval echo $ac_define_dir`
5556
5557 cat >>confdefs.h <<_ACEOF
5558 #define GDB_DATADIR "$ac_define_dir"
5559 _ACEOF
5560
5561
5562
5563
5564 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5565 if test "x$prefix" = xNONE; then
5566 test_prefix=/usr/local
5567 else
5568 test_prefix=$prefix
5569 fi
5570 else
5571 test_prefix=$exec_prefix
5572 fi
5573 value=0
5574 case ${ac_define_dir} in
5575 "${test_prefix}"|"${test_prefix}/"*|\
5576 '${exec_prefix}'|'${exec_prefix}/'*)
5577 value=1
5578 ;;
5579 esac
5580
5581 cat >>confdefs.h <<_ACEOF
5582 #define GDB_DATADIR_RELOCATABLE $value
5583 _ACEOF
5584
5585
5586
5587
5588
5589 # Check whether --with-relocated-sources was given.
5590 if test "${with_relocated_sources+set}" = set; then :
5591 withval=$with_relocated_sources; reloc_srcdir="${withval}"
5592
5593 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5595 ac_define_dir=`eval echo $reloc_srcdir`
5596 ac_define_dir=`eval echo $ac_define_dir`
5597
5598 cat >>confdefs.h <<_ACEOF
5599 #define RELOC_SRCDIR "$ac_define_dir"
5600 _ACEOF
5601
5602
5603
5604 fi
5605
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5608 $as_echo_n "checking for default auto-load directory... " >&6; }
5609
5610 # Check whether --with-auto-load-dir was given.
5611 if test "${with_auto_load_dir+set}" = set; then :
5612 withval=$with_auto_load_dir;
5613 else
5614 with_auto_load_dir='$debugdir:$datadir/auto-load'
5615 fi
5616
5617 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5618
5619 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5621 ac_define_dir=`eval echo $escape_dir`
5622 ac_define_dir=`eval echo $ac_define_dir`
5623
5624 cat >>confdefs.h <<_ACEOF
5625 #define AUTO_LOAD_DIR "$ac_define_dir"
5626 _ACEOF
5627
5628
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5630 $as_echo "$with_auto_load_dir" >&6; }
5631
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5633 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5634
5635 # Check whether --with-auto-load-safe-path was given.
5636 if test "${with_auto_load_safe_path+set}" = set; then :
5637 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5638 with_auto_load_safe_path="/"
5639 fi
5640 else
5641 with_auto_load_safe_path="$with_auto_load_dir"
5642 fi
5643
5644 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5645
5646 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5648 ac_define_dir=`eval echo $escape_dir`
5649 ac_define_dir=`eval echo $ac_define_dir`
5650
5651 cat >>confdefs.h <<_ACEOF
5652 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5653 _ACEOF
5654
5655
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5657 $as_echo "$with_auto_load_safe_path" >&6; }
5658
5659
5660
5661 subdirs="$subdirs testsuite"
5662
5663
5664 # Check whether to support alternative target configurations
5665 # Check whether --enable-targets was given.
5666 if test "${enable_targets+set}" = set; then :
5667 enableval=$enable_targets; case "${enableval}" in
5668 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5669 ;;
5670 no) enable_targets= ;;
5671 *) enable_targets=$enableval ;;
5672 esac
5673 fi
5674
5675
5676 # Check whether to enable 64-bit support on 32-bit hosts
5677 # Check whether --enable-64-bit-bfd was given.
5678 if test "${enable_64_bit_bfd+set}" = set; then :
5679 enableval=$enable_64_bit_bfd; case "${enableval}" in
5680 yes) want64=true ;;
5681 no) want64=false ;;
5682 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5683 esac
5684 else
5685 want64=false
5686 fi
5687
5688 # Provide defaults for some variables set by the per-host and per-target
5689 # configuration.
5690 gdb_host_obs=posix-hdep.o
5691
5692 if test "${target}" = "${host}"; then
5693 gdb_native=yes
5694 else
5695 gdb_native=no
5696 fi
5697
5698 . $srcdir/configure.host
5699
5700 # Add in the common host objects.
5701 . $srcdir/common/common.host
5702 gdb_host_obs="$gdb_host_obs $common_host_obs"
5703
5704 # Accumulate some settings from configure.tgt over all enabled targets
5705
5706 TARGET_OBS=
5707 all_targets=
5708 HAVE_NATIVE_GCORE_TARGET=
5709
5710 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5711 do
5712 if test "$targ_alias" = "all"; then
5713 all_targets=true
5714 else
5715 # Canonicalize the secondary target names.
5716 result=`$ac_config_sub $targ_alias 2>/dev/null`
5717 if test -n "$result"; then
5718 targ=$result
5719 else
5720 targ=$targ_alias
5721 fi
5722
5723 . ${srcdir}/configure.tgt
5724
5725 if test -z "${gdb_target_obs}"; then :
5726 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5727 fi
5728
5729 # Target-specific object files
5730 for i in ${gdb_target_obs}; do
5731 case " $TARGET_OBS " in
5732 *" ${i} "*) ;;
5733 *)
5734 TARGET_OBS="$TARGET_OBS ${i}"
5735 ;;
5736 esac
5737 done
5738
5739 # Check whether this target needs 64-bit CORE_ADDR
5740 if test x${want64} = xfalse; then
5741 . ${srcdir}/../bfd/config.bfd
5742 fi
5743
5744 # Check whether this target is native and supports gcore.
5745 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5746 && $gdb_have_gcore; then
5747 HAVE_NATIVE_GCORE_TARGET=1
5748 fi
5749 fi
5750 done
5751
5752 if test x${all_targets} = xtrue; then
5753
5754 # We want all 64-bit targets if we either:
5755 # - run on a 64-bit host or
5756 # - already require 64-bit support for some other target or
5757 # - the --enable-64-bit-bfd option was supplied
5758 # Otherwise we only support all 32-bit targets.
5759 #
5760 # NOTE: This test must be in sync with the corresponding
5761 # tests in BFD!
5762
5763 if test x${want64} = xfalse; then
5764 # The cast to long int works around a bug in the HP C Compiler
5765 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5766 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5767 # This bug is HP SR number 8606223364.
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5769 $as_echo_n "checking size of long... " >&6; }
5770 if test "${ac_cv_sizeof_long+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5774
5775 else
5776 if test "$ac_cv_type_long" = yes; then
5777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5779 { as_fn_set_status 77
5780 as_fn_error "cannot compute sizeof (long)
5781 See \`config.log' for more details." "$LINENO" 5; }; }
5782 else
5783 ac_cv_sizeof_long=0
5784 fi
5785 fi
5786
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5789 $as_echo "$ac_cv_sizeof_long" >&6; }
5790
5791
5792
5793 cat >>confdefs.h <<_ACEOF
5794 #define SIZEOF_LONG $ac_cv_sizeof_long
5795 _ACEOF
5796
5797
5798 if test "x${ac_cv_sizeof_long}" = "x8"; then
5799 want64=true
5800 fi
5801 fi
5802 if test x${want64} = xtrue; then
5803 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5804 else
5805 TARGET_OBS='$(ALL_TARGET_OBS)'
5806 fi
5807 fi
5808
5809
5810
5811
5812 # For other settings, only the main target counts.
5813 gdb_sim=
5814 gdb_osabi=
5815 build_gdbserver=
5816 targ=$target; . ${srcdir}/configure.tgt
5817
5818 # Fetch the default architecture and default target vector from BFD.
5819 targ=$target; . $srcdir/../bfd/config.bfd
5820
5821 # We only want the first architecture, so strip off the others if
5822 # there is more than one.
5823 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5824
5825 if test "x$targ_archs" != x; then
5826
5827 cat >>confdefs.h <<_ACEOF
5828 #define DEFAULT_BFD_ARCH $targ_archs
5829 _ACEOF
5830
5831 fi
5832 if test "x$targ_defvec" != x; then
5833
5834 cat >>confdefs.h <<_ACEOF
5835 #define DEFAULT_BFD_VEC $targ_defvec
5836 _ACEOF
5837
5838 fi
5839
5840 # The CLI cannot be disabled yet, but may be in the future.
5841
5842 # Enable CLI.
5843 # Check whether --enable-gdbcli was given.
5844 if test "${enable_gdbcli+set}" = set; then :
5845 enableval=$enable_gdbcli; case $enableval in
5846 yes)
5847 ;;
5848 no)
5849 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5850 *)
5851 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5852 esac
5853 else
5854 enable_gdbcli=yes
5855 fi
5856
5857 if test x"$enable_gdbcli" = xyes; then
5858 if test -d $srcdir/cli; then
5859 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5860 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5861 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5862 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5863 fi
5864 fi
5865
5866 # Enable MI.
5867 # Check whether --enable-gdbmi was given.
5868 if test "${enable_gdbmi+set}" = set; then :
5869 enableval=$enable_gdbmi; case $enableval in
5870 yes | no)
5871 ;;
5872 *)
5873 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5874 esac
5875 else
5876 enable_gdbmi=yes
5877 fi
5878
5879 if test x"$enable_gdbmi" = xyes; then
5880 if test -d $srcdir/mi; then
5881 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5882 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5883 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5884 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5885 fi
5886 fi
5887
5888 # Enable TUI.
5889 # Check whether --enable-tui was given.
5890 if test "${enable_tui+set}" = set; then :
5891 enableval=$enable_tui; case $enableval in
5892 yes | no | auto)
5893 ;;
5894 *)
5895 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5896 esac
5897 else
5898 enable_tui=auto
5899 fi
5900
5901
5902 # Enable gdbtk.
5903 # Check whether --enable-gdbtk was given.
5904 if test "${enable_gdbtk+set}" = set; then :
5905 enableval=$enable_gdbtk; case $enableval in
5906 yes | no)
5907 ;;
5908 *)
5909 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5910 esac
5911 else
5912 if test -d $srcdir/gdbtk; then
5913 enable_gdbtk=yes
5914 else
5915 enable_gdbtk=no
5916 fi
5917 fi
5918
5919 # We unconditionally disable gdbtk tests on selected platforms.
5920 case $host_os in
5921 go32* | windows*)
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5923 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5924 enable_gdbtk=no ;;
5925 esac
5926
5927 # Libunwind support for ia64.
5928
5929
5930 # Check whether --with-libunwind-ia64 was given.
5931 if test "${with_libunwind_ia64+set}" = set; then :
5932 withval=$with_libunwind_ia64;
5933 else
5934 with_libunwind_ia64=auto
5935 fi
5936
5937
5938 # Backward compatibility option.
5939 if test "${with_libunwind+set}" = set; then
5940 if test x"$with_libunwind_ia64" != xauto; then
5941 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5942 fi
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5944 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5945 with_libunwind_ia64="$with_libunwind"
5946 fi
5947
5948 case "$with_libunwind_ia64" in
5949 yes | no)
5950 ;;
5951 auto)
5952 for ac_header in libunwind-ia64.h
5953 do :
5954 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5955 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5956 cat >>confdefs.h <<_ACEOF
5957 #define HAVE_LIBUNWIND_IA64_H 1
5958 _ACEOF
5959
5960 fi
5961
5962 done
5963
5964 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5965 ;;
5966 *)
5967 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5968 ;;
5969 esac
5970
5971 if test x"$with_libunwind_ia64" = xyes; then
5972 for ac_header in libunwind-ia64.h
5973 do :
5974 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5975 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5976 cat >>confdefs.h <<_ACEOF
5977 #define HAVE_LIBUNWIND_IA64_H 1
5978 _ACEOF
5979
5980 fi
5981
5982 done
5983
5984 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5985 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5986 fi
5987 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5988 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5989 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5990 fi
5991
5992 opt_curses=no
5993
5994 # Check whether --with-curses was given.
5995 if test "${with_curses+set}" = set; then :
5996 withval=$with_curses; opt_curses=$withval
5997 fi
5998
5999
6000 prefer_curses=no
6001 if test "$opt_curses" = "yes"; then
6002 prefer_curses=yes
6003 fi
6004
6005 # Profiling support.
6006 # Check whether --enable-profiling was given.
6007 if test "${enable_profiling+set}" = set; then :
6008 enableval=$enable_profiling; case $enableval in
6009 yes | no)
6010 ;;
6011 *)
6012 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6013 esac
6014 else
6015 enable_profiling=no
6016 fi
6017
6018
6019 for ac_func in monstartup _mcleanup
6020 do :
6021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6022 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6023 eval as_val=\$$as_ac_var
6024 if test "x$as_val" = x""yes; then :
6025 cat >>confdefs.h <<_ACEOF
6026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6027 _ACEOF
6028
6029 fi
6030 done
6031
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6033 $as_echo_n "checking for _etext... " >&6; }
6034 if test "${ac_cv_var__etext+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039 #include <stdlib.h>
6040 extern char _etext;
6041
6042 int
6043 main ()
6044 {
6045 free (&_etext);
6046 ;
6047 return 0;
6048 }
6049 _ACEOF
6050 if ac_fn_c_try_link "$LINENO"; then :
6051 ac_cv_var__etext=yes
6052 else
6053 ac_cv_var__etext=no
6054 fi
6055 rm -f core conftest.err conftest.$ac_objext \
6056 conftest$ac_exeext conftest.$ac_ext
6057 fi
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6059 $as_echo "$ac_cv_var__etext" >&6; }
6060 if test $ac_cv_var__etext = yes; then
6061
6062 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6063
6064 fi
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6066 $as_echo_n "checking for etext... " >&6; }
6067 if test "${ac_cv_var_etext+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 #include <stdlib.h>
6073 extern char etext;
6074
6075 int
6076 main ()
6077 {
6078 free (&etext);
6079 ;
6080 return 0;
6081 }
6082 _ACEOF
6083 if ac_fn_c_try_link "$LINENO"; then :
6084 ac_cv_var_etext=yes
6085 else
6086 ac_cv_var_etext=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext \
6089 conftest$ac_exeext conftest.$ac_ext
6090 fi
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6092 $as_echo "$ac_cv_var_etext" >&6; }
6093 if test $ac_cv_var_etext = yes; then
6094
6095 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6096
6097 fi
6098 if test "$enable_profiling" = yes ; then
6099 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6100 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6101 fi
6102 PROFILE_CFLAGS=-pg
6103 OLD_CFLAGS="$CFLAGS"
6104 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6105
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6107 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6108 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113
6114 int
6115 main ()
6116 {
6117 int x;
6118 ;
6119 return 0;
6120 }
6121 _ACEOF
6122 if ac_fn_c_try_compile "$LINENO"; then :
6123 ac_cv_cc_supports_pg=yes
6124 else
6125 ac_cv_cc_supports_pg=no
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128 fi
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6130 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6131
6132 if test $ac_cv_cc_supports_pg = no; then
6133 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6134 fi
6135
6136 CFLAGS="$OLD_CFLAGS"
6137 fi
6138
6139
6140
6141 # Check whether --with-pkgversion was given.
6142 if test "${with_pkgversion+set}" = set; then :
6143 withval=$with_pkgversion; case "$withval" in
6144 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6145 no) PKGVERSION= ;;
6146 *) PKGVERSION="($withval) " ;;
6147 esac
6148 else
6149 PKGVERSION="(GDB) "
6150
6151 fi
6152
6153
6154
6155
6156
6157 # Check whether --with-bugurl was given.
6158 if test "${with_bugurl+set}" = set; then :
6159 withval=$with_bugurl; case "$withval" in
6160 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6161 no) BUGURL=
6162 ;;
6163 *) BUGURL="$withval"
6164 ;;
6165 esac
6166 else
6167 BUGURL="http://www.gnu.org/software/gdb/bugs/"
6168
6169 fi
6170
6171 case ${BUGURL} in
6172 "")
6173 REPORT_BUGS_TO=
6174 REPORT_BUGS_TEXI=
6175 ;;
6176 *)
6177 REPORT_BUGS_TO="<$BUGURL>"
6178 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6179 ;;
6180 esac;
6181
6182
6183
6184
6185 cat >>confdefs.h <<_ACEOF
6186 #define PKGVERSION "$PKGVERSION"
6187 _ACEOF
6188
6189
6190 cat >>confdefs.h <<_ACEOF
6191 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6192 _ACEOF
6193
6194
6195 # --------------------- #
6196 # Checks for programs. #
6197 # --------------------- #
6198
6199 for ac_prog in gawk mawk nawk awk
6200 do
6201 # Extract the first word of "$ac_prog", so it can be a program name with args.
6202 set dummy $ac_prog; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if test "${ac_cv_prog_AWK+set}" = set; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 if test -n "$AWK"; then
6209 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218 ac_cv_prog_AWK="$ac_prog"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6221 fi
6222 done
6223 done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 AWK=$ac_cv_prog_AWK
6229 if test -n "$AWK"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6231 $as_echo "$AWK" >&6; }
6232 else
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6235 fi
6236
6237
6238 test -n "$AWK" && break
6239 done
6240
6241 # Find a good install program. We prefer a C program (faster),
6242 # so one script is as good as another. But avoid the broken or
6243 # incompatible versions:
6244 # SysV /etc/install, /usr/sbin/install
6245 # SunOS /usr/etc/install
6246 # IRIX /sbin/install
6247 # AIX /bin/install
6248 # AmigaOS /C/install, which installs bootblocks on floppy discs
6249 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6250 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6252 # OS/2's system install, which has a completely different semantic
6253 # ./install, which can be erroneously created by make from ./install.sh.
6254 # Reject install programs that cannot install multiple files.
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6256 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6257 if test -z "$INSTALL"; then
6258 if test "${ac_cv_path_install+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 # Account for people who put trailing slashes in PATH elements.
6267 case $as_dir/ in #((
6268 ./ | .// | /[cC]/* | \
6269 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6270 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6271 /usr/ucb/* ) ;;
6272 *)
6273 # OSF1 and SCO ODT 3.0 have their own names for install.
6274 # Don't use installbsd from OSF since it installs stuff as root
6275 # by default.
6276 for ac_prog in ginstall scoinst install; do
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6279 if test $ac_prog = install &&
6280 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6281 # AIX install. It has an incompatible calling convention.
6282 :
6283 elif test $ac_prog = install &&
6284 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6285 # program-specific install script used by HP pwplus--don't use.
6286 :
6287 else
6288 rm -rf conftest.one conftest.two conftest.dir
6289 echo one > conftest.one
6290 echo two > conftest.two
6291 mkdir conftest.dir
6292 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6293 test -s conftest.one && test -s conftest.two &&
6294 test -s conftest.dir/conftest.one &&
6295 test -s conftest.dir/conftest.two
6296 then
6297 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6298 break 3
6299 fi
6300 fi
6301 fi
6302 done
6303 done
6304 ;;
6305 esac
6306
6307 done
6308 IFS=$as_save_IFS
6309
6310 rm -rf conftest.one conftest.two conftest.dir
6311
6312 fi
6313 if test "${ac_cv_path_install+set}" = set; then
6314 INSTALL=$ac_cv_path_install
6315 else
6316 # As a last resort, use the slow shell script. Don't cache a
6317 # value for INSTALL within a source directory, because that will
6318 # break other packages using the cache if that directory is
6319 # removed, or if the value is a relative name.
6320 INSTALL=$ac_install_sh
6321 fi
6322 fi
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6324 $as_echo "$INSTALL" >&6; }
6325
6326 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6327 # It thinks the first close brace ends the variable substitution.
6328 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6329
6330 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6331
6332 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6333
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6335 $as_echo_n "checking whether ln -s works... " >&6; }
6336 LN_S=$as_ln_s
6337 if test "$LN_S" = "ln -s"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6339 $as_echo "yes" >&6; }
6340 else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6342 $as_echo "no, using $LN_S" >&6; }
6343 fi
6344
6345 if test -n "$ac_tool_prefix"; then
6346 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6347 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if test -n "$RANLIB"; then
6354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 RANLIB=$ac_cv_prog_RANLIB
6374 if test -n "$RANLIB"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6376 $as_echo "$RANLIB" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382
6383 fi
6384 if test -z "$ac_cv_prog_RANLIB"; then
6385 ac_ct_RANLIB=$RANLIB
6386 # Extract the first word of "ranlib", so it can be a program name with args.
6387 set dummy ranlib; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 if test -n "$ac_ct_RANLIB"; then
6394 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_ac_ct_RANLIB="ranlib"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407 done
6408 done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6414 if test -n "$ac_ct_RANLIB"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6416 $as_echo "$ac_ct_RANLIB" >&6; }
6417 else
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422 if test "x$ac_ct_RANLIB" = x; then
6423 RANLIB=":"
6424 else
6425 case $cross_compiling:$ac_tool_warned in
6426 yes:)
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429 ac_tool_warned=yes ;;
6430 esac
6431 RANLIB=$ac_ct_RANLIB
6432 fi
6433 else
6434 RANLIB="$ac_cv_prog_RANLIB"
6435 fi
6436
6437 for ac_prog in 'bison -y' byacc
6438 do
6439 # Extract the first word of "$ac_prog", so it can be a program name with args.
6440 set dummy $ac_prog; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_YACC+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$YACC"; then
6447 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_YACC="$ac_prog"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6459 fi
6460 done
6461 done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 YACC=$ac_cv_prog_YACC
6467 if test -n "$YACC"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6469 $as_echo "$YACC" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475
6476 test -n "$YACC" && break
6477 done
6478 test -n "$YACC" || YACC="yacc"
6479
6480
6481 if test -n "$ac_tool_prefix"; then
6482 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6483 set dummy ${ac_tool_prefix}ar; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if test "${ac_cv_prog_AR+set}" = set; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 if test -n "$AR"; then
6490 ac_cv_prog_AR="$AR" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_prog_AR="${ac_tool_prefix}ar"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503 done
6504 done
6505 IFS=$as_save_IFS
6506
6507 fi
6508 fi
6509 AR=$ac_cv_prog_AR
6510 if test -n "$AR"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6512 $as_echo "$AR" >&6; }
6513 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6516 fi
6517
6518
6519 fi
6520 if test -z "$ac_cv_prog_AR"; then
6521 ac_ct_AR=$AR
6522 # Extract the first word of "ar", so it can be a program name with args.
6523 set dummy ar; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 if test -n "$ac_ct_AR"; then
6530 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539 ac_cv_prog_ac_ct_AR="ar"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543 done
6544 done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6550 if test -n "$ac_ct_AR"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6552 $as_echo "$ac_ct_AR" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558 if test "x$ac_ct_AR" = x; then
6559 AR=""
6560 else
6561 case $cross_compiling:$ac_tool_warned in
6562 yes:)
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565 ac_tool_warned=yes ;;
6566 esac
6567 AR=$ac_ct_AR
6568 fi
6569 else
6570 AR="$ac_cv_prog_AR"
6571 fi
6572
6573 if test -n "$ac_tool_prefix"; then
6574 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6575 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 if test -n "$DLLTOOL"; then
6582 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6594 fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 DLLTOOL=$ac_cv_prog_DLLTOOL
6602 if test -n "$DLLTOOL"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6604 $as_echo "$DLLTOOL" >&6; }
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6608 fi
6609
6610
6611 fi
6612 if test -z "$ac_cv_prog_DLLTOOL"; then
6613 ac_ct_DLLTOOL=$DLLTOOL
6614 # Extract the first word of "dlltool", so it can be a program name with args.
6615 set dummy dlltool; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 if test -n "$ac_ct_DLLTOOL"; then
6622 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 break 2
6634 fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6642 if test -n "$ac_ct_DLLTOOL"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6644 $as_echo "$ac_ct_DLLTOOL" >&6; }
6645 else
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6648 fi
6649
6650 if test "x$ac_ct_DLLTOOL" = x; then
6651 DLLTOOL=""
6652 else
6653 case $cross_compiling:$ac_tool_warned in
6654 yes:)
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6657 ac_tool_warned=yes ;;
6658 esac
6659 DLLTOOL=$ac_ct_DLLTOOL
6660 fi
6661 else
6662 DLLTOOL="$ac_cv_prog_DLLTOOL"
6663 fi
6664
6665 if test -n "$ac_tool_prefix"; then
6666 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6667 set dummy ${ac_tool_prefix}windres; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 if test -n "$WINDRES"; then
6674 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 WINDRES=$ac_cv_prog_WINDRES
6694 if test -n "$WINDRES"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6696 $as_echo "$WINDRES" >&6; }
6697 else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701
6702
6703 fi
6704 if test -z "$ac_cv_prog_WINDRES"; then
6705 ac_ct_WINDRES=$WINDRES
6706 # Extract the first word of "windres", so it can be a program name with args.
6707 set dummy windres; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 if test -n "$ac_ct_WINDRES"; then
6714 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_prog_ac_ct_WINDRES="windres"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6726 fi
6727 done
6728 done
6729 IFS=$as_save_IFS
6730
6731 fi
6732 fi
6733 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6734 if test -n "$ac_ct_WINDRES"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6736 $as_echo "$ac_ct_WINDRES" >&6; }
6737 else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741
6742 if test "x$ac_ct_WINDRES" = x; then
6743 WINDRES=""
6744 else
6745 case $cross_compiling:$ac_tool_warned in
6746 yes:)
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6749 ac_tool_warned=yes ;;
6750 esac
6751 WINDRES=$ac_ct_WINDRES
6752 fi
6753 else
6754 WINDRES="$ac_cv_prog_WINDRES"
6755 fi
6756
6757
6758 case $host_os in
6759 gnu*)
6760 # Needed for GNU Hurd hosts.
6761 if test -n "$ac_tool_prefix"; then
6762 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6763 set dummy ${ac_tool_prefix}mig; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if test "${ac_cv_prog_MIG+set}" = set; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$MIG"; then
6770 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 MIG=$ac_cv_prog_MIG
6790 if test -n "$MIG"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6792 $as_echo "$MIG" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798
6799 fi
6800 if test -z "$ac_cv_prog_MIG"; then
6801 ac_ct_MIG=$MIG
6802 # Extract the first word of "mig", so it can be a program name with args.
6803 set dummy mig; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809 if test -n "$ac_ct_MIG"; then
6810 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819 ac_cv_prog_ac_ct_MIG="mig"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823 done
6824 done
6825 IFS=$as_save_IFS
6826
6827 fi
6828 fi
6829 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6830 if test -n "$ac_ct_MIG"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6832 $as_echo "$ac_ct_MIG" >&6; }
6833 else
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6836 fi
6837
6838 if test "x$ac_ct_MIG" = x; then
6839 MIG=""
6840 else
6841 case $cross_compiling:$ac_tool_warned in
6842 yes:)
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847 MIG=$ac_ct_MIG
6848 fi
6849 else
6850 MIG="$ac_cv_prog_MIG"
6851 fi
6852
6853 if test x"$MIG" = x; then
6854 as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
6855 fi
6856 ;;
6857 esac
6858
6859 # ---------------------- #
6860 # Checks for libraries. #
6861 # ---------------------- #
6862
6863 # We might need to link with -lm; most simulators need it.
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6865 $as_echo_n "checking for main in -lm... " >&6; }
6866 if test "${ac_cv_lib_m_main+set}" = set; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 ac_check_lib_save_LIBS=$LIBS
6870 LIBS="-lm $LIBS"
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873
6874
6875 int
6876 main ()
6877 {
6878 return main ();
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 if ac_fn_c_try_link "$LINENO"; then :
6884 ac_cv_lib_m_main=yes
6885 else
6886 ac_cv_lib_m_main=no
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
6890 LIBS=$ac_check_lib_save_LIBS
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6893 $as_echo "$ac_cv_lib_m_main" >&6; }
6894 if test "x$ac_cv_lib_m_main" = x""yes; then :
6895 cat >>confdefs.h <<_ACEOF
6896 #define HAVE_LIBM 1
6897 _ACEOF
6898
6899 LIBS="-lm $LIBS"
6900
6901 fi
6902
6903
6904 # We need to link with -lw to get `wctype' on Solaris before Solaris
6905 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6906 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6907 # is known to have this problem). Therefore we avoid libw if we can.
6908 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6909 if test "x$ac_cv_func_wctype" = x""yes; then :
6910
6911 else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6913 $as_echo_n "checking for wctype in -lw... " >&6; }
6914 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 ac_check_lib_save_LIBS=$LIBS
6918 LIBS="-lw $LIBS"
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921
6922 /* Override any GCC internal prototype to avoid an error.
6923 Use char because int might match the return type of a GCC
6924 builtin and then its argument prototype would still apply. */
6925 #ifdef __cplusplus
6926 extern "C"
6927 #endif
6928 char wctype ();
6929 int
6930 main ()
6931 {
6932 return wctype ();
6933 ;
6934 return 0;
6935 }
6936 _ACEOF
6937 if ac_fn_c_try_link "$LINENO"; then :
6938 ac_cv_lib_w_wctype=yes
6939 else
6940 ac_cv_lib_w_wctype=no
6941 fi
6942 rm -f core conftest.err conftest.$ac_objext \
6943 conftest$ac_exeext conftest.$ac_ext
6944 LIBS=$ac_check_lib_save_LIBS
6945 fi
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6947 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6948 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6949 cat >>confdefs.h <<_ACEOF
6950 #define HAVE_LIBW 1
6951 _ACEOF
6952
6953 LIBS="-lw $LIBS"
6954
6955 fi
6956
6957 fi
6958
6959
6960 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6962 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6963 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 ac_func_search_save_LIBS=$LIBS
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969
6970 /* Override any GCC internal prototype to avoid an error.
6971 Use char because int might match the return type of a GCC
6972 builtin and then its argument prototype would still apply. */
6973 #ifdef __cplusplus
6974 extern "C"
6975 #endif
6976 char gethostbyname ();
6977 int
6978 main ()
6979 {
6980 return gethostbyname ();
6981 ;
6982 return 0;
6983 }
6984 _ACEOF
6985 for ac_lib in '' nsl; do
6986 if test -z "$ac_lib"; then
6987 ac_res="none required"
6988 else
6989 ac_res=-l$ac_lib
6990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6991 fi
6992 if ac_fn_c_try_link "$LINENO"; then :
6993 ac_cv_search_gethostbyname=$ac_res
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext \
6996 conftest$ac_exeext
6997 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6998 break
6999 fi
7000 done
7001 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7002
7003 else
7004 ac_cv_search_gethostbyname=no
7005 fi
7006 rm conftest.$ac_ext
7007 LIBS=$ac_func_search_save_LIBS
7008 fi
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7010 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7011 ac_res=$ac_cv_search_gethostbyname
7012 if test "$ac_res" != no; then :
7013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7014
7015 fi
7016
7017
7018 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7020 $as_echo_n "checking for library containing socketpair... " >&6; }
7021 if test "${ac_cv_search_socketpair+set}" = set; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 ac_func_search_save_LIBS=$LIBS
7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7027
7028 /* Override any GCC internal prototype to avoid an error.
7029 Use char because int might match the return type of a GCC
7030 builtin and then its argument prototype would still apply. */
7031 #ifdef __cplusplus
7032 extern "C"
7033 #endif
7034 char socketpair ();
7035 int
7036 main ()
7037 {
7038 return socketpair ();
7039 ;
7040 return 0;
7041 }
7042 _ACEOF
7043 for ac_lib in '' socket; do
7044 if test -z "$ac_lib"; then
7045 ac_res="none required"
7046 else
7047 ac_res=-l$ac_lib
7048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7049 fi
7050 if ac_fn_c_try_link "$LINENO"; then :
7051 ac_cv_search_socketpair=$ac_res
7052 fi
7053 rm -f core conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext
7055 if test "${ac_cv_search_socketpair+set}" = set; then :
7056 break
7057 fi
7058 done
7059 if test "${ac_cv_search_socketpair+set}" = set; then :
7060
7061 else
7062 ac_cv_search_socketpair=no
7063 fi
7064 rm conftest.$ac_ext
7065 LIBS=$ac_func_search_save_LIBS
7066 fi
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7068 $as_echo "$ac_cv_search_socketpair" >&6; }
7069 ac_res=$ac_cv_search_socketpair
7070 if test "$ac_res" != no; then :
7071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7072
7073 fi
7074
7075
7076 # Link in zlib if we can. This allows us to read compressed debug sections.
7077
7078 # Use the system's zlib library.
7079 zlibdir="-L\$(top_builddir)/../zlib"
7080 zlibinc="-I\$(top_srcdir)/../zlib"
7081
7082 # Check whether --with-system-zlib was given.
7083 if test "${with_system_zlib+set}" = set; then :
7084 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7085 zlibdir=
7086 zlibinc=
7087 fi
7088
7089 fi
7090
7091
7092
7093
7094
7095 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7097 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7098 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 ac_func_search_save_LIBS=$LIBS
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7104
7105 /* Override any GCC internal prototype to avoid an error.
7106 Use char because int might match the return type of a GCC
7107 builtin and then its argument prototype would still apply. */
7108 #ifdef __cplusplus
7109 extern "C"
7110 #endif
7111 char kinfo_getvmmap ();
7112 int
7113 main ()
7114 {
7115 return kinfo_getvmmap ();
7116 ;
7117 return 0;
7118 }
7119 _ACEOF
7120 for ac_lib in '' util; do
7121 if test -z "$ac_lib"; then
7122 ac_res="none required"
7123 else
7124 ac_res=-l$ac_lib
7125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7126 fi
7127 if ac_fn_c_try_link "$LINENO"; then :
7128 ac_cv_search_kinfo_getvmmap=$ac_res
7129 fi
7130 rm -f core conftest.err conftest.$ac_objext \
7131 conftest$ac_exeext
7132 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7133 break
7134 fi
7135 done
7136 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7137
7138 else
7139 ac_cv_search_kinfo_getvmmap=no
7140 fi
7141 rm conftest.$ac_ext
7142 LIBS=$ac_func_search_save_LIBS
7143 fi
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7145 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7146 ac_res=$ac_cv_search_kinfo_getvmmap
7147 if test "$ac_res" != no; then :
7148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7149
7150 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7151
7152 fi
7153
7154
7155
7156 if test "X$prefix" = "XNONE"; then
7157 acl_final_prefix="$ac_default_prefix"
7158 else
7159 acl_final_prefix="$prefix"
7160 fi
7161 if test "X$exec_prefix" = "XNONE"; then
7162 acl_final_exec_prefix='${prefix}'
7163 else
7164 acl_final_exec_prefix="$exec_prefix"
7165 fi
7166 acl_save_prefix="$prefix"
7167 prefix="$acl_final_prefix"
7168 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7169 prefix="$acl_save_prefix"
7170
7171
7172 # Check whether --with-gnu-ld was given.
7173 if test "${with_gnu_ld+set}" = set; then :
7174 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7175 else
7176 with_gnu_ld=no
7177 fi
7178
7179 # Prepare PATH_SEPARATOR.
7180 # The user is always right.
7181 if test "${PATH_SEPARATOR+set}" != set; then
7182 echo "#! /bin/sh" >conf$$.sh
7183 echo "exit 0" >>conf$$.sh
7184 chmod +x conf$$.sh
7185 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7186 PATH_SEPARATOR=';'
7187 else
7188 PATH_SEPARATOR=:
7189 fi
7190 rm -f conf$$.sh
7191 fi
7192 ac_prog=ld
7193 if test "$GCC" = yes; then
7194 # Check if gcc -print-prog-name=ld gives a path.
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7196 $as_echo_n "checking for ld used by GCC... " >&6; }
7197 case $host in
7198 *-*-mingw*)
7199 # gcc leaves a trailing carriage return which upsets mingw
7200 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7201 *)
7202 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7203 esac
7204 case $ac_prog in
7205 # Accept absolute paths.
7206 [\\/]* | [A-Za-z]:[\\/]*)
7207 re_direlt='/[^/][^/]*/\.\./'
7208 # Canonicalize the path of ld
7209 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7210 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7211 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7212 done
7213 test -z "$LD" && LD="$ac_prog"
7214 ;;
7215 "")
7216 # If it fails, then pretend we aren't using GCC.
7217 ac_prog=ld
7218 ;;
7219 *)
7220 # If it is relative, then search for the first ld in PATH.
7221 with_gnu_ld=unknown
7222 ;;
7223 esac
7224 elif test "$with_gnu_ld" = yes; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7226 $as_echo_n "checking for GNU ld... " >&6; }
7227 else
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7229 $as_echo_n "checking for non-GNU ld... " >&6; }
7230 fi
7231 if test "${acl_cv_path_LD+set}" = set; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 if test -z "$LD"; then
7235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7236 for ac_dir in $PATH; do
7237 test -z "$ac_dir" && ac_dir=.
7238 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7239 acl_cv_path_LD="$ac_dir/$ac_prog"
7240 # Check to see if the program is GNU ld. I'd rather use --version,
7241 # but apparently some GNU ld's only accept -v.
7242 # Break only if it was the GNU/non-GNU ld that we prefer.
7243 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7244 test "$with_gnu_ld" != no && break
7245 else
7246 test "$with_gnu_ld" != yes && break
7247 fi
7248 fi
7249 done
7250 IFS="$ac_save_ifs"
7251 else
7252 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7253 fi
7254 fi
7255
7256 LD="$acl_cv_path_LD"
7257 if test -n "$LD"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7259 $as_echo "$LD" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7263 fi
7264 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7266 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7267 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7271 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7272 acl_cv_prog_gnu_ld=yes
7273 else
7274 acl_cv_prog_gnu_ld=no
7275 fi
7276 fi
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7278 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7279 with_gnu_ld=$acl_cv_prog_gnu_ld
7280
7281
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7284 $as_echo_n "checking for shared library run path origin... " >&6; }
7285 if test "${acl_cv_rpath+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288
7289 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7290 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7291 . ./conftest.sh
7292 rm -f ./conftest.sh
7293 acl_cv_rpath=done
7294
7295 fi
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7297 $as_echo "$acl_cv_rpath" >&6; }
7298 wl="$acl_cv_wl"
7299 libext="$acl_cv_libext"
7300 shlibext="$acl_cv_shlibext"
7301 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7302 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7303 hardcode_direct="$acl_cv_hardcode_direct"
7304 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7305 # Check whether --enable-rpath was given.
7306 if test "${enable_rpath+set}" = set; then :
7307 enableval=$enable_rpath; :
7308 else
7309 enable_rpath=yes
7310 fi
7311
7312
7313
7314
7315
7316
7317
7318
7319 use_additional=yes
7320
7321 acl_save_prefix="$prefix"
7322 prefix="$acl_final_prefix"
7323 acl_save_exec_prefix="$exec_prefix"
7324 exec_prefix="$acl_final_exec_prefix"
7325
7326 eval additional_includedir=\"$includedir\"
7327 eval additional_libdir=\"$libdir\"
7328
7329 exec_prefix="$acl_save_exec_prefix"
7330 prefix="$acl_save_prefix"
7331
7332
7333 # Check whether --with-libiconv-prefix was given.
7334 if test "${with_libiconv_prefix+set}" = set; then :
7335 withval=$with_libiconv_prefix;
7336 if test "X$withval" = "Xno"; then
7337 use_additional=no
7338 else
7339 if test "X$withval" = "X"; then
7340
7341 acl_save_prefix="$prefix"
7342 prefix="$acl_final_prefix"
7343 acl_save_exec_prefix="$exec_prefix"
7344 exec_prefix="$acl_final_exec_prefix"
7345
7346 eval additional_includedir=\"$includedir\"
7347 eval additional_libdir=\"$libdir\"
7348
7349 exec_prefix="$acl_save_exec_prefix"
7350 prefix="$acl_save_prefix"
7351
7352 else
7353 additional_includedir="$withval/include"
7354 additional_libdir="$withval/lib"
7355 fi
7356 fi
7357
7358 fi
7359
7360 LIBICONV=
7361 LTLIBICONV=
7362 INCICONV=
7363 rpathdirs=
7364 ltrpathdirs=
7365 names_already_handled=
7366 names_next_round='iconv '
7367 while test -n "$names_next_round"; do
7368 names_this_round="$names_next_round"
7369 names_next_round=
7370 for name in $names_this_round; do
7371 already_handled=
7372 for n in $names_already_handled; do
7373 if test "$n" = "$name"; then
7374 already_handled=yes
7375 break
7376 fi
7377 done
7378 if test -z "$already_handled"; then
7379 names_already_handled="$names_already_handled $name"
7380 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7381 eval value=\"\$HAVE_LIB$uppername\"
7382 if test -n "$value"; then
7383 if test "$value" = yes; then
7384 eval value=\"\$LIB$uppername\"
7385 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7386 eval value=\"\$LTLIB$uppername\"
7387 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7388 else
7389 :
7390 fi
7391 else
7392 found_dir=
7393 found_la=
7394 found_so=
7395 found_a=
7396 if test $use_additional = yes; then
7397 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7398 found_dir="$additional_libdir"
7399 found_so="$additional_libdir/lib$name.$shlibext"
7400 if test -f "$additional_libdir/lib$name.la"; then
7401 found_la="$additional_libdir/lib$name.la"
7402 fi
7403 else
7404 if test -f "$additional_libdir/lib$name.$libext"; then
7405 found_dir="$additional_libdir"
7406 found_a="$additional_libdir/lib$name.$libext"
7407 if test -f "$additional_libdir/lib$name.la"; then
7408 found_la="$additional_libdir/lib$name.la"
7409 fi
7410 fi
7411 fi
7412 fi
7413 if test "X$found_dir" = "X"; then
7414 for x in $LDFLAGS $LTLIBICONV; do
7415
7416 acl_save_prefix="$prefix"
7417 prefix="$acl_final_prefix"
7418 acl_save_exec_prefix="$exec_prefix"
7419 exec_prefix="$acl_final_exec_prefix"
7420 eval x=\"$x\"
7421 exec_prefix="$acl_save_exec_prefix"
7422 prefix="$acl_save_prefix"
7423
7424 case "$x" in
7425 -L*)
7426 dir=`echo "X$x" | sed -e 's/^X-L//'`
7427 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7428 found_dir="$dir"
7429 found_so="$dir/lib$name.$shlibext"
7430 if test -f "$dir/lib$name.la"; then
7431 found_la="$dir/lib$name.la"
7432 fi
7433 else
7434 if test -f "$dir/lib$name.$libext"; then
7435 found_dir="$dir"
7436 found_a="$dir/lib$name.$libext"
7437 if test -f "$dir/lib$name.la"; then
7438 found_la="$dir/lib$name.la"
7439 fi
7440 fi
7441 fi
7442 ;;
7443 esac
7444 if test "X$found_dir" != "X"; then
7445 break
7446 fi
7447 done
7448 fi
7449 if test "X$found_dir" != "X"; then
7450 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7451 if test "X$found_so" != "X"; then
7452 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7454 else
7455 haveit=
7456 for x in $ltrpathdirs; do
7457 if test "X$x" = "X$found_dir"; then
7458 haveit=yes
7459 break
7460 fi
7461 done
7462 if test -z "$haveit"; then
7463 ltrpathdirs="$ltrpathdirs $found_dir"
7464 fi
7465 if test "$hardcode_direct" = yes; then
7466 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7467 else
7468 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7469 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7470 haveit=
7471 for x in $rpathdirs; do
7472 if test "X$x" = "X$found_dir"; then
7473 haveit=yes
7474 break
7475 fi
7476 done
7477 if test -z "$haveit"; then
7478 rpathdirs="$rpathdirs $found_dir"
7479 fi
7480 else
7481 haveit=
7482 for x in $LDFLAGS $LIBICONV; do
7483
7484 acl_save_prefix="$prefix"
7485 prefix="$acl_final_prefix"
7486 acl_save_exec_prefix="$exec_prefix"
7487 exec_prefix="$acl_final_exec_prefix"
7488 eval x=\"$x\"
7489 exec_prefix="$acl_save_exec_prefix"
7490 prefix="$acl_save_prefix"
7491
7492 if test "X$x" = "X-L$found_dir"; then
7493 haveit=yes
7494 break
7495 fi
7496 done
7497 if test -z "$haveit"; then
7498 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7499 fi
7500 if test "$hardcode_minus_L" != no; then
7501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7502 else
7503 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7504 fi
7505 fi
7506 fi
7507 fi
7508 else
7509 if test "X$found_a" != "X"; then
7510 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7511 else
7512 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7513 fi
7514 fi
7515 additional_includedir=
7516 case "$found_dir" in
7517 */lib | */lib/)
7518 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7519 additional_includedir="$basedir/include"
7520 ;;
7521 esac
7522 if test "X$additional_includedir" != "X"; then
7523 if test "X$additional_includedir" != "X/usr/include"; then
7524 haveit=
7525 if test "X$additional_includedir" = "X/usr/local/include"; then
7526 if test -n "$GCC"; then
7527 case $host_os in
7528 linux*) haveit=yes;;
7529 esac
7530 fi
7531 fi
7532 if test -z "$haveit"; then
7533 for x in $CPPFLAGS $INCICONV; do
7534
7535 acl_save_prefix="$prefix"
7536 prefix="$acl_final_prefix"
7537 acl_save_exec_prefix="$exec_prefix"
7538 exec_prefix="$acl_final_exec_prefix"
7539 eval x=\"$x\"
7540 exec_prefix="$acl_save_exec_prefix"
7541 prefix="$acl_save_prefix"
7542
7543 if test "X$x" = "X-I$additional_includedir"; then
7544 haveit=yes
7545 break
7546 fi
7547 done
7548 if test -z "$haveit"; then
7549 if test -d "$additional_includedir"; then
7550 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7551 fi
7552 fi
7553 fi
7554 fi
7555 fi
7556 if test -n "$found_la"; then
7557 save_libdir="$libdir"
7558 case "$found_la" in
7559 */* | *\\*) . "$found_la" ;;
7560 *) . "./$found_la" ;;
7561 esac
7562 libdir="$save_libdir"
7563 for dep in $dependency_libs; do
7564 case "$dep" in
7565 -L*)
7566 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7567 if test "X$additional_libdir" != "X/usr/lib"; then
7568 haveit=
7569 if test "X$additional_libdir" = "X/usr/local/lib"; then
7570 if test -n "$GCC"; then
7571 case $host_os in
7572 linux*) haveit=yes;;
7573 esac
7574 fi
7575 fi
7576 if test -z "$haveit"; then
7577 haveit=
7578 for x in $LDFLAGS $LIBICONV; do
7579
7580 acl_save_prefix="$prefix"
7581 prefix="$acl_final_prefix"
7582 acl_save_exec_prefix="$exec_prefix"
7583 exec_prefix="$acl_final_exec_prefix"
7584 eval x=\"$x\"
7585 exec_prefix="$acl_save_exec_prefix"
7586 prefix="$acl_save_prefix"
7587
7588 if test "X$x" = "X-L$additional_libdir"; then
7589 haveit=yes
7590 break
7591 fi
7592 done
7593 if test -z "$haveit"; then
7594 if test -d "$additional_libdir"; then
7595 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7596 fi
7597 fi
7598 haveit=
7599 for x in $LDFLAGS $LTLIBICONV; do
7600
7601 acl_save_prefix="$prefix"
7602 prefix="$acl_final_prefix"
7603 acl_save_exec_prefix="$exec_prefix"
7604 exec_prefix="$acl_final_exec_prefix"
7605 eval x=\"$x\"
7606 exec_prefix="$acl_save_exec_prefix"
7607 prefix="$acl_save_prefix"
7608
7609 if test "X$x" = "X-L$additional_libdir"; then
7610 haveit=yes
7611 break
7612 fi
7613 done
7614 if test -z "$haveit"; then
7615 if test -d "$additional_libdir"; then
7616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7617 fi
7618 fi
7619 fi
7620 fi
7621 ;;
7622 -R*)
7623 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7624 if test "$enable_rpath" != no; then
7625 haveit=
7626 for x in $rpathdirs; do
7627 if test "X$x" = "X$dir"; then
7628 haveit=yes
7629 break
7630 fi
7631 done
7632 if test -z "$haveit"; then
7633 rpathdirs="$rpathdirs $dir"
7634 fi
7635 haveit=
7636 for x in $ltrpathdirs; do
7637 if test "X$x" = "X$dir"; then
7638 haveit=yes
7639 break
7640 fi
7641 done
7642 if test -z "$haveit"; then
7643 ltrpathdirs="$ltrpathdirs $dir"
7644 fi
7645 fi
7646 ;;
7647 -l*)
7648 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7649 ;;
7650 *.la)
7651 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7652 ;;
7653 *)
7654 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7655 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7656 ;;
7657 esac
7658 done
7659 fi
7660 else
7661 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7662 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7663 fi
7664 fi
7665 fi
7666 done
7667 done
7668 if test "X$rpathdirs" != "X"; then
7669 if test -n "$hardcode_libdir_separator"; then
7670 alldirs=
7671 for found_dir in $rpathdirs; do
7672 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7673 done
7674 acl_save_libdir="$libdir"
7675 libdir="$alldirs"
7676 eval flag=\"$hardcode_libdir_flag_spec\"
7677 libdir="$acl_save_libdir"
7678 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7679 else
7680 for found_dir in $rpathdirs; do
7681 acl_save_libdir="$libdir"
7682 libdir="$found_dir"
7683 eval flag=\"$hardcode_libdir_flag_spec\"
7684 libdir="$acl_save_libdir"
7685 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7686 done
7687 fi
7688 fi
7689 if test "X$ltrpathdirs" != "X"; then
7690 for found_dir in $ltrpathdirs; do
7691 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7692 done
7693 fi
7694
7695
7696
7697
7698
7699
7700
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7702 $as_echo_n "checking for iconv... " >&6; }
7703 if test "${am_cv_func_iconv+set}" = set; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706
7707 am_cv_func_iconv="no, consider installing GNU libiconv"
7708 am_cv_lib_iconv=no
7709 am_save_CPPFLAGS="$CPPFLAGS"
7710 CPPFLAGS="$CPPFLAGS $INCICONV"
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 #include <stdlib.h>
7714 #include <iconv.h>
7715 int
7716 main ()
7717 {
7718 iconv_t cd = iconv_open("","");
7719 iconv(cd,NULL,NULL,NULL,NULL);
7720 iconv_close(cd);
7721 ;
7722 return 0;
7723 }
7724 _ACEOF
7725 if ac_fn_c_try_link "$LINENO"; then :
7726 am_cv_func_iconv=yes
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 CPPFLAGS="$am_save_CPPFLAGS"
7731
7732 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
7733 for _libs in .libs _libs; do
7734 am_save_CPPFLAGS="$CPPFLAGS"
7735 am_save_LIBS="$LIBS"
7736 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
7737 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7740 #include <stdlib.h>
7741 #include <iconv.h>
7742 int
7743 main ()
7744 {
7745 iconv_t cd = iconv_open("","");
7746 iconv(cd,NULL,NULL,NULL,NULL);
7747 iconv_close(cd);
7748 ;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_link "$LINENO"; then :
7753 INCICONV="-I../libiconv/include"
7754 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
7755 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
7756 am_cv_lib_iconv=yes
7757 am_cv_func_iconv=yes
7758 fi
7759 rm -f core conftest.err conftest.$ac_objext \
7760 conftest$ac_exeext conftest.$ac_ext
7761 CPPFLAGS="$am_save_CPPFLAGS"
7762 LIBS="$am_save_LIBS"
7763 if test "$am_cv_func_iconv" = "yes"; then
7764 break
7765 fi
7766 done
7767 fi
7768
7769 if test "$am_cv_func_iconv" != yes; then
7770 am_save_CPPFLAGS="$CPPFLAGS"
7771 am_save_LIBS="$LIBS"
7772 CPPFLAGS="$LIBS $INCICONV"
7773 LIBS="$LIBS $LIBICONV"
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 #include <stdlib.h>
7777 #include <iconv.h>
7778 int
7779 main ()
7780 {
7781 iconv_t cd = iconv_open("","");
7782 iconv(cd,NULL,NULL,NULL,NULL);
7783 iconv_close(cd);
7784 ;
7785 return 0;
7786 }
7787 _ACEOF
7788 if ac_fn_c_try_link "$LINENO"; then :
7789 am_cv_lib_iconv=yes
7790 am_cv_func_iconv=yes
7791 fi
7792 rm -f core conftest.err conftest.$ac_objext \
7793 conftest$ac_exeext conftest.$ac_ext
7794 CPPFLAGS="$am_save_CPPFLAGS"
7795 LIBS="$am_save_LIBS"
7796 fi
7797
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7800 $as_echo "$am_cv_func_iconv" >&6; }
7801 if test "$am_cv_func_iconv" = yes; then
7802
7803 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7804
7805 fi
7806 if test "$am_cv_lib_iconv" = yes; then
7807
7808 for element in $INCICONV; do
7809 haveit=
7810 for x in $CPPFLAGS; do
7811
7812 acl_save_prefix="$prefix"
7813 prefix="$acl_final_prefix"
7814 acl_save_exec_prefix="$exec_prefix"
7815 exec_prefix="$acl_final_exec_prefix"
7816 eval x=\"$x\"
7817 exec_prefix="$acl_save_exec_prefix"
7818 prefix="$acl_save_prefix"
7819
7820 if test "X$x" = "X$element"; then
7821 haveit=yes
7822 break
7823 fi
7824 done
7825 if test -z "$haveit"; then
7826 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7827 fi
7828 done
7829
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7831 $as_echo_n "checking how to link with libiconv... " >&6; }
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7833 $as_echo "$LIBICONV" >&6; }
7834 else
7835 LIBICONV=
7836 LTLIBICONV=
7837 fi
7838
7839
7840
7841 if test "$am_cv_func_iconv" = yes; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7843 $as_echo_n "checking for iconv declaration... " >&6; }
7844 if test "${am_cv_proto_iconv+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850
7851 #include <stdlib.h>
7852 #include <iconv.h>
7853 extern
7854 #ifdef __cplusplus
7855 "C"
7856 #endif
7857 #if defined(__STDC__) || defined(__cplusplus)
7858 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7859 #else
7860 size_t iconv();
7861 #endif
7862
7863 int
7864 main ()
7865 {
7866
7867 ;
7868 return 0;
7869 }
7870 _ACEOF
7871 if ac_fn_c_try_compile "$LINENO"; then :
7872 am_cv_proto_iconv_arg1=""
7873 else
7874 am_cv_proto_iconv_arg1="const"
7875 fi
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 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);"
7878 fi
7879
7880 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7882 }$am_cv_proto_iconv" >&5
7883 $as_echo "${ac_t:-
7884 }$am_cv_proto_iconv" >&6; }
7885
7886 cat >>confdefs.h <<_ACEOF
7887 #define ICONV_CONST $am_cv_proto_iconv_arg1
7888 _ACEOF
7889
7890 fi
7891
7892
7893 # GDB may fork/exec the iconv program to get the list of supported character
7894 # sets. Allow the user to specify where to find it.
7895 # There are several factors affecting the choice of option name:
7896 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7897 # the build-time location of libiconv files.
7898 # - The program we need to find is iconv, which comes with glibc. The user
7899 # doesn't necessarily have libiconv installed. Therefore naming this
7900 # --with-libiconv-foo feels wrong.
7901 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7902 # defined to work on directories not files (though it really doesn't know
7903 # the difference).
7904 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7905 # with --with-libiconv-prefix.
7906 # Putting these together is why the option name is --with-iconv-bin.
7907
7908
7909 # Check whether --with-iconv-bin was given.
7910 if test "${with_iconv_bin+set}" = set; then :
7911 withval=$with_iconv_bin; iconv_bin="${withval}"
7912
7913 cat >>confdefs.h <<_ACEOF
7914 #define ICONV_BIN "${iconv_bin}"
7915 _ACEOF
7916
7917
7918 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7919 if test "x$prefix" = xNONE; then
7920 test_prefix=/usr/local
7921 else
7922 test_prefix=$prefix
7923 fi
7924 else
7925 test_prefix=$exec_prefix
7926 fi
7927 value=0
7928 case ${iconv_bin} in
7929 "${test_prefix}"|"${test_prefix}/"*|\
7930 '${exec_prefix}'|'${exec_prefix}/'*)
7931 value=1
7932 ;;
7933 esac
7934
7935 cat >>confdefs.h <<_ACEOF
7936 #define ICONV_BIN_RELOCATABLE $value
7937 _ACEOF
7938
7939
7940
7941 fi
7942
7943
7944 # For the TUI, we need enhanced curses functionality.
7945 if test x"$enable_tui" != xno; then
7946 prefer_curses=yes
7947 fi
7948
7949 curses_found=no
7950 if test x"$prefer_curses" = xyes; then
7951 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7952 # curses library because the latter might not provide all the
7953 # functionality we need. However, this leads to problems on systems
7954 # where the linker searches /usr/local/lib, but the compiler doesn't
7955 # search /usr/local/include, if ncurses is installed in /usr/local. A
7956 # default installation of ncurses on alpha*-dec-osf* will lead to such
7957 # a situation.
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7959 $as_echo_n "checking for library containing waddstr... " >&6; }
7960 if test "${ac_cv_search_waddstr+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 ac_func_search_save_LIBS=$LIBS
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966
7967 /* Override any GCC internal prototype to avoid an error.
7968 Use char because int might match the return type of a GCC
7969 builtin and then its argument prototype would still apply. */
7970 #ifdef __cplusplus
7971 extern "C"
7972 #endif
7973 char waddstr ();
7974 int
7975 main ()
7976 {
7977 return waddstr ();
7978 ;
7979 return 0;
7980 }
7981 _ACEOF
7982 for ac_lib in '' ncurses cursesX curses; do
7983 if test -z "$ac_lib"; then
7984 ac_res="none required"
7985 else
7986 ac_res=-l$ac_lib
7987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7988 fi
7989 if ac_fn_c_try_link "$LINENO"; then :
7990 ac_cv_search_waddstr=$ac_res
7991 fi
7992 rm -f core conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext
7994 if test "${ac_cv_search_waddstr+set}" = set; then :
7995 break
7996 fi
7997 done
7998 if test "${ac_cv_search_waddstr+set}" = set; then :
7999
8000 else
8001 ac_cv_search_waddstr=no
8002 fi
8003 rm conftest.$ac_ext
8004 LIBS=$ac_func_search_save_LIBS
8005 fi
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8007 $as_echo "$ac_cv_search_waddstr" >&6; }
8008 ac_res=$ac_cv_search_waddstr
8009 if test "$ac_res" != no; then :
8010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8011
8012 fi
8013
8014
8015 if test "$ac_cv_search_waddstr" != no; then
8016 curses_found=yes
8017 fi
8018 fi
8019
8020 # Check whether we should enable the TUI, but only do so if we really
8021 # can.
8022 if test x"$enable_tui" != xno; then
8023 if test -d $srcdir/tui; then
8024 if test "$curses_found" != no; then
8025 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8026 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8027 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8028 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8029 else
8030 if test x"$enable_tui" = xyes; then
8031 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
8032 else
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8034 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8035 fi
8036 fi
8037 fi
8038 fi
8039
8040 # Since GDB uses Readline, we need termcap functionality. In many
8041 # cases this will be provided by the curses library, but some systems
8042 # have a seperate termcap library, or no curses library at all.
8043
8044 case $host_os in
8045 cygwin*)
8046 if test -d $srcdir/libtermcap; then
8047 LIBS="../libtermcap/libtermcap.a $LIBS"
8048 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8049 fi ;;
8050 go32* | *djgpp*)
8051 ac_cv_search_tgetent="none required"
8052 ;;
8053 esac
8054
8055 # These are the libraries checked by Readline.
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8057 $as_echo_n "checking for library containing tgetent... " >&6; }
8058 if test "${ac_cv_search_tgetent+set}" = set; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 ac_func_search_save_LIBS=$LIBS
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064
8065 /* Override any GCC internal prototype to avoid an error.
8066 Use char because int might match the return type of a GCC
8067 builtin and then its argument prototype would still apply. */
8068 #ifdef __cplusplus
8069 extern "C"
8070 #endif
8071 char tgetent ();
8072 int
8073 main ()
8074 {
8075 return tgetent ();
8076 ;
8077 return 0;
8078 }
8079 _ACEOF
8080 for ac_lib in '' termcap tinfo curses ncurses; do
8081 if test -z "$ac_lib"; then
8082 ac_res="none required"
8083 else
8084 ac_res=-l$ac_lib
8085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8086 fi
8087 if ac_fn_c_try_link "$LINENO"; then :
8088 ac_cv_search_tgetent=$ac_res
8089 fi
8090 rm -f core conftest.err conftest.$ac_objext \
8091 conftest$ac_exeext
8092 if test "${ac_cv_search_tgetent+set}" = set; then :
8093 break
8094 fi
8095 done
8096 if test "${ac_cv_search_tgetent+set}" = set; then :
8097
8098 else
8099 ac_cv_search_tgetent=no
8100 fi
8101 rm conftest.$ac_ext
8102 LIBS=$ac_func_search_save_LIBS
8103 fi
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8105 $as_echo "$ac_cv_search_tgetent" >&6; }
8106 ac_res=$ac_cv_search_tgetent
8107 if test "$ac_res" != no; then :
8108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8109
8110 fi
8111
8112
8113 if test "$ac_cv_search_tgetent" = no; then
8114 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
8115 fi
8116
8117
8118 # Check whether --with-system-readline was given.
8119 if test "${with_system_readline+set}" = set; then :
8120 withval=$with_system_readline;
8121 fi
8122
8123
8124 if test "$with_system_readline" = yes; then
8125 READLINE=-lreadline
8126 READLINE_DEPS=
8127 READLINE_CFLAGS=
8128 READLINE_TEXI_INCFLAG=
8129 else
8130 READLINE='$(READLINE_DIR)/libreadline.a'
8131 READLINE_DEPS='$(READLINE)'
8132 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
8133 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
8134 fi
8135
8136
8137
8138
8139
8140 # Generate jit-reader.h
8141
8142 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
8143 TARGET_PTR=
8144
8145 # The cast to long int works around a bug in the HP C Compiler
8146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8148 # This bug is HP SR number 8606223364.
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
8150 $as_echo_n "checking size of unsigned long long... " >&6; }
8151 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
8152 $as_echo_n "(cached) " >&6
8153 else
8154 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
8155
8156 else
8157 if test "$ac_cv_type_unsigned_long_long" = yes; then
8158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8160 { as_fn_set_status 77
8161 as_fn_error "cannot compute sizeof (unsigned long long)
8162 See \`config.log' for more details." "$LINENO" 5; }; }
8163 else
8164 ac_cv_sizeof_unsigned_long_long=0
8165 fi
8166 fi
8167
8168 fi
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
8170 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8171
8172
8173
8174 cat >>confdefs.h <<_ACEOF
8175 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8176 _ACEOF
8177
8178
8179 # The cast to long int works around a bug in the HP C Compiler
8180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8182 # This bug is HP SR number 8606223364.
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8184 $as_echo_n "checking size of unsigned long... " >&6; }
8185 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8189
8190 else
8191 if test "$ac_cv_type_unsigned_long" = yes; then
8192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8194 { as_fn_set_status 77
8195 as_fn_error "cannot compute sizeof (unsigned long)
8196 See \`config.log' for more details." "$LINENO" 5; }; }
8197 else
8198 ac_cv_sizeof_unsigned_long=0
8199 fi
8200 fi
8201
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8204 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8205
8206
8207
8208 cat >>confdefs.h <<_ACEOF
8209 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8210 _ACEOF
8211
8212
8213 # The cast to long int works around a bug in the HP C Compiler
8214 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8215 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8216 # This bug is HP SR number 8606223364.
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
8218 $as_echo_n "checking size of unsigned __int128... " >&6; }
8219 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
8223
8224 else
8225 if test "$ac_cv_type_unsigned___int128" = yes; then
8226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8228 { as_fn_set_status 77
8229 as_fn_error "cannot compute sizeof (unsigned __int128)
8230 See \`config.log' for more details." "$LINENO" 5; }; }
8231 else
8232 ac_cv_sizeof_unsigned___int128=0
8233 fi
8234 fi
8235
8236 fi
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
8238 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
8239
8240
8241
8242 cat >>confdefs.h <<_ACEOF
8243 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
8244 _ACEOF
8245
8246
8247
8248 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
8249 TARGET_PTR="unsigned long"
8250 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
8251 TARGET_PTR="unsigned long long"
8252 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
8253 TARGET_PTR="unsigned __int128"
8254 else
8255 TARGET_PTR="unsigned long"
8256 fi
8257
8258
8259 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
8260
8261
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8263 $as_echo_n "checking for library containing dlopen... " >&6; }
8264 if test "${ac_cv_search_dlopen+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 ac_func_search_save_LIBS=$LIBS
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8270
8271 /* Override any GCC internal prototype to avoid an error.
8272 Use char because int might match the return type of a GCC
8273 builtin and then its argument prototype would still apply. */
8274 #ifdef __cplusplus
8275 extern "C"
8276 #endif
8277 char dlopen ();
8278 int
8279 main ()
8280 {
8281 return dlopen ();
8282 ;
8283 return 0;
8284 }
8285 _ACEOF
8286 for ac_lib in '' dl; do
8287 if test -z "$ac_lib"; then
8288 ac_res="none required"
8289 else
8290 ac_res=-l$ac_lib
8291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8292 fi
8293 if ac_fn_c_try_link "$LINENO"; then :
8294 ac_cv_search_dlopen=$ac_res
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext \
8297 conftest$ac_exeext
8298 if test "${ac_cv_search_dlopen+set}" = set; then :
8299 break
8300 fi
8301 done
8302 if test "${ac_cv_search_dlopen+set}" = set; then :
8303
8304 else
8305 ac_cv_search_dlopen=no
8306 fi
8307 rm conftest.$ac_ext
8308 LIBS=$ac_func_search_save_LIBS
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8311 $as_echo "$ac_cv_search_dlopen" >&6; }
8312 ac_res=$ac_cv_search_dlopen
8313 if test "$ac_res" != no; then :
8314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8315
8316 fi
8317
8318
8319
8320
8321 # Check whether --with-jit-reader-dir was given.
8322 if test "${with_jit_reader_dir+set}" = set; then :
8323 withval=$with_jit_reader_dir;
8324 JIT_READER_DIR=$withval
8325 else
8326 JIT_READER_DIR=${libdir}/gdb
8327 fi
8328
8329
8330 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8331 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8332 ac_define_dir=`eval echo $JIT_READER_DIR`
8333 ac_define_dir=`eval echo $ac_define_dir`
8334
8335 cat >>confdefs.h <<_ACEOF
8336 #define JIT_READER_DIR "$ac_define_dir"
8337 _ACEOF
8338
8339
8340
8341
8342 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8343 if test "x$prefix" = xNONE; then
8344 test_prefix=/usr/local
8345 else
8346 test_prefix=$prefix
8347 fi
8348 else
8349 test_prefix=$exec_prefix
8350 fi
8351 value=0
8352 case ${ac_define_dir} in
8353 "${test_prefix}"|"${test_prefix}/"*|\
8354 '${exec_prefix}'|'${exec_prefix}/'*)
8355 value=1
8356 ;;
8357 esac
8358
8359 cat >>confdefs.h <<_ACEOF
8360 #define JIT_READER_DIR_RELOCATABLE $value
8361 _ACEOF
8362
8363
8364
8365
8366
8367 # Check whether --with-expat was given.
8368 if test "${with_expat+set}" = set; then :
8369 withval=$with_expat;
8370 else
8371 with_expat=auto
8372 fi
8373
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8375 $as_echo_n "checking whether to use expat... " >&6; }
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8377 $as_echo "$with_expat" >&6; }
8378
8379 if test "${with_expat}" = no; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8381 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8382 HAVE_LIBEXPAT=no
8383 else
8384
8385
8386
8387
8388
8389
8390
8391
8392 use_additional=yes
8393
8394 acl_save_prefix="$prefix"
8395 prefix="$acl_final_prefix"
8396 acl_save_exec_prefix="$exec_prefix"
8397 exec_prefix="$acl_final_exec_prefix"
8398
8399 eval additional_includedir=\"$includedir\"
8400 eval additional_libdir=\"$libdir\"
8401
8402 exec_prefix="$acl_save_exec_prefix"
8403 prefix="$acl_save_prefix"
8404
8405
8406 # Check whether --with-libexpat-prefix was given.
8407 if test "${with_libexpat_prefix+set}" = set; then :
8408 withval=$with_libexpat_prefix;
8409 if test "X$withval" = "Xno"; then
8410 use_additional=no
8411 else
8412 if test "X$withval" = "X"; then
8413
8414 acl_save_prefix="$prefix"
8415 prefix="$acl_final_prefix"
8416 acl_save_exec_prefix="$exec_prefix"
8417 exec_prefix="$acl_final_exec_prefix"
8418
8419 eval additional_includedir=\"$includedir\"
8420 eval additional_libdir=\"$libdir\"
8421
8422 exec_prefix="$acl_save_exec_prefix"
8423 prefix="$acl_save_prefix"
8424
8425 else
8426 additional_includedir="$withval/include"
8427 additional_libdir="$withval/lib"
8428 fi
8429 fi
8430
8431 fi
8432
8433 LIBEXPAT=
8434 LTLIBEXPAT=
8435 INCEXPAT=
8436 rpathdirs=
8437 ltrpathdirs=
8438 names_already_handled=
8439 names_next_round='expat '
8440 while test -n "$names_next_round"; do
8441 names_this_round="$names_next_round"
8442 names_next_round=
8443 for name in $names_this_round; do
8444 already_handled=
8445 for n in $names_already_handled; do
8446 if test "$n" = "$name"; then
8447 already_handled=yes
8448 break
8449 fi
8450 done
8451 if test -z "$already_handled"; then
8452 names_already_handled="$names_already_handled $name"
8453 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8454 eval value=\"\$HAVE_LIB$uppername\"
8455 if test -n "$value"; then
8456 if test "$value" = yes; then
8457 eval value=\"\$LIB$uppername\"
8458 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
8459 eval value=\"\$LTLIB$uppername\"
8460 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8461 else
8462 :
8463 fi
8464 else
8465 found_dir=
8466 found_la=
8467 found_so=
8468 found_a=
8469 if test $use_additional = yes; then
8470 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8471 found_dir="$additional_libdir"
8472 found_so="$additional_libdir/lib$name.$shlibext"
8473 if test -f "$additional_libdir/lib$name.la"; then
8474 found_la="$additional_libdir/lib$name.la"
8475 fi
8476 else
8477 if test -f "$additional_libdir/lib$name.$libext"; then
8478 found_dir="$additional_libdir"
8479 found_a="$additional_libdir/lib$name.$libext"
8480 if test -f "$additional_libdir/lib$name.la"; then
8481 found_la="$additional_libdir/lib$name.la"
8482 fi
8483 fi
8484 fi
8485 fi
8486 if test "X$found_dir" = "X"; then
8487 for x in $LDFLAGS $LTLIBEXPAT; do
8488
8489 acl_save_prefix="$prefix"
8490 prefix="$acl_final_prefix"
8491 acl_save_exec_prefix="$exec_prefix"
8492 exec_prefix="$acl_final_exec_prefix"
8493 eval x=\"$x\"
8494 exec_prefix="$acl_save_exec_prefix"
8495 prefix="$acl_save_prefix"
8496
8497 case "$x" in
8498 -L*)
8499 dir=`echo "X$x" | sed -e 's/^X-L//'`
8500 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8501 found_dir="$dir"
8502 found_so="$dir/lib$name.$shlibext"
8503 if test -f "$dir/lib$name.la"; then
8504 found_la="$dir/lib$name.la"
8505 fi
8506 else
8507 if test -f "$dir/lib$name.$libext"; then
8508 found_dir="$dir"
8509 found_a="$dir/lib$name.$libext"
8510 if test -f "$dir/lib$name.la"; then
8511 found_la="$dir/lib$name.la"
8512 fi
8513 fi
8514 fi
8515 ;;
8516 esac
8517 if test "X$found_dir" != "X"; then
8518 break
8519 fi
8520 done
8521 fi
8522 if test "X$found_dir" != "X"; then
8523 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8524 if test "X$found_so" != "X"; then
8525 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8526 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8527 else
8528 haveit=
8529 for x in $ltrpathdirs; do
8530 if test "X$x" = "X$found_dir"; then
8531 haveit=yes
8532 break
8533 fi
8534 done
8535 if test -z "$haveit"; then
8536 ltrpathdirs="$ltrpathdirs $found_dir"
8537 fi
8538 if test "$hardcode_direct" = yes; then
8539 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8540 else
8541 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8542 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8543 haveit=
8544 for x in $rpathdirs; do
8545 if test "X$x" = "X$found_dir"; then
8546 haveit=yes
8547 break
8548 fi
8549 done
8550 if test -z "$haveit"; then
8551 rpathdirs="$rpathdirs $found_dir"
8552 fi
8553 else
8554 haveit=
8555 for x in $LDFLAGS $LIBEXPAT; do
8556
8557 acl_save_prefix="$prefix"
8558 prefix="$acl_final_prefix"
8559 acl_save_exec_prefix="$exec_prefix"
8560 exec_prefix="$acl_final_exec_prefix"
8561 eval x=\"$x\"
8562 exec_prefix="$acl_save_exec_prefix"
8563 prefix="$acl_save_prefix"
8564
8565 if test "X$x" = "X-L$found_dir"; then
8566 haveit=yes
8567 break
8568 fi
8569 done
8570 if test -z "$haveit"; then
8571 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8572 fi
8573 if test "$hardcode_minus_L" != no; then
8574 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8575 else
8576 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8577 fi
8578 fi
8579 fi
8580 fi
8581 else
8582 if test "X$found_a" != "X"; then
8583 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8584 else
8585 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8586 fi
8587 fi
8588 additional_includedir=
8589 case "$found_dir" in
8590 */lib | */lib/)
8591 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8592 additional_includedir="$basedir/include"
8593 ;;
8594 esac
8595 if test "X$additional_includedir" != "X"; then
8596 if test "X$additional_includedir" != "X/usr/include"; then
8597 haveit=
8598 if test "X$additional_includedir" = "X/usr/local/include"; then
8599 if test -n "$GCC"; then
8600 case $host_os in
8601 linux*) haveit=yes;;
8602 esac
8603 fi
8604 fi
8605 if test -z "$haveit"; then
8606 for x in $CPPFLAGS $INCEXPAT; do
8607
8608 acl_save_prefix="$prefix"
8609 prefix="$acl_final_prefix"
8610 acl_save_exec_prefix="$exec_prefix"
8611 exec_prefix="$acl_final_exec_prefix"
8612 eval x=\"$x\"
8613 exec_prefix="$acl_save_exec_prefix"
8614 prefix="$acl_save_prefix"
8615
8616 if test "X$x" = "X-I$additional_includedir"; then
8617 haveit=yes
8618 break
8619 fi
8620 done
8621 if test -z "$haveit"; then
8622 if test -d "$additional_includedir"; then
8623 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8624 fi
8625 fi
8626 fi
8627 fi
8628 fi
8629 if test -n "$found_la"; then
8630 save_libdir="$libdir"
8631 case "$found_la" in
8632 */* | *\\*) . "$found_la" ;;
8633 *) . "./$found_la" ;;
8634 esac
8635 libdir="$save_libdir"
8636 for dep in $dependency_libs; do
8637 case "$dep" in
8638 -L*)
8639 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8640 if test "X$additional_libdir" != "X/usr/lib"; then
8641 haveit=
8642 if test "X$additional_libdir" = "X/usr/local/lib"; then
8643 if test -n "$GCC"; then
8644 case $host_os in
8645 linux*) haveit=yes;;
8646 esac
8647 fi
8648 fi
8649 if test -z "$haveit"; then
8650 haveit=
8651 for x in $LDFLAGS $LIBEXPAT; do
8652
8653 acl_save_prefix="$prefix"
8654 prefix="$acl_final_prefix"
8655 acl_save_exec_prefix="$exec_prefix"
8656 exec_prefix="$acl_final_exec_prefix"
8657 eval x=\"$x\"
8658 exec_prefix="$acl_save_exec_prefix"
8659 prefix="$acl_save_prefix"
8660
8661 if test "X$x" = "X-L$additional_libdir"; then
8662 haveit=yes
8663 break
8664 fi
8665 done
8666 if test -z "$haveit"; then
8667 if test -d "$additional_libdir"; then
8668 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8669 fi
8670 fi
8671 haveit=
8672 for x in $LDFLAGS $LTLIBEXPAT; do
8673
8674 acl_save_prefix="$prefix"
8675 prefix="$acl_final_prefix"
8676 acl_save_exec_prefix="$exec_prefix"
8677 exec_prefix="$acl_final_exec_prefix"
8678 eval x=\"$x\"
8679 exec_prefix="$acl_save_exec_prefix"
8680 prefix="$acl_save_prefix"
8681
8682 if test "X$x" = "X-L$additional_libdir"; then
8683 haveit=yes
8684 break
8685 fi
8686 done
8687 if test -z "$haveit"; then
8688 if test -d "$additional_libdir"; then
8689 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8690 fi
8691 fi
8692 fi
8693 fi
8694 ;;
8695 -R*)
8696 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8697 if test "$enable_rpath" != no; then
8698 haveit=
8699 for x in $rpathdirs; do
8700 if test "X$x" = "X$dir"; then
8701 haveit=yes
8702 break
8703 fi
8704 done
8705 if test -z "$haveit"; then
8706 rpathdirs="$rpathdirs $dir"
8707 fi
8708 haveit=
8709 for x in $ltrpathdirs; do
8710 if test "X$x" = "X$dir"; then
8711 haveit=yes
8712 break
8713 fi
8714 done
8715 if test -z "$haveit"; then
8716 ltrpathdirs="$ltrpathdirs $dir"
8717 fi
8718 fi
8719 ;;
8720 -l*)
8721 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8722 ;;
8723 *.la)
8724 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8725 ;;
8726 *)
8727 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8728 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8729 ;;
8730 esac
8731 done
8732 fi
8733 else
8734 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8735 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8736 fi
8737 fi
8738 fi
8739 done
8740 done
8741 if test "X$rpathdirs" != "X"; then
8742 if test -n "$hardcode_libdir_separator"; then
8743 alldirs=
8744 for found_dir in $rpathdirs; do
8745 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8746 done
8747 acl_save_libdir="$libdir"
8748 libdir="$alldirs"
8749 eval flag=\"$hardcode_libdir_flag_spec\"
8750 libdir="$acl_save_libdir"
8751 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8752 else
8753 for found_dir in $rpathdirs; do
8754 acl_save_libdir="$libdir"
8755 libdir="$found_dir"
8756 eval flag=\"$hardcode_libdir_flag_spec\"
8757 libdir="$acl_save_libdir"
8758 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8759 done
8760 fi
8761 fi
8762 if test "X$ltrpathdirs" != "X"; then
8763 for found_dir in $ltrpathdirs; do
8764 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8765 done
8766 fi
8767
8768
8769 ac_save_CPPFLAGS="$CPPFLAGS"
8770
8771 for element in $INCEXPAT; do
8772 haveit=
8773 for x in $CPPFLAGS; do
8774
8775 acl_save_prefix="$prefix"
8776 prefix="$acl_final_prefix"
8777 acl_save_exec_prefix="$exec_prefix"
8778 exec_prefix="$acl_final_exec_prefix"
8779 eval x=\"$x\"
8780 exec_prefix="$acl_save_exec_prefix"
8781 prefix="$acl_save_prefix"
8782
8783 if test "X$x" = "X$element"; then
8784 haveit=yes
8785 break
8786 fi
8787 done
8788 if test -z "$haveit"; then
8789 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8790 fi
8791 done
8792
8793
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8795 $as_echo_n "checking for libexpat... " >&6; }
8796 if test "${ac_cv_libexpat+set}" = set; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799
8800 ac_save_LIBS="$LIBS"
8801 LIBS="$LIBS $LIBEXPAT"
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8804 #include "expat.h"
8805 int
8806 main ()
8807 {
8808 XML_Parser p = XML_ParserCreate (0);
8809 ;
8810 return 0;
8811 }
8812 _ACEOF
8813 if ac_fn_c_try_link "$LINENO"; then :
8814 ac_cv_libexpat=yes
8815 else
8816 ac_cv_libexpat=no
8817 fi
8818 rm -f core conftest.err conftest.$ac_objext \
8819 conftest$ac_exeext conftest.$ac_ext
8820 LIBS="$ac_save_LIBS"
8821
8822 fi
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8824 $as_echo "$ac_cv_libexpat" >&6; }
8825 if test "$ac_cv_libexpat" = yes; then
8826 HAVE_LIBEXPAT=yes
8827
8828 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8829
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8831 $as_echo_n "checking how to link with libexpat... " >&6; }
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8833 $as_echo "$LIBEXPAT" >&6; }
8834 else
8835 HAVE_LIBEXPAT=no
8836 CPPFLAGS="$ac_save_CPPFLAGS"
8837 LIBEXPAT=
8838 LTLIBEXPAT=
8839 fi
8840
8841
8842
8843
8844
8845
8846 if test "$HAVE_LIBEXPAT" != yes; then
8847 if test "$with_expat" = yes; then
8848 as_fn_error "expat is missing or unusable" "$LINENO" 5
8849 else
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8851 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8852 fi
8853 else
8854 save_LIBS=$LIBS
8855 LIBS="$LIBS $LIBEXPAT"
8856 for ac_func in XML_StopParser
8857 do :
8858 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8859 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
8860 cat >>confdefs.h <<_ACEOF
8861 #define HAVE_XML_STOPPARSER 1
8862 _ACEOF
8863
8864 fi
8865 done
8866
8867 LIBS=$save_LIBS
8868 fi
8869 fi
8870
8871 # --------------------- #
8872 # Check for libpython. #
8873 # --------------------- #
8874
8875
8876
8877
8878
8879
8880 # Check whether --with-python was given.
8881 if test "${with_python+set}" = set; then :
8882 withval=$with_python;
8883 else
8884 with_python=auto
8885 fi
8886
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8888 $as_echo_n "checking whether to use python... " >&6; }
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8890 $as_echo "$with_python" >&6; }
8891
8892 if test "${with_python}" = no; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8894 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8895 have_libpython=no
8896 else
8897 case "${with_python}" in
8898 [\\/]* | ?:[\\/]*)
8899 if test -d ${with_python}; then
8900 # Assume the python binary is ${with_python}/bin/python.
8901 python_prog="${with_python}/bin/python"
8902 python_prefix=
8903 # If python does not exit ${with_python}/bin, then try in
8904 # ${with_python}. On Windows/MinGW, this is where the Python
8905 # executable is.
8906 if test ! -x "${python_prog}"; then
8907 python_prog="${with_python}/python"
8908 python_prefix=
8909 fi
8910 if test ! -x "${python_prog}"; then
8911 # Fall back to gdb 7.0/7.1 behaviour.
8912 python_prog=missing
8913 python_prefix=${with_python}
8914 fi
8915 elif test -x "${with_python}"; then
8916 # While we can't run python compiled for $host (unless host == build),
8917 # the user could write a script that provides the needed information,
8918 # so we support that.
8919 python_prog=${with_python}
8920 python_prefix=
8921 else
8922 as_fn_error "invalid value for --with-python" "$LINENO" 5
8923 fi
8924 ;;
8925 */*)
8926 # Disallow --with-python=foo/bar.
8927 as_fn_error "invalid value for --with-python" "$LINENO" 5
8928 ;;
8929 *)
8930 # The user has either specified auto, yes, or the name of the python
8931 # program assumed to be in $PATH.
8932 python_prefix=
8933 case "${with_python}" in
8934 yes | auto)
8935 if test ${build} = ${host}; then
8936 # Extract the first word of "python", so it can be a program name with args.
8937 set dummy python; ac_word=$2
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 $as_echo_n "checking for $ac_word... " >&6; }
8940 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 case $python_prog_path in
8944 [\\/]* | ?:[\\/]*)
8945 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8946 ;;
8947 *)
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8950 do
8951 IFS=$as_save_IFS
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8955 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 break 2
8958 fi
8959 done
8960 done
8961 IFS=$as_save_IFS
8962
8963 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8964 ;;
8965 esac
8966 fi
8967 python_prog_path=$ac_cv_path_python_prog_path
8968 if test -n "$python_prog_path"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8970 $as_echo "$python_prog_path" >&6; }
8971 else
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8974 fi
8975
8976
8977 if test "${python_prog_path}" = missing; then
8978 python_prog=missing
8979 else
8980 python_prog=${python_prog_path}
8981 fi
8982 else
8983 # Not much we can do except assume the cross-compiler will find the
8984 # right files.
8985 python_prog=missing
8986 fi
8987 ;;
8988 *)
8989 # While we can't run python compiled for $host (unless host == build),
8990 # the user could write a script that provides the needed information,
8991 # so we support that.
8992 python_prog="${with_python}"
8993 # Extract the first word of "${python_prog}", so it can be a program name with args.
8994 set dummy ${python_prog}; ac_word=$2
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996 $as_echo_n "checking for $ac_word... " >&6; }
8997 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 case $python_prog_path in
9001 [\\/]* | ?:[\\/]*)
9002 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
9003 ;;
9004 *)
9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006 for as_dir in $PATH
9007 do
9008 IFS=$as_save_IFS
9009 test -z "$as_dir" && as_dir=.
9010 for ac_exec_ext in '' $ac_executable_extensions; do
9011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9012 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
9013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9014 break 2
9015 fi
9016 done
9017 done
9018 IFS=$as_save_IFS
9019
9020 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
9021 ;;
9022 esac
9023 fi
9024 python_prog_path=$ac_cv_path_python_prog_path
9025 if test -n "$python_prog_path"; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
9027 $as_echo "$python_prog_path" >&6; }
9028 else
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9031 fi
9032
9033
9034 if test "${python_prog_path}" = missing; then
9035 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
9036 fi
9037 ;;
9038 esac
9039 esac
9040
9041 if test "${python_prog}" != missing; then
9042 # We have a python program to use, but it may be too old.
9043 # Don't flag an error for --with-python=auto (the default).
9044 have_python_config=yes
9045 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
9046 if test $? != 0; then
9047 have_python_config=failed
9048 if test "${with_python}" != auto; then
9049 as_fn_error "failure running python-config --includes" "$LINENO" 5
9050 fi
9051 fi
9052 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
9053 if test $? != 0; then
9054 have_python_config=failed
9055 if test "${with_python}" != auto; then
9056 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
9057 fi
9058 fi
9059 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
9060 if test $? != 0; then
9061 have_python_config=failed
9062 if test "${with_python}" != auto; then
9063 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
9064 fi
9065 fi
9066 else
9067 # We do not have a python executable we can use to determine where
9068 # to find the Python headers and libs. We cannot guess the include
9069 # path from the python_prefix either, because that include path
9070 # depends on the Python version. So, there is nothing much we can
9071 # do except assume that the compiler will be able to find those files.
9072 python_includes=
9073 python_libs=
9074 have_python_config=no
9075 fi
9076
9077 # If we have python-config, only try the configuration it provides.
9078 # Otherwise fallback on the old way of trying different versions of
9079 # python in turn.
9080
9081 have_libpython=no
9082 if test "${have_python_config}" = yes; then
9083 # Determine the Python version by extracting "-lpython<version>"
9084 # part of the python_libs. <version> is usually X.Y with X and Y
9085 # being decimal numbers, but can also be XY (seen on Windows).
9086 #
9087 # The extraction is performed using sed with a regular expression.
9088 # Initially, the regexp used was using the '?' quantifier to make
9089 # the dot in the version number optional. Unfortunately, this
9090 # does not work with non-GNU versions of sed because, because of
9091 # what looks like a limitation (the '?' quantifier does not work
9092 # with back-references). We work around this limitation by using
9093 # the '*' quantifier instead. It means that, in theory, we might
9094 # match unexpected version strings such as "-lpython2..7", but
9095 # this seems unlikely in practice. And even if that happens,
9096 # an error will be triggered later on, when checking that version
9097 # number.
9098 python_version=`echo " ${python_libs} " \
9099 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
9100 case "${python_version}" in
9101 python*)
9102
9103 version=${python_version}
9104
9105 new_CPPFLAGS=${python_includes}
9106 new_LIBS=${python_libs}
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9108 $as_echo_n "checking for ${version}... " >&6; }
9109 save_CPPFLAGS=$CPPFLAGS
9110 save_LIBS=$LIBS
9111 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9112 LIBS="$LIBS $new_LIBS"
9113 found_usable_python=no
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9116 #include "Python.h"
9117 int
9118 main ()
9119 {
9120 Py_Initialize ();
9121 ;
9122 return 0;
9123 }
9124 _ACEOF
9125 if ac_fn_c_try_link "$LINENO"; then :
9126 have_libpython=${version}
9127 found_usable_python=yes
9128 PYTHON_CPPFLAGS=$new_CPPFLAGS
9129 PYTHON_LIBS=$new_LIBS
9130 fi
9131 rm -f core conftest.err conftest.$ac_objext \
9132 conftest$ac_exeext conftest.$ac_ext
9133 CPPFLAGS=$save_CPPFLAGS
9134 LIBS=$save_LIBS
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9136 $as_echo "${found_usable_python}" >&6; }
9137
9138 ;;
9139 *)
9140 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
9141 ;;
9142 esac
9143 elif test "${have_python_config}" != failed; then
9144 if test "${have_libpython}" = no; then
9145
9146 version=python2.7
9147
9148 new_CPPFLAGS=${python_includes}
9149 new_LIBS="${python_libs} -lpython2.7"
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9151 $as_echo_n "checking for ${version}... " >&6; }
9152 save_CPPFLAGS=$CPPFLAGS
9153 save_LIBS=$LIBS
9154 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9155 LIBS="$LIBS $new_LIBS"
9156 found_usable_python=no
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 #include "Python.h"
9160 int
9161 main ()
9162 {
9163 Py_Initialize ();
9164 ;
9165 return 0;
9166 }
9167 _ACEOF
9168 if ac_fn_c_try_link "$LINENO"; then :
9169 have_libpython=${version}
9170 found_usable_python=yes
9171 PYTHON_CPPFLAGS=$new_CPPFLAGS
9172 PYTHON_LIBS=$new_LIBS
9173 fi
9174 rm -f core conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
9176 CPPFLAGS=$save_CPPFLAGS
9177 LIBS=$save_LIBS
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9179 $as_echo "${found_usable_python}" >&6; }
9180
9181 fi
9182 if test "${have_libpython}" = no; then
9183
9184 version=python2.6
9185
9186 new_CPPFLAGS=${python_includes}
9187 new_LIBS="${python_libs} -lpython2.6"
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9189 $as_echo_n "checking for ${version}... " >&6; }
9190 save_CPPFLAGS=$CPPFLAGS
9191 save_LIBS=$LIBS
9192 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9193 LIBS="$LIBS $new_LIBS"
9194 found_usable_python=no
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 #include "Python.h"
9198 int
9199 main ()
9200 {
9201 Py_Initialize ();
9202 ;
9203 return 0;
9204 }
9205 _ACEOF
9206 if ac_fn_c_try_link "$LINENO"; then :
9207 have_libpython=${version}
9208 found_usable_python=yes
9209 PYTHON_CPPFLAGS=$new_CPPFLAGS
9210 PYTHON_LIBS=$new_LIBS
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9214 CPPFLAGS=$save_CPPFLAGS
9215 LIBS=$save_LIBS
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9217 $as_echo "${found_usable_python}" >&6; }
9218
9219 fi
9220 if test ${have_libpython} = no; then
9221
9222 version=python2.5
9223
9224 new_CPPFLAGS=${python_includes}
9225 new_LIBS="${python_libs} -lpython2.5"
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9227 $as_echo_n "checking for ${version}... " >&6; }
9228 save_CPPFLAGS=$CPPFLAGS
9229 save_LIBS=$LIBS
9230 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9231 LIBS="$LIBS $new_LIBS"
9232 found_usable_python=no
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 #include "Python.h"
9236 int
9237 main ()
9238 {
9239 Py_Initialize ();
9240 ;
9241 return 0;
9242 }
9243 _ACEOF
9244 if ac_fn_c_try_link "$LINENO"; then :
9245 have_libpython=${version}
9246 found_usable_python=yes
9247 PYTHON_CPPFLAGS=$new_CPPFLAGS
9248 PYTHON_LIBS=$new_LIBS
9249 fi
9250 rm -f core conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9252 CPPFLAGS=$save_CPPFLAGS
9253 LIBS=$save_LIBS
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9255 $as_echo "${found_usable_python}" >&6; }
9256
9257 fi
9258 if test ${have_libpython} = no; then
9259
9260 version=python2.4
9261
9262 new_CPPFLAGS=${python_includes}
9263 new_LIBS="${python_libs} -lpython2.4"
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9265 $as_echo_n "checking for ${version}... " >&6; }
9266 save_CPPFLAGS=$CPPFLAGS
9267 save_LIBS=$LIBS
9268 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9269 LIBS="$LIBS $new_LIBS"
9270 found_usable_python=no
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 #include "Python.h"
9274 int
9275 main ()
9276 {
9277 Py_Initialize ();
9278 ;
9279 return 0;
9280 }
9281 _ACEOF
9282 if ac_fn_c_try_link "$LINENO"; then :
9283 have_libpython=${version}
9284 found_usable_python=yes
9285 PYTHON_CPPFLAGS=$new_CPPFLAGS
9286 PYTHON_LIBS=$new_LIBS
9287 fi
9288 rm -f core conftest.err conftest.$ac_objext \
9289 conftest$ac_exeext conftest.$ac_ext
9290 CPPFLAGS=$save_CPPFLAGS
9291 LIBS=$save_LIBS
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9293 $as_echo "${found_usable_python}" >&6; }
9294
9295 fi
9296 fi
9297 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
9298
9299 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
9300
9301 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
9302
9303 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9304
9305 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
9306
9307 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9308
9309 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
9310
9311 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9312
9313 fi
9314
9315 if test "${have_libpython}" = no; then
9316 case "${with_python}" in
9317 yes)
9318 as_fn_error "python is missing or unusable" "$LINENO" 5
9319 ;;
9320 auto)
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9322 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9323 ;;
9324 *)
9325 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
9326 ;;
9327 esac
9328 else
9329 if test -n "${python_prefix}"; then
9330
9331 cat >>confdefs.h <<_ACEOF
9332 #define WITH_PYTHON_PATH "${python_prefix}"
9333 _ACEOF
9334
9335
9336 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9337 if test "x$prefix" = xNONE; then
9338 test_prefix=/usr/local
9339 else
9340 test_prefix=$prefix
9341 fi
9342 else
9343 test_prefix=$exec_prefix
9344 fi
9345 value=0
9346 case ${python_prefix} in
9347 "${test_prefix}"|"${test_prefix}/"*|\
9348 '${exec_prefix}'|'${exec_prefix}/'*)
9349 value=1
9350 ;;
9351 esac
9352
9353 cat >>confdefs.h <<_ACEOF
9354 #define PYTHON_PATH_RELOCATABLE $value
9355 _ACEOF
9356
9357
9358 fi
9359 fi
9360 fi
9361
9362 if test "${have_libpython}" != no; then
9363
9364 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9365
9366 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9367 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9368 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9369 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
9370 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9371
9372 # Flags needed to compile Python code (taken from python-config --cflags).
9373 # We cannot call python-config directly because it will output whatever was
9374 # used when compiling the Python interpreter itself, including flags which
9375 # would make the python-related objects be compiled differently from the
9376 # rest of GDB (e.g., -O2 and -fPIC).
9377 if test "${GCC}" = yes; then
9378 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
9379 fi
9380
9381 if test "x${tentative_python_cflags}" != x; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9383 $as_echo_n "checking compiler flags for python code... " >&6; }
9384 for flag in ${tentative_python_cflags}; do
9385 # Check that the compiler accepts it
9386 saved_CFLAGS="$CFLAGS"
9387 CFLAGS="$CFLAGS $flag"
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390
9391 int
9392 main ()
9393 {
9394
9395 ;
9396 return 0;
9397 }
9398 _ACEOF
9399 if ac_fn_c_try_compile "$LINENO"; then :
9400 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
9401 fi
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 CFLAGS="$saved_CFLAGS"
9404 done
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9406 $as_echo "${PYTHON_CFLAGS}" >&6; }
9407 fi
9408
9409 # On x64 Windows, Python's include headers, and pyconfig.h in
9410 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
9411 # version of Windows. Unfortunately, MS_WIN64 is only defined if
9412 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
9413 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
9414 # The issue was reported to the Python community, but still isn't
9415 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
9416
9417 case "$gdb_host" in
9418 mingw64)
9419 if test "${GCC}" = yes; then
9420 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
9421 fi
9422 ;;
9423 esac
9424
9425 # Note that "python -m threading" cannot be used to check for
9426 # threading support due to a bug in Python 2.7.3
9427 # (http://bugs.python.org/issue15567).
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
9429 $as_echo_n "checking whether python supports threads... " >&6; }
9430 saved_CPPFLAGS="${CPPFLAGS}"
9431 CPPFLAGS="${PYTHON_CPPFLAGS}"
9432 # Note that the test is reversed so that python_has_threads=yes on
9433 # unexpected failures.
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436
9437 #include <Python.h>
9438 #ifdef WITH_THREAD
9439 # error
9440 #endif
9441
9442 _ACEOF
9443 if ac_fn_c_try_cpp "$LINENO"; then :
9444 python_has_threads=no
9445 else
9446 python_has_threads=yes
9447 fi
9448 rm -f conftest.err conftest.$ac_ext
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9450 $as_echo "${python_has_threads}" >&6; }
9451 CPPFLAGS="${saved_CPPFLAGS}"
9452 else
9453 # Even if Python support is not compiled in, we need to have this file
9454 # included so that the "python" command, et.al., still exists.
9455 CONFIG_OBS="$CONFIG_OBS python.o"
9456 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
9457 fi
9458
9459
9460
9461 if test "${have_libpython}" != no; then
9462 HAVE_PYTHON_TRUE=
9463 HAVE_PYTHON_FALSE='#'
9464 else
9465 HAVE_PYTHON_TRUE='#'
9466 HAVE_PYTHON_FALSE=
9467 fi
9468
9469
9470 # -------------------- #
9471 # Check for libguile. #
9472 # -------------------- #
9473
9474
9475
9476
9477
9478
9479 # Check whether --with-guile was given.
9480 if test "${with_guile+set}" = set; then :
9481 withval=$with_guile;
9482 else
9483 with_guile=auto
9484 fi
9485
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9487 $as_echo_n "checking whether to use guile... " >&6; }
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9489 $as_echo "$with_guile" >&6; }
9490
9491 # Extract the first word of "pkg-config", so it can be a program name with args.
9492 set dummy pkg-config; ac_word=$2
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494 $as_echo_n "checking for $ac_word... " >&6; }
9495 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 case $pkg_config_prog_path in
9499 [\\/]* | ?:[\\/]*)
9500 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
9501 ;;
9502 *)
9503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504 for as_dir in $PATH
9505 do
9506 IFS=$as_save_IFS
9507 test -z "$as_dir" && as_dir=.
9508 for ac_exec_ext in '' $ac_executable_extensions; do
9509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9510 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
9511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9512 break 2
9513 fi
9514 done
9515 done
9516 IFS=$as_save_IFS
9517
9518 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
9519 ;;
9520 esac
9521 fi
9522 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
9523 if test -n "$pkg_config_prog_path"; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9525 $as_echo "$pkg_config_prog_path" >&6; }
9526 else
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9529 fi
9530
9531
9532
9533 try_guile_versions="guile-2.2 guile-2.0"
9534 have_libguile=no
9535 case "${with_guile}" in
9536 no)
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9538 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9539 ;;
9540 auto)
9541 if test "${pkg_config_prog_path}" = "missing"; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9543 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9544 else
9545
9546 pkg_config=${pkg_config_prog_path}
9547 guile_version_list=${try_guile_versions}
9548 flag_errors=no
9549
9550 found_usable_guile=checking
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9552 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9553 for guile_version in ${guile_version_list}; do
9554 ${pkg_config} --exists ${guile_version} 2>/dev/null
9555 if test $? != 0; then
9556 continue
9557 fi
9558 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9559 if test $? != 0; then
9560 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9561 fi
9562 new_LIBS=`${pkg_config} --libs ${guile_version}`
9563 if test $? != 0; then
9564 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9565 fi
9566 found_usable_guile=${guile_version}
9567 break
9568 done
9569 if test "${found_usable_guile}" = "checking"; then
9570 if test "${flag_errors}" = "yes"; then
9571 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9572 else
9573 found_usable_guile=no
9574 fi
9575 fi
9576 if test "${found_usable_guile}" != no; then
9577 save_CPPFLAGS=$CPPFLAGS
9578 save_LIBS=$LIBS
9579 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9580 LIBS="$LIBS $new_LIBS"
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9583 #include "libguile.h"
9584 int
9585 main ()
9586 {
9587 scm_init_guile ();
9588 ;
9589 return 0;
9590 }
9591 _ACEOF
9592 if ac_fn_c_try_link "$LINENO"; then :
9593 have_libguile=yes
9594 GUILE_CPPFLAGS=$new_CPPFLAGS
9595 GUILE_LIBS=$new_LIBS
9596 else
9597 found_usable_guile=no
9598 fi
9599 rm -f core conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
9601 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9602 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9603
9604 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9605
9606
9607 fi
9608
9609 CPPFLAGS=$save_CPPFLAGS
9610 LIBS=$save_LIBS
9611 if test "${found_usable_guile}" = no; then
9612 if test "${flag_errors}" = yes; then
9613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9615 as_fn_error "linking guile version ${guile_version} test program failed
9616 See \`config.log' for more details." "$LINENO" 5; }
9617 fi
9618 fi
9619 fi
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9621 $as_echo "${found_usable_guile}" >&6; }
9622
9623 fi
9624 ;;
9625 yes)
9626 if test "${pkg_config_prog_path}" = "missing"; then
9627 as_fn_error "pkg-config not found" "$LINENO" 5
9628 fi
9629
9630 pkg_config=${pkg_config_prog_path}
9631 guile_version_list=${try_guile_versions}
9632 flag_errors=yes
9633
9634 found_usable_guile=checking
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9636 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9637 for guile_version in ${guile_version_list}; do
9638 ${pkg_config} --exists ${guile_version} 2>/dev/null
9639 if test $? != 0; then
9640 continue
9641 fi
9642 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9643 if test $? != 0; then
9644 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9645 fi
9646 new_LIBS=`${pkg_config} --libs ${guile_version}`
9647 if test $? != 0; then
9648 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9649 fi
9650 found_usable_guile=${guile_version}
9651 break
9652 done
9653 if test "${found_usable_guile}" = "checking"; then
9654 if test "${flag_errors}" = "yes"; then
9655 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9656 else
9657 found_usable_guile=no
9658 fi
9659 fi
9660 if test "${found_usable_guile}" != no; then
9661 save_CPPFLAGS=$CPPFLAGS
9662 save_LIBS=$LIBS
9663 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9664 LIBS="$LIBS $new_LIBS"
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9667 #include "libguile.h"
9668 int
9669 main ()
9670 {
9671 scm_init_guile ();
9672 ;
9673 return 0;
9674 }
9675 _ACEOF
9676 if ac_fn_c_try_link "$LINENO"; then :
9677 have_libguile=yes
9678 GUILE_CPPFLAGS=$new_CPPFLAGS
9679 GUILE_LIBS=$new_LIBS
9680 else
9681 found_usable_guile=no
9682 fi
9683 rm -f core conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
9685 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9686 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9687
9688 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9689
9690
9691 fi
9692
9693 CPPFLAGS=$save_CPPFLAGS
9694 LIBS=$save_LIBS
9695 if test "${found_usable_guile}" = no; then
9696 if test "${flag_errors}" = yes; then
9697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9699 as_fn_error "linking guile version ${guile_version} test program failed
9700 See \`config.log' for more details." "$LINENO" 5; }
9701 fi
9702 fi
9703 fi
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9705 $as_echo "${found_usable_guile}" >&6; }
9706
9707 ;;
9708 [\\/]* | ?:[\\/]*)
9709 if test -x "${with_guile}"; then
9710
9711 pkg_config=${with_guile}
9712 guile_version_list=${try_guile_versions}
9713 flag_errors=yes
9714
9715 found_usable_guile=checking
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9717 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9718 for guile_version in ${guile_version_list}; do
9719 ${pkg_config} --exists ${guile_version} 2>/dev/null
9720 if test $? != 0; then
9721 continue
9722 fi
9723 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9724 if test $? != 0; then
9725 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9726 fi
9727 new_LIBS=`${pkg_config} --libs ${guile_version}`
9728 if test $? != 0; then
9729 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9730 fi
9731 found_usable_guile=${guile_version}
9732 break
9733 done
9734 if test "${found_usable_guile}" = "checking"; then
9735 if test "${flag_errors}" = "yes"; then
9736 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9737 else
9738 found_usable_guile=no
9739 fi
9740 fi
9741 if test "${found_usable_guile}" != no; then
9742 save_CPPFLAGS=$CPPFLAGS
9743 save_LIBS=$LIBS
9744 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9745 LIBS="$LIBS $new_LIBS"
9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h. */
9748 #include "libguile.h"
9749 int
9750 main ()
9751 {
9752 scm_init_guile ();
9753 ;
9754 return 0;
9755 }
9756 _ACEOF
9757 if ac_fn_c_try_link "$LINENO"; then :
9758 have_libguile=yes
9759 GUILE_CPPFLAGS=$new_CPPFLAGS
9760 GUILE_LIBS=$new_LIBS
9761 else
9762 found_usable_guile=no
9763 fi
9764 rm -f core conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext conftest.$ac_ext
9766 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9767 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9768
9769 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9770
9771
9772 fi
9773
9774 CPPFLAGS=$save_CPPFLAGS
9775 LIBS=$save_LIBS
9776 if test "${found_usable_guile}" = no; then
9777 if test "${flag_errors}" = yes; then
9778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9780 as_fn_error "linking guile version ${guile_version} test program failed
9781 See \`config.log' for more details." "$LINENO" 5; }
9782 fi
9783 fi
9784 fi
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9786 $as_echo "${found_usable_guile}" >&6; }
9787
9788 else
9789 as_fn_error "Guile config program not executable: ${with_guile}" "$LINENO" 5
9790 fi
9791 ;;
9792 "" | */*)
9793 # Disallow --with=guile="" and --with-guile=foo/bar.
9794 as_fn_error "invalid value for --with-guile" "$LINENO" 5
9795 ;;
9796 *)
9797 # A space separate list of guile versions to try, in order.
9798 if test "${pkg_config_prog_path}" = "missing"; then
9799 as_fn_error "pkg-config not found" "$LINENO" 5
9800 fi
9801
9802 pkg_config=${pkg_config_prog_path}
9803 guile_version_list=${with_guile}
9804 flag_errors=yes
9805
9806 found_usable_guile=checking
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9808 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9809 for guile_version in ${guile_version_list}; do
9810 ${pkg_config} --exists ${guile_version} 2>/dev/null
9811 if test $? != 0; then
9812 continue
9813 fi
9814 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9815 if test $? != 0; then
9816 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9817 fi
9818 new_LIBS=`${pkg_config} --libs ${guile_version}`
9819 if test $? != 0; then
9820 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9821 fi
9822 found_usable_guile=${guile_version}
9823 break
9824 done
9825 if test "${found_usable_guile}" = "checking"; then
9826 if test "${flag_errors}" = "yes"; then
9827 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9828 else
9829 found_usable_guile=no
9830 fi
9831 fi
9832 if test "${found_usable_guile}" != no; then
9833 save_CPPFLAGS=$CPPFLAGS
9834 save_LIBS=$LIBS
9835 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9836 LIBS="$LIBS $new_LIBS"
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9839 #include "libguile.h"
9840 int
9841 main ()
9842 {
9843 scm_init_guile ();
9844 ;
9845 return 0;
9846 }
9847 _ACEOF
9848 if ac_fn_c_try_link "$LINENO"; then :
9849 have_libguile=yes
9850 GUILE_CPPFLAGS=$new_CPPFLAGS
9851 GUILE_LIBS=$new_LIBS
9852 else
9853 found_usable_guile=no
9854 fi
9855 rm -f core conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9858 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9859
9860 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9861
9862
9863 fi
9864
9865 CPPFLAGS=$save_CPPFLAGS
9866 LIBS=$save_LIBS
9867 if test "${found_usable_guile}" = no; then
9868 if test "${flag_errors}" = yes; then
9869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9871 as_fn_error "linking guile version ${guile_version} test program failed
9872 See \`config.log' for more details." "$LINENO" 5; }
9873 fi
9874 fi
9875 fi
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9877 $as_echo "${found_usable_guile}" >&6; }
9878
9879 ;;
9880 esac
9881
9882 if test "${have_libguile}" != no; then
9883 case "${with_guile}" in
9884 [\\/]* | ?:[\\/]*)
9885
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9887 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9888 if test "${ac_cv_guild_program_name+set}" = set; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
9892
9893 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9894 # the 'guild' and 'bindir' variables. In that case, try to guess
9895 # what the program name is, at the risk of getting it wrong if
9896 # Guile was configured with '--program-suffix' or similar.
9897 if test "x$ac_cv_guild_program_name" = "x"; then
9898 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9899 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9900 fi
9901
9902 fi
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9904 $as_echo "$ac_cv_guild_program_name" >&6; }
9905
9906 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9907 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9908 fi
9909
9910 GUILD="$ac_cv_guild_program_name"
9911
9912
9913 ;;
9914 *)
9915
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9917 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9918 if test "${ac_cv_guild_program_name+set}" = set; then :
9919 $as_echo_n "(cached) " >&6
9920 else
9921 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9922
9923 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9924 # the 'guild' and 'bindir' variables. In that case, try to guess
9925 # what the program name is, at the risk of getting it wrong if
9926 # Guile was configured with '--program-suffix' or similar.
9927 if test "x$ac_cv_guild_program_name" = "x"; then
9928 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9929 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9930 fi
9931
9932 fi
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9934 $as_echo "$ac_cv_guild_program_name" >&6; }
9935
9936 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9937 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9938 fi
9939
9940 GUILD="$ac_cv_guild_program_name"
9941
9942
9943 ;;
9944 esac
9945
9946
9947 if test "$cross_compiling" = no; then
9948 GUILD_TARGET_FLAG=
9949 else
9950 GUILD_TARGET_FLAG="--target=$host"
9951 fi
9952
9953
9954
9955
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9957 $as_echo_n "checking whether guild supports this host... " >&6; }
9958 if test "${ac_cv_guild_ok+set}" = set; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9962 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9963 ac_cv_guild_ok=yes
9964 else
9965 ac_cv_guild_ok=no
9966 fi
9967 fi
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9969 $as_echo "$ac_cv_guild_ok" >&6; }
9970
9971 if test "$ac_cv_guild_ok" = no; then
9972 have_libguile=no
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9974 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9975 fi
9976 fi
9977
9978 if test "${have_libguile}" != no; then
9979
9980 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9981
9982 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9983 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9984 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9985 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
9986 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9987
9988 save_LIBS="$LIBS"
9989 save_CPPFLAGS="$CPPFLAGS"
9990 LIBS="$GUILE_LIBS"
9991 CPPFLAGS="$GUILE_CPPFLAGS"
9992 for ac_func in scm_new_smob
9993 do :
9994 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9995 if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
9996 cat >>confdefs.h <<_ACEOF
9997 #define HAVE_SCM_NEW_SMOB 1
9998 _ACEOF
9999
10000 fi
10001 done
10002
10003 LIBS="$save_LIBS"
10004 CPPFLAGS="$save_CPPFLAGS"
10005 else
10006 # Even if Guile support is not compiled in, we need to have these files
10007 # included.
10008 CONFIG_OBS="$CONFIG_OBS guile.o"
10009 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
10010 fi
10011
10012
10013 if test "${have_libguile}" != no; then
10014 HAVE_GUILE_TRUE=
10015 HAVE_GUILE_FALSE='#'
10016 else
10017 HAVE_GUILE_TRUE='#'
10018 HAVE_GUILE_FALSE=
10019 fi
10020
10021
10022 # --------------------- #
10023 # Check for libmcheck. #
10024 # --------------------- #
10025
10026 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
10027 # but turn it off if Python is enabled with threads, since -lmcheck is
10028 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
10029 # and for releases.
10030 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
10031 && $development; then
10032 libmcheck_default=yes
10033 else
10034 libmcheck_default=no
10035 fi
10036
10037 # Check whether --enable-libmcheck was given.
10038 if test "${enable_libmcheck+set}" = set; then :
10039 enableval=$enable_libmcheck; case "${enableval}" in
10040 yes | y) ENABLE_LIBMCHECK="yes" ;;
10041 no | n) ENABLE_LIBMCHECK="no" ;;
10042 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
10043 esac
10044 fi
10045
10046
10047 if test -z "${ENABLE_LIBMCHECK}"; then
10048 ENABLE_LIBMCHECK=${libmcheck_default}
10049 fi
10050
10051 if test "$ENABLE_LIBMCHECK" = "yes" ; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
10053 $as_echo_n "checking for main in -lmcheck... " >&6; }
10054 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
10055 $as_echo_n "(cached) " >&6
10056 else
10057 ac_check_lib_save_LIBS=$LIBS
10058 LIBS="-lmcheck $LIBS"
10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10061
10062
10063 int
10064 main ()
10065 {
10066 return main ();
10067 ;
10068 return 0;
10069 }
10070 _ACEOF
10071 if ac_fn_c_try_link "$LINENO"; then :
10072 ac_cv_lib_mcheck_main=yes
10073 else
10074 ac_cv_lib_mcheck_main=no
10075 fi
10076 rm -f core conftest.err conftest.$ac_objext \
10077 conftest$ac_exeext conftest.$ac_ext
10078 LIBS=$ac_check_lib_save_LIBS
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
10081 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
10082 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
10083 cat >>confdefs.h <<_ACEOF
10084 #define HAVE_LIBMCHECK 1
10085 _ACEOF
10086
10087 LIBS="-lmcheck $LIBS"
10088
10089 fi
10090
10091 fi
10092
10093
10094 if test "$ENABLE_LIBMCHECK" = "yes" \
10095 -a "${have_libpython}" != "no" \
10096 -a "${python_has_threads}" = "yes" ; then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
10098 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
10099 fi
10100
10101
10102 # Check whether --with-intel_pt was given.
10103 if test "${with_intel_pt+set}" = set; then :
10104 withval=$with_intel_pt;
10105 else
10106 with_intel_pt=auto
10107 fi
10108
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
10110 $as_echo_n "checking whether to use intel pt... " >&6; }
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
10112 $as_echo "$with_intel_pt" >&6; }
10113
10114 if test "${with_intel_pt}" = no; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel(R) Processor Trace support disabled; some features may be unavailable." >&5
10116 $as_echo "$as_me: WARNING: Intel(R) Processor Trace support disabled; some features may be unavailable." >&2;}
10117 HAVE_LIBIPT=no
10118 else
10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10121
10122 #include <linux/perf_event.h>
10123 #ifndef PERF_ATTR_SIZE_VER5
10124 # error
10125 #endif
10126
10127 _ACEOF
10128 if ac_fn_c_try_cpp "$LINENO"; then :
10129 perf_event=yes
10130 else
10131 perf_event=no
10132 fi
10133 rm -f conftest.err conftest.$ac_ext
10134 if test "$perf_event" != yes; then
10135 if test "$with_intel_pt" = yes; then
10136 as_fn_error "linux/perf_event.h missing or too old" "$LINENO" 5
10137 else
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
10139 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
10140 fi
10141 fi
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151 use_additional=yes
10152
10153 acl_save_prefix="$prefix"
10154 prefix="$acl_final_prefix"
10155 acl_save_exec_prefix="$exec_prefix"
10156 exec_prefix="$acl_final_exec_prefix"
10157
10158 eval additional_includedir=\"$includedir\"
10159 eval additional_libdir=\"$libdir\"
10160
10161 exec_prefix="$acl_save_exec_prefix"
10162 prefix="$acl_save_prefix"
10163
10164
10165 # Check whether --with-libipt-prefix was given.
10166 if test "${with_libipt_prefix+set}" = set; then :
10167 withval=$with_libipt_prefix;
10168 if test "X$withval" = "Xno"; then
10169 use_additional=no
10170 else
10171 if test "X$withval" = "X"; then
10172
10173 acl_save_prefix="$prefix"
10174 prefix="$acl_final_prefix"
10175 acl_save_exec_prefix="$exec_prefix"
10176 exec_prefix="$acl_final_exec_prefix"
10177
10178 eval additional_includedir=\"$includedir\"
10179 eval additional_libdir=\"$libdir\"
10180
10181 exec_prefix="$acl_save_exec_prefix"
10182 prefix="$acl_save_prefix"
10183
10184 else
10185 additional_includedir="$withval/include"
10186 additional_libdir="$withval/lib"
10187 fi
10188 fi
10189
10190 fi
10191
10192 LIBIPT=
10193 LTLIBIPT=
10194 INCIPT=
10195 rpathdirs=
10196 ltrpathdirs=
10197 names_already_handled=
10198 names_next_round='ipt '
10199 while test -n "$names_next_round"; do
10200 names_this_round="$names_next_round"
10201 names_next_round=
10202 for name in $names_this_round; do
10203 already_handled=
10204 for n in $names_already_handled; do
10205 if test "$n" = "$name"; then
10206 already_handled=yes
10207 break
10208 fi
10209 done
10210 if test -z "$already_handled"; then
10211 names_already_handled="$names_already_handled $name"
10212 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10213 eval value=\"\$HAVE_LIB$uppername\"
10214 if test -n "$value"; then
10215 if test "$value" = yes; then
10216 eval value=\"\$LIB$uppername\"
10217 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
10218 eval value=\"\$LTLIB$uppername\"
10219 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
10220 else
10221 :
10222 fi
10223 else
10224 found_dir=
10225 found_la=
10226 found_so=
10227 found_a=
10228 if test $use_additional = yes; then
10229 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10230 found_dir="$additional_libdir"
10231 found_so="$additional_libdir/lib$name.$shlibext"
10232 if test -f "$additional_libdir/lib$name.la"; then
10233 found_la="$additional_libdir/lib$name.la"
10234 fi
10235 else
10236 if test -f "$additional_libdir/lib$name.$libext"; then
10237 found_dir="$additional_libdir"
10238 found_a="$additional_libdir/lib$name.$libext"
10239 if test -f "$additional_libdir/lib$name.la"; then
10240 found_la="$additional_libdir/lib$name.la"
10241 fi
10242 fi
10243 fi
10244 fi
10245 if test "X$found_dir" = "X"; then
10246 for x in $LDFLAGS $LTLIBIPT; do
10247
10248 acl_save_prefix="$prefix"
10249 prefix="$acl_final_prefix"
10250 acl_save_exec_prefix="$exec_prefix"
10251 exec_prefix="$acl_final_exec_prefix"
10252 eval x=\"$x\"
10253 exec_prefix="$acl_save_exec_prefix"
10254 prefix="$acl_save_prefix"
10255
10256 case "$x" in
10257 -L*)
10258 dir=`echo "X$x" | sed -e 's/^X-L//'`
10259 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10260 found_dir="$dir"
10261 found_so="$dir/lib$name.$shlibext"
10262 if test -f "$dir/lib$name.la"; then
10263 found_la="$dir/lib$name.la"
10264 fi
10265 else
10266 if test -f "$dir/lib$name.$libext"; then
10267 found_dir="$dir"
10268 found_a="$dir/lib$name.$libext"
10269 if test -f "$dir/lib$name.la"; then
10270 found_la="$dir/lib$name.la"
10271 fi
10272 fi
10273 fi
10274 ;;
10275 esac
10276 if test "X$found_dir" != "X"; then
10277 break
10278 fi
10279 done
10280 fi
10281 if test "X$found_dir" != "X"; then
10282 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
10283 if test "X$found_so" != "X"; then
10284 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10285 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10286 else
10287 haveit=
10288 for x in $ltrpathdirs; do
10289 if test "X$x" = "X$found_dir"; then
10290 haveit=yes
10291 break
10292 fi
10293 done
10294 if test -z "$haveit"; then
10295 ltrpathdirs="$ltrpathdirs $found_dir"
10296 fi
10297 if test "$hardcode_direct" = yes; then
10298 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10299 else
10300 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10301 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10302 haveit=
10303 for x in $rpathdirs; do
10304 if test "X$x" = "X$found_dir"; then
10305 haveit=yes
10306 break
10307 fi
10308 done
10309 if test -z "$haveit"; then
10310 rpathdirs="$rpathdirs $found_dir"
10311 fi
10312 else
10313 haveit=
10314 for x in $LDFLAGS $LIBIPT; do
10315
10316 acl_save_prefix="$prefix"
10317 prefix="$acl_final_prefix"
10318 acl_save_exec_prefix="$exec_prefix"
10319 exec_prefix="$acl_final_exec_prefix"
10320 eval x=\"$x\"
10321 exec_prefix="$acl_save_exec_prefix"
10322 prefix="$acl_save_prefix"
10323
10324 if test "X$x" = "X-L$found_dir"; then
10325 haveit=yes
10326 break
10327 fi
10328 done
10329 if test -z "$haveit"; then
10330 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10331 fi
10332 if test "$hardcode_minus_L" != no; then
10333 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10334 else
10335 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10336 fi
10337 fi
10338 fi
10339 fi
10340 else
10341 if test "X$found_a" != "X"; then
10342 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
10343 else
10344 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10345 fi
10346 fi
10347 additional_includedir=
10348 case "$found_dir" in
10349 */lib | */lib/)
10350 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10351 additional_includedir="$basedir/include"
10352 ;;
10353 esac
10354 if test "X$additional_includedir" != "X"; then
10355 if test "X$additional_includedir" != "X/usr/include"; then
10356 haveit=
10357 if test "X$additional_includedir" = "X/usr/local/include"; then
10358 if test -n "$GCC"; then
10359 case $host_os in
10360 linux*) haveit=yes;;
10361 esac
10362 fi
10363 fi
10364 if test -z "$haveit"; then
10365 for x in $CPPFLAGS $INCIPT; do
10366
10367 acl_save_prefix="$prefix"
10368 prefix="$acl_final_prefix"
10369 acl_save_exec_prefix="$exec_prefix"
10370 exec_prefix="$acl_final_exec_prefix"
10371 eval x=\"$x\"
10372 exec_prefix="$acl_save_exec_prefix"
10373 prefix="$acl_save_prefix"
10374
10375 if test "X$x" = "X-I$additional_includedir"; then
10376 haveit=yes
10377 break
10378 fi
10379 done
10380 if test -z "$haveit"; then
10381 if test -d "$additional_includedir"; then
10382 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10383 fi
10384 fi
10385 fi
10386 fi
10387 fi
10388 if test -n "$found_la"; then
10389 save_libdir="$libdir"
10390 case "$found_la" in
10391 */* | *\\*) . "$found_la" ;;
10392 *) . "./$found_la" ;;
10393 esac
10394 libdir="$save_libdir"
10395 for dep in $dependency_libs; do
10396 case "$dep" in
10397 -L*)
10398 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10399 if test "X$additional_libdir" != "X/usr/lib"; then
10400 haveit=
10401 if test "X$additional_libdir" = "X/usr/local/lib"; then
10402 if test -n "$GCC"; then
10403 case $host_os in
10404 linux*) haveit=yes;;
10405 esac
10406 fi
10407 fi
10408 if test -z "$haveit"; then
10409 haveit=
10410 for x in $LDFLAGS $LIBIPT; do
10411
10412 acl_save_prefix="$prefix"
10413 prefix="$acl_final_prefix"
10414 acl_save_exec_prefix="$exec_prefix"
10415 exec_prefix="$acl_final_exec_prefix"
10416 eval x=\"$x\"
10417 exec_prefix="$acl_save_exec_prefix"
10418 prefix="$acl_save_prefix"
10419
10420 if test "X$x" = "X-L$additional_libdir"; then
10421 haveit=yes
10422 break
10423 fi
10424 done
10425 if test -z "$haveit"; then
10426 if test -d "$additional_libdir"; then
10427 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10428 fi
10429 fi
10430 haveit=
10431 for x in $LDFLAGS $LTLIBIPT; do
10432
10433 acl_save_prefix="$prefix"
10434 prefix="$acl_final_prefix"
10435 acl_save_exec_prefix="$exec_prefix"
10436 exec_prefix="$acl_final_exec_prefix"
10437 eval x=\"$x\"
10438 exec_prefix="$acl_save_exec_prefix"
10439 prefix="$acl_save_prefix"
10440
10441 if test "X$x" = "X-L$additional_libdir"; then
10442 haveit=yes
10443 break
10444 fi
10445 done
10446 if test -z "$haveit"; then
10447 if test -d "$additional_libdir"; then
10448 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10449 fi
10450 fi
10451 fi
10452 fi
10453 ;;
10454 -R*)
10455 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10456 if test "$enable_rpath" != no; then
10457 haveit=
10458 for x in $rpathdirs; do
10459 if test "X$x" = "X$dir"; then
10460 haveit=yes
10461 break
10462 fi
10463 done
10464 if test -z "$haveit"; then
10465 rpathdirs="$rpathdirs $dir"
10466 fi
10467 haveit=
10468 for x in $ltrpathdirs; do
10469 if test "X$x" = "X$dir"; then
10470 haveit=yes
10471 break
10472 fi
10473 done
10474 if test -z "$haveit"; then
10475 ltrpathdirs="$ltrpathdirs $dir"
10476 fi
10477 fi
10478 ;;
10479 -l*)
10480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10481 ;;
10482 *.la)
10483 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10484 ;;
10485 *)
10486 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10487 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10488 ;;
10489 esac
10490 done
10491 fi
10492 else
10493 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10494 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10495 fi
10496 fi
10497 fi
10498 done
10499 done
10500 if test "X$rpathdirs" != "X"; then
10501 if test -n "$hardcode_libdir_separator"; then
10502 alldirs=
10503 for found_dir in $rpathdirs; do
10504 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10505 done
10506 acl_save_libdir="$libdir"
10507 libdir="$alldirs"
10508 eval flag=\"$hardcode_libdir_flag_spec\"
10509 libdir="$acl_save_libdir"
10510 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10511 else
10512 for found_dir in $rpathdirs; do
10513 acl_save_libdir="$libdir"
10514 libdir="$found_dir"
10515 eval flag=\"$hardcode_libdir_flag_spec\"
10516 libdir="$acl_save_libdir"
10517 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10518 done
10519 fi
10520 fi
10521 if test "X$ltrpathdirs" != "X"; then
10522 for found_dir in $ltrpathdirs; do
10523 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10524 done
10525 fi
10526
10527
10528 ac_save_CPPFLAGS="$CPPFLAGS"
10529
10530 for element in $INCIPT; do
10531 haveit=
10532 for x in $CPPFLAGS; do
10533
10534 acl_save_prefix="$prefix"
10535 prefix="$acl_final_prefix"
10536 acl_save_exec_prefix="$exec_prefix"
10537 exec_prefix="$acl_final_exec_prefix"
10538 eval x=\"$x\"
10539 exec_prefix="$acl_save_exec_prefix"
10540 prefix="$acl_save_prefix"
10541
10542 if test "X$x" = "X$element"; then
10543 haveit=yes
10544 break
10545 fi
10546 done
10547 if test -z "$haveit"; then
10548 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10549 fi
10550 done
10551
10552
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10554 $as_echo_n "checking for libipt... " >&6; }
10555 if test "${ac_cv_libipt+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
10557 else
10558
10559 ac_save_LIBS="$LIBS"
10560 LIBS="$LIBS $LIBIPT"
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 #include "intel-pt.h"
10564 int
10565 main ()
10566 {
10567 pt_insn_alloc_decoder (0);
10568 ;
10569 return 0;
10570 }
10571 _ACEOF
10572 if ac_fn_c_try_link "$LINENO"; then :
10573 ac_cv_libipt=yes
10574 else
10575 ac_cv_libipt=no
10576 fi
10577 rm -f core conftest.err conftest.$ac_objext \
10578 conftest$ac_exeext conftest.$ac_ext
10579 LIBS="$ac_save_LIBS"
10580
10581 fi
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10583 $as_echo "$ac_cv_libipt" >&6; }
10584 if test "$ac_cv_libipt" = yes; then
10585 HAVE_LIBIPT=yes
10586
10587 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10588
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10590 $as_echo_n "checking how to link with libipt... " >&6; }
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10592 $as_echo "$LIBIPT" >&6; }
10593 else
10594 HAVE_LIBIPT=no
10595 CPPFLAGS="$ac_save_CPPFLAGS"
10596 LIBIPT=
10597 LTLIBIPT=
10598 fi
10599
10600
10601
10602
10603
10604
10605 if test "$HAVE_LIBIPT" != yes; then
10606 if test "$with_intel_pt" = yes; then
10607 as_fn_error "libipt is missing or unusable" "$LINENO" 5
10608 else
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10610 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10611 fi
10612 fi
10613 fi
10614
10615 # ------------------------- #
10616 # Checks for header files. #
10617 # ------------------------- #
10618
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10620 $as_echo_n "checking for ANSI C header files... " >&6; }
10621 if test "${ac_cv_header_stdc+set}" = set; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10626 #include <stdlib.h>
10627 #include <stdarg.h>
10628 #include <string.h>
10629 #include <float.h>
10630
10631 int
10632 main ()
10633 {
10634
10635 ;
10636 return 0;
10637 }
10638 _ACEOF
10639 if ac_fn_c_try_compile "$LINENO"; then :
10640 ac_cv_header_stdc=yes
10641 else
10642 ac_cv_header_stdc=no
10643 fi
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645
10646 if test $ac_cv_header_stdc = yes; then
10647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10650 #include <string.h>
10651
10652 _ACEOF
10653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10654 $EGREP "memchr" >/dev/null 2>&1; then :
10655
10656 else
10657 ac_cv_header_stdc=no
10658 fi
10659 rm -f conftest*
10660
10661 fi
10662
10663 if test $ac_cv_header_stdc = yes; then
10664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667 #include <stdlib.h>
10668
10669 _ACEOF
10670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10671 $EGREP "free" >/dev/null 2>&1; then :
10672
10673 else
10674 ac_cv_header_stdc=no
10675 fi
10676 rm -f conftest*
10677
10678 fi
10679
10680 if test $ac_cv_header_stdc = yes; then
10681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10682 if test "$cross_compiling" = yes; then :
10683 :
10684 else
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10687 #include <ctype.h>
10688 #include <stdlib.h>
10689 #if ((' ' & 0x0FF) == 0x020)
10690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10692 #else
10693 # define ISLOWER(c) \
10694 (('a' <= (c) && (c) <= 'i') \
10695 || ('j' <= (c) && (c) <= 'r') \
10696 || ('s' <= (c) && (c) <= 'z'))
10697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10698 #endif
10699
10700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10701 int
10702 main ()
10703 {
10704 int i;
10705 for (i = 0; i < 256; i++)
10706 if (XOR (islower (i), ISLOWER (i))
10707 || toupper (i) != TOUPPER (i))
10708 return 2;
10709 return 0;
10710 }
10711 _ACEOF
10712 if ac_fn_c_try_run "$LINENO"; then :
10713
10714 else
10715 ac_cv_header_stdc=no
10716 fi
10717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10718 conftest.$ac_objext conftest.beam conftest.$ac_ext
10719 fi
10720
10721 fi
10722 fi
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10724 $as_echo "$ac_cv_header_stdc" >&6; }
10725 if test $ac_cv_header_stdc = yes; then
10726
10727 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10728
10729 fi
10730
10731 # elf_hp.h is for HP/UX 64-bit shared library support.
10732 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
10733 thread_db.h \
10734 sys/fault.h \
10735 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
10736 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
10737 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
10738 termios.h termio.h \
10739 sgtty.h elf_hp.h \
10740 dlfcn.h
10741 do :
10742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10743 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10744 eval as_val=\$$as_ac_Header
10745 if test "x$as_val" = x""yes; then :
10746 cat >>confdefs.h <<_ACEOF
10747 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10748 _ACEOF
10749
10750 fi
10751
10752 done
10753
10754 for ac_header in sys/proc.h
10755 do :
10756 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10757 # include <sys/param.h>
10758 #endif
10759
10760 "
10761 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
10762 cat >>confdefs.h <<_ACEOF
10763 #define HAVE_SYS_PROC_H 1
10764 _ACEOF
10765
10766 fi
10767
10768 done
10769
10770 for ac_header in sys/user.h
10771 do :
10772 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10773 # include <sys/param.h>
10774 #endif
10775
10776 "
10777 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
10778 cat >>confdefs.h <<_ACEOF
10779 #define HAVE_SYS_USER_H 1
10780 _ACEOF
10781
10782 fi
10783
10784 done
10785
10786
10787 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10788 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10789 # think that we don't have <curses.h> if we're using GCC.
10790 case $host_os in
10791 solaris2.[789])
10792 if test "$GCC" = yes; then
10793
10794 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10795
10796 fi ;;
10797 esac
10798 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
10799 do :
10800 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10801 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10802 eval as_val=\$$as_ac_Header
10803 if test "x$as_val" = x""yes; then :
10804 cat >>confdefs.h <<_ACEOF
10805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10806 _ACEOF
10807
10808 fi
10809
10810 done
10811
10812 for ac_header in term.h
10813 do :
10814 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10815 # include <curses.h>
10816 #endif
10817
10818 "
10819 if test "x$ac_cv_header_term_h" = x""yes; then :
10820 cat >>confdefs.h <<_ACEOF
10821 #define HAVE_TERM_H 1
10822 _ACEOF
10823
10824 fi
10825
10826 done
10827
10828
10829 # ------------------------- #
10830 # Checks for declarations. #
10831 # ------------------------- #
10832
10833
10834 # Check for presence and size of long long.
10835 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10836 if test "x$ac_cv_type_long_long" = x""yes; then :
10837
10838 cat >>confdefs.h <<_ACEOF
10839 #define HAVE_LONG_LONG 1
10840 _ACEOF
10841
10842 # The cast to long int works around a bug in the HP C Compiler
10843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10845 # This bug is HP SR number 8606223364.
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10847 $as_echo_n "checking size of long long... " >&6; }
10848 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10849 $as_echo_n "(cached) " >&6
10850 else
10851 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10852
10853 else
10854 if test "$ac_cv_type_long_long" = yes; then
10855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10857 { as_fn_set_status 77
10858 as_fn_error "cannot compute sizeof (long long)
10859 See \`config.log' for more details." "$LINENO" 5; }; }
10860 else
10861 ac_cv_sizeof_long_long=0
10862 fi
10863 fi
10864
10865 fi
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10867 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10868
10869
10870
10871 cat >>confdefs.h <<_ACEOF
10872 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10873 _ACEOF
10874
10875
10876 fi
10877
10878
10879 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
10880 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
10881 ac_have_decl=1
10882 else
10883 ac_have_decl=0
10884 fi
10885
10886 cat >>confdefs.h <<_ACEOF
10887 #define HAVE_DECL_BASENAME $ac_have_decl
10888 _ACEOF
10889 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10890 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
10891 ac_have_decl=1
10892 else
10893 ac_have_decl=0
10894 fi
10895
10896 cat >>confdefs.h <<_ACEOF
10897 #define HAVE_DECL_FFS $ac_have_decl
10898 _ACEOF
10899 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10900 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
10901 ac_have_decl=1
10902 else
10903 ac_have_decl=0
10904 fi
10905
10906 cat >>confdefs.h <<_ACEOF
10907 #define HAVE_DECL_ASPRINTF $ac_have_decl
10908 _ACEOF
10909 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10910 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
10911 ac_have_decl=1
10912 else
10913 ac_have_decl=0
10914 fi
10915
10916 cat >>confdefs.h <<_ACEOF
10917 #define HAVE_DECL_VASPRINTF $ac_have_decl
10918 _ACEOF
10919 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10920 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10921 ac_have_decl=1
10922 else
10923 ac_have_decl=0
10924 fi
10925
10926 cat >>confdefs.h <<_ACEOF
10927 #define HAVE_DECL_SNPRINTF $ac_have_decl
10928 _ACEOF
10929 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10930 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
10931 ac_have_decl=1
10932 else
10933 ac_have_decl=0
10934 fi
10935
10936 cat >>confdefs.h <<_ACEOF
10937 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10938 _ACEOF
10939
10940 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10941 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
10942 ac_have_decl=1
10943 else
10944 ac_have_decl=0
10945 fi
10946
10947 cat >>confdefs.h <<_ACEOF
10948 #define HAVE_DECL_STRTOL $ac_have_decl
10949 _ACEOF
10950 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10951 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
10952 ac_have_decl=1
10953 else
10954 ac_have_decl=0
10955 fi
10956
10957 cat >>confdefs.h <<_ACEOF
10958 #define HAVE_DECL_STRTOUL $ac_have_decl
10959 _ACEOF
10960 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10961 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
10962 ac_have_decl=1
10963 else
10964 ac_have_decl=0
10965 fi
10966
10967 cat >>confdefs.h <<_ACEOF
10968 #define HAVE_DECL_STRTOLL $ac_have_decl
10969 _ACEOF
10970 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10971 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
10972 ac_have_decl=1
10973 else
10974 ac_have_decl=0
10975 fi
10976
10977 cat >>confdefs.h <<_ACEOF
10978 #define HAVE_DECL_STRTOULL $ac_have_decl
10979 _ACEOF
10980
10981 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10982 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
10983 ac_have_decl=1
10984 else
10985 ac_have_decl=0
10986 fi
10987
10988 cat >>confdefs.h <<_ACEOF
10989 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10990 _ACEOF
10991
10992
10993
10994 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10995 if test "x$ac_cv_have_decl_free" = x""yes; then :
10996 ac_have_decl=1
10997 else
10998 ac_have_decl=0
10999 fi
11000
11001 cat >>confdefs.h <<_ACEOF
11002 #define HAVE_DECL_FREE $ac_have_decl
11003 _ACEOF
11004 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11005 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11006 ac_have_decl=1
11007 else
11008 ac_have_decl=0
11009 fi
11010
11011 cat >>confdefs.h <<_ACEOF
11012 #define HAVE_DECL_MALLOC $ac_have_decl
11013 _ACEOF
11014 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11015 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11016 ac_have_decl=1
11017 else
11018 ac_have_decl=0
11019 fi
11020
11021 cat >>confdefs.h <<_ACEOF
11022 #define HAVE_DECL_REALLOC $ac_have_decl
11023 _ACEOF
11024 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11025 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11026 ac_have_decl=1
11027 else
11028 ac_have_decl=0
11029 fi
11030
11031 cat >>confdefs.h <<_ACEOF
11032 #define HAVE_DECL_SNPRINTF $ac_have_decl
11033 _ACEOF
11034
11035
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11037 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11038 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11043 #include <locale.h>
11044 int
11045 main ()
11046 {
11047 return LC_MESSAGES
11048 ;
11049 return 0;
11050 }
11051 _ACEOF
11052 if ac_fn_c_try_link "$LINENO"; then :
11053 am_cv_val_LC_MESSAGES=yes
11054 else
11055 am_cv_val_LC_MESSAGES=no
11056 fi
11057 rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 fi
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11061 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11062 if test $am_cv_val_LC_MESSAGES = yes; then
11063
11064 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11065
11066 fi
11067
11068
11069 # ----------------------- #
11070 # Checks for structures. #
11071 # ----------------------- #
11072
11073 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11074 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11075
11076 cat >>confdefs.h <<_ACEOF
11077 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11078 _ACEOF
11079
11080
11081 fi
11082 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11083 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11084
11085 cat >>confdefs.h <<_ACEOF
11086 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11087 _ACEOF
11088
11089
11090 fi
11091
11092
11093 # ------------------ #
11094 # Checks for types. #
11095 # ------------------ #
11096
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11098 $as_echo_n "checking return type of signal handlers... " >&6; }
11099 if test "${ac_cv_type_signal+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
11101 else
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11104 #include <sys/types.h>
11105 #include <signal.h>
11106
11107 int
11108 main ()
11109 {
11110 return *(signal (0, 0)) (0) == 1;
11111 ;
11112 return 0;
11113 }
11114 _ACEOF
11115 if ac_fn_c_try_compile "$LINENO"; then :
11116 ac_cv_type_signal=int
11117 else
11118 ac_cv_type_signal=void
11119 fi
11120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11121 fi
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11123 $as_echo "$ac_cv_type_signal" >&6; }
11124
11125 cat >>confdefs.h <<_ACEOF
11126 #define RETSIGTYPE $ac_cv_type_signal
11127 _ACEOF
11128
11129
11130 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11131 #include <sys/socket.h>
11132
11133 "
11134 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11135
11136 cat >>confdefs.h <<_ACEOF
11137 #define HAVE_SOCKLEN_T 1
11138 _ACEOF
11139
11140
11141 fi
11142
11143
11144 # ------------------------------------- #
11145 # Checks for compiler characteristics. #
11146 # ------------------------------------- #
11147
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11149 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11150 if test "${ac_cv_c_const+set}" = set; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11155
11156 int
11157 main ()
11158 {
11159 /* FIXME: Include the comments suggested by Paul. */
11160 #ifndef __cplusplus
11161 /* Ultrix mips cc rejects this. */
11162 typedef int charset[2];
11163 const charset cs;
11164 /* SunOS 4.1.1 cc rejects this. */
11165 char const *const *pcpcc;
11166 char **ppc;
11167 /* NEC SVR4.0.2 mips cc rejects this. */
11168 struct point {int x, y;};
11169 static struct point const zero = {0,0};
11170 /* AIX XL C 1.02.0.0 rejects this.
11171 It does not let you subtract one const X* pointer from another in
11172 an arm of an if-expression whose if-part is not a constant
11173 expression */
11174 const char *g = "string";
11175 pcpcc = &g + (g ? g-g : 0);
11176 /* HPUX 7.0 cc rejects these. */
11177 ++pcpcc;
11178 ppc = (char**) pcpcc;
11179 pcpcc = (char const *const *) ppc;
11180 { /* SCO 3.2v4 cc rejects this. */
11181 char *t;
11182 char const *s = 0 ? (char *) 0 : (char const *) 0;
11183
11184 *t++ = 0;
11185 if (s) return 0;
11186 }
11187 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11188 int x[] = {25, 17};
11189 const int *foo = &x[0];
11190 ++foo;
11191 }
11192 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11193 typedef const int *iptr;
11194 iptr p = 0;
11195 ++p;
11196 }
11197 { /* AIX XL C 1.02.0.0 rejects this saying
11198 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11199 struct s { int j; const int *ap[3]; };
11200 struct s *b; b->j = 5;
11201 }
11202 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11203 const int foo = 10;
11204 if (!foo) return 0;
11205 }
11206 return !cs[0] && !zero.x;
11207 #endif
11208
11209 ;
11210 return 0;
11211 }
11212 _ACEOF
11213 if ac_fn_c_try_compile "$LINENO"; then :
11214 ac_cv_c_const=yes
11215 else
11216 ac_cv_c_const=no
11217 fi
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 fi
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11221 $as_echo "$ac_cv_c_const" >&6; }
11222 if test $ac_cv_c_const = no; then
11223
11224 $as_echo "#define const /**/" >>confdefs.h
11225
11226 fi
11227
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11229 $as_echo_n "checking for inline... " >&6; }
11230 if test "${ac_cv_c_inline+set}" = set; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 ac_cv_c_inline=no
11234 for ac_kw in inline __inline__ __inline; do
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237 #ifndef __cplusplus
11238 typedef int foo_t;
11239 static $ac_kw foo_t static_foo () {return 0; }
11240 $ac_kw foo_t foo () {return 0; }
11241 #endif
11242
11243 _ACEOF
11244 if ac_fn_c_try_compile "$LINENO"; then :
11245 ac_cv_c_inline=$ac_kw
11246 fi
11247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11248 test "$ac_cv_c_inline" != no && break
11249 done
11250
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11253 $as_echo "$ac_cv_c_inline" >&6; }
11254
11255 case $ac_cv_c_inline in
11256 inline | yes) ;;
11257 *)
11258 case $ac_cv_c_inline in
11259 no) ac_val=;;
11260 *) ac_val=$ac_cv_c_inline;;
11261 esac
11262 cat >>confdefs.h <<_ACEOF
11263 #ifndef __cplusplus
11264 #define inline $ac_val
11265 #endif
11266 _ACEOF
11267 ;;
11268 esac
11269
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11271 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11272 if test "${ac_cv_c_bigendian+set}" = set; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 ac_cv_c_bigendian=unknown
11276 # See if we're dealing with a universal compiler.
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11279 #ifndef __APPLE_CC__
11280 not a universal capable compiler
11281 #endif
11282 typedef int dummy;
11283
11284 _ACEOF
11285 if ac_fn_c_try_compile "$LINENO"; then :
11286
11287 # Check for potential -arch flags. It is not universal unless
11288 # there are at least two -arch flags with different values.
11289 ac_arch=
11290 ac_prev=
11291 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11292 if test -n "$ac_prev"; then
11293 case $ac_word in
11294 i?86 | x86_64 | ppc | ppc64)
11295 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11296 ac_arch=$ac_word
11297 else
11298 ac_cv_c_bigendian=universal
11299 break
11300 fi
11301 ;;
11302 esac
11303 ac_prev=
11304 elif test "x$ac_word" = "x-arch"; then
11305 ac_prev=arch
11306 fi
11307 done
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 if test $ac_cv_c_bigendian = unknown; then
11311 # See if sys/param.h defines the BYTE_ORDER macro.
11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11314 #include <sys/types.h>
11315 #include <sys/param.h>
11316
11317 int
11318 main ()
11319 {
11320 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11321 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11322 && LITTLE_ENDIAN)
11323 bogus endian macros
11324 #endif
11325
11326 ;
11327 return 0;
11328 }
11329 _ACEOF
11330 if ac_fn_c_try_compile "$LINENO"; then :
11331 # It does; now see whether it defined to BIG_ENDIAN or not.
11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333 /* end confdefs.h. */
11334 #include <sys/types.h>
11335 #include <sys/param.h>
11336
11337 int
11338 main ()
11339 {
11340 #if BYTE_ORDER != BIG_ENDIAN
11341 not big endian
11342 #endif
11343
11344 ;
11345 return 0;
11346 }
11347 _ACEOF
11348 if ac_fn_c_try_compile "$LINENO"; then :
11349 ac_cv_c_bigendian=yes
11350 else
11351 ac_cv_c_bigendian=no
11352 fi
11353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 fi
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356 fi
11357 if test $ac_cv_c_bigendian = unknown; then
11358 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11361 #include <limits.h>
11362
11363 int
11364 main ()
11365 {
11366 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11367 bogus endian macros
11368 #endif
11369
11370 ;
11371 return 0;
11372 }
11373 _ACEOF
11374 if ac_fn_c_try_compile "$LINENO"; then :
11375 # It does; now see whether it defined to _BIG_ENDIAN or not.
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11378 #include <limits.h>
11379
11380 int
11381 main ()
11382 {
11383 #ifndef _BIG_ENDIAN
11384 not big endian
11385 #endif
11386
11387 ;
11388 return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_compile "$LINENO"; then :
11392 ac_cv_c_bigendian=yes
11393 else
11394 ac_cv_c_bigendian=no
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 fi
11398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11399 fi
11400 if test $ac_cv_c_bigendian = unknown; then
11401 # Compile a test program.
11402 if test "$cross_compiling" = yes; then :
11403 # Try to guess by grepping values from an object file.
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406 short int ascii_mm[] =
11407 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11408 short int ascii_ii[] =
11409 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11410 int use_ascii (int i) {
11411 return ascii_mm[i] + ascii_ii[i];
11412 }
11413 short int ebcdic_ii[] =
11414 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11415 short int ebcdic_mm[] =
11416 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11417 int use_ebcdic (int i) {
11418 return ebcdic_mm[i] + ebcdic_ii[i];
11419 }
11420 extern int foo;
11421
11422 int
11423 main ()
11424 {
11425 return use_ascii (foo) == use_ebcdic (foo);
11426 ;
11427 return 0;
11428 }
11429 _ACEOF
11430 if ac_fn_c_try_compile "$LINENO"; then :
11431 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11432 ac_cv_c_bigendian=yes
11433 fi
11434 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11435 if test "$ac_cv_c_bigendian" = unknown; then
11436 ac_cv_c_bigendian=no
11437 else
11438 # finding both strings is unlikely to happen, but who knows?
11439 ac_cv_c_bigendian=unknown
11440 fi
11441 fi
11442 fi
11443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11444 else
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11447 $ac_includes_default
11448 int
11449 main ()
11450 {
11451
11452 /* Are we little or big endian? From Harbison&Steele. */
11453 union
11454 {
11455 long int l;
11456 char c[sizeof (long int)];
11457 } u;
11458 u.l = 1;
11459 return u.c[sizeof (long int) - 1] == 1;
11460
11461 ;
11462 return 0;
11463 }
11464 _ACEOF
11465 if ac_fn_c_try_run "$LINENO"; then :
11466 ac_cv_c_bigendian=no
11467 else
11468 ac_cv_c_bigendian=yes
11469 fi
11470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11471 conftest.$ac_objext conftest.beam conftest.$ac_ext
11472 fi
11473
11474 fi
11475 fi
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11477 $as_echo "$ac_cv_c_bigendian" >&6; }
11478 case $ac_cv_c_bigendian in #(
11479 yes)
11480 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11481 ;; #(
11482 no)
11483 ;; #(
11484 universal)
11485
11486 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11487
11488 ;; #(
11489 *)
11490 as_fn_error "unknown endianness
11491 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11492 esac
11493
11494
11495 # ------------------------------ #
11496 # Checks for library functions. #
11497 # ------------------------------ #
11498
11499 for ac_header in stdlib.h unistd.h
11500 do :
11501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11502 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11503 eval as_val=\$$as_ac_Header
11504 if test "x$as_val" = x""yes; then :
11505 cat >>confdefs.h <<_ACEOF
11506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11507 _ACEOF
11508
11509 fi
11510
11511 done
11512
11513 for ac_func in getpagesize
11514 do :
11515 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11516 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11517 cat >>confdefs.h <<_ACEOF
11518 #define HAVE_GETPAGESIZE 1
11519 _ACEOF
11520
11521 fi
11522 done
11523
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11525 $as_echo_n "checking for working mmap... " >&6; }
11526 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 if test "$cross_compiling" = yes; then :
11530 ac_cv_func_mmap_fixed_mapped=no
11531 else
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11534 $ac_includes_default
11535 /* malloc might have been renamed as rpl_malloc. */
11536 #undef malloc
11537
11538 /* Thanks to Mike Haertel and Jim Avera for this test.
11539 Here is a matrix of mmap possibilities:
11540 mmap private not fixed
11541 mmap private fixed at somewhere currently unmapped
11542 mmap private fixed at somewhere already mapped
11543 mmap shared not fixed
11544 mmap shared fixed at somewhere currently unmapped
11545 mmap shared fixed at somewhere already mapped
11546 For private mappings, we should verify that changes cannot be read()
11547 back from the file, nor mmap's back from the file at a different
11548 address. (There have been systems where private was not correctly
11549 implemented like the infamous i386 svr4.0, and systems where the
11550 VM page cache was not coherent with the file system buffer cache
11551 like early versions of FreeBSD and possibly contemporary NetBSD.)
11552 For shared mappings, we should conversely verify that changes get
11553 propagated back to all the places they're supposed to be.
11554
11555 Grep wants private fixed already mapped.
11556 The main things grep needs to know about mmap are:
11557 * does it exist and is it safe to write into the mmap'd area
11558 * how to use it (BSD variants) */
11559
11560 #include <fcntl.h>
11561 #include <sys/mman.h>
11562
11563 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11564 char *malloc ();
11565 #endif
11566
11567 /* This mess was copied from the GNU getpagesize.h. */
11568 #ifndef HAVE_GETPAGESIZE
11569 /* Assume that all systems that can run configure have sys/param.h. */
11570 # ifndef HAVE_SYS_PARAM_H
11571 # define HAVE_SYS_PARAM_H 1
11572 # endif
11573
11574 # ifdef _SC_PAGESIZE
11575 # define getpagesize() sysconf(_SC_PAGESIZE)
11576 # else /* no _SC_PAGESIZE */
11577 # ifdef HAVE_SYS_PARAM_H
11578 # include <sys/param.h>
11579 # ifdef EXEC_PAGESIZE
11580 # define getpagesize() EXEC_PAGESIZE
11581 # else /* no EXEC_PAGESIZE */
11582 # ifdef NBPG
11583 # define getpagesize() NBPG * CLSIZE
11584 # ifndef CLSIZE
11585 # define CLSIZE 1
11586 # endif /* no CLSIZE */
11587 # else /* no NBPG */
11588 # ifdef NBPC
11589 # define getpagesize() NBPC
11590 # else /* no NBPC */
11591 # ifdef PAGESIZE
11592 # define getpagesize() PAGESIZE
11593 # endif /* PAGESIZE */
11594 # endif /* no NBPC */
11595 # endif /* no NBPG */
11596 # endif /* no EXEC_PAGESIZE */
11597 # else /* no HAVE_SYS_PARAM_H */
11598 # define getpagesize() 8192 /* punt totally */
11599 # endif /* no HAVE_SYS_PARAM_H */
11600 # endif /* no _SC_PAGESIZE */
11601
11602 #endif /* no HAVE_GETPAGESIZE */
11603
11604 int
11605 main ()
11606 {
11607 char *data, *data2, *data3;
11608 int i, pagesize;
11609 int fd;
11610
11611 pagesize = getpagesize ();
11612
11613 /* First, make a file with some known garbage in it. */
11614 data = (char *) malloc (pagesize);
11615 if (!data)
11616 return 1;
11617 for (i = 0; i < pagesize; ++i)
11618 *(data + i) = rand ();
11619 umask (0);
11620 fd = creat ("conftest.mmap", 0600);
11621 if (fd < 0)
11622 return 1;
11623 if (write (fd, data, pagesize) != pagesize)
11624 return 1;
11625 close (fd);
11626
11627 /* Next, try to mmap the file at a fixed address which already has
11628 something else allocated at it. If we can, also make sure that
11629 we see the same garbage. */
11630 fd = open ("conftest.mmap", O_RDWR);
11631 if (fd < 0)
11632 return 1;
11633 data2 = (char *) malloc (2 * pagesize);
11634 if (!data2)
11635 return 1;
11636 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11637 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11638 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11639 return 1;
11640 for (i = 0; i < pagesize; ++i)
11641 if (*(data + i) != *(data2 + i))
11642 return 1;
11643
11644 /* Finally, make sure that changes to the mapped area do not
11645 percolate back to the file as seen by read(). (This is a bug on
11646 some variants of i386 svr4.0.) */
11647 for (i = 0; i < pagesize; ++i)
11648 *(data2 + i) = *(data2 + i) + 1;
11649 data3 = (char *) malloc (pagesize);
11650 if (!data3)
11651 return 1;
11652 if (read (fd, data3, pagesize) != pagesize)
11653 return 1;
11654 for (i = 0; i < pagesize; ++i)
11655 if (*(data + i) != *(data3 + i))
11656 return 1;
11657 close (fd);
11658 return 0;
11659 }
11660 _ACEOF
11661 if ac_fn_c_try_run "$LINENO"; then :
11662 ac_cv_func_mmap_fixed_mapped=yes
11663 else
11664 ac_cv_func_mmap_fixed_mapped=no
11665 fi
11666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11667 conftest.$ac_objext conftest.beam conftest.$ac_ext
11668 fi
11669
11670 fi
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11672 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11673 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11674
11675 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11676
11677 fi
11678 rm -f conftest.mmap
11679
11680 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11681 if test "x$ac_cv_type_pid_t" = x""yes; then :
11682
11683 else
11684
11685 cat >>confdefs.h <<_ACEOF
11686 #define pid_t int
11687 _ACEOF
11688
11689 fi
11690
11691 for ac_header in vfork.h
11692 do :
11693 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11694 if test "x$ac_cv_header_vfork_h" = x""yes; then :
11695 cat >>confdefs.h <<_ACEOF
11696 #define HAVE_VFORK_H 1
11697 _ACEOF
11698
11699 fi
11700
11701 done
11702
11703 for ac_func in fork vfork
11704 do :
11705 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11706 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11707 eval as_val=\$$as_ac_var
11708 if test "x$as_val" = x""yes; then :
11709 cat >>confdefs.h <<_ACEOF
11710 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11711 _ACEOF
11712
11713 fi
11714 done
11715
11716 if test "x$ac_cv_func_fork" = xyes; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11718 $as_echo_n "checking for working fork... " >&6; }
11719 if test "${ac_cv_func_fork_works+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11722 if test "$cross_compiling" = yes; then :
11723 ac_cv_func_fork_works=cross
11724 else
11725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11727 $ac_includes_default
11728 int
11729 main ()
11730 {
11731
11732 /* By Ruediger Kuhlmann. */
11733 return fork () < 0;
11734
11735 ;
11736 return 0;
11737 }
11738 _ACEOF
11739 if ac_fn_c_try_run "$LINENO"; then :
11740 ac_cv_func_fork_works=yes
11741 else
11742 ac_cv_func_fork_works=no
11743 fi
11744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11745 conftest.$ac_objext conftest.beam conftest.$ac_ext
11746 fi
11747
11748 fi
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11750 $as_echo "$ac_cv_func_fork_works" >&6; }
11751
11752 else
11753 ac_cv_func_fork_works=$ac_cv_func_fork
11754 fi
11755 if test "x$ac_cv_func_fork_works" = xcross; then
11756 case $host in
11757 *-*-amigaos* | *-*-msdosdjgpp*)
11758 # Override, as these systems have only a dummy fork() stub
11759 ac_cv_func_fork_works=no
11760 ;;
11761 *)
11762 ac_cv_func_fork_works=yes
11763 ;;
11764 esac
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11766 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11767 fi
11768 ac_cv_func_vfork_works=$ac_cv_func_vfork
11769 if test "x$ac_cv_func_vfork" = xyes; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11771 $as_echo_n "checking for working vfork... " >&6; }
11772 if test "${ac_cv_func_vfork_works+set}" = set; then :
11773 $as_echo_n "(cached) " >&6
11774 else
11775 if test "$cross_compiling" = yes; then :
11776 ac_cv_func_vfork_works=cross
11777 else
11778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779 /* end confdefs.h. */
11780 /* Thanks to Paul Eggert for this test. */
11781 $ac_includes_default
11782 #include <sys/wait.h>
11783 #ifdef HAVE_VFORK_H
11784 # include <vfork.h>
11785 #endif
11786 /* On some sparc systems, changes by the child to local and incoming
11787 argument registers are propagated back to the parent. The compiler
11788 is told about this with #include <vfork.h>, but some compilers
11789 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11790 static variable whose address is put into a register that is
11791 clobbered by the vfork. */
11792 static void
11793 #ifdef __cplusplus
11794 sparc_address_test (int arg)
11795 # else
11796 sparc_address_test (arg) int arg;
11797 #endif
11798 {
11799 static pid_t child;
11800 if (!child) {
11801 child = vfork ();
11802 if (child < 0) {
11803 perror ("vfork");
11804 _exit(2);
11805 }
11806 if (!child) {
11807 arg = getpid();
11808 write(-1, "", 0);
11809 _exit (arg);
11810 }
11811 }
11812 }
11813
11814 int
11815 main ()
11816 {
11817 pid_t parent = getpid ();
11818 pid_t child;
11819
11820 sparc_address_test (0);
11821
11822 child = vfork ();
11823
11824 if (child == 0) {
11825 /* Here is another test for sparc vfork register problems. This
11826 test uses lots of local variables, at least as many local
11827 variables as main has allocated so far including compiler
11828 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11829 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11830 reuse the register of parent for one of the local variables,
11831 since it will think that parent can't possibly be used any more
11832 in this routine. Assigning to the local variable will thus
11833 munge parent in the parent process. */
11834 pid_t
11835 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11836 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11837 /* Convince the compiler that p..p7 are live; otherwise, it might
11838 use the same hardware register for all 8 local variables. */
11839 if (p != p1 || p != p2 || p != p3 || p != p4
11840 || p != p5 || p != p6 || p != p7)
11841 _exit(1);
11842
11843 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11844 from child file descriptors. If the child closes a descriptor
11845 before it execs or exits, this munges the parent's descriptor
11846 as well. Test for this by closing stdout in the child. */
11847 _exit(close(fileno(stdout)) != 0);
11848 } else {
11849 int status;
11850 struct stat st;
11851
11852 while (wait(&status) != child)
11853 ;
11854 return (
11855 /* Was there some problem with vforking? */
11856 child < 0
11857
11858 /* Did the child fail? (This shouldn't happen.) */
11859 || status
11860
11861 /* Did the vfork/compiler bug occur? */
11862 || parent != getpid()
11863
11864 /* Did the file descriptor bug occur? */
11865 || fstat(fileno(stdout), &st) != 0
11866 );
11867 }
11868 }
11869 _ACEOF
11870 if ac_fn_c_try_run "$LINENO"; then :
11871 ac_cv_func_vfork_works=yes
11872 else
11873 ac_cv_func_vfork_works=no
11874 fi
11875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11876 conftest.$ac_objext conftest.beam conftest.$ac_ext
11877 fi
11878
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11881 $as_echo "$ac_cv_func_vfork_works" >&6; }
11882
11883 fi;
11884 if test "x$ac_cv_func_fork_works" = xcross; then
11885 ac_cv_func_vfork_works=$ac_cv_func_vfork
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11887 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11888 fi
11889
11890 if test "x$ac_cv_func_vfork_works" = xyes; then
11891
11892 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11893
11894 else
11895
11896 $as_echo "#define vfork fork" >>confdefs.h
11897
11898 fi
11899 if test "x$ac_cv_func_fork_works" = xyes; then
11900
11901 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11902
11903 fi
11904
11905 for ac_func in getauxval getrusage getuid getgid \
11906 pipe poll pread pread64 pwrite resize_term \
11907 sbrk setpgid setpgrp setsid \
11908 sigaction sigprocmask sigsetmask socketpair \
11909 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
11910 setrlimit getrlimit posix_madvise waitpid \
11911 ptrace64 sigaltstack mkdtemp setns
11912 do :
11913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11915 eval as_val=\$$as_ac_var
11916 if test "x$as_val" = x""yes; then :
11917 cat >>confdefs.h <<_ACEOF
11918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11919 _ACEOF
11920
11921 fi
11922 done
11923
11924
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11926 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11927 if test "${am_cv_langinfo_codeset+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include <langinfo.h>
11933 int
11934 main ()
11935 {
11936 char* cs = nl_langinfo(CODESET);
11937 ;
11938 return 0;
11939 }
11940 _ACEOF
11941 if ac_fn_c_try_link "$LINENO"; then :
11942 am_cv_langinfo_codeset=yes
11943 else
11944 am_cv_langinfo_codeset=no
11945 fi
11946 rm -f core conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11948
11949 fi
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11951 $as_echo "$am_cv_langinfo_codeset" >&6; }
11952 if test $am_cv_langinfo_codeset = yes; then
11953
11954 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11955
11956 fi
11957
11958
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11960 $as_echo_n "checking for ANSI C header files... " >&6; }
11961 if test "${ac_cv_header_stdc+set}" = set; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966 #include <stdlib.h>
11967 #include <stdarg.h>
11968 #include <string.h>
11969 #include <float.h>
11970
11971 int
11972 main ()
11973 {
11974
11975 ;
11976 return 0;
11977 }
11978 _ACEOF
11979 if ac_fn_c_try_compile "$LINENO"; then :
11980 ac_cv_header_stdc=yes
11981 else
11982 ac_cv_header_stdc=no
11983 fi
11984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11985
11986 if test $ac_cv_header_stdc = yes; then
11987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h. */
11990 #include <string.h>
11991
11992 _ACEOF
11993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11994 $EGREP "memchr" >/dev/null 2>&1; then :
11995
11996 else
11997 ac_cv_header_stdc=no
11998 fi
11999 rm -f conftest*
12000
12001 fi
12002
12003 if test $ac_cv_header_stdc = yes; then
12004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12007 #include <stdlib.h>
12008
12009 _ACEOF
12010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12011 $EGREP "free" >/dev/null 2>&1; then :
12012
12013 else
12014 ac_cv_header_stdc=no
12015 fi
12016 rm -f conftest*
12017
12018 fi
12019
12020 if test $ac_cv_header_stdc = yes; then
12021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12022 if test "$cross_compiling" = yes; then :
12023 :
12024 else
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h. */
12027 #include <ctype.h>
12028 #include <stdlib.h>
12029 #if ((' ' & 0x0FF) == 0x020)
12030 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12031 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12032 #else
12033 # define ISLOWER(c) \
12034 (('a' <= (c) && (c) <= 'i') \
12035 || ('j' <= (c) && (c) <= 'r') \
12036 || ('s' <= (c) && (c) <= 'z'))
12037 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12038 #endif
12039
12040 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12041 int
12042 main ()
12043 {
12044 int i;
12045 for (i = 0; i < 256; i++)
12046 if (XOR (islower (i), ISLOWER (i))
12047 || toupper (i) != TOUPPER (i))
12048 return 2;
12049 return 0;
12050 }
12051 _ACEOF
12052 if ac_fn_c_try_run "$LINENO"; then :
12053
12054 else
12055 ac_cv_header_stdc=no
12056 fi
12057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12058 conftest.$ac_objext conftest.beam conftest.$ac_ext
12059 fi
12060
12061 fi
12062 fi
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12064 $as_echo "$ac_cv_header_stdc" >&6; }
12065 if test $ac_cv_header_stdc = yes; then
12066
12067 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12068
12069 fi
12070
12071 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12072 # for constant arguments. Useless!
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12074 $as_echo_n "checking for working alloca.h... " >&6; }
12075 if test "${ac_cv_working_alloca_h+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 #include <alloca.h>
12081 int
12082 main ()
12083 {
12084 char *p = (char *) alloca (2 * sizeof (int));
12085 if (p) return 0;
12086 ;
12087 return 0;
12088 }
12089 _ACEOF
12090 if ac_fn_c_try_link "$LINENO"; then :
12091 ac_cv_working_alloca_h=yes
12092 else
12093 ac_cv_working_alloca_h=no
12094 fi
12095 rm -f core conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12097 fi
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12099 $as_echo "$ac_cv_working_alloca_h" >&6; }
12100 if test $ac_cv_working_alloca_h = yes; then
12101
12102 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12103
12104 fi
12105
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12107 $as_echo_n "checking for alloca... " >&6; }
12108 if test "${ac_cv_func_alloca_works+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12113 #ifdef __GNUC__
12114 # define alloca __builtin_alloca
12115 #else
12116 # ifdef _MSC_VER
12117 # include <malloc.h>
12118 # define alloca _alloca
12119 # else
12120 # ifdef HAVE_ALLOCA_H
12121 # include <alloca.h>
12122 # else
12123 # ifdef _AIX
12124 #pragma alloca
12125 # else
12126 # ifndef alloca /* predefined by HP cc +Olibcalls */
12127 char *alloca ();
12128 # endif
12129 # endif
12130 # endif
12131 # endif
12132 #endif
12133
12134 int
12135 main ()
12136 {
12137 char *p = (char *) alloca (1);
12138 if (p) return 0;
12139 ;
12140 return 0;
12141 }
12142 _ACEOF
12143 if ac_fn_c_try_link "$LINENO"; then :
12144 ac_cv_func_alloca_works=yes
12145 else
12146 ac_cv_func_alloca_works=no
12147 fi
12148 rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150 fi
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12152 $as_echo "$ac_cv_func_alloca_works" >&6; }
12153
12154 if test $ac_cv_func_alloca_works = yes; then
12155
12156 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12157
12158 else
12159 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12160 # that cause trouble. Some versions do not even contain alloca or
12161 # contain a buggy version. If you still want to use their alloca,
12162 # use ar to extract alloca.o from them instead of compiling alloca.c.
12163
12164 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12165
12166 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12167
12168
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12170 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12171 if test "${ac_cv_os_cray+set}" = set; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176 #if defined CRAY && ! defined CRAY2
12177 webecray
12178 #else
12179 wenotbecray
12180 #endif
12181
12182 _ACEOF
12183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12184 $EGREP "webecray" >/dev/null 2>&1; then :
12185 ac_cv_os_cray=yes
12186 else
12187 ac_cv_os_cray=no
12188 fi
12189 rm -f conftest*
12190
12191 fi
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12193 $as_echo "$ac_cv_os_cray" >&6; }
12194 if test $ac_cv_os_cray = yes; then
12195 for ac_func in _getb67 GETB67 getb67; do
12196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12197 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12198 eval as_val=\$$as_ac_var
12199 if test "x$as_val" = x""yes; then :
12200
12201 cat >>confdefs.h <<_ACEOF
12202 #define CRAY_STACKSEG_END $ac_func
12203 _ACEOF
12204
12205 break
12206 fi
12207
12208 done
12209 fi
12210
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12212 $as_echo_n "checking stack direction for C alloca... " >&6; }
12213 if test "${ac_cv_c_stack_direction+set}" = set; then :
12214 $as_echo_n "(cached) " >&6
12215 else
12216 if test "$cross_compiling" = yes; then :
12217 ac_cv_c_stack_direction=0
12218 else
12219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220 /* end confdefs.h. */
12221 $ac_includes_default
12222 int
12223 find_stack_direction ()
12224 {
12225 static char *addr = 0;
12226 auto char dummy;
12227 if (addr == 0)
12228 {
12229 addr = &dummy;
12230 return find_stack_direction ();
12231 }
12232 else
12233 return (&dummy > addr) ? 1 : -1;
12234 }
12235
12236 int
12237 main ()
12238 {
12239 return find_stack_direction () < 0;
12240 }
12241 _ACEOF
12242 if ac_fn_c_try_run "$LINENO"; then :
12243 ac_cv_c_stack_direction=1
12244 else
12245 ac_cv_c_stack_direction=-1
12246 fi
12247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12248 conftest.$ac_objext conftest.beam conftest.$ac_ext
12249 fi
12250
12251 fi
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12253 $as_echo "$ac_cv_c_stack_direction" >&6; }
12254 cat >>confdefs.h <<_ACEOF
12255 #define STACK_DIRECTION $ac_cv_c_stack_direction
12256 _ACEOF
12257
12258
12259 fi
12260
12261
12262
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12264 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12265 if test "${am_cv_langinfo_codeset+set}" = set; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12270 #include <langinfo.h>
12271 int
12272 main ()
12273 {
12274 char* cs = nl_langinfo(CODESET);
12275 ;
12276 return 0;
12277 }
12278 _ACEOF
12279 if ac_fn_c_try_link "$LINENO"; then :
12280 am_cv_langinfo_codeset=yes
12281 else
12282 am_cv_langinfo_codeset=no
12283 fi
12284 rm -f core conftest.err conftest.$ac_objext \
12285 conftest$ac_exeext conftest.$ac_ext
12286
12287 fi
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12289 $as_echo "$am_cv_langinfo_codeset" >&6; }
12290 if test $am_cv_langinfo_codeset = yes; then
12291
12292 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12293
12294 fi
12295
12296
12297 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
12298 do :
12299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12300 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12301 eval as_val=\$$as_ac_Header
12302 if test "x$as_val" = x""yes; then :
12303 cat >>confdefs.h <<_ACEOF
12304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12305 _ACEOF
12306
12307 fi
12308
12309 done
12310
12311
12312 for ac_func in fdwalk getrlimit pipe pipe2 socketpair
12313 do :
12314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12315 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12316 eval as_val=\$$as_ac_var
12317 if test "x$as_val" = x""yes; then :
12318 cat >>confdefs.h <<_ACEOF
12319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12320 _ACEOF
12321
12322 fi
12323 done
12324
12325
12326 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
12327 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
12328 ac_have_decl=1
12329 else
12330 ac_have_decl=0
12331 fi
12332
12333 cat >>confdefs.h <<_ACEOF
12334 #define HAVE_DECL_STRERROR $ac_have_decl
12335 _ACEOF
12336 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12337 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12338 ac_have_decl=1
12339 else
12340 ac_have_decl=0
12341 fi
12342
12343 cat >>confdefs.h <<_ACEOF
12344 #define HAVE_DECL_STRSTR $ac_have_decl
12345 _ACEOF
12346
12347
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12349 $as_echo_n "checking for sigsetjmp... " >&6; }
12350 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12355
12356 #include <setjmp.h>
12357
12358 int
12359 main ()
12360 {
12361 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12362 ;
12363 return 0;
12364 }
12365 _ACEOF
12366 if ac_fn_c_try_compile "$LINENO"; then :
12367 gdb_cv_func_sigsetjmp=yes
12368 else
12369 gdb_cv_func_sigsetjmp=no
12370 fi
12371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12374 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12375 if test $gdb_cv_func_sigsetjmp = yes; then
12376
12377 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12378
12379 fi
12380
12381
12382 # Check the return and argument types of ptrace.
12383
12384
12385
12386 for ac_header in sys/ptrace.h ptrace.h
12387 do :
12388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12389 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12390 eval as_val=\$$as_ac_Header
12391 if test "x$as_val" = x""yes; then :
12392 cat >>confdefs.h <<_ACEOF
12393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12394 _ACEOF
12395
12396 fi
12397
12398 done
12399
12400
12401 # Needs to be tested in C++ mode, to detect whether we need to cast
12402 # the first argument to enum __ptrace_request.
12403 if test "$enable_build_with_cxx" = "yes"; then
12404 ac_ext=cpp
12405 ac_cpp='$CXXCPP $CPPFLAGS'
12406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12409
12410 fi
12411
12412 gdb_ptrace_headers='
12413 #include <sys/types.h>
12414 #if HAVE_SYS_PTRACE_H
12415 # include <sys/ptrace.h>
12416 #endif
12417 #if HAVE_UNISTD_H
12418 # include <unistd.h>
12419 #endif
12420 '
12421 # There is no point in checking if we don't have a prototype.
12422 ac_fn_cxx_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12423 "
12424 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12425 ac_have_decl=1
12426 else
12427 ac_have_decl=0
12428 fi
12429
12430 cat >>confdefs.h <<_ACEOF
12431 #define HAVE_DECL_PTRACE $ac_have_decl
12432 _ACEOF
12433 if test $ac_have_decl = 1; then :
12434
12435 else
12436
12437 : ${gdb_cv_func_ptrace_ret='int'}
12438 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12439
12440 fi
12441
12442 # Check return type. Varargs (used on GNU/Linux) conflict with the
12443 # empty argument list, so check for that explicitly.
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12445 $as_echo_n "checking return type of ptrace... " >&6; }
12446 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12447 $as_echo_n "(cached) " >&6
12448 else
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451 $gdb_ptrace_headers
12452 int
12453 main ()
12454 {
12455 extern long ptrace (enum __ptrace_request, ...);
12456 ;
12457 return 0;
12458 }
12459 _ACEOF
12460 if ac_fn_cxx_try_compile "$LINENO"; then :
12461 gdb_cv_func_ptrace_ret='long'
12462 else
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12465 $gdb_ptrace_headers
12466 int
12467 main ()
12468 {
12469 extern int ptrace ();
12470 ;
12471 return 0;
12472 }
12473 _ACEOF
12474 if ac_fn_cxx_try_compile "$LINENO"; then :
12475 gdb_cv_func_ptrace_ret='int'
12476 else
12477 gdb_cv_func_ptrace_ret='long'
12478 fi
12479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 fi
12481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482 fi
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12484 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12485
12486 cat >>confdefs.h <<_ACEOF
12487 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12488 _ACEOF
12489
12490 # Check argument types.
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12492 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12493 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12499 $gdb_ptrace_headers
12500 int
12501 main ()
12502 {
12503 extern long ptrace (enum __ptrace_request, ...);
12504 ;
12505 return 0;
12506 }
12507 _ACEOF
12508 if ac_fn_cxx_try_compile "$LINENO"; then :
12509 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
12510 else
12511
12512 for gdb_arg1 in 'int' 'long'; do
12513 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12514 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12515 for gdb_arg4 in 'int' 'long' 'void *'; do
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518 $gdb_ptrace_headers
12519 int
12520 main ()
12521 {
12522
12523 extern $gdb_cv_func_ptrace_ret
12524 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12525
12526 ;
12527 return 0;
12528 }
12529 _ACEOF
12530 if ac_fn_cxx_try_compile "$LINENO"; then :
12531 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12532 break 4;
12533 fi
12534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12535 for gdb_arg5 in 'int *' 'int' 'long'; do
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12538 $gdb_ptrace_headers
12539 int
12540 main ()
12541 {
12542
12543 extern $gdb_cv_func_ptrace_ret
12544 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12545
12546 ;
12547 return 0;
12548 }
12549 _ACEOF
12550 if ac_fn_cxx_try_compile "$LINENO"; then :
12551
12552 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12553 break 5;
12554 fi
12555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556 done
12557 done
12558 done
12559 done
12560 done
12561 # Provide a safe default value.
12562 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12563
12564 fi
12565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12568 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12569 ac_save_IFS=$IFS; IFS=','
12570 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12571 IFS=$ac_save_IFS
12572 shift
12573
12574 cat >>confdefs.h <<_ACEOF
12575 #define PTRACE_TYPE_ARG1 $1
12576 _ACEOF
12577
12578
12579 cat >>confdefs.h <<_ACEOF
12580 #define PTRACE_TYPE_ARG3 $3
12581 _ACEOF
12582
12583
12584 cat >>confdefs.h <<_ACEOF
12585 #define PTRACE_TYPE_ARG4 $4
12586 _ACEOF
12587
12588 if test -n "$5"; then
12589
12590 cat >>confdefs.h <<_ACEOF
12591 #define PTRACE_TYPE_ARG5 $5
12592 _ACEOF
12593
12594 fi
12595
12596 if test "$enable_build_with_cxx" = "yes"; then
12597 ac_ext=c
12598 ac_cpp='$CPP $CPPFLAGS'
12599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12602
12603 fi
12604
12605
12606 if test "$cross_compiling" = no; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12608 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12609 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 if test "$cross_compiling" = yes; then :
12613 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12614 else
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12617 $ac_includes_default
12618 int
12619 main ()
12620 {
12621 /* If this system has a BSD-style setpgrp which takes arguments,
12622 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12623 exit successfully. */
12624 return setpgrp (1,1) != -1;
12625 ;
12626 return 0;
12627 }
12628 _ACEOF
12629 if ac_fn_c_try_run "$LINENO"; then :
12630 ac_cv_func_setpgrp_void=no
12631 else
12632 ac_cv_func_setpgrp_void=yes
12633 fi
12634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12635 conftest.$ac_objext conftest.beam conftest.$ac_ext
12636 fi
12637
12638 fi
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12640 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12641 if test $ac_cv_func_setpgrp_void = yes; then
12642
12643 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12644
12645 fi
12646
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12649 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12650 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12655
12656 #include <unistd.h>
12657
12658 int
12659 main ()
12660 {
12661
12662 if (setpgrp(1,1) == -1)
12663 exit (0);
12664 else
12665 exit (1);
12666
12667 ;
12668 return 0;
12669 }
12670 _ACEOF
12671 if ac_fn_c_try_compile "$LINENO"; then :
12672 ac_cv_func_setpgrp_void=no
12673 else
12674 ac_cv_func_setpgrp_void=yes
12675 fi
12676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12677 fi
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12679 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12680 if test $ac_cv_func_setpgrp_void = yes; then
12681 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12682
12683 fi
12684 fi
12685
12686 # Assume we'll default to using the included libiberty regex.
12687 gdb_use_included_regex=yes
12688
12689 # However, if the system regex is GNU regex, then default to *not*
12690 # using the included regex.
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12692 $as_echo_n "checking for GNU regex... " >&6; }
12693 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12694 $as_echo_n "(cached) " >&6
12695 else
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12698 #include <gnu-versions.h>
12699 int
12700 main ()
12701 {
12702 #define REGEX_INTERFACE_VERSION 1
12703 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12704 # error "Version mismatch"
12705 #endif
12706 ;
12707 return 0;
12708 }
12709 _ACEOF
12710 if ac_fn_c_try_compile "$LINENO"; then :
12711 gdb_cv_have_gnu_regex=yes
12712 else
12713 gdb_cv_have_gnu_regex=no
12714 fi
12715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 fi
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12718 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12719 if test $gdb_cv_have_gnu_regex = yes; then
12720 gdb_use_included_regex=no
12721 fi
12722
12723
12724 # Check whether --with-included-regex was given.
12725 if test "${with_included_regex+set}" = set; then :
12726 withval=$with_included_regex; gdb_with_regex=$withval
12727 else
12728 gdb_with_regex=$gdb_use_included_regex
12729 fi
12730
12731 if test "$gdb_with_regex" = yes; then
12732
12733 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12734
12735 fi
12736
12737 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12738 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12739 #include <sys/proc.h>
12740
12741 "
12742 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12743
12744 cat >>confdefs.h <<_ACEOF
12745 #define HAVE_STRUCT_THREAD_TD_PCB 1
12746 _ACEOF
12747
12748
12749 fi
12750
12751
12752 # See if <sys/lwp.h> defines `struct lwp`.
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12754 $as_echo_n "checking for struct lwp... " >&6; }
12755 if test "${gdb_cv_struct_lwp+set}" = set; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760 #include <sys/param.h>
12761 #include <sys/lwp.h>
12762 int
12763 main ()
12764 {
12765 struct lwp l;
12766 ;
12767 return 0;
12768 }
12769 _ACEOF
12770 if ac_fn_c_try_compile "$LINENO"; then :
12771 gdb_cv_struct_lwp=yes
12772 else
12773 gdb_cv_struct_lwp=no
12774 fi
12775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12776 fi
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12778 $as_echo "$gdb_cv_struct_lwp" >&6; }
12779 if test $gdb_cv_struct_lwp = yes; then
12780
12781 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12782
12783 fi
12784
12785 # See if <machine/reg.h> degines `struct reg'.
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12787 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12788 if test "${gdb_cv_struct_reg+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12793 #include <sys/types.h>
12794 #include <machine/reg.h>
12795 int
12796 main ()
12797 {
12798 struct reg r;
12799 ;
12800 return 0;
12801 }
12802 _ACEOF
12803 if ac_fn_c_try_compile "$LINENO"; then :
12804 gdb_cv_struct_reg=yes
12805 else
12806 gdb_cv_struct_reg=no
12807 fi
12808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12809 fi
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12811 $as_echo "$gdb_cv_struct_reg" >&6; }
12812 if test $gdb_cv_struct_reg = yes; then
12813
12814 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12815
12816 fi
12817
12818 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12819 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12820 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
12821 "
12822 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
12823
12824 cat >>confdefs.h <<_ACEOF
12825 #define HAVE_STRUCT_REG_R_FS 1
12826 _ACEOF
12827
12828
12829 fi
12830 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
12831 "
12832 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
12833
12834 cat >>confdefs.h <<_ACEOF
12835 #define HAVE_STRUCT_REG_R_GS 1
12836 _ACEOF
12837
12838
12839 fi
12840
12841
12842 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
12843 # Older amd64 Linux's don't have the fs_base and gs_base members of
12844 # `struct user_regs_struct'.
12845 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>
12846 "
12847 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
12848
12849 cat >>confdefs.h <<_ACEOF
12850 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
12851 _ACEOF
12852
12853
12854 fi
12855 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>
12856 "
12857 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
12858
12859 cat >>confdefs.h <<_ACEOF
12860 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
12861 _ACEOF
12862
12863
12864 fi
12865
12866
12867 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12869 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12870 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 #include <sys/ptrace.h>
12876 int
12877 main ()
12878 {
12879 PTRACE_GETREGS;
12880 ;
12881 return 0;
12882 }
12883 _ACEOF
12884 if ac_fn_c_try_compile "$LINENO"; then :
12885 gdb_cv_have_ptrace_getregs=yes
12886 else
12887 gdb_cv_have_ptrace_getregs=no
12888 fi
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 fi
12891
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12893 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12894 if test $gdb_cv_have_ptrace_getregs = yes; then
12895
12896 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12897
12898 fi
12899
12900 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12902 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12903 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12908 #include <sys/ptrace.h>
12909 int
12910 main ()
12911 {
12912 PTRACE_GETFPXREGS;
12913 ;
12914 return 0;
12915 }
12916 _ACEOF
12917 if ac_fn_c_try_compile "$LINENO"; then :
12918 gdb_cv_have_ptrace_getfpxregs=yes
12919 else
12920 gdb_cv_have_ptrace_getfpxregs=no
12921 fi
12922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12923 fi
12924
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12926 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12927 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12928
12929 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12930
12931 fi
12932
12933 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12935 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12936 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
12938 else
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12941 #include <sys/types.h>
12942 #include <sys/ptrace.h>
12943 int
12944 main ()
12945 {
12946 PT_GETDBREGS;
12947 ;
12948 return 0;
12949 }
12950 _ACEOF
12951 if ac_fn_c_try_compile "$LINENO"; then :
12952 gdb_cv_have_pt_getdbregs=yes
12953 else
12954 gdb_cv_have_pt_getdbregs=no
12955 fi
12956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12957 fi
12958
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12960 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12961 if test $gdb_cv_have_pt_getdbregs = yes; then
12962
12963 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12964
12965 fi
12966
12967 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12969 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12970 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 #include <sys/types.h>
12976 #include <sys/ptrace.h>
12977 int
12978 main ()
12979 {
12980 PT_GETXMMREGS;
12981 ;
12982 return 0;
12983 }
12984 _ACEOF
12985 if ac_fn_c_try_compile "$LINENO"; then :
12986 gdb_cv_have_pt_getxmmregs=yes
12987 else
12988 gdb_cv_have_pt_getxmmregs=no
12989 fi
12990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12991 fi
12992
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12994 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12995 if test $gdb_cv_have_pt_getxmmregs = yes; then
12996
12997 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12998
12999 fi
13000
13001 # Detect which type of /proc is in use, such as for Solaris.
13002
13003 if test "${target}" = "${host}"; then
13004 case "${host}" in
13005 *-*-sysv4.2* | *-*-sysv5* )
13006
13007 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13008
13009 ;;
13010 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13011
13012 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13013
13014 ;;
13015 mips-sgi-irix5*)
13016 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13017
13018 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13019
13020 ;;
13021 esac
13022 fi
13023
13024 if test "$ac_cv_header_sys_procfs_h" = yes; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13026 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13027 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13028 $as_echo_n "(cached) " >&6
13029 else
13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13032
13033 #define _SYSCALL32
13034 /* Needed for new procfs interface on sparc-solaris. */
13035 #define _STRUCTURED_PROC 1
13036 #include <sys/procfs.h>
13037 int
13038 main ()
13039 {
13040 gregset_t avar
13041 ;
13042 return 0;
13043 }
13044 _ACEOF
13045 if ac_fn_c_try_compile "$LINENO"; then :
13046 bfd_cv_have_sys_procfs_type_gregset_t=yes
13047 else
13048 bfd_cv_have_sys_procfs_type_gregset_t=no
13049
13050 fi
13051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13052 fi
13053
13054 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13055
13056 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13057
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13060 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13061
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13063 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13064 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h. */
13069
13070 #define _SYSCALL32
13071 /* Needed for new procfs interface on sparc-solaris. */
13072 #define _STRUCTURED_PROC 1
13073 #include <sys/procfs.h>
13074 int
13075 main ()
13076 {
13077 fpregset_t avar
13078 ;
13079 return 0;
13080 }
13081 _ACEOF
13082 if ac_fn_c_try_compile "$LINENO"; then :
13083 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13084 else
13085 bfd_cv_have_sys_procfs_type_fpregset_t=no
13086
13087 fi
13088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 fi
13090
13091 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13092
13093 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13094
13095 fi
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13097 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13098
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13100 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13101 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13102 $as_echo_n "(cached) " >&6
13103 else
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106
13107 #define _SYSCALL32
13108 /* Needed for new procfs interface on sparc-solaris. */
13109 #define _STRUCTURED_PROC 1
13110 #include <sys/procfs.h>
13111 int
13112 main ()
13113 {
13114 prgregset_t avar
13115 ;
13116 return 0;
13117 }
13118 _ACEOF
13119 if ac_fn_c_try_compile "$LINENO"; then :
13120 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13121 else
13122 bfd_cv_have_sys_procfs_type_prgregset_t=no
13123
13124 fi
13125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126 fi
13127
13128 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13129
13130 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13131
13132 fi
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13134 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13135
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13137 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13138 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13143
13144 #define _SYSCALL32
13145 /* Needed for new procfs interface on sparc-solaris. */
13146 #define _STRUCTURED_PROC 1
13147 #include <sys/procfs.h>
13148 int
13149 main ()
13150 {
13151 prfpregset_t avar
13152 ;
13153 return 0;
13154 }
13155 _ACEOF
13156 if ac_fn_c_try_compile "$LINENO"; then :
13157 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13158 else
13159 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13160
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163 fi
13164
13165 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13166
13167 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13168
13169 fi
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13171 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13172
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13174 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13175 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13180
13181 #define _SYSCALL32
13182 /* Needed for new procfs interface on sparc-solaris. */
13183 #define _STRUCTURED_PROC 1
13184 #include <sys/procfs.h>
13185 int
13186 main ()
13187 {
13188 prgregset32_t avar
13189 ;
13190 return 0;
13191 }
13192 _ACEOF
13193 if ac_fn_c_try_compile "$LINENO"; then :
13194 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13195 else
13196 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13197
13198 fi
13199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13200 fi
13201
13202 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13203
13204 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13205
13206 fi
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13208 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13209
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13211 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13212 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
13214 else
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13217
13218 #define _SYSCALL32
13219 /* Needed for new procfs interface on sparc-solaris. */
13220 #define _STRUCTURED_PROC 1
13221 #include <sys/procfs.h>
13222 int
13223 main ()
13224 {
13225 lwpid_t avar
13226 ;
13227 return 0;
13228 }
13229 _ACEOF
13230 if ac_fn_c_try_compile "$LINENO"; then :
13231 bfd_cv_have_sys_procfs_type_lwpid_t=yes
13232 else
13233 bfd_cv_have_sys_procfs_type_lwpid_t=no
13234
13235 fi
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 fi
13238
13239 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13240
13241 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13242
13243 fi
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13245 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13246
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13248 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13249 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13254
13255 #define _SYSCALL32
13256 /* Needed for new procfs interface on sparc-solaris. */
13257 #define _STRUCTURED_PROC 1
13258 #include <sys/procfs.h>
13259 int
13260 main ()
13261 {
13262 psaddr_t avar
13263 ;
13264 return 0;
13265 }
13266 _ACEOF
13267 if ac_fn_c_try_compile "$LINENO"; then :
13268 bfd_cv_have_sys_procfs_type_psaddr_t=yes
13269 else
13270 bfd_cv_have_sys_procfs_type_psaddr_t=no
13271
13272 fi
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 fi
13275
13276 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13277
13278 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13279
13280 fi
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13282 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13283
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13285 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13286 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13287 $as_echo_n "(cached) " >&6
13288 else
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13291
13292 #define _SYSCALL32
13293 /* Needed for new procfs interface on sparc-solaris. */
13294 #define _STRUCTURED_PROC 1
13295 #include <sys/procfs.h>
13296 int
13297 main ()
13298 {
13299 prsysent_t avar
13300 ;
13301 return 0;
13302 }
13303 _ACEOF
13304 if ac_fn_c_try_compile "$LINENO"; then :
13305 bfd_cv_have_sys_procfs_type_prsysent_t=yes
13306 else
13307 bfd_cv_have_sys_procfs_type_prsysent_t=no
13308
13309 fi
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311 fi
13312
13313 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13314
13315 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13316
13317 fi
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13319 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13320
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13322 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13323 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13324 $as_echo_n "(cached) " >&6
13325 else
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13328
13329 #define _SYSCALL32
13330 /* Needed for new procfs interface on sparc-solaris. */
13331 #define _STRUCTURED_PROC 1
13332 #include <sys/procfs.h>
13333 int
13334 main ()
13335 {
13336 pr_sigset_t avar
13337 ;
13338 return 0;
13339 }
13340 _ACEOF
13341 if ac_fn_c_try_compile "$LINENO"; then :
13342 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13343 else
13344 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13345
13346 fi
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 fi
13349
13350 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13351
13352 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13353
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13356 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13357
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13359 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13360 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13365
13366 #define _SYSCALL32
13367 /* Needed for new procfs interface on sparc-solaris. */
13368 #define _STRUCTURED_PROC 1
13369 #include <sys/procfs.h>
13370 int
13371 main ()
13372 {
13373 pr_sigaction64_t avar
13374 ;
13375 return 0;
13376 }
13377 _ACEOF
13378 if ac_fn_c_try_compile "$LINENO"; then :
13379 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13380 else
13381 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13382
13383 fi
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 fi
13386
13387 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13388
13389 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13390
13391 fi
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13393 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13394
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13396 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13397 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13402
13403 #define _SYSCALL32
13404 /* Needed for new procfs interface on sparc-solaris. */
13405 #define _STRUCTURED_PROC 1
13406 #include <sys/procfs.h>
13407 int
13408 main ()
13409 {
13410 pr_siginfo64_t avar
13411 ;
13412 return 0;
13413 }
13414 _ACEOF
13415 if ac_fn_c_try_compile "$LINENO"; then :
13416 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13417 else
13418 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13419
13420 fi
13421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13422 fi
13423
13424 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13425
13426 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13427
13428 fi
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13430 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13431
13432
13433
13434
13435
13436 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13438 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13439 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13440 $as_echo_n "(cached) " >&6
13441 else
13442 if test "$cross_compiling" = yes; then :
13443 gdb_cv_prfpregset_t_broken=yes
13444 else
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447 #include <sys/procfs.h>
13448 int main ()
13449 {
13450 if (sizeof (prfpregset_t) == sizeof (void *))
13451 return 1;
13452 return 0;
13453 }
13454 _ACEOF
13455 if ac_fn_c_try_run "$LINENO"; then :
13456 gdb_cv_prfpregset_t_broken=no
13457 else
13458 gdb_cv_prfpregset_t_broken=yes
13459 fi
13460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13461 conftest.$ac_objext conftest.beam conftest.$ac_ext
13462 fi
13463
13464 fi
13465
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13467 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13468 if test $gdb_cv_prfpregset_t_broken = yes; then
13469
13470 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13471
13472 fi
13473 fi
13474 fi
13475
13476 # Check if the compiler supports the `long long' type.
13477
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13479 $as_echo_n "checking for long long support in compiler... " >&6; }
13480 if test "${gdb_cv_c_long_long+set}" = set; then :
13481 $as_echo_n "(cached) " >&6
13482 else
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 extern long long foo;
13486 int
13487 main ()
13488 {
13489 switch (foo & 2) { case 0: return 1; }
13490 ;
13491 return 0;
13492 }
13493 _ACEOF
13494 if ac_fn_c_try_compile "$LINENO"; then :
13495 gdb_cv_c_long_long=yes
13496 else
13497 gdb_cv_c_long_long=no
13498 fi
13499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500 fi
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13502 $as_echo "$gdb_cv_c_long_long" >&6; }
13503 if test $gdb_cv_c_long_long != yes; then
13504 # libdecnumber requires long long.
13505 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
13506 fi
13507
13508 # Check if the compiler and runtime support printing long longs.
13509
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13511 $as_echo_n "checking for long long support in printf... " >&6; }
13512 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13513 $as_echo_n "(cached) " >&6
13514 else
13515 if test "$cross_compiling" = yes; then :
13516 gdb_cv_printf_has_long_long=no
13517 else
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520 $ac_includes_default
13521 int
13522 main ()
13523 {
13524 char buf[32];
13525 long long l = 0;
13526 l = (l << 16) + 0x0123;
13527 l = (l << 16) + 0x4567;
13528 l = (l << 16) + 0x89ab;
13529 l = (l << 16) + 0xcdef;
13530 sprintf (buf, "0x%016llx", l);
13531 return (strcmp ("0x0123456789abcdef", buf));
13532 ;
13533 return 0;
13534 }
13535 _ACEOF
13536 if ac_fn_c_try_run "$LINENO"; then :
13537 gdb_cv_printf_has_long_long=yes
13538 else
13539 gdb_cv_printf_has_long_long=no
13540 fi
13541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13542 conftest.$ac_objext conftest.beam conftest.$ac_ext
13543 fi
13544
13545 fi
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13547 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13548 if test $gdb_cv_printf_has_long_long = yes; then
13549
13550 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13551
13552 fi
13553
13554 # Check if the compiler and runtime support printing decfloats.
13555
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13557 $as_echo_n "checking for decfloat support in printf... " >&6; }
13558 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 if test "$cross_compiling" = yes; then :
13562 gdb_cv_printf_has_decfloat=no
13563 else
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13566 $ac_includes_default
13567 int
13568 main ()
13569 {
13570 char buf[64];
13571 _Decimal32 d32 = 1.2345df;
13572 _Decimal64 d64 = 1.2345dd;
13573 _Decimal128 d128 = 1.2345dl;
13574 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13575 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13576 ;
13577 return 0;
13578 }
13579 _ACEOF
13580 if ac_fn_c_try_run "$LINENO"; then :
13581 gdb_cv_printf_has_decfloat=yes
13582 else
13583 gdb_cv_printf_has_decfloat=no
13584 fi
13585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13586 conftest.$ac_objext conftest.beam conftest.$ac_ext
13587 fi
13588
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13591 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13592 if test $gdb_cv_printf_has_decfloat = yes; then
13593
13594 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13595
13596 fi
13597
13598 # Check if the compiler supports the `long double' type. We can't use
13599 # AC_C_LONG_DOUBLE because that one does additional checks on the
13600 # constants defined in <float.h> that fail on some systems,
13601 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13602
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13604 $as_echo_n "checking for long double support in compiler... " >&6; }
13605 if test "${gdb_cv_c_long_double+set}" = set; then :
13606 $as_echo_n "(cached) " >&6
13607 else
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13610 long double foo;
13611 _ACEOF
13612 if ac_fn_c_try_compile "$LINENO"; then :
13613 gdb_cv_c_long_double=yes
13614 else
13615 gdb_cv_c_long_double=no
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618 fi
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13620 $as_echo "$gdb_cv_c_long_double" >&6; }
13621 if test $gdb_cv_c_long_double = yes; then
13622
13623 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13624
13625 fi
13626
13627 # Check if the compiler and runtime support printing long doubles.
13628
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
13630 $as_echo_n "checking for long double support in printf... " >&6; }
13631 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 if test "$cross_compiling" = yes; then :
13635 gdb_cv_printf_has_long_double=no
13636 else
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 $ac_includes_default
13640 int
13641 main ()
13642 {
13643 char buf[16];
13644 long double f = 3.141592653;
13645 sprintf (buf, "%Lg", f);
13646 return (strncmp ("3.14159", buf, 7));
13647 ;
13648 return 0;
13649 }
13650 _ACEOF
13651 if ac_fn_c_try_run "$LINENO"; then :
13652 gdb_cv_printf_has_long_double=yes
13653 else
13654 gdb_cv_printf_has_long_double=no
13655 fi
13656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13657 conftest.$ac_objext conftest.beam conftest.$ac_ext
13658 fi
13659
13660 fi
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
13662 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
13663 if test $gdb_cv_printf_has_long_double = yes; then
13664
13665 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
13666
13667 fi
13668
13669 # Check if the compiler and runtime support scanning long doubles.
13670
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
13672 $as_echo_n "checking for long double support in scanf... " >&6; }
13673 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
13674 $as_echo_n "(cached) " >&6
13675 else
13676 if test "$cross_compiling" = yes; then :
13677 gdb_cv_scanf_has_long_double=no
13678 else
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681 #include <stdio.h>
13682 int
13683 main ()
13684 {
13685 char *buf = "3.141592653";
13686 long double f = 0;
13687 sscanf (buf, "%Lg", &f);
13688 return !(f > 3.14159 && f < 3.14160);
13689 ;
13690 return 0;
13691 }
13692 _ACEOF
13693 if ac_fn_c_try_run "$LINENO"; then :
13694 gdb_cv_scanf_has_long_double=yes
13695 else
13696 gdb_cv_scanf_has_long_double=no
13697 fi
13698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13699 conftest.$ac_objext conftest.beam conftest.$ac_ext
13700 fi
13701
13702 fi
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
13704 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
13705 if test $gdb_cv_scanf_has_long_double = yes; then
13706
13707 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
13708
13709 fi
13710
13711 case ${host_os} in
13712 aix*)
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
13714 $as_echo_n "checking for -bbigtoc option... " >&6; }
13715 if test "${gdb_cv_bigtoc+set}" = set; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718
13719 SAVE_LDFLAGS=$LDFLAGS
13720
13721 case $GCC in
13722 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
13723 *) gdb_cv_bigtoc=-bbigtoc ;;
13724 esac
13725
13726 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728 /* end confdefs.h. */
13729
13730 int
13731 main ()
13732 {
13733 int i;
13734 ;
13735 return 0;
13736 }
13737 _ACEOF
13738 if ac_fn_c_try_link "$LINENO"; then :
13739
13740 else
13741 gdb_cv_bigtoc=
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext \
13744 conftest$ac_exeext conftest.$ac_ext
13745 LDFLAGS="${SAVE_LDFLAGS}"
13746
13747 fi
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
13749 $as_echo "$gdb_cv_bigtoc" >&6; }
13750 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
13751 ;;
13752 esac
13753
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
13755 $as_echo_n "checking for the dynamic export flag... " >&6; }
13756 dynamic_list=false
13757 if test "${gdb_native}" = yes; then
13758 # The dynamically loaded libthread_db needs access to symbols in the gdb
13759 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
13760 # may not be supported there.
13761 old_LDFLAGS="$LDFLAGS"
13762 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
13763 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
13764 LDFLAGS="$LDFLAGS $RDYNAMIC"
13765 if test "${have_libpython}" = no; then
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13768
13769 int
13770 main ()
13771 {
13772
13773 ;
13774 return 0;
13775 }
13776 _ACEOF
13777 if ac_fn_c_try_link "$LINENO"; then :
13778 dynamic_list=true
13779 fi
13780 rm -f core conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
13782 else
13783 # Workaround http://bugs.python.org/issue4434 where static
13784 # libpythonX.Y.a would get its symbols required for
13785 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
13786 # Problem does not happen for the recommended libpythonX.Y.so linkage.
13787 old_CFLAGS="$CFLAGS"
13788 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
13789 old_LIBS="$LIBS"
13790 LIBS="$LIBS $PYTHON_LIBS"
13791 if test "$cross_compiling" = yes; then :
13792 true
13793 else
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13796 #include "${have_libpython}/Python.h"
13797 int
13798 main ()
13799 {
13800 int err;
13801 Py_Initialize ();
13802 err = PyRun_SimpleString ("import itertools\n");
13803 Py_Finalize ();
13804 return err == 0 ? 0 : 1;
13805 ;
13806 return 0;
13807 }
13808 _ACEOF
13809 if ac_fn_c_try_run "$LINENO"; then :
13810 dynamic_list=true
13811 fi
13812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13813 conftest.$ac_objext conftest.beam conftest.$ac_ext
13814 fi
13815
13816 LIBS="$old_LIBS"
13817 CFLAGS="$old_CFLAGS"
13818 fi
13819 LDFLAGS="$old_LDFLAGS"
13820 fi
13821 if $dynamic_list; then
13822 found="-Wl,--dynamic-list"
13823 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
13824 else
13825 found="-rdynamic"
13826 RDYNAMIC="-rdynamic"
13827 fi
13828
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13830 $as_echo "$found" >&6; }
13831
13832
13833 if test ${build} = ${host} -a ${host} = ${target} ; then
13834 case ${host_os} in
13835 solaris*)
13836 # See if thread_db library is around for Solaris thread debugging.
13837 # Note that we must explicitly test for version 1 of the library
13838 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
13839 # the same API.
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
13841 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
13842 if test -f /usr/lib/libthread_db.so.1 ; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13844 $as_echo "yes" >&6; }
13845
13846 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
13847
13848 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
13849 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13851 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13852 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13853 $as_echo_n "(cached) " >&6
13854 else
13855 ac_check_lib_save_LIBS=$LIBS
13856 LIBS="-ldl $LIBS"
13857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h. */
13859
13860 /* Override any GCC internal prototype to avoid an error.
13861 Use char because int might match the return type of a GCC
13862 builtin and then its argument prototype would still apply. */
13863 #ifdef __cplusplus
13864 extern "C"
13865 #endif
13866 char dlopen ();
13867 int
13868 main ()
13869 {
13870 return dlopen ();
13871 ;
13872 return 0;
13873 }
13874 _ACEOF
13875 if ac_fn_c_try_link "$LINENO"; then :
13876 ac_cv_lib_dl_dlopen=yes
13877 else
13878 ac_cv_lib_dl_dlopen=no
13879 fi
13880 rm -f core conftest.err conftest.$ac_objext \
13881 conftest$ac_exeext conftest.$ac_ext
13882 LIBS=$ac_check_lib_save_LIBS
13883 fi
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13885 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13886 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13887 cat >>confdefs.h <<_ACEOF
13888 #define HAVE_LIBDL 1
13889 _ACEOF
13890
13891 LIBS="-ldl $LIBS"
13892
13893 fi
13894
13895 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
13896 # Sun randomly tweaked the prototypes in <proc_service.h>
13897 # at one point.
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13899 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
13900 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906
13907 #include <proc_service.h>
13908 ps_err_e ps_pdwrite
13909 (struct ps_prochandle*, psaddr_t, const void*, size_t);
13910
13911 int
13912 main ()
13913 {
13914
13915 ;
13916 return 0;
13917 }
13918 _ACEOF
13919 if ac_fn_c_try_compile "$LINENO"; then :
13920 gdb_cv_proc_service_is_old=no
13921 else
13922 gdb_cv_proc_service_is_old=yes
13923 fi
13924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925
13926 fi
13927
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13929 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13930 if test $gdb_cv_proc_service_is_old = yes; then
13931
13932 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13933
13934 fi
13935 else
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937 $as_echo "no" >&6; }
13938 fi
13939 ;;
13940 aix*)
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13942 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13943 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13944 $as_echo_n "(cached) " >&6
13945 else
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13948 #include <sys/pthdebug.h>
13949 int
13950 main ()
13951 {
13952 #ifndef PTHDB_VERSION_3
13953 #error
13954 #endif
13955 ;
13956 return 0;
13957 }
13958 _ACEOF
13959 if ac_fn_c_try_compile "$LINENO"; then :
13960 gdb_cv_have_aix_thread_debug=yes
13961 else
13962 gdb_cv_have_aix_thread_debug=no
13963 fi
13964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13965 fi
13966
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13968 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13969 if test $gdb_cv_have_aix_thread_debug = yes; then
13970 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
13971 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
13972 LIBS="$LIBS -lpthdebug"
13973
13974 # Older versions of AIX do not provide the declaration for
13975 # the getthrds function (it appears that it was introduced
13976 # with AIX 6.x).
13977 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
13978 "
13979 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
13980 ac_have_decl=1
13981 else
13982 ac_have_decl=0
13983 fi
13984
13985 cat >>confdefs.h <<_ACEOF
13986 #define HAVE_DECL_GETTHRDS $ac_have_decl
13987 _ACEOF
13988
13989 fi
13990 ;;
13991 esac
13992
13993 fi
13994
13995 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13997 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13998 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14003 #include <thread_db.h>
14004 int
14005 main ()
14006 {
14007 int i = TD_NOTALLOC;
14008 ;
14009 return 0;
14010 }
14011 _ACEOF
14012 if ac_fn_c_try_compile "$LINENO"; then :
14013 gdb_cv_thread_db_h_has_td_notalloc=yes
14014 else
14015 gdb_cv_thread_db_h_has_td_notalloc=no
14016
14017 fi
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019
14020 fi
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14022 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14024 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14025 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14026 $as_echo_n "(cached) " >&6
14027 else
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h. */
14030 #include <thread_db.h>
14031 int
14032 main ()
14033 {
14034 int i = TD_VERSION;
14035 ;
14036 return 0;
14037 }
14038 _ACEOF
14039 if ac_fn_c_try_compile "$LINENO"; then :
14040 gdb_cv_thread_db_h_has_td_version=yes
14041 else
14042 gdb_cv_thread_db_h_has_td_version=no
14043
14044 fi
14045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14046
14047 fi
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14049 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14051 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14052 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14053 $as_echo_n "(cached) " >&6
14054 else
14055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14057 #include <thread_db.h>
14058 int
14059 main ()
14060 {
14061 int i = TD_NOTLS;
14062 ;
14063 return 0;
14064 }
14065 _ACEOF
14066 if ac_fn_c_try_compile "$LINENO"; then :
14067 gdb_cv_thread_db_h_has_td_notls=yes
14068 else
14069 gdb_cv_thread_db_h_has_td_notls=no
14070
14071 fi
14072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073
14074 fi
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14076 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14077 fi
14078 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14079
14080 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14081
14082 fi
14083 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14084
14085 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14086
14087 fi
14088 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14089
14090 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14091
14092 fi
14093
14094 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14096 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14097 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 #include <sys/syscall.h>
14103 int
14104 main ()
14105 {
14106 int i = __NR_tkill;
14107 ;
14108 return 0;
14109 }
14110 _ACEOF
14111 if ac_fn_c_try_compile "$LINENO"; then :
14112 gdb_cv_sys_syscall_h_has_tkill=yes
14113 else
14114 gdb_cv_sys_syscall_h_has_tkill=no
14115
14116 fi
14117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14118
14119 fi
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14121 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14122 fi
14123 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
14124 ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
14125 if test "x$ac_cv_func_syscall" = x""yes; then :
14126
14127 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14128
14129
14130 fi
14131
14132 fi
14133
14134 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14135 "
14136 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14137 ac_have_decl=1
14138 else
14139 ac_have_decl=0
14140 fi
14141
14142 cat >>confdefs.h <<_ACEOF
14143 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14144 _ACEOF
14145
14146
14147 if test "$cross_compiling" = yes; then :
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 #include <sys/personality.h>
14151 int
14152 main ()
14153 {
14154
14155 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14156 # define ADDR_NO_RANDOMIZE 0x0040000
14157 # endif
14158 /* Test the flag could be set and stays set. */
14159 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14160 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14161 return 1
14162 ;
14163 return 0;
14164 }
14165 _ACEOF
14166 if ac_fn_c_try_link "$LINENO"; then :
14167 have_personality=true
14168 else
14169 have_personality=false
14170 fi
14171 rm -f core conftest.err conftest.$ac_objext \
14172 conftest$ac_exeext conftest.$ac_ext
14173 else
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14176 #include <sys/personality.h>
14177 int
14178 main ()
14179 {
14180
14181 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14182 # define ADDR_NO_RANDOMIZE 0x0040000
14183 # endif
14184 /* Test the flag could be set and stays set. */
14185 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14186 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14187 return 1
14188 ;
14189 return 0;
14190 }
14191 _ACEOF
14192 if ac_fn_c_try_run "$LINENO"; then :
14193 have_personality=true
14194 else
14195 have_personality=false
14196 fi
14197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14198 conftest.$ac_objext conftest.beam conftest.$ac_ext
14199 fi
14200
14201 if $have_personality
14202 then
14203
14204 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14205
14206 fi
14207
14208 case $host_os in
14209 go32* | *djgpp*)
14210 gdbinit=gdb.ini
14211 ;;
14212 *)
14213 gdbinit=.gdbinit
14214 ;;
14215 esac
14216
14217 cat >>confdefs.h <<_ACEOF
14218 #define GDBINIT "$gdbinit"
14219 _ACEOF
14220
14221
14222
14223 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
14224 # except that the argument to --with-sysroot is optional.
14225 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
14226 if test "x$with_sysroot" = xyes; then
14227 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
14228 fi
14229
14230 # Check whether --with-sysroot was given.
14231 if test "${with_sysroot+set}" = set; then :
14232 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
14233 else
14234 TARGET_SYSTEM_ROOT=
14235 fi
14236
14237
14238 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14239 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14240 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
14241 ac_define_dir=`eval echo $ac_define_dir`
14242
14243 cat >>confdefs.h <<_ACEOF
14244 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
14245 _ACEOF
14246
14247
14248
14249
14250 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14251 if test "x$prefix" = xNONE; then
14252 test_prefix=/usr/local
14253 else
14254 test_prefix=$prefix
14255 fi
14256 else
14257 test_prefix=$exec_prefix
14258 fi
14259 value=0
14260 case ${ac_define_dir} in
14261 "${test_prefix}"|"${test_prefix}/"*|\
14262 '${exec_prefix}'|'${exec_prefix}/'*)
14263 value=1
14264 ;;
14265 esac
14266
14267 cat >>confdefs.h <<_ACEOF
14268 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
14269 _ACEOF
14270
14271
14272
14273
14274
14275 # Check whether --with-system-gdbinit was given.
14276 if test "${with_system_gdbinit+set}" = set; then :
14277 withval=$with_system_gdbinit;
14278 SYSTEM_GDBINIT=$withval
14279 else
14280 SYSTEM_GDBINIT=
14281 fi
14282
14283
14284 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14285 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14286 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14287 ac_define_dir=`eval echo $ac_define_dir`
14288
14289 cat >>confdefs.h <<_ACEOF
14290 #define SYSTEM_GDBINIT "$ac_define_dir"
14291 _ACEOF
14292
14293
14294
14295
14296 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14297 if test "x$prefix" = xNONE; then
14298 test_prefix=/usr/local
14299 else
14300 test_prefix=$prefix
14301 fi
14302 else
14303 test_prefix=$exec_prefix
14304 fi
14305 value=0
14306 case ${ac_define_dir} in
14307 "${test_prefix}"|"${test_prefix}/"*|\
14308 '${exec_prefix}'|'${exec_prefix}/'*)
14309 value=1
14310 ;;
14311 esac
14312
14313 cat >>confdefs.h <<_ACEOF
14314 #define SYSTEM_GDBINIT_RELOCATABLE $value
14315 _ACEOF
14316
14317
14318
14319
14320 # Check whether --enable-werror was given.
14321 if test "${enable_werror+set}" = set; then :
14322 enableval=$enable_werror; case "${enableval}" in
14323 yes | y) ERROR_ON_WARNING="yes" ;;
14324 no | n) ERROR_ON_WARNING="no" ;;
14325 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14326 esac
14327 fi
14328
14329
14330 # Enable -Werror by default when using gcc in C mode. Leave it off
14331 # for C++ until we're warning clean. Turn it off for releases.
14332 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
14333 && test x"$enable_build_with_cxx" != x"yes" \
14334 && $development; then
14335 ERROR_ON_WARNING=yes
14336 fi
14337
14338 WERROR_CFLAGS=""
14339 if test "${ERROR_ON_WARNING}" = yes ; then
14340 WERROR_CFLAGS="-Werror"
14341 fi
14342
14343 # These options work in either C or C++ modes.
14344 build_warnings="-Wall -Wpointer-arith \
14345 -Wno-unused -Wunused-value -Wunused-function \
14346 -Wno-switch -Wno-char-subscripts \
14347 -Wempty-body"
14348
14349 # Now add in C and C++ specific options, depending on mode.
14350 if test "$enable_build_with_cxx" = "yes"; then
14351 build_warnings="$build_warnings -Wno-sign-compare -Wno-write-strings \
14352 -Wno-narrowing"
14353 else
14354 build_warnings="$build_warnings -Wpointer-sign -Wmissing-prototypes \
14355 -Wdeclaration-after-statement -Wmissing-parameter-type \
14356 -Wold-style-declaration -Wold-style-definition"
14357 fi
14358
14359 # Enable -Wno-format by default when using gcc on mingw since many
14360 # GCC versions complain about %I64.
14361 case "${host}" in
14362 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14363 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14364 esac
14365
14366 # Check whether --enable-build-warnings was given.
14367 if test "${enable_build_warnings+set}" = set; then :
14368 enableval=$enable_build_warnings; case "${enableval}" in
14369 yes) ;;
14370 no) build_warnings="-w";;
14371 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14372 build_warnings="${build_warnings} ${t}";;
14373 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14374 build_warnings="${t} ${build_warnings}";;
14375 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14376 esac
14377 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14378 echo "Setting compiler warning flags = $build_warnings" 6>&1
14379 fi
14380 fi
14381 # Check whether --enable-gdb-build-warnings was given.
14382 if test "${enable_gdb_build_warnings+set}" = set; then :
14383 enableval=$enable_gdb_build_warnings; case "${enableval}" in
14384 yes) ;;
14385 no) build_warnings="-w";;
14386 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14387 build_warnings="${build_warnings} ${t}";;
14388 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14389 build_warnings="${t} ${build_warnings}";;
14390 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14391 esac
14392 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14393 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14394 fi
14395 fi
14396
14397 # The set of warnings supported by a C++ compiler is not the same as
14398 # of the C compiler.
14399 if test "$enable_build_with_cxx" = "yes"; then
14400 ac_ext=cpp
14401 ac_cpp='$CXXCPP $CPPFLAGS'
14402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14405
14406 fi
14407
14408 WARN_CFLAGS=""
14409 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14410 then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14412 $as_echo_n "checking compiler warning flags... " >&6; }
14413 # Separate out the -Werror flag as some files just cannot be
14414 # compiled with it enabled.
14415 for w in ${build_warnings}; do
14416 case $w in
14417 -Werr*) WERROR_CFLAGS=-Werror ;;
14418 *)
14419 # Check whether GCC accepts it.
14420 saved_CFLAGS="$CFLAGS"
14421 CFLAGS="$CFLAGS $w"
14422 saved_CXXFLAGS="$CXXFLAGS"
14423 CXXFLAGS="$CXXFLAGS $w"
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426
14427 int
14428 main ()
14429 {
14430
14431 ;
14432 return 0;
14433 }
14434 _ACEOF
14435 if ac_fn_cxx_try_compile "$LINENO"; then :
14436 WARN_CFLAGS="${WARN_CFLAGS} $w"
14437 fi
14438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14439 CFLAGS="$saved_CFLAGS"
14440 CXXFLAGS="$saved_CXXFLAGS"
14441 esac
14442 done
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14444 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14445 fi
14446
14447
14448
14449 if test "$enable_build_with_cxx" = "yes"; then
14450 ac_ext=c
14451 ac_cpp='$CPP $CPPFLAGS'
14452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14455
14456 fi
14457
14458 # In the Cygwin environment, we need some additional flags.
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14460 $as_echo_n "checking for cygwin... " >&6; }
14461 if test "${gdb_cv_os_cygwin+set}" = set; then :
14462 $as_echo_n "(cached) " >&6
14463 else
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14466
14467 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14468 lose
14469 #endif
14470 _ACEOF
14471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14472 $EGREP "^lose$" >/dev/null 2>&1; then :
14473 gdb_cv_os_cygwin=yes
14474 else
14475 gdb_cv_os_cygwin=no
14476 fi
14477 rm -f conftest*
14478
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14481 $as_echo "$gdb_cv_os_cygwin" >&6; }
14482
14483
14484 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14485 case ${host} in
14486 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14487 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14488 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14489 esac
14490
14491
14492 # libreadline needs libuser32.a in a cygwin environment
14493 WIN32LIBS=
14494 if test x$gdb_cv_os_cygwin = xyes; then
14495 WIN32LIBS="-luser32"
14496 case "${target}" in
14497 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14498 ;;
14499 esac
14500 fi
14501
14502 # The ser-tcp.c module requires sockets.
14503 case ${host} in
14504 *mingw32*)
14505
14506 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14507
14508 WIN32LIBS="$WIN32LIBS -lws2_32"
14509 ;;
14510 esac
14511
14512
14513 # Add ELF support to GDB, but only if BFD includes ELF support.
14514
14515 OLD_CFLAGS=$CFLAGS
14516 OLD_LDFLAGS=$LDFLAGS
14517 OLD_LIBS=$LIBS
14518 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14519 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14520 # always want our bfd.
14521 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14522 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14523 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14524 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14525 LIBS="-lbfd -liberty -lz $intl $LIBS"
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14527 $as_echo_n "checking for ELF support in BFD... " >&6; }
14528 if test "${gdb_cv_var_elf+set}" = set; then :
14529 $as_echo_n "(cached) " >&6
14530 else
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533 #include <stdlib.h>
14534 #include "bfd.h"
14535 #include "elf-bfd.h"
14536
14537 int
14538 main ()
14539 {
14540 return bfd_get_elf_phdr_upper_bound (NULL);
14541 ;
14542 return 0;
14543 }
14544 _ACEOF
14545 if ac_fn_c_try_link "$LINENO"; then :
14546 gdb_cv_var_elf=yes
14547 else
14548 gdb_cv_var_elf=no
14549 fi
14550 rm -f core conftest.err conftest.$ac_objext \
14551 conftest$ac_exeext conftest.$ac_ext
14552 fi
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14554 $as_echo "$gdb_cv_var_elf" >&6; }
14555 CFLAGS=$OLD_CFLAGS
14556 LDFLAGS=$OLD_LDFLAGS
14557 LIBS=$OLD_LIBS
14558 if test $gdb_cv_var_elf = yes; then
14559 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
14560
14561 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14562
14563 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14564 if test "$plugins" = "yes"; then
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14566 $as_echo_n "checking for library containing dlopen... " >&6; }
14567 if test "${ac_cv_search_dlopen+set}" = set; then :
14568 $as_echo_n "(cached) " >&6
14569 else
14570 ac_func_search_save_LIBS=$LIBS
14571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h. */
14573
14574 /* Override any GCC internal prototype to avoid an error.
14575 Use char because int might match the return type of a GCC
14576 builtin and then its argument prototype would still apply. */
14577 #ifdef __cplusplus
14578 extern "C"
14579 #endif
14580 char dlopen ();
14581 int
14582 main ()
14583 {
14584 return dlopen ();
14585 ;
14586 return 0;
14587 }
14588 _ACEOF
14589 for ac_lib in '' dl; do
14590 if test -z "$ac_lib"; then
14591 ac_res="none required"
14592 else
14593 ac_res=-l$ac_lib
14594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14595 fi
14596 if ac_fn_c_try_link "$LINENO"; then :
14597 ac_cv_search_dlopen=$ac_res
14598 fi
14599 rm -f core conftest.err conftest.$ac_objext \
14600 conftest$ac_exeext
14601 if test "${ac_cv_search_dlopen+set}" = set; then :
14602 break
14603 fi
14604 done
14605 if test "${ac_cv_search_dlopen+set}" = set; then :
14606
14607 else
14608 ac_cv_search_dlopen=no
14609 fi
14610 rm conftest.$ac_ext
14611 LIBS=$ac_func_search_save_LIBS
14612 fi
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14614 $as_echo "$ac_cv_search_dlopen" >&6; }
14615 ac_res=$ac_cv_search_dlopen
14616 if test "$ac_res" != no; then :
14617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14618
14619 fi
14620
14621 fi
14622 fi
14623
14624 # Add macho support to GDB, but only if BFD includes it.
14625
14626 OLD_CFLAGS=$CFLAGS
14627 OLD_LDFLAGS=$LDFLAGS
14628 OLD_LIBS=$LIBS
14629 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14630 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14631 # always want our bfd.
14632 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14633 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14634 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14635 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14636 LIBS="-lbfd -liberty -lz $intl $LIBS"
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
14638 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
14639 if test "${gdb_cv_var_macho+set}" = set; then :
14640 $as_echo_n "(cached) " >&6
14641 else
14642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h. */
14644 #include <stdlib.h>
14645 #include "bfd.h"
14646 #include "mach-o.h"
14647
14648 int
14649 main ()
14650 {
14651 return bfd_mach_o_lookup_command (NULL, 0, NULL);
14652 ;
14653 return 0;
14654 }
14655 _ACEOF
14656 if ac_fn_c_try_link "$LINENO"; then :
14657 gdb_cv_var_macho=yes
14658 else
14659 gdb_cv_var_macho=no
14660 fi
14661 rm -f core conftest.err conftest.$ac_objext \
14662 conftest$ac_exeext conftest.$ac_ext
14663 fi
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
14665 $as_echo "$gdb_cv_var_macho" >&6; }
14666 CFLAGS=$OLD_CFLAGS
14667 LDFLAGS=$OLD_LDFLAGS
14668 LIBS=$OLD_LIBS
14669 if test $gdb_cv_var_macho = yes; then
14670 CONFIG_OBS="$CONFIG_OBS machoread.o"
14671 fi
14672
14673 # Add any host-specific objects to GDB.
14674 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14675
14676 # If building on ELF, look for lzma support for embedded compressed debug info.
14677 if test $gdb_cv_var_elf = yes; then
14678
14679 # Check whether --with-lzma was given.
14680 if test "${with_lzma+set}" = set; then :
14681 withval=$with_lzma;
14682 else
14683 with_lzma=auto
14684 fi
14685
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
14687 $as_echo_n "checking whether to use lzma... " >&6; }
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
14689 $as_echo "$with_lzma" >&6; }
14690
14691 if test "${with_lzma}" != no; then
14692
14693
14694
14695
14696
14697
14698
14699
14700 use_additional=yes
14701
14702 acl_save_prefix="$prefix"
14703 prefix="$acl_final_prefix"
14704 acl_save_exec_prefix="$exec_prefix"
14705 exec_prefix="$acl_final_exec_prefix"
14706
14707 eval additional_includedir=\"$includedir\"
14708 eval additional_libdir=\"$libdir\"
14709
14710 exec_prefix="$acl_save_exec_prefix"
14711 prefix="$acl_save_prefix"
14712
14713
14714 # Check whether --with-liblzma-prefix was given.
14715 if test "${with_liblzma_prefix+set}" = set; then :
14716 withval=$with_liblzma_prefix;
14717 if test "X$withval" = "Xno"; then
14718 use_additional=no
14719 else
14720 if test "X$withval" = "X"; then
14721
14722 acl_save_prefix="$prefix"
14723 prefix="$acl_final_prefix"
14724 acl_save_exec_prefix="$exec_prefix"
14725 exec_prefix="$acl_final_exec_prefix"
14726
14727 eval additional_includedir=\"$includedir\"
14728 eval additional_libdir=\"$libdir\"
14729
14730 exec_prefix="$acl_save_exec_prefix"
14731 prefix="$acl_save_prefix"
14732
14733 else
14734 additional_includedir="$withval/include"
14735 additional_libdir="$withval/lib"
14736 fi
14737 fi
14738
14739 fi
14740
14741 LIBLZMA=
14742 LTLIBLZMA=
14743 INCLZMA=
14744 rpathdirs=
14745 ltrpathdirs=
14746 names_already_handled=
14747 names_next_round='lzma '
14748 while test -n "$names_next_round"; do
14749 names_this_round="$names_next_round"
14750 names_next_round=
14751 for name in $names_this_round; do
14752 already_handled=
14753 for n in $names_already_handled; do
14754 if test "$n" = "$name"; then
14755 already_handled=yes
14756 break
14757 fi
14758 done
14759 if test -z "$already_handled"; then
14760 names_already_handled="$names_already_handled $name"
14761 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14762 eval value=\"\$HAVE_LIB$uppername\"
14763 if test -n "$value"; then
14764 if test "$value" = yes; then
14765 eval value=\"\$LIB$uppername\"
14766 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
14767 eval value=\"\$LTLIB$uppername\"
14768 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
14769 else
14770 :
14771 fi
14772 else
14773 found_dir=
14774 found_la=
14775 found_so=
14776 found_a=
14777 if test $use_additional = yes; then
14778 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14779 found_dir="$additional_libdir"
14780 found_so="$additional_libdir/lib$name.$shlibext"
14781 if test -f "$additional_libdir/lib$name.la"; then
14782 found_la="$additional_libdir/lib$name.la"
14783 fi
14784 else
14785 if test -f "$additional_libdir/lib$name.$libext"; then
14786 found_dir="$additional_libdir"
14787 found_a="$additional_libdir/lib$name.$libext"
14788 if test -f "$additional_libdir/lib$name.la"; then
14789 found_la="$additional_libdir/lib$name.la"
14790 fi
14791 fi
14792 fi
14793 fi
14794 if test "X$found_dir" = "X"; then
14795 for x in $LDFLAGS $LTLIBLZMA; do
14796
14797 acl_save_prefix="$prefix"
14798 prefix="$acl_final_prefix"
14799 acl_save_exec_prefix="$exec_prefix"
14800 exec_prefix="$acl_final_exec_prefix"
14801 eval x=\"$x\"
14802 exec_prefix="$acl_save_exec_prefix"
14803 prefix="$acl_save_prefix"
14804
14805 case "$x" in
14806 -L*)
14807 dir=`echo "X$x" | sed -e 's/^X-L//'`
14808 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14809 found_dir="$dir"
14810 found_so="$dir/lib$name.$shlibext"
14811 if test -f "$dir/lib$name.la"; then
14812 found_la="$dir/lib$name.la"
14813 fi
14814 else
14815 if test -f "$dir/lib$name.$libext"; then
14816 found_dir="$dir"
14817 found_a="$dir/lib$name.$libext"
14818 if test -f "$dir/lib$name.la"; then
14819 found_la="$dir/lib$name.la"
14820 fi
14821 fi
14822 fi
14823 ;;
14824 esac
14825 if test "X$found_dir" != "X"; then
14826 break
14827 fi
14828 done
14829 fi
14830 if test "X$found_dir" != "X"; then
14831 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
14832 if test "X$found_so" != "X"; then
14833 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14834 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14835 else
14836 haveit=
14837 for x in $ltrpathdirs; do
14838 if test "X$x" = "X$found_dir"; then
14839 haveit=yes
14840 break
14841 fi
14842 done
14843 if test -z "$haveit"; then
14844 ltrpathdirs="$ltrpathdirs $found_dir"
14845 fi
14846 if test "$hardcode_direct" = yes; then
14847 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14848 else
14849 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14850 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14851 haveit=
14852 for x in $rpathdirs; do
14853 if test "X$x" = "X$found_dir"; then
14854 haveit=yes
14855 break
14856 fi
14857 done
14858 if test -z "$haveit"; then
14859 rpathdirs="$rpathdirs $found_dir"
14860 fi
14861 else
14862 haveit=
14863 for x in $LDFLAGS $LIBLZMA; do
14864
14865 acl_save_prefix="$prefix"
14866 prefix="$acl_final_prefix"
14867 acl_save_exec_prefix="$exec_prefix"
14868 exec_prefix="$acl_final_exec_prefix"
14869 eval x=\"$x\"
14870 exec_prefix="$acl_save_exec_prefix"
14871 prefix="$acl_save_prefix"
14872
14873 if test "X$x" = "X-L$found_dir"; then
14874 haveit=yes
14875 break
14876 fi
14877 done
14878 if test -z "$haveit"; then
14879 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
14880 fi
14881 if test "$hardcode_minus_L" != no; then
14882 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14883 else
14884 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14885 fi
14886 fi
14887 fi
14888 fi
14889 else
14890 if test "X$found_a" != "X"; then
14891 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
14892 else
14893 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
14894 fi
14895 fi
14896 additional_includedir=
14897 case "$found_dir" in
14898 */lib | */lib/)
14899 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14900 additional_includedir="$basedir/include"
14901 ;;
14902 esac
14903 if test "X$additional_includedir" != "X"; then
14904 if test "X$additional_includedir" != "X/usr/include"; then
14905 haveit=
14906 if test "X$additional_includedir" = "X/usr/local/include"; then
14907 if test -n "$GCC"; then
14908 case $host_os in
14909 linux*) haveit=yes;;
14910 esac
14911 fi
14912 fi
14913 if test -z "$haveit"; then
14914 for x in $CPPFLAGS $INCLZMA; do
14915
14916 acl_save_prefix="$prefix"
14917 prefix="$acl_final_prefix"
14918 acl_save_exec_prefix="$exec_prefix"
14919 exec_prefix="$acl_final_exec_prefix"
14920 eval x=\"$x\"
14921 exec_prefix="$acl_save_exec_prefix"
14922 prefix="$acl_save_prefix"
14923
14924 if test "X$x" = "X-I$additional_includedir"; then
14925 haveit=yes
14926 break
14927 fi
14928 done
14929 if test -z "$haveit"; then
14930 if test -d "$additional_includedir"; then
14931 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
14932 fi
14933 fi
14934 fi
14935 fi
14936 fi
14937 if test -n "$found_la"; then
14938 save_libdir="$libdir"
14939 case "$found_la" in
14940 */* | *\\*) . "$found_la" ;;
14941 *) . "./$found_la" ;;
14942 esac
14943 libdir="$save_libdir"
14944 for dep in $dependency_libs; do
14945 case "$dep" in
14946 -L*)
14947 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14948 if test "X$additional_libdir" != "X/usr/lib"; then
14949 haveit=
14950 if test "X$additional_libdir" = "X/usr/local/lib"; then
14951 if test -n "$GCC"; then
14952 case $host_os in
14953 linux*) haveit=yes;;
14954 esac
14955 fi
14956 fi
14957 if test -z "$haveit"; then
14958 haveit=
14959 for x in $LDFLAGS $LIBLZMA; do
14960
14961 acl_save_prefix="$prefix"
14962 prefix="$acl_final_prefix"
14963 acl_save_exec_prefix="$exec_prefix"
14964 exec_prefix="$acl_final_exec_prefix"
14965 eval x=\"$x\"
14966 exec_prefix="$acl_save_exec_prefix"
14967 prefix="$acl_save_prefix"
14968
14969 if test "X$x" = "X-L$additional_libdir"; then
14970 haveit=yes
14971 break
14972 fi
14973 done
14974 if test -z "$haveit"; then
14975 if test -d "$additional_libdir"; then
14976 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
14977 fi
14978 fi
14979 haveit=
14980 for x in $LDFLAGS $LTLIBLZMA; do
14981
14982 acl_save_prefix="$prefix"
14983 prefix="$acl_final_prefix"
14984 acl_save_exec_prefix="$exec_prefix"
14985 exec_prefix="$acl_final_exec_prefix"
14986 eval x=\"$x\"
14987 exec_prefix="$acl_save_exec_prefix"
14988 prefix="$acl_save_prefix"
14989
14990 if test "X$x" = "X-L$additional_libdir"; then
14991 haveit=yes
14992 break
14993 fi
14994 done
14995 if test -z "$haveit"; then
14996 if test -d "$additional_libdir"; then
14997 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14998 fi
14999 fi
15000 fi
15001 fi
15002 ;;
15003 -R*)
15004 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15005 if test "$enable_rpath" != no; then
15006 haveit=
15007 for x in $rpathdirs; do
15008 if test "X$x" = "X$dir"; then
15009 haveit=yes
15010 break
15011 fi
15012 done
15013 if test -z "$haveit"; then
15014 rpathdirs="$rpathdirs $dir"
15015 fi
15016 haveit=
15017 for x in $ltrpathdirs; do
15018 if test "X$x" = "X$dir"; then
15019 haveit=yes
15020 break
15021 fi
15022 done
15023 if test -z "$haveit"; then
15024 ltrpathdirs="$ltrpathdirs $dir"
15025 fi
15026 fi
15027 ;;
15028 -l*)
15029 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15030 ;;
15031 *.la)
15032 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15033 ;;
15034 *)
15035 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
15036 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
15037 ;;
15038 esac
15039 done
15040 fi
15041 else
15042 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
15043 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
15044 fi
15045 fi
15046 fi
15047 done
15048 done
15049 if test "X$rpathdirs" != "X"; then
15050 if test -n "$hardcode_libdir_separator"; then
15051 alldirs=
15052 for found_dir in $rpathdirs; do
15053 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15054 done
15055 acl_save_libdir="$libdir"
15056 libdir="$alldirs"
15057 eval flag=\"$hardcode_libdir_flag_spec\"
15058 libdir="$acl_save_libdir"
15059 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
15060 else
15061 for found_dir in $rpathdirs; do
15062 acl_save_libdir="$libdir"
15063 libdir="$found_dir"
15064 eval flag=\"$hardcode_libdir_flag_spec\"
15065 libdir="$acl_save_libdir"
15066 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
15067 done
15068 fi
15069 fi
15070 if test "X$ltrpathdirs" != "X"; then
15071 for found_dir in $ltrpathdirs; do
15072 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
15073 done
15074 fi
15075
15076
15077 ac_save_CPPFLAGS="$CPPFLAGS"
15078
15079 for element in $INCLZMA; do
15080 haveit=
15081 for x in $CPPFLAGS; do
15082
15083 acl_save_prefix="$prefix"
15084 prefix="$acl_final_prefix"
15085 acl_save_exec_prefix="$exec_prefix"
15086 exec_prefix="$acl_final_exec_prefix"
15087 eval x=\"$x\"
15088 exec_prefix="$acl_save_exec_prefix"
15089 prefix="$acl_save_prefix"
15090
15091 if test "X$x" = "X$element"; then
15092 haveit=yes
15093 break
15094 fi
15095 done
15096 if test -z "$haveit"; then
15097 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15098 fi
15099 done
15100
15101
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
15103 $as_echo_n "checking for liblzma... " >&6; }
15104 if test "${ac_cv_liblzma+set}" = set; then :
15105 $as_echo_n "(cached) " >&6
15106 else
15107
15108 ac_save_LIBS="$LIBS"
15109 LIBS="$LIBS $LIBLZMA"
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15112 #include "lzma.h"
15113 int
15114 main ()
15115 {
15116 lzma_index_iter iter;
15117 lzma_index_iter_init (&iter, 0);
15118 lzma_mf_is_supported (LZMA_MF_HC3);
15119 ;
15120 return 0;
15121 }
15122 _ACEOF
15123 if ac_fn_c_try_link "$LINENO"; then :
15124 ac_cv_liblzma=yes
15125 else
15126 ac_cv_liblzma=no
15127 fi
15128 rm -f core conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext conftest.$ac_ext
15130 LIBS="$ac_save_LIBS"
15131
15132 fi
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
15134 $as_echo "$ac_cv_liblzma" >&6; }
15135 if test "$ac_cv_liblzma" = yes; then
15136 HAVE_LIBLZMA=yes
15137
15138 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
15139
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
15141 $as_echo_n "checking how to link with liblzma... " >&6; }
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
15143 $as_echo "$LIBLZMA" >&6; }
15144 else
15145 HAVE_LIBLZMA=no
15146 CPPFLAGS="$ac_save_CPPFLAGS"
15147 LIBLZMA=
15148 LTLIBLZMA=
15149 fi
15150
15151
15152
15153
15154
15155
15156 if test "$HAVE_LIBLZMA" != yes; then
15157 if test "$with_lzma" = yes; then
15158 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
15159 fi
15160 fi
15161 fi
15162 fi
15163
15164 LIBGUI="../libgui/src/libgui.a"
15165 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
15166
15167
15168
15169 WIN32LDAPP=
15170
15171
15172
15173 case "${host}" in
15174 *-*-cygwin* | *-*-mingw* )
15175 configdir="win"
15176 ;;
15177 *)
15178 configdir="unix"
15179 ;;
15180 esac
15181
15182 GDBTKLIBS=
15183 if test "${enable_gdbtk}" = "yes"; then
15184
15185 # Gdbtk must have an absolute path to srcdir in order to run
15186 # properly when not installed.
15187 here=`pwd`
15188 cd ${srcdir}
15189 GDBTK_SRC_DIR=`pwd`
15190 cd $here
15191
15192
15193 #
15194 # Ok, lets find the tcl configuration
15195 # First, look for one uninstalled.
15196 # the alternative search directory is invoked by --with-tcl
15197 #
15198
15199 if test x"${no_tcl}" = x ; then
15200 # we reset no_tcl in case something fails here
15201 no_tcl=true
15202
15203 # Check whether --with-tcl was given.
15204 if test "${with_tcl+set}" = set; then :
15205 withval=$with_tcl; with_tclconfig=${withval}
15206 fi
15207
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15209 $as_echo_n "checking for Tcl configuration... " >&6; }
15210 if test "${ac_cv_c_tclconfig+set}" = set; then :
15211 $as_echo_n "(cached) " >&6
15212 else
15213
15214
15215 # First check to see if --with-tcl was specified.
15216 case "${host}" in
15217 *-*-cygwin*) platDir="win" ;;
15218 *) platDir="unix" ;;
15219 esac
15220 if test x"${with_tclconfig}" != x ; then
15221 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15222 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15223 else
15224 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15225 fi
15226 fi
15227
15228 # then check for a private Tcl installation
15229 if test x"${ac_cv_c_tclconfig}" = x ; then
15230 for i in \
15231 ../tcl \
15232 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15233 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15234 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15235 ../../tcl \
15236 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15237 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15238 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15239 ../../../tcl \
15240 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15241 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15242 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15243 if test -f "$i/$platDir/tclConfig.sh" ; then
15244 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15245 break
15246 fi
15247 done
15248 fi
15249
15250 # on Darwin, check in Framework installation locations
15251 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15252 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15253 `ls -d /Library/Frameworks 2>/dev/null` \
15254 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15255 `ls -d /System/Library/Frameworks 2>/dev/null` \
15256 ; do
15257 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15258 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15259 break
15260 fi
15261 done
15262 fi
15263
15264 # check in a few common install locations
15265 if test x"${ac_cv_c_tclconfig}" = x ; then
15266 for i in `ls -d ${libdir} 2>/dev/null` \
15267 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15268 `ls -d ${prefix}/lib 2>/dev/null` \
15269 `ls -d /usr/local/lib 2>/dev/null` \
15270 `ls -d /usr/contrib/lib 2>/dev/null` \
15271 `ls -d /usr/lib 2>/dev/null` \
15272 ; do
15273 if test -f "$i/tclConfig.sh" ; then
15274 ac_cv_c_tclconfig=`(cd $i; pwd)`
15275 break
15276 fi
15277 done
15278 fi
15279
15280 # check in a few other private locations
15281 if test x"${ac_cv_c_tclconfig}" = x ; then
15282 for i in \
15283 ${srcdir}/../tcl \
15284 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15285 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15286 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15287 if test -f "$i/$platDir/tclConfig.sh" ; then
15288 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15289 break
15290 fi
15291 done
15292 fi
15293
15294 fi
15295
15296
15297 if test x"${ac_cv_c_tclconfig}" = x ; then
15298 TCL_BIN_DIR="# no Tcl configs found"
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15300 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15301 else
15302 no_tcl=
15303 TCL_BIN_DIR=${ac_cv_c_tclconfig}
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15305 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15306 fi
15307 fi
15308
15309
15310 # If $no_tk is nonempty, then we can't do Tk, and there is no
15311 # point to doing Tcl.
15312
15313 #
15314 # Ok, lets find the tk configuration
15315 # First, look for one uninstalled.
15316 # the alternative search directory is invoked by --with-tk
15317 #
15318
15319 if test x"${no_tk}" = x ; then
15320 # we reset no_tk in case something fails here
15321 no_tk=true
15322
15323 # Check whether --with-tk was given.
15324 if test "${with_tk+set}" = set; then :
15325 withval=$with_tk; with_tkconfig=${withval}
15326 fi
15327
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15329 $as_echo_n "checking for Tk configuration... " >&6; }
15330 if test "${ac_cv_c_tkconfig+set}" = set; then :
15331 $as_echo_n "(cached) " >&6
15332 else
15333
15334
15335 # First check to see if --with-tkconfig was specified.
15336 if test x"${with_tkconfig}" != x ; then
15337 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15338 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15339 else
15340 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15341 fi
15342 fi
15343
15344 # then check for a private Tk library
15345 case "${host}" in
15346 *-*-cygwin*) platDir="win" ;;
15347 *) platDir="unix" ;;
15348 esac
15349 if test x"${ac_cv_c_tkconfig}" = x ; then
15350 for i in \
15351 ../tk \
15352 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15353 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15354 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15355 ../../tk \
15356 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15357 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15358 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15359 ../../../tk \
15360 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15361 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15362 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15363 if test -f "$i/$platDir/tkConfig.sh" ; then
15364 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15365 break
15366 fi
15367 done
15368 fi
15369
15370 # on Darwin, check in Framework installation locations
15371 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15372 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15373 `ls -d /Library/Frameworks 2>/dev/null` \
15374 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15375 `ls -d /System/Library/Frameworks 2>/dev/null` \
15376 ; do
15377 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15378 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15379 break
15380 fi
15381 done
15382 fi
15383
15384 # check in a few common install locations
15385 if test x"${ac_cv_c_tkconfig}" = x ; then
15386 for i in `ls -d ${libdir} 2>/dev/null` \
15387 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15388 `ls -d ${prefix}/lib 2>/dev/null` \
15389 `ls -d /usr/local/lib 2>/dev/null` \
15390 `ls -d /usr/contrib/lib 2>/dev/null` \
15391 `ls -d /usr/lib 2>/dev/null` \
15392 ; do
15393 if test -f "$i/tkConfig.sh" ; then
15394 ac_cv_c_tkconfig=`(cd $i; pwd)`
15395 break
15396 fi
15397 done
15398 fi
15399 # check in a few other private locations
15400 if test x"${ac_cv_c_tkconfig}" = x ; then
15401 for i in \
15402 ${srcdir}/../tk \
15403 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15404 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15405 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15406 if test -f "$i/$platDir/tkConfig.sh" ; then
15407 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15408 break
15409 fi
15410 done
15411 fi
15412
15413 fi
15414
15415
15416 if test x"${ac_cv_c_tkconfig}" = x ; then
15417 TK_BIN_DIR="# no Tk configs found"
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15419 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15420 else
15421 no_tk=
15422 TK_BIN_DIR=${ac_cv_c_tkconfig}
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15424 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15425 fi
15426 fi
15427
15428
15429 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15430
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15432 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15433
15434 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15436 $as_echo "loading" >&6; }
15437 . ${TCL_BIN_DIR}/tclConfig.sh
15438 else
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15440 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15441 fi
15442
15443 # eval is required to do the TCL_DBGX substitution
15444 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15445 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15446
15447 # If the TCL_BIN_DIR is the build directory (not the install directory),
15448 # then set the common variable name to the value of the build variables.
15449 # For example, the variable TCL_LIB_SPEC will be set to the value
15450 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15451 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15452 # installed and uninstalled version of Tcl.
15453 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15454 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15455 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15456 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15457 elif test "`uname -s`" = "Darwin"; then
15458 # If Tcl was built as a framework, attempt to use the libraries
15459 # from the framework at the given location so that linking works
15460 # against Tcl.framework installed in an arbitrary location.
15461 case ${TCL_DEFS} in
15462 *TCL_FRAMEWORK*)
15463 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15464 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15465 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15466 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15467 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15468 break
15469 fi
15470 done
15471 fi
15472 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15473 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15474 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15475 fi
15476 ;;
15477 esac
15478 fi
15479
15480 # eval is required to do the TCL_DBGX substitution
15481 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15482 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15483 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15484 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500 # Check for in-tree tcl
15501 here=`pwd`
15502 cd ${srcdir}/..
15503 topdir=`pwd`
15504 cd ${here}
15505
15506 intree="no"
15507 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15508 intree="yes"
15509 fi
15510
15511 # Find Tcl private headers
15512 if test x"${intree}" = xno; then
15513
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15515 $as_echo_n "checking for Tcl private headers... " >&6; }
15516 private_dir=""
15517 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15518 if test -f ${dir}/tclInt.h ; then
15519 private_dir=${dir}
15520 fi
15521
15522 if test x"${private_dir}" = x; then
15523 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15524 else
15525 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15527 $as_echo "${private_dir}" >&6; }
15528 fi
15529
15530 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15531 TCL_LIBRARY="${TCL_LIB_SPEC}"
15532 TCL_DEPS=""
15533 else
15534 # If building tcl in the same src tree, private headers
15535 # are not needed, but we need to be sure to use the right
15536 # headers library
15537 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15538 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15539 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15540 fi
15541
15542
15543
15544
15545
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15547 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15548
15549 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15551 $as_echo "loading" >&6; }
15552 . ${TK_BIN_DIR}/tkConfig.sh
15553 else
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15555 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15556 fi
15557
15558 # eval is required to do the TK_DBGX substitution
15559 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15560 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15561
15562 # If the TK_BIN_DIR is the build directory (not the install directory),
15563 # then set the common variable name to the value of the build variables.
15564 # For example, the variable TK_LIB_SPEC will be set to the value
15565 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15566 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15567 # installed and uninstalled version of Tcl.
15568 if test -f "${TK_BIN_DIR}/Makefile" ; then
15569 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15570 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15571 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15572 elif test "`uname -s`" = "Darwin"; then
15573 # If Tk was built as a framework, attempt to use the libraries
15574 # from the framework at the given location so that linking works
15575 # against Tk.framework installed in an arbitrary location.
15576 case ${TK_DEFS} in
15577 *TK_FRAMEWORK*)
15578 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15579 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15580 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15581 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15582 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15583 break
15584 fi
15585 done
15586 fi
15587 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15588 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15589 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15590 fi
15591 ;;
15592 esac
15593 fi
15594
15595 # eval is required to do the TK_DBGX substitution
15596 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15597 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15598 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15599 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614 # Check for in-tree Tk
15615 intree="no"
15616 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15617 intree="yes"
15618 fi
15619
15620 # Find Tk private headers
15621 if test x"${intree}" = xno; then
15622
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15624 $as_echo_n "checking for Tk private headers... " >&6; }
15625 private_dir=""
15626 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15627 if test -f ${dir}/tkInt.h; then
15628 private_dir=${dir}
15629 fi
15630
15631 if test x"${private_dir}" = x; then
15632 as_fn_error "could not find Tk private headers" "$LINENO" 5
15633 else
15634 TK_PRIVATE_INCLUDE="-I${private_dir}"
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15636 $as_echo "${private_dir}" >&6; }
15637 fi
15638
15639 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15640 TK_LIBRARY=${TK_LIB_SPEC}
15641 TK_DEPS=""
15642 else
15643 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15644 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15645 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15646 fi
15647
15648
15649
15650
15651
15652 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15653
15654 # Include some libraries that Tcl and Tk want.
15655 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15656 # Yes, the ordering seems wrong here. But it isn't.
15657 # TK_LIBS is the list of libraries that need to be linked
15658 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15659 # were in LIBS then any link tests after this point would
15660 # try to include things like `$(LIBGUI)', which wouldn't work.
15661 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15662
15663 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15664 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15665 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15666 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15667 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15668 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15669 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15670
15671 if test x$gdb_cv_os_cygwin = xyes; then
15672 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15673 WIN32LDAPP="-Wl,--subsystem,console"
15674 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15675 fi
15676
15677 subdirs="$subdirs gdbtk"
15678
15679 fi
15680 fi
15681
15682
15683
15684
15685
15686
15687
15688
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15690 $as_echo_n "checking for X... " >&6; }
15691
15692
15693 # Check whether --with-x was given.
15694 if test "${with_x+set}" = set; then :
15695 withval=$with_x;
15696 fi
15697
15698 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15699 if test "x$with_x" = xno; then
15700 # The user explicitly disabled X.
15701 have_x=disabled
15702 else
15703 case $x_includes,$x_libraries in #(
15704 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15705 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15706 $as_echo_n "(cached) " >&6
15707 else
15708 # One or both of the vars are not set, and there is no cached value.
15709 ac_x_includes=no ac_x_libraries=no
15710 rm -f -r conftest.dir
15711 if mkdir conftest.dir; then
15712 cd conftest.dir
15713 cat >Imakefile <<'_ACEOF'
15714 incroot:
15715 @echo incroot='${INCROOT}'
15716 usrlibdir:
15717 @echo usrlibdir='${USRLIBDIR}'
15718 libdir:
15719 @echo libdir='${LIBDIR}'
15720 _ACEOF
15721 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15722 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15723 for ac_var in incroot usrlibdir libdir; do
15724 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15725 done
15726 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15727 for ac_extension in a so sl dylib la dll; do
15728 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15729 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15730 ac_im_usrlibdir=$ac_im_libdir; break
15731 fi
15732 done
15733 # Screen out bogus values from the imake configuration. They are
15734 # bogus both because they are the default anyway, and because
15735 # using them would break gcc on systems where it needs fixed includes.
15736 case $ac_im_incroot in
15737 /usr/include) ac_x_includes= ;;
15738 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15739 esac
15740 case $ac_im_usrlibdir in
15741 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15742 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15743 esac
15744 fi
15745 cd ..
15746 rm -f -r conftest.dir
15747 fi
15748
15749 # Standard set of common directories for X headers.
15750 # Check X11 before X11Rn because it is often a symlink to the current release.
15751 ac_x_header_dirs='
15752 /usr/X11/include
15753 /usr/X11R7/include
15754 /usr/X11R6/include
15755 /usr/X11R5/include
15756 /usr/X11R4/include
15757
15758 /usr/include/X11
15759 /usr/include/X11R7
15760 /usr/include/X11R6
15761 /usr/include/X11R5
15762 /usr/include/X11R4
15763
15764 /usr/local/X11/include
15765 /usr/local/X11R7/include
15766 /usr/local/X11R6/include
15767 /usr/local/X11R5/include
15768 /usr/local/X11R4/include
15769
15770 /usr/local/include/X11
15771 /usr/local/include/X11R7
15772 /usr/local/include/X11R6
15773 /usr/local/include/X11R5
15774 /usr/local/include/X11R4
15775
15776 /usr/X386/include
15777 /usr/x386/include
15778 /usr/XFree86/include/X11
15779
15780 /usr/include
15781 /usr/local/include
15782 /usr/unsupported/include
15783 /usr/athena/include
15784 /usr/local/x11r5/include
15785 /usr/lpp/Xamples/include
15786
15787 /usr/openwin/include
15788 /usr/openwin/share/include'
15789
15790 if test "$ac_x_includes" = no; then
15791 # Guess where to find include files, by looking for Xlib.h.
15792 # First, try using that file with no special directory specified.
15793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15795 #include <X11/Xlib.h>
15796 _ACEOF
15797 if ac_fn_c_try_cpp "$LINENO"; then :
15798 # We can compile using X headers with no special include directory.
15799 ac_x_includes=
15800 else
15801 for ac_dir in $ac_x_header_dirs; do
15802 if test -r "$ac_dir/X11/Xlib.h"; then
15803 ac_x_includes=$ac_dir
15804 break
15805 fi
15806 done
15807 fi
15808 rm -f conftest.err conftest.$ac_ext
15809 fi # $ac_x_includes = no
15810
15811 if test "$ac_x_libraries" = no; then
15812 # Check for the libraries.
15813 # See if we find them without any special options.
15814 # Don't add to $LIBS permanently.
15815 ac_save_LIBS=$LIBS
15816 LIBS="-lX11 $LIBS"
15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15818 /* end confdefs.h. */
15819 #include <X11/Xlib.h>
15820 int
15821 main ()
15822 {
15823 XrmInitialize ()
15824 ;
15825 return 0;
15826 }
15827 _ACEOF
15828 if ac_fn_c_try_link "$LINENO"; then :
15829 LIBS=$ac_save_LIBS
15830 # We can link X programs with no special library path.
15831 ac_x_libraries=
15832 else
15833 LIBS=$ac_save_LIBS
15834 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15835 do
15836 # Don't even attempt the hair of trying to link an X program!
15837 for ac_extension in a so sl dylib la dll; do
15838 if test -r "$ac_dir/libX11.$ac_extension"; then
15839 ac_x_libraries=$ac_dir
15840 break 2
15841 fi
15842 done
15843 done
15844 fi
15845 rm -f core conftest.err conftest.$ac_objext \
15846 conftest$ac_exeext conftest.$ac_ext
15847 fi # $ac_x_libraries = no
15848
15849 case $ac_x_includes,$ac_x_libraries in #(
15850 no,* | *,no | *\'*)
15851 # Didn't find X, or a directory has "'" in its name.
15852 ac_cv_have_x="have_x=no";; #(
15853 *)
15854 # Record where we found X for the cache.
15855 ac_cv_have_x="have_x=yes\
15856 ac_x_includes='$ac_x_includes'\
15857 ac_x_libraries='$ac_x_libraries'"
15858 esac
15859 fi
15860 ;; #(
15861 *) have_x=yes;;
15862 esac
15863 eval "$ac_cv_have_x"
15864 fi # $with_x != no
15865
15866 if test "$have_x" != yes; then
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15868 $as_echo "$have_x" >&6; }
15869 no_x=yes
15870 else
15871 # If each of the values was on the command line, it overrides each guess.
15872 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15873 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15874 # Update the cache value to reflect the command line values.
15875 ac_cv_have_x="have_x=yes\
15876 ac_x_includes='$x_includes'\
15877 ac_x_libraries='$x_libraries'"
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15879 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15880 fi
15881
15882
15883 # Unlike the sim directory, whether a simulator is linked is controlled by
15884 # presence of a gdb_sim definition in the target configure.tgt entry.
15885 # This code just checks for a few cases where we'd like to ignore those
15886 # definitions, even when they're present in the '.mt' file. These cases
15887 # are when --disable-sim is specified, or if the simulator directory is
15888 # not part of the source tree.
15889 #
15890 # Check whether --enable-sim was given.
15891 if test "${enable_sim+set}" = set; then :
15892 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15893 echo "enableval = ${enableval}";
15894 case "${enableval}" in
15895 yes) ignore_sim=false ;;
15896 no) ignore_sim=true ;;
15897 *) ignore_sim=false ;;
15898 esac
15899 else
15900 ignore_sim=false
15901 fi
15902
15903
15904 if test ! -d "${srcdir}/../sim"; then
15905 ignore_sim=true
15906 fi
15907
15908 SIM=
15909 SIM_OBS=
15910 if test "${ignore_sim}" = "false"; then
15911 if test x"${gdb_sim}" != x ; then
15912 SIM="${gdb_sim}"
15913 SIM_OBS="remote-sim.o"
15914
15915 $as_echo "#define WITH_SIM 1" >>confdefs.h
15916
15917 fi
15918 fi
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933 # List of host floatformats.
15934
15935 cat >>confdefs.h <<_ACEOF
15936 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15937 _ACEOF
15938
15939
15940 cat >>confdefs.h <<_ACEOF
15941 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15942 _ACEOF
15943
15944
15945 cat >>confdefs.h <<_ACEOF
15946 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15947 _ACEOF
15948
15949
15950 # target_subdir is used by the testsuite to find the target libraries.
15951 target_subdir=
15952 if test "${host}" != "${target}"; then
15953 target_subdir="${target_alias}/"
15954 fi
15955
15956
15957 frags=
15958 if test "${gdb_native}" = "yes"; then
15959 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15960 if test ! -f ${host_makefile_frag}; then
15961 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15962 fi
15963 frags="$frags $host_makefile_frag"
15964 else
15965 host_makefile_frag=/dev/null
15966 fi
15967
15968
15969
15970
15971 if test "${gdb_native}" = "yes"; then
15972 # We pick this up from the host configuration file (.mh) because we
15973 # do not have a native configuration Makefile fragment.
15974 nativefile=`sed -n '
15975 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15976 ' ${host_makefile_frag}`
15977 fi
15978
15979
15980 if test x"${gdb_osabi}" != x ; then
15981
15982 cat >>confdefs.h <<_ACEOF
15983 #define GDB_OSABI_DEFAULT $gdb_osabi
15984 _ACEOF
15985
15986 fi
15987
15988 # Enable multi-ice-gdb-server.
15989 # Check whether --enable-multi-ice was given.
15990 if test "${enable_multi_ice+set}" = set; then :
15991 enableval=$enable_multi_ice; case $enableval in
15992 yes | no)
15993 ;;
15994 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15995 esac
15996 fi
15997
15998 if test "x$enable_multi_ice" = xyes; then
15999 subdirs="$subdirs multi-ice"
16000
16001 fi
16002
16003 # Check whether --enable-gdbserver was given.
16004 if test "${enable_gdbserver+set}" = set; then :
16005 enableval=$enable_gdbserver; case "${enableval}" in
16006 yes| no|auto) ;;
16007 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
16008 esac
16009 else
16010 enable_gdbserver=auto
16011 fi
16012
16013
16014 # We only build gdbserver automatically in a native configuration, and
16015 # only if the user did not explicitly disable its build.
16016 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
16018 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
16019 if test "x$build_gdbserver" = xyes; then
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16021 $as_echo "yes" >&6; }
16022 subdirs="$subdirs gdbserver"
16023
16024 gdbserver_build_enabled=yes
16025 else
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16027 $as_echo "no" >&6; }
16028 fi
16029 fi
16030
16031 # If the user explicitly request the gdbserver to be built, verify that
16032 # we were in fact able to enable it.
16033 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
16034 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
16035 fi
16036
16037 # Check for babeltrace and babeltrace-ctf
16038
16039 # Check whether --with-babeltrace was given.
16040 if test "${with_babeltrace+set}" = set; then :
16041 withval=$with_babeltrace;
16042 else
16043 with_babeltrace=auto
16044 fi
16045
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
16047 $as_echo_n "checking whether to use babeltrace... " >&6; }
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
16049 $as_echo "$with_babeltrace" >&6; }
16050
16051 if test "x$with_babeltrace" = "xno"; then
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
16053 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
16054 else
16055 # Append -Werror to CFLAGS so that configure can catch the warning
16056 # "assignment from incompatible pointer type", which is related to
16057 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
16058 # in GDB, while babeltrace 1.0.3 is broken.
16059 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
16060 # safe to save and restore CFLAGS here.
16061 saved_CFLAGS=$CFLAGS
16062 CFLAGS="$CFLAGS -Werror"
16063
16064
16065
16066
16067
16068
16069
16070
16071 use_additional=yes
16072
16073 acl_save_prefix="$prefix"
16074 prefix="$acl_final_prefix"
16075 acl_save_exec_prefix="$exec_prefix"
16076 exec_prefix="$acl_final_exec_prefix"
16077
16078 eval additional_includedir=\"$includedir\"
16079 eval additional_libdir=\"$libdir\"
16080
16081 exec_prefix="$acl_save_exec_prefix"
16082 prefix="$acl_save_prefix"
16083
16084
16085 # Check whether --with-libbabeltrace-prefix was given.
16086 if test "${with_libbabeltrace_prefix+set}" = set; then :
16087 withval=$with_libbabeltrace_prefix;
16088 if test "X$withval" = "Xno"; then
16089 use_additional=no
16090 else
16091 if test "X$withval" = "X"; then
16092
16093 acl_save_prefix="$prefix"
16094 prefix="$acl_final_prefix"
16095 acl_save_exec_prefix="$exec_prefix"
16096 exec_prefix="$acl_final_exec_prefix"
16097
16098 eval additional_includedir=\"$includedir\"
16099 eval additional_libdir=\"$libdir\"
16100
16101 exec_prefix="$acl_save_exec_prefix"
16102 prefix="$acl_save_prefix"
16103
16104 else
16105 additional_includedir="$withval/include"
16106 additional_libdir="$withval/lib"
16107 fi
16108 fi
16109
16110 fi
16111
16112 LIBBABELTRACE=
16113 LTLIBBABELTRACE=
16114 INCBABELTRACE=
16115 rpathdirs=
16116 ltrpathdirs=
16117 names_already_handled=
16118 names_next_round='babeltrace babeltrace-ctf'
16119 while test -n "$names_next_round"; do
16120 names_this_round="$names_next_round"
16121 names_next_round=
16122 for name in $names_this_round; do
16123 already_handled=
16124 for n in $names_already_handled; do
16125 if test "$n" = "$name"; then
16126 already_handled=yes
16127 break
16128 fi
16129 done
16130 if test -z "$already_handled"; then
16131 names_already_handled="$names_already_handled $name"
16132 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16133 eval value=\"\$HAVE_LIB$uppername\"
16134 if test -n "$value"; then
16135 if test "$value" = yes; then
16136 eval value=\"\$LIB$uppername\"
16137 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
16138 eval value=\"\$LTLIB$uppername\"
16139 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
16140 else
16141 :
16142 fi
16143 else
16144 found_dir=
16145 found_la=
16146 found_so=
16147 found_a=
16148 if test $use_additional = yes; then
16149 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16150 found_dir="$additional_libdir"
16151 found_so="$additional_libdir/lib$name.$shlibext"
16152 if test -f "$additional_libdir/lib$name.la"; then
16153 found_la="$additional_libdir/lib$name.la"
16154 fi
16155 else
16156 if test -f "$additional_libdir/lib$name.$libext"; then
16157 found_dir="$additional_libdir"
16158 found_a="$additional_libdir/lib$name.$libext"
16159 if test -f "$additional_libdir/lib$name.la"; then
16160 found_la="$additional_libdir/lib$name.la"
16161 fi
16162 fi
16163 fi
16164 fi
16165 if test "X$found_dir" = "X"; then
16166 for x in $LDFLAGS $LTLIBBABELTRACE; do
16167
16168 acl_save_prefix="$prefix"
16169 prefix="$acl_final_prefix"
16170 acl_save_exec_prefix="$exec_prefix"
16171 exec_prefix="$acl_final_exec_prefix"
16172 eval x=\"$x\"
16173 exec_prefix="$acl_save_exec_prefix"
16174 prefix="$acl_save_prefix"
16175
16176 case "$x" in
16177 -L*)
16178 dir=`echo "X$x" | sed -e 's/^X-L//'`
16179 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16180 found_dir="$dir"
16181 found_so="$dir/lib$name.$shlibext"
16182 if test -f "$dir/lib$name.la"; then
16183 found_la="$dir/lib$name.la"
16184 fi
16185 else
16186 if test -f "$dir/lib$name.$libext"; then
16187 found_dir="$dir"
16188 found_a="$dir/lib$name.$libext"
16189 if test -f "$dir/lib$name.la"; then
16190 found_la="$dir/lib$name.la"
16191 fi
16192 fi
16193 fi
16194 ;;
16195 esac
16196 if test "X$found_dir" != "X"; then
16197 break
16198 fi
16199 done
16200 fi
16201 if test "X$found_dir" != "X"; then
16202 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
16203 if test "X$found_so" != "X"; then
16204 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16205 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16206 else
16207 haveit=
16208 for x in $ltrpathdirs; do
16209 if test "X$x" = "X$found_dir"; then
16210 haveit=yes
16211 break
16212 fi
16213 done
16214 if test -z "$haveit"; then
16215 ltrpathdirs="$ltrpathdirs $found_dir"
16216 fi
16217 if test "$hardcode_direct" = yes; then
16218 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16219 else
16220 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16221 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16222 haveit=
16223 for x in $rpathdirs; do
16224 if test "X$x" = "X$found_dir"; then
16225 haveit=yes
16226 break
16227 fi
16228 done
16229 if test -z "$haveit"; then
16230 rpathdirs="$rpathdirs $found_dir"
16231 fi
16232 else
16233 haveit=
16234 for x in $LDFLAGS $LIBBABELTRACE; do
16235
16236 acl_save_prefix="$prefix"
16237 prefix="$acl_final_prefix"
16238 acl_save_exec_prefix="$exec_prefix"
16239 exec_prefix="$acl_final_exec_prefix"
16240 eval x=\"$x\"
16241 exec_prefix="$acl_save_exec_prefix"
16242 prefix="$acl_save_prefix"
16243
16244 if test "X$x" = "X-L$found_dir"; then
16245 haveit=yes
16246 break
16247 fi
16248 done
16249 if test -z "$haveit"; then
16250 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
16251 fi
16252 if test "$hardcode_minus_L" != no; then
16253 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16254 else
16255 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16256 fi
16257 fi
16258 fi
16259 fi
16260 else
16261 if test "X$found_a" != "X"; then
16262 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
16263 else
16264 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
16265 fi
16266 fi
16267 additional_includedir=
16268 case "$found_dir" in
16269 */lib | */lib/)
16270 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16271 additional_includedir="$basedir/include"
16272 ;;
16273 esac
16274 if test "X$additional_includedir" != "X"; then
16275 if test "X$additional_includedir" != "X/usr/include"; then
16276 haveit=
16277 if test "X$additional_includedir" = "X/usr/local/include"; then
16278 if test -n "$GCC"; then
16279 case $host_os in
16280 linux*) haveit=yes;;
16281 esac
16282 fi
16283 fi
16284 if test -z "$haveit"; then
16285 for x in $CPPFLAGS $INCBABELTRACE; 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-I$additional_includedir"; then
16296 haveit=yes
16297 break
16298 fi
16299 done
16300 if test -z "$haveit"; then
16301 if test -d "$additional_includedir"; then
16302 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
16303 fi
16304 fi
16305 fi
16306 fi
16307 fi
16308 if test -n "$found_la"; then
16309 save_libdir="$libdir"
16310 case "$found_la" in
16311 */* | *\\*) . "$found_la" ;;
16312 *) . "./$found_la" ;;
16313 esac
16314 libdir="$save_libdir"
16315 for dep in $dependency_libs; do
16316 case "$dep" in
16317 -L*)
16318 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16319 if test "X$additional_libdir" != "X/usr/lib"; then
16320 haveit=
16321 if test "X$additional_libdir" = "X/usr/local/lib"; then
16322 if test -n "$GCC"; then
16323 case $host_os in
16324 linux*) haveit=yes;;
16325 esac
16326 fi
16327 fi
16328 if test -z "$haveit"; then
16329 haveit=
16330 for x in $LDFLAGS $LIBBABELTRACE; do
16331
16332 acl_save_prefix="$prefix"
16333 prefix="$acl_final_prefix"
16334 acl_save_exec_prefix="$exec_prefix"
16335 exec_prefix="$acl_final_exec_prefix"
16336 eval x=\"$x\"
16337 exec_prefix="$acl_save_exec_prefix"
16338 prefix="$acl_save_prefix"
16339
16340 if test "X$x" = "X-L$additional_libdir"; then
16341 haveit=yes
16342 break
16343 fi
16344 done
16345 if test -z "$haveit"; then
16346 if test -d "$additional_libdir"; then
16347 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
16348 fi
16349 fi
16350 haveit=
16351 for x in $LDFLAGS $LTLIBBABELTRACE; do
16352
16353 acl_save_prefix="$prefix"
16354 prefix="$acl_final_prefix"
16355 acl_save_exec_prefix="$exec_prefix"
16356 exec_prefix="$acl_final_exec_prefix"
16357 eval x=\"$x\"
16358 exec_prefix="$acl_save_exec_prefix"
16359 prefix="$acl_save_prefix"
16360
16361 if test "X$x" = "X-L$additional_libdir"; then
16362 haveit=yes
16363 break
16364 fi
16365 done
16366 if test -z "$haveit"; then
16367 if test -d "$additional_libdir"; then
16368 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
16369 fi
16370 fi
16371 fi
16372 fi
16373 ;;
16374 -R*)
16375 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16376 if test "$enable_rpath" != no; then
16377 haveit=
16378 for x in $rpathdirs; do
16379 if test "X$x" = "X$dir"; then
16380 haveit=yes
16381 break
16382 fi
16383 done
16384 if test -z "$haveit"; then
16385 rpathdirs="$rpathdirs $dir"
16386 fi
16387 haveit=
16388 for x in $ltrpathdirs; do
16389 if test "X$x" = "X$dir"; then
16390 haveit=yes
16391 break
16392 fi
16393 done
16394 if test -z "$haveit"; then
16395 ltrpathdirs="$ltrpathdirs $dir"
16396 fi
16397 fi
16398 ;;
16399 -l*)
16400 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16401 ;;
16402 *.la)
16403 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16404 ;;
16405 *)
16406 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
16407 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
16408 ;;
16409 esac
16410 done
16411 fi
16412 else
16413 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16414 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
16415 fi
16416 fi
16417 fi
16418 done
16419 done
16420 if test "X$rpathdirs" != "X"; then
16421 if test -n "$hardcode_libdir_separator"; then
16422 alldirs=
16423 for found_dir in $rpathdirs; do
16424 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16425 done
16426 acl_save_libdir="$libdir"
16427 libdir="$alldirs"
16428 eval flag=\"$hardcode_libdir_flag_spec\"
16429 libdir="$acl_save_libdir"
16430 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16431 else
16432 for found_dir in $rpathdirs; do
16433 acl_save_libdir="$libdir"
16434 libdir="$found_dir"
16435 eval flag=\"$hardcode_libdir_flag_spec\"
16436 libdir="$acl_save_libdir"
16437 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16438 done
16439 fi
16440 fi
16441 if test "X$ltrpathdirs" != "X"; then
16442 for found_dir in $ltrpathdirs; do
16443 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
16444 done
16445 fi
16446
16447
16448 ac_save_CPPFLAGS="$CPPFLAGS"
16449
16450 for element in $INCBABELTRACE; do
16451 haveit=
16452 for x in $CPPFLAGS; do
16453
16454 acl_save_prefix="$prefix"
16455 prefix="$acl_final_prefix"
16456 acl_save_exec_prefix="$exec_prefix"
16457 exec_prefix="$acl_final_exec_prefix"
16458 eval x=\"$x\"
16459 exec_prefix="$acl_save_exec_prefix"
16460 prefix="$acl_save_prefix"
16461
16462 if test "X$x" = "X$element"; then
16463 haveit=yes
16464 break
16465 fi
16466 done
16467 if test -z "$haveit"; then
16468 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16469 fi
16470 done
16471
16472
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
16474 $as_echo_n "checking for libbabeltrace... " >&6; }
16475 if test "${ac_cv_libbabeltrace+set}" = set; then :
16476 $as_echo_n "(cached) " >&6
16477 else
16478
16479 ac_save_LIBS="$LIBS"
16480 LIBS="$LIBS $LIBBABELTRACE"
16481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482 /* end confdefs.h. */
16483 #include <babeltrace/babeltrace.h>
16484 #include <babeltrace/ctf/events.h>
16485 #include <babeltrace/ctf/iterator.h>
16486 int
16487 main ()
16488 {
16489 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
16490 struct bt_ctf_event *event = NULL;
16491 const struct bt_definition *scope;
16492
16493 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
16494 scope = bt_ctf_get_top_level_scope (event,
16495 BT_STREAM_EVENT_HEADER);
16496 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
16497
16498 ;
16499 return 0;
16500 }
16501 _ACEOF
16502 if ac_fn_c_try_link "$LINENO"; then :
16503 ac_cv_libbabeltrace=yes
16504 else
16505 ac_cv_libbabeltrace=no
16506 fi
16507 rm -f core conftest.err conftest.$ac_objext \
16508 conftest$ac_exeext conftest.$ac_ext
16509 LIBS="$ac_save_LIBS"
16510
16511 fi
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
16513 $as_echo "$ac_cv_libbabeltrace" >&6; }
16514 if test "$ac_cv_libbabeltrace" = yes; then
16515 HAVE_LIBBABELTRACE=yes
16516
16517 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
16518
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
16520 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
16522 $as_echo "$LIBBABELTRACE" >&6; }
16523 else
16524 HAVE_LIBBABELTRACE=no
16525 CPPFLAGS="$ac_save_CPPFLAGS"
16526 LIBBABELTRACE=
16527 LTLIBBABELTRACE=
16528 fi
16529
16530
16531
16532
16533
16534
16535 CFLAGS=$saved_CFLAGS
16536
16537 if test "$HAVE_LIBBABELTRACE" != yes; then
16538 if test "$with_babeltrace" = yes; then
16539 as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
16540 else
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
16542 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
16543 fi
16544 fi
16545 fi
16546
16547 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16548 # to an empty version.
16549
16550 files=
16551 links=
16552
16553 rm -f nm.h
16554 if test "${nativefile}" != ""; then
16555 case "${nativefile}" in
16556 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
16557 * ) GDB_NM_FILE="${nativefile}"
16558 esac
16559 files="${files} ${GDB_NM_FILE}"
16560 links="${links} nm.h"
16561
16562 cat >>confdefs.h <<_ACEOF
16563 #define GDB_NM_FILE "${GDB_NM_FILE}"
16564 _ACEOF
16565
16566 fi
16567
16568
16569 ac_sources="$files"
16570 ac_dests="$links"
16571 while test -n "$ac_sources"; do
16572 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16573 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16574 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
16575 done
16576 ac_config_links="$ac_config_links $ac_config_links_1"
16577
16578
16579
16580
16581
16582 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16583
16584
16585
16586 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16587 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
16588 if test "x$GDB_TRANSFORM_NAME" = x; then
16589 GDB_TRANSFORM_NAME=gdb
16590 fi
16591
16592
16593
16594 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16595 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
16596 if test "x$GCORE_TRANSFORM_NAME" = x; then
16597 GCORE_TRANSFORM_NAME=gcore
16598 fi
16599
16600
16601 ac_config_files="$ac_config_files gcore"
16602
16603
16604 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
16605
16606 ac_config_commands="$ac_config_commands default"
16607
16608 cat >confcache <<\_ACEOF
16609 # This file is a shell script that caches the results of configure
16610 # tests run on this system so they can be shared between configure
16611 # scripts and configure runs, see configure's option --config-cache.
16612 # It is not useful on other systems. If it contains results you don't
16613 # want to keep, you may remove or edit it.
16614 #
16615 # config.status only pays attention to the cache file if you give it
16616 # the --recheck option to rerun configure.
16617 #
16618 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16619 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16620 # following values.
16621
16622 _ACEOF
16623
16624 # The following way of writing the cache mishandles newlines in values,
16625 # but we know of no workaround that is simple, portable, and efficient.
16626 # So, we kill variables containing newlines.
16627 # Ultrix sh set writes to stderr and can't be redirected directly,
16628 # and sets the high bit in the cache file unless we assign to the vars.
16629 (
16630 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16631 eval ac_val=\$$ac_var
16632 case $ac_val in #(
16633 *${as_nl}*)
16634 case $ac_var in #(
16635 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16636 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16637 esac
16638 case $ac_var in #(
16639 _ | IFS | as_nl) ;; #(
16640 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16641 *) { eval $ac_var=; unset $ac_var;} ;;
16642 esac ;;
16643 esac
16644 done
16645
16646 (set) 2>&1 |
16647 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16648 *${as_nl}ac_space=\ *)
16649 # `set' does not quote correctly, so add quotes: double-quote
16650 # substitution turns \\\\ into \\, and sed turns \\ into \.
16651 sed -n \
16652 "s/'/'\\\\''/g;
16653 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16654 ;; #(
16655 *)
16656 # `set' quotes correctly as required by POSIX, so do not add quotes.
16657 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16658 ;;
16659 esac |
16660 sort
16661 ) |
16662 sed '
16663 /^ac_cv_env_/b end
16664 t clear
16665 :clear
16666 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16667 t end
16668 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16669 :end' >>confcache
16670 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16671 if test -w "$cache_file"; then
16672 test "x$cache_file" != "x/dev/null" &&
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16674 $as_echo "$as_me: updating cache $cache_file" >&6;}
16675 cat confcache >$cache_file
16676 else
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16678 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16679 fi
16680 fi
16681 rm -f confcache
16682
16683 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16684 # Let make expand exec_prefix.
16685 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16686
16687 DEFS=-DHAVE_CONFIG_H
16688
16689 ac_libobjs=
16690 ac_ltlibobjs=
16691 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16692 # 1. Remove the extension, and $U if already installed.
16693 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16694 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16695 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16696 # will be set to the directory where LIBOBJS objects are built.
16697 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16698 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16699 done
16700 LIBOBJS=$ac_libobjs
16701
16702 LTLIBOBJS=$ac_ltlibobjs
16703
16704
16705 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16706 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16708 fi
16709 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16710 as_fn_error "conditional \"GMAKE\" was never defined.
16711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16712 fi
16713 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16714 as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
16715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16716 fi
16717 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
16718 as_fn_error "conditional \"HAVE_GUILE\" was never defined.
16719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16720 fi
16721
16722
16723 : ${CONFIG_STATUS=./config.status}
16724 ac_write_fail=0
16725 ac_clean_files_save=$ac_clean_files
16726 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16728 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16729 as_write_fail=0
16730 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16731 #! $SHELL
16732 # Generated by $as_me.
16733 # Run this file to recreate the current configuration.
16734 # Compiler output produced by configure, useful for debugging
16735 # configure, is in config.log if it exists.
16736
16737 debug=false
16738 ac_cs_recheck=false
16739 ac_cs_silent=false
16740
16741 SHELL=\${CONFIG_SHELL-$SHELL}
16742 export SHELL
16743 _ASEOF
16744 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16745 ## -------------------- ##
16746 ## M4sh Initialization. ##
16747 ## -------------------- ##
16748
16749 # Be more Bourne compatible
16750 DUALCASE=1; export DUALCASE # for MKS sh
16751 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16752 emulate sh
16753 NULLCMD=:
16754 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16755 # is contrary to our usage. Disable this feature.
16756 alias -g '${1+"$@"}'='"$@"'
16757 setopt NO_GLOB_SUBST
16758 else
16759 case `(set -o) 2>/dev/null` in #(
16760 *posix*) :
16761 set -o posix ;; #(
16762 *) :
16763 ;;
16764 esac
16765 fi
16766
16767
16768 as_nl='
16769 '
16770 export as_nl
16771 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16772 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16773 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16774 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16775 # Prefer a ksh shell builtin over an external printf program on Solaris,
16776 # but without wasting forks for bash or zsh.
16777 if test -z "$BASH_VERSION$ZSH_VERSION" \
16778 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16779 as_echo='print -r --'
16780 as_echo_n='print -rn --'
16781 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16782 as_echo='printf %s\n'
16783 as_echo_n='printf %s'
16784 else
16785 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16786 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16787 as_echo_n='/usr/ucb/echo -n'
16788 else
16789 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16790 as_echo_n_body='eval
16791 arg=$1;
16792 case $arg in #(
16793 *"$as_nl"*)
16794 expr "X$arg" : "X\\(.*\\)$as_nl";
16795 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16796 esac;
16797 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16798 '
16799 export as_echo_n_body
16800 as_echo_n='sh -c $as_echo_n_body as_echo'
16801 fi
16802 export as_echo_body
16803 as_echo='sh -c $as_echo_body as_echo'
16804 fi
16805
16806 # The user is always right.
16807 if test "${PATH_SEPARATOR+set}" != set; then
16808 PATH_SEPARATOR=:
16809 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16810 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16811 PATH_SEPARATOR=';'
16812 }
16813 fi
16814
16815
16816 # IFS
16817 # We need space, tab and new line, in precisely that order. Quoting is
16818 # there to prevent editors from complaining about space-tab.
16819 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16820 # splitting by setting IFS to empty value.)
16821 IFS=" "" $as_nl"
16822
16823 # Find who we are. Look in the path if we contain no directory separator.
16824 case $0 in #((
16825 *[\\/]* ) as_myself=$0 ;;
16826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16827 for as_dir in $PATH
16828 do
16829 IFS=$as_save_IFS
16830 test -z "$as_dir" && as_dir=.
16831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16832 done
16833 IFS=$as_save_IFS
16834
16835 ;;
16836 esac
16837 # We did not find ourselves, most probably we were run as `sh COMMAND'
16838 # in which case we are not to be found in the path.
16839 if test "x$as_myself" = x; then
16840 as_myself=$0
16841 fi
16842 if test ! -f "$as_myself"; then
16843 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16844 exit 1
16845 fi
16846
16847 # Unset variables that we do not need and which cause bugs (e.g. in
16848 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16849 # suppresses any "Segmentation fault" message there. '((' could
16850 # trigger a bug in pdksh 5.2.14.
16851 for as_var in BASH_ENV ENV MAIL MAILPATH
16852 do eval test x\${$as_var+set} = xset \
16853 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16854 done
16855 PS1='$ '
16856 PS2='> '
16857 PS4='+ '
16858
16859 # NLS nuisances.
16860 LC_ALL=C
16861 export LC_ALL
16862 LANGUAGE=C
16863 export LANGUAGE
16864
16865 # CDPATH.
16866 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16867
16868
16869 # as_fn_error ERROR [LINENO LOG_FD]
16870 # ---------------------------------
16871 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16872 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16873 # script with status $?, using 1 if that was 0.
16874 as_fn_error ()
16875 {
16876 as_status=$?; test $as_status -eq 0 && as_status=1
16877 if test "$3"; then
16878 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16879 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16880 fi
16881 $as_echo "$as_me: error: $1" >&2
16882 as_fn_exit $as_status
16883 } # as_fn_error
16884
16885
16886 # as_fn_set_status STATUS
16887 # -----------------------
16888 # Set $? to STATUS, without forking.
16889 as_fn_set_status ()
16890 {
16891 return $1
16892 } # as_fn_set_status
16893
16894 # as_fn_exit STATUS
16895 # -----------------
16896 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16897 as_fn_exit ()
16898 {
16899 set +e
16900 as_fn_set_status $1
16901 exit $1
16902 } # as_fn_exit
16903
16904 # as_fn_unset VAR
16905 # ---------------
16906 # Portably unset VAR.
16907 as_fn_unset ()
16908 {
16909 { eval $1=; unset $1;}
16910 }
16911 as_unset=as_fn_unset
16912 # as_fn_append VAR VALUE
16913 # ----------------------
16914 # Append the text in VALUE to the end of the definition contained in VAR. Take
16915 # advantage of any shell optimizations that allow amortized linear growth over
16916 # repeated appends, instead of the typical quadratic growth present in naive
16917 # implementations.
16918 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16919 eval 'as_fn_append ()
16920 {
16921 eval $1+=\$2
16922 }'
16923 else
16924 as_fn_append ()
16925 {
16926 eval $1=\$$1\$2
16927 }
16928 fi # as_fn_append
16929
16930 # as_fn_arith ARG...
16931 # ------------------
16932 # Perform arithmetic evaluation on the ARGs, and store the result in the
16933 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16934 # must be portable across $(()) and expr.
16935 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16936 eval 'as_fn_arith ()
16937 {
16938 as_val=$(( $* ))
16939 }'
16940 else
16941 as_fn_arith ()
16942 {
16943 as_val=`expr "$@" || test $? -eq 1`
16944 }
16945 fi # as_fn_arith
16946
16947
16948 if expr a : '\(a\)' >/dev/null 2>&1 &&
16949 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16950 as_expr=expr
16951 else
16952 as_expr=false
16953 fi
16954
16955 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16956 as_basename=basename
16957 else
16958 as_basename=false
16959 fi
16960
16961 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16962 as_dirname=dirname
16963 else
16964 as_dirname=false
16965 fi
16966
16967 as_me=`$as_basename -- "$0" ||
16968 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16969 X"$0" : 'X\(//\)$' \| \
16970 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16971 $as_echo X/"$0" |
16972 sed '/^.*\/\([^/][^/]*\)\/*$/{
16973 s//\1/
16974 q
16975 }
16976 /^X\/\(\/\/\)$/{
16977 s//\1/
16978 q
16979 }
16980 /^X\/\(\/\).*/{
16981 s//\1/
16982 q
16983 }
16984 s/.*/./; q'`
16985
16986 # Avoid depending upon Character Ranges.
16987 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16988 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16989 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16990 as_cr_digits='0123456789'
16991 as_cr_alnum=$as_cr_Letters$as_cr_digits
16992
16993 ECHO_C= ECHO_N= ECHO_T=
16994 case `echo -n x` in #(((((
16995 -n*)
16996 case `echo 'xy\c'` in
16997 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16998 xy) ECHO_C='\c';;
16999 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17000 ECHO_T=' ';;
17001 esac;;
17002 *)
17003 ECHO_N='-n';;
17004 esac
17005
17006 rm -f conf$$ conf$$.exe conf$$.file
17007 if test -d conf$$.dir; then
17008 rm -f conf$$.dir/conf$$.file
17009 else
17010 rm -f conf$$.dir
17011 mkdir conf$$.dir 2>/dev/null
17012 fi
17013 if (echo >conf$$.file) 2>/dev/null; then
17014 if ln -s conf$$.file conf$$ 2>/dev/null; then
17015 as_ln_s='ln -s'
17016 # ... but there are two gotchas:
17017 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17018 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17019 # In both cases, we have to default to `cp -p'.
17020 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17021 as_ln_s='cp -p'
17022 elif ln conf$$.file conf$$ 2>/dev/null; then
17023 as_ln_s=ln
17024 else
17025 as_ln_s='cp -p'
17026 fi
17027 else
17028 as_ln_s='cp -p'
17029 fi
17030 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17031 rmdir conf$$.dir 2>/dev/null
17032
17033
17034 # as_fn_mkdir_p
17035 # -------------
17036 # Create "$as_dir" as a directory, including parents if necessary.
17037 as_fn_mkdir_p ()
17038 {
17039
17040 case $as_dir in #(
17041 -*) as_dir=./$as_dir;;
17042 esac
17043 test -d "$as_dir" || eval $as_mkdir_p || {
17044 as_dirs=
17045 while :; do
17046 case $as_dir in #(
17047 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17048 *) as_qdir=$as_dir;;
17049 esac
17050 as_dirs="'$as_qdir' $as_dirs"
17051 as_dir=`$as_dirname -- "$as_dir" ||
17052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17053 X"$as_dir" : 'X\(//\)[^/]' \| \
17054 X"$as_dir" : 'X\(//\)$' \| \
17055 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17056 $as_echo X"$as_dir" |
17057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17058 s//\1/
17059 q
17060 }
17061 /^X\(\/\/\)[^/].*/{
17062 s//\1/
17063 q
17064 }
17065 /^X\(\/\/\)$/{
17066 s//\1/
17067 q
17068 }
17069 /^X\(\/\).*/{
17070 s//\1/
17071 q
17072 }
17073 s/.*/./; q'`
17074 test -d "$as_dir" && break
17075 done
17076 test -z "$as_dirs" || eval "mkdir $as_dirs"
17077 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17078
17079
17080 } # as_fn_mkdir_p
17081 if mkdir -p . 2>/dev/null; then
17082 as_mkdir_p='mkdir -p "$as_dir"'
17083 else
17084 test -d ./-p && rmdir ./-p
17085 as_mkdir_p=false
17086 fi
17087
17088 if test -x / >/dev/null 2>&1; then
17089 as_test_x='test -x'
17090 else
17091 if ls -dL / >/dev/null 2>&1; then
17092 as_ls_L_option=L
17093 else
17094 as_ls_L_option=
17095 fi
17096 as_test_x='
17097 eval sh -c '\''
17098 if test -d "$1"; then
17099 test -d "$1/.";
17100 else
17101 case $1 in #(
17102 -*)set "./$1";;
17103 esac;
17104 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17105 ???[sx]*):;;*)false;;esac;fi
17106 '\'' sh
17107 '
17108 fi
17109 as_executable_p=$as_test_x
17110
17111 # Sed expression to map a string onto a valid CPP name.
17112 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17113
17114 # Sed expression to map a string onto a valid variable name.
17115 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17116
17117
17118 exec 6>&1
17119 ## ----------------------------------- ##
17120 ## Main body of $CONFIG_STATUS script. ##
17121 ## ----------------------------------- ##
17122 _ASEOF
17123 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17124
17125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17126 # Save the log message, to keep $0 and so on meaningful, and to
17127 # report actual input values of CONFIG_FILES etc. instead of their
17128 # values after options handling.
17129 ac_log="
17130 This file was extended by $as_me, which was
17131 generated by GNU Autoconf 2.64. Invocation command line was
17132
17133 CONFIG_FILES = $CONFIG_FILES
17134 CONFIG_HEADERS = $CONFIG_HEADERS
17135 CONFIG_LINKS = $CONFIG_LINKS
17136 CONFIG_COMMANDS = $CONFIG_COMMANDS
17137 $ $0 $@
17138
17139 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17140 "
17141
17142 _ACEOF
17143
17144 case $ac_config_files in *"
17145 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17146 esac
17147
17148 case $ac_config_headers in *"
17149 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17150 esac
17151
17152
17153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17154 # Files that config.status was made for.
17155 config_files="$ac_config_files"
17156 config_headers="$ac_config_headers"
17157 config_links="$ac_config_links"
17158 config_commands="$ac_config_commands"
17159
17160 _ACEOF
17161
17162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17163 ac_cs_usage="\
17164 \`$as_me' instantiates files and other configuration actions
17165 from templates according to the current configuration. Unless the files
17166 and actions are specified as TAGs, all are instantiated by default.
17167
17168 Usage: $0 [OPTION]... [TAG]...
17169
17170 -h, --help print this help, then exit
17171 -V, --version print version number and configuration settings, then exit
17172 -q, --quiet, --silent
17173 do not print progress messages
17174 -d, --debug don't remove temporary files
17175 --recheck update $as_me by reconfiguring in the same conditions
17176 --file=FILE[:TEMPLATE]
17177 instantiate the configuration file FILE
17178 --header=FILE[:TEMPLATE]
17179 instantiate the configuration header FILE
17180
17181 Configuration files:
17182 $config_files
17183
17184 Configuration headers:
17185 $config_headers
17186
17187 Configuration links:
17188 $config_links
17189
17190 Configuration commands:
17191 $config_commands
17192
17193 Report bugs to the package provider."
17194
17195 _ACEOF
17196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17197 ac_cs_version="\\
17198 config.status
17199 configured by $0, generated by GNU Autoconf 2.64,
17200 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17201
17202 Copyright (C) 2009 Free Software Foundation, Inc.
17203 This config.status script is free software; the Free Software Foundation
17204 gives unlimited permission to copy, distribute and modify it."
17205
17206 ac_pwd='$ac_pwd'
17207 srcdir='$srcdir'
17208 INSTALL='$INSTALL'
17209 AWK='$AWK'
17210 test -n "\$AWK" || AWK=awk
17211 _ACEOF
17212
17213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17214 # The default lists apply if the user does not specify any file.
17215 ac_need_defaults=:
17216 while test $# != 0
17217 do
17218 case $1 in
17219 --*=*)
17220 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17221 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17222 ac_shift=:
17223 ;;
17224 *)
17225 ac_option=$1
17226 ac_optarg=$2
17227 ac_shift=shift
17228 ;;
17229 esac
17230
17231 case $ac_option in
17232 # Handling of the options.
17233 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17234 ac_cs_recheck=: ;;
17235 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17236 $as_echo "$ac_cs_version"; exit ;;
17237 --debug | --debu | --deb | --de | --d | -d )
17238 debug=: ;;
17239 --file | --fil | --fi | --f )
17240 $ac_shift
17241 case $ac_optarg in
17242 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17243 esac
17244 as_fn_append CONFIG_FILES " '$ac_optarg'"
17245 ac_need_defaults=false;;
17246 --header | --heade | --head | --hea )
17247 $ac_shift
17248 case $ac_optarg in
17249 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17250 esac
17251 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17252 ac_need_defaults=false;;
17253 --he | --h)
17254 # Conflict between --help and --header
17255 as_fn_error "ambiguous option: \`$1'
17256 Try \`$0 --help' for more information.";;
17257 --help | --hel | -h )
17258 $as_echo "$ac_cs_usage"; exit ;;
17259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17260 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17261 ac_cs_silent=: ;;
17262
17263 # This is an error.
17264 -*) as_fn_error "unrecognized option: \`$1'
17265 Try \`$0 --help' for more information." ;;
17266
17267 *) as_fn_append ac_config_targets " $1"
17268 ac_need_defaults=false ;;
17269
17270 esac
17271 shift
17272 done
17273
17274 ac_configure_extra_args=
17275
17276 if $ac_cs_silent; then
17277 exec 6>/dev/null
17278 ac_configure_extra_args="$ac_configure_extra_args --silent"
17279 fi
17280
17281 _ACEOF
17282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17283 if \$ac_cs_recheck; then
17284 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17285 shift
17286 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17287 CONFIG_SHELL='$SHELL'
17288 export CONFIG_SHELL
17289 exec "\$@"
17290 fi
17291
17292 _ACEOF
17293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17294 exec 5>>config.log
17295 {
17296 echo
17297 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17298 ## Running $as_me. ##
17299 _ASBOX
17300 $as_echo "$ac_log"
17301 } >&5
17302
17303 _ACEOF
17304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17305 #
17306 # INIT-COMMANDS
17307 #
17308 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17309
17310 _ACEOF
17311
17312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17313
17314 # Handling of arguments.
17315 for ac_config_target in $ac_config_targets
17316 do
17317 case $ac_config_target in
17318 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17319 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
17320 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
17321 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
17322 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
17323 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17324 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
17325 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17326 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
17327 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17328
17329 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17330 esac
17331 done
17332
17333
17334 # If the user did not use the arguments to specify the items to instantiate,
17335 # then the envvar interface is used. Set only those that are not.
17336 # We use the long form for the default assignment because of an extremely
17337 # bizarre bug on SunOS 4.1.3.
17338 if $ac_need_defaults; then
17339 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17340 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17341 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17342 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17343 fi
17344
17345 # Have a temporary directory for convenience. Make it in the build tree
17346 # simply because there is no reason against having it here, and in addition,
17347 # creating and moving files from /tmp can sometimes cause problems.
17348 # Hook for its removal unless debugging.
17349 # Note that there is a small window in which the directory will not be cleaned:
17350 # after its creation but before its name has been assigned to `$tmp'.
17351 $debug ||
17352 {
17353 tmp=
17354 trap 'exit_status=$?
17355 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17356 ' 0
17357 trap 'as_fn_exit 1' 1 2 13 15
17358 }
17359 # Create a (secure) tmp directory for tmp files.
17360
17361 {
17362 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17363 test -n "$tmp" && test -d "$tmp"
17364 } ||
17365 {
17366 tmp=./conf$$-$RANDOM
17367 (umask 077 && mkdir "$tmp")
17368 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17369
17370 # Set up the scripts for CONFIG_FILES section.
17371 # No need to generate them if there are no CONFIG_FILES.
17372 # This happens for instance with `./config.status config.h'.
17373 if test -n "$CONFIG_FILES"; then
17374
17375 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17376 ac_cs_awk_getline=:
17377 ac_cs_awk_pipe_init=
17378 ac_cs_awk_read_file='
17379 while ((getline aline < (F[key])) > 0)
17380 print(aline)
17381 close(F[key])'
17382 ac_cs_awk_pipe_fini=
17383 else
17384 ac_cs_awk_getline=false
17385 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17386 ac_cs_awk_read_file='
17387 print "|#_!!_#|"
17388 print "cat " F[key] " &&"
17389 '$ac_cs_awk_pipe_init
17390 # The final `:' finishes the AND list.
17391 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17392 fi
17393 ac_cr=`echo X | tr X '\015'`
17394 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17395 # But we know of no other shell where ac_cr would be empty at this
17396 # point, so we can use a bashism as a fallback.
17397 if test "x$ac_cr" = x; then
17398 eval ac_cr=\$\'\\r\'
17399 fi
17400 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17401 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17402 ac_cs_awk_cr='\r'
17403 else
17404 ac_cs_awk_cr=$ac_cr
17405 fi
17406
17407 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17408 _ACEOF
17409
17410 # Create commands to substitute file output variables.
17411 {
17412 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17413 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17414 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17415 echo "_ACAWK" &&
17416 echo "_ACEOF"
17417 } >conf$$files.sh &&
17418 . ./conf$$files.sh ||
17419 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17420 rm -f conf$$files.sh
17421
17422 {
17423 echo "cat >conf$$subs.awk <<_ACEOF" &&
17424 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17425 echo "_ACEOF"
17426 } >conf$$subs.sh ||
17427 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17428 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17429 ac_delim='%!_!# '
17430 for ac_last_try in false false false false false :; do
17431 . ./conf$$subs.sh ||
17432 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17433
17434 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17435 if test $ac_delim_n = $ac_delim_num; then
17436 break
17437 elif $ac_last_try; then
17438 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17439 else
17440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17441 fi
17442 done
17443 rm -f conf$$subs.sh
17444
17445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17446 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17447 _ACEOF
17448 sed -n '
17449 h
17450 s/^/S["/; s/!.*/"]=/
17451 p
17452 g
17453 s/^[^!]*!//
17454 :repl
17455 t repl
17456 s/'"$ac_delim"'$//
17457 t delim
17458 :nl
17459 h
17460 s/\(.\{148\}\).*/\1/
17461 t more1
17462 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17463 p
17464 n
17465 b repl
17466 :more1
17467 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17468 p
17469 g
17470 s/.\{148\}//
17471 t nl
17472 :delim
17473 h
17474 s/\(.\{148\}\).*/\1/
17475 t more2
17476 s/["\\]/\\&/g; s/^/"/; s/$/"/
17477 p
17478 b
17479 :more2
17480 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17481 p
17482 g
17483 s/.\{148\}//
17484 t delim
17485 ' <conf$$subs.awk | sed '
17486 /^[^""]/{
17487 N
17488 s/\n//
17489 }
17490 ' >>$CONFIG_STATUS || ac_write_fail=1
17491 rm -f conf$$subs.awk
17492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17493 _ACAWK
17494 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17495 for (key in S) S_is_set[key] = 1
17496 FS = "\a"
17497 \$ac_cs_awk_pipe_init
17498 }
17499 {
17500 line = $ 0
17501 nfields = split(line, field, "@")
17502 substed = 0
17503 len = length(field[1])
17504 for (i = 2; i < nfields; i++) {
17505 key = field[i]
17506 keylen = length(key)
17507 if (S_is_set[key]) {
17508 value = S[key]
17509 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17510 len += length(value) + length(field[++i])
17511 substed = 1
17512 } else
17513 len += 1 + keylen
17514 }
17515 if (nfields == 3 && !substed) {
17516 key = field[2]
17517 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17518 \$ac_cs_awk_read_file
17519 next
17520 }
17521 }
17522 print line
17523 }
17524 \$ac_cs_awk_pipe_fini
17525 _ACAWK
17526 _ACEOF
17527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17528 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17529 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17530 else
17531 cat
17532 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17533 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17534 _ACEOF
17535
17536 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17537 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17538 # trailing colons and then remove the whole line if VPATH becomes empty
17539 # (actually we leave an empty line to preserve line numbers).
17540 if test "x$srcdir" = x.; then
17541 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17542 s/:*\$(srcdir):*/:/
17543 s/:*\${srcdir}:*/:/
17544 s/:*@srcdir@:*/:/
17545 s/^\([^=]*=[ ]*\):*/\1/
17546 s/:*$//
17547 s/^[^=]*=[ ]*$//
17548 }'
17549 fi
17550
17551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17552 fi # test -n "$CONFIG_FILES"
17553
17554 # Set up the scripts for CONFIG_HEADERS section.
17555 # No need to generate them if there are no CONFIG_HEADERS.
17556 # This happens for instance with `./config.status Makefile'.
17557 if test -n "$CONFIG_HEADERS"; then
17558 cat >"$tmp/defines.awk" <<\_ACAWK ||
17559 BEGIN {
17560 _ACEOF
17561
17562 # Transform confdefs.h into an awk script `defines.awk', embedded as
17563 # here-document in config.status, that substitutes the proper values into
17564 # config.h.in to produce config.h.
17565
17566 # Create a delimiter string that does not exist in confdefs.h, to ease
17567 # handling of long lines.
17568 ac_delim='%!_!# '
17569 for ac_last_try in false false :; do
17570 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17571 if test -z "$ac_t"; then
17572 break
17573 elif $ac_last_try; then
17574 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17575 else
17576 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17577 fi
17578 done
17579
17580 # For the awk script, D is an array of macro values keyed by name,
17581 # likewise P contains macro parameters if any. Preserve backslash
17582 # newline sequences.
17583
17584 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17585 sed -n '
17586 s/.\{148\}/&'"$ac_delim"'/g
17587 t rset
17588 :rset
17589 s/^[ ]*#[ ]*define[ ][ ]*/ /
17590 t def
17591 d
17592 :def
17593 s/\\$//
17594 t bsnl
17595 s/["\\]/\\&/g
17596 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17597 D["\1"]=" \3"/p
17598 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17599 d
17600 :bsnl
17601 s/["\\]/\\&/g
17602 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17603 D["\1"]=" \3\\\\\\n"\\/p
17604 t cont
17605 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17606 t cont
17607 d
17608 :cont
17609 n
17610 s/.\{148\}/&'"$ac_delim"'/g
17611 t clear
17612 :clear
17613 s/\\$//
17614 t bsnlc
17615 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17616 d
17617 :bsnlc
17618 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17619 b cont
17620 ' <confdefs.h | sed '
17621 s/'"$ac_delim"'/"\\\
17622 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17623
17624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17625 for (key in D) D_is_set[key] = 1
17626 FS = "\a"
17627 }
17628 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17629 line = \$ 0
17630 split(line, arg, " ")
17631 if (arg[1] == "#") {
17632 defundef = arg[2]
17633 mac1 = arg[3]
17634 } else {
17635 defundef = substr(arg[1], 2)
17636 mac1 = arg[2]
17637 }
17638 split(mac1, mac2, "(") #)
17639 macro = mac2[1]
17640 prefix = substr(line, 1, index(line, defundef) - 1)
17641 if (D_is_set[macro]) {
17642 # Preserve the white space surrounding the "#".
17643 print prefix "define", macro P[macro] D[macro]
17644 next
17645 } else {
17646 # Replace #undef with comments. This is necessary, for example,
17647 # in the case of _POSIX_SOURCE, which is predefined and required
17648 # on some systems where configure will not decide to define it.
17649 if (defundef == "undef") {
17650 print "/*", prefix defundef, macro, "*/"
17651 next
17652 }
17653 }
17654 }
17655 { print }
17656 _ACAWK
17657 _ACEOF
17658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17659 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17660 fi # test -n "$CONFIG_HEADERS"
17661
17662
17663 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17664 shift
17665 for ac_tag
17666 do
17667 case $ac_tag in
17668 :[FHLC]) ac_mode=$ac_tag; continue;;
17669 esac
17670 case $ac_mode$ac_tag in
17671 :[FHL]*:*);;
17672 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17673 :[FH]-) ac_tag=-:-;;
17674 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17675 esac
17676 ac_save_IFS=$IFS
17677 IFS=:
17678 set x $ac_tag
17679 IFS=$ac_save_IFS
17680 shift
17681 ac_file=$1
17682 shift
17683
17684 case $ac_mode in
17685 :L) ac_source=$1;;
17686 :[FH])
17687 ac_file_inputs=
17688 for ac_f
17689 do
17690 case $ac_f in
17691 -) ac_f="$tmp/stdin";;
17692 *) # Look for the file first in the build tree, then in the source tree
17693 # (if the path is not absolute). The absolute path cannot be DOS-style,
17694 # because $ac_f cannot contain `:'.
17695 test -f "$ac_f" ||
17696 case $ac_f in
17697 [\\/$]*) false;;
17698 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17699 esac ||
17700 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17701 esac
17702 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17703 as_fn_append ac_file_inputs " '$ac_f'"
17704 done
17705
17706 # Let's still pretend it is `configure' which instantiates (i.e., don't
17707 # use $as_me), people would be surprised to read:
17708 # /* config.h. Generated by config.status. */
17709 configure_input='Generated from '`
17710 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17711 `' by configure.'
17712 if test x"$ac_file" != x-; then
17713 configure_input="$ac_file. $configure_input"
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17715 $as_echo "$as_me: creating $ac_file" >&6;}
17716 fi
17717 # Neutralize special characters interpreted by sed in replacement strings.
17718 case $configure_input in #(
17719 *\&* | *\|* | *\\* )
17720 ac_sed_conf_input=`$as_echo "$configure_input" |
17721 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17722 *) ac_sed_conf_input=$configure_input;;
17723 esac
17724
17725 case $ac_tag in
17726 *:-:* | *:-) cat >"$tmp/stdin" \
17727 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17728 esac
17729 ;;
17730 esac
17731
17732 ac_dir=`$as_dirname -- "$ac_file" ||
17733 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17734 X"$ac_file" : 'X\(//\)[^/]' \| \
17735 X"$ac_file" : 'X\(//\)$' \| \
17736 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17737 $as_echo X"$ac_file" |
17738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17739 s//\1/
17740 q
17741 }
17742 /^X\(\/\/\)[^/].*/{
17743 s//\1/
17744 q
17745 }
17746 /^X\(\/\/\)$/{
17747 s//\1/
17748 q
17749 }
17750 /^X\(\/\).*/{
17751 s//\1/
17752 q
17753 }
17754 s/.*/./; q'`
17755 as_dir="$ac_dir"; as_fn_mkdir_p
17756 ac_builddir=.
17757
17758 case "$ac_dir" in
17759 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17760 *)
17761 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17762 # A ".." for each directory in $ac_dir_suffix.
17763 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17764 case $ac_top_builddir_sub in
17765 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17766 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17767 esac ;;
17768 esac
17769 ac_abs_top_builddir=$ac_pwd
17770 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17771 # for backward compatibility:
17772 ac_top_builddir=$ac_top_build_prefix
17773
17774 case $srcdir in
17775 .) # We are building in place.
17776 ac_srcdir=.
17777 ac_top_srcdir=$ac_top_builddir_sub
17778 ac_abs_top_srcdir=$ac_pwd ;;
17779 [\\/]* | ?:[\\/]* ) # Absolute name.
17780 ac_srcdir=$srcdir$ac_dir_suffix;
17781 ac_top_srcdir=$srcdir
17782 ac_abs_top_srcdir=$srcdir ;;
17783 *) # Relative name.
17784 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17785 ac_top_srcdir=$ac_top_build_prefix$srcdir
17786 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17787 esac
17788 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17789
17790
17791 case $ac_mode in
17792 :F)
17793 #
17794 # CONFIG_FILE
17795 #
17796
17797 case $INSTALL in
17798 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17799 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17800 esac
17801 _ACEOF
17802
17803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17804 # If the template does not know about datarootdir, expand it.
17805 # FIXME: This hack should be removed a few years after 2.60.
17806 ac_datarootdir_hack=; ac_datarootdir_seen=
17807 ac_sed_dataroot='
17808 /datarootdir/ {
17809 p
17810 q
17811 }
17812 /@datadir@/p
17813 /@docdir@/p
17814 /@infodir@/p
17815 /@localedir@/p
17816 /@mandir@/p'
17817 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17818 *datarootdir*) ac_datarootdir_seen=yes;;
17819 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17821 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17822 _ACEOF
17823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17824 ac_datarootdir_hack='
17825 s&@datadir@&$datadir&g
17826 s&@docdir@&$docdir&g
17827 s&@infodir@&$infodir&g
17828 s&@localedir@&$localedir&g
17829 s&@mandir@&$mandir&g
17830 s&\\\${datarootdir}&$datarootdir&g' ;;
17831 esac
17832 _ACEOF
17833
17834 # Neutralize VPATH when `$srcdir' = `.'.
17835 # Shell code in configure.ac might set extrasub.
17836 # FIXME: do we really want to maintain this feature?
17837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17838 ac_sed_extra="$ac_vpsub
17839 $extrasub
17840 _ACEOF
17841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17842 :t
17843 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17844 s|@configure_input@|$ac_sed_conf_input|;t t
17845 s&@top_builddir@&$ac_top_builddir_sub&;t t
17846 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17847 s&@srcdir@&$ac_srcdir&;t t
17848 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17849 s&@top_srcdir@&$ac_top_srcdir&;t t
17850 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17851 s&@builddir@&$ac_builddir&;t t
17852 s&@abs_builddir@&$ac_abs_builddir&;t t
17853 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17854 s&@INSTALL@&$ac_INSTALL&;t t
17855 $ac_datarootdir_hack
17856 "
17857 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17858 if $ac_cs_awk_getline; then
17859 $AWK -f "$tmp/subs.awk"
17860 else
17861 $AWK -f "$tmp/subs.awk" | $SHELL
17862 fi >$tmp/out \
17863 || as_fn_error "could not create $ac_file" "$LINENO" 5
17864
17865 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17866 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17867 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17869 which seems to be undefined. Please make sure it is defined." >&5
17870 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17871 which seems to be undefined. Please make sure it is defined." >&2;}
17872
17873 rm -f "$tmp/stdin"
17874 case $ac_file in
17875 -) cat "$tmp/out" && rm -f "$tmp/out";;
17876 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17877 esac \
17878 || as_fn_error "could not create $ac_file" "$LINENO" 5
17879 ;;
17880 :H)
17881 #
17882 # CONFIG_HEADER
17883 #
17884 if test x"$ac_file" != x-; then
17885 {
17886 $as_echo "/* $configure_input */" \
17887 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17888 } >"$tmp/config.h" \
17889 || as_fn_error "could not create $ac_file" "$LINENO" 5
17890 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17892 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17893 else
17894 rm -f "$ac_file"
17895 mv "$tmp/config.h" "$ac_file" \
17896 || as_fn_error "could not create $ac_file" "$LINENO" 5
17897 fi
17898 else
17899 $as_echo "/* $configure_input */" \
17900 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17901 || as_fn_error "could not create -" "$LINENO" 5
17902 fi
17903 ;;
17904 :L)
17905 #
17906 # CONFIG_LINK
17907 #
17908
17909 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17910 :
17911 else
17912 # Prefer the file from the source tree if names are identical.
17913 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17914 ac_source=$srcdir/$ac_source
17915 fi
17916
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17918 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17919
17920 if test ! -r "$ac_source"; then
17921 as_fn_error "$ac_source: file not found" "$LINENO" 5
17922 fi
17923 rm -f "$ac_file"
17924
17925 # Try a relative symlink, then a hard link, then a copy.
17926 case $srcdir in
17927 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17928 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17929 esac
17930 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17931 ln "$ac_source" "$ac_file" 2>/dev/null ||
17932 cp -p "$ac_source" "$ac_file" ||
17933 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17934 fi
17935 ;;
17936 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17937 $as_echo "$as_me: executing $ac_file commands" >&6;}
17938 ;;
17939 esac
17940
17941
17942 case $ac_file$ac_mode in
17943 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17944 "gcore":F) chmod +x gcore ;;
17945 "default":C)
17946 case x$CONFIG_HEADERS in
17947 xconfig.h:config.in)
17948 echo > stamp-h ;;
17949 esac
17950 ;;
17951
17952 esac
17953 done # for ac_tag
17954
17955
17956 as_fn_exit 0
17957 _ACEOF
17958 ac_clean_files=$ac_clean_files_save
17959
17960 test $ac_write_fail = 0 ||
17961 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17962
17963
17964 # configure is writing to config.log, and then calls config.status.
17965 # config.status does its own redirection, appending to config.log.
17966 # Unfortunately, on DOS this fails, as config.log is still kept open
17967 # by configure, so config.status won't be able to write to it; its
17968 # output is simply discarded. So we exec the FD to /dev/null,
17969 # effectively closing config.log, so it can be properly (re)opened and
17970 # appended to by config.status. When coming back to configure, we
17971 # need to make the FD available again.
17972 if test "$no_create" != yes; then
17973 ac_cs_success=:
17974 ac_config_status_args=
17975 test "$silent" = yes &&
17976 ac_config_status_args="$ac_config_status_args --quiet"
17977 exec 5>/dev/null
17978 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17979 exec 5>>config.log
17980 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17981 # would make configure fail if this is the last instruction.
17982 $ac_cs_success || as_fn_exit $?
17983 fi
17984
17985 #
17986 # CONFIG_SUBDIRS section.
17987 #
17988 if test "$no_recursion" != yes; then
17989
17990 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17991 # so they do not pile up.
17992 ac_sub_configure_args=
17993 ac_prev=
17994 eval "set x $ac_configure_args"
17995 shift
17996 for ac_arg
17997 do
17998 if test -n "$ac_prev"; then
17999 ac_prev=
18000 continue
18001 fi
18002 case $ac_arg in
18003 -cache-file | --cache-file | --cache-fil | --cache-fi \
18004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18005 ac_prev=cache_file ;;
18006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18008 | --c=*)
18009 ;;
18010 --config-cache | -C)
18011 ;;
18012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18013 ac_prev=srcdir ;;
18014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18015 ;;
18016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18017 ac_prev=prefix ;;
18018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18019 ;;
18020 --disable-option-checking)
18021 ;;
18022 *)
18023 case $ac_arg in
18024 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18025 esac
18026 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18027 esac
18028 done
18029
18030 # Always prepend --prefix to ensure using the same prefix
18031 # in subdir configurations.
18032 ac_arg="--prefix=$prefix"
18033 case $ac_arg in
18034 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18035 esac
18036 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18037
18038 # Pass --silent
18039 if test "$silent" = yes; then
18040 ac_sub_configure_args="--silent $ac_sub_configure_args"
18041 fi
18042
18043 # Always prepend --disable-option-checking to silence warnings, since
18044 # different subdirs can have different --enable and --with options.
18045 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18046
18047 ac_popdir=`pwd`
18048 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18049
18050 # Do not complain, so a configure script can configure whichever
18051 # parts of a large source tree are present.
18052 test -d "$srcdir/$ac_dir" || continue
18053
18054 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18055 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18056 $as_echo "$ac_msg" >&6
18057 as_dir="$ac_dir"; as_fn_mkdir_p
18058 ac_builddir=.
18059
18060 case "$ac_dir" in
18061 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18062 *)
18063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18064 # A ".." for each directory in $ac_dir_suffix.
18065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18066 case $ac_top_builddir_sub in
18067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18069 esac ;;
18070 esac
18071 ac_abs_top_builddir=$ac_pwd
18072 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18073 # for backward compatibility:
18074 ac_top_builddir=$ac_top_build_prefix
18075
18076 case $srcdir in
18077 .) # We are building in place.
18078 ac_srcdir=.
18079 ac_top_srcdir=$ac_top_builddir_sub
18080 ac_abs_top_srcdir=$ac_pwd ;;
18081 [\\/]* | ?:[\\/]* ) # Absolute name.
18082 ac_srcdir=$srcdir$ac_dir_suffix;
18083 ac_top_srcdir=$srcdir
18084 ac_abs_top_srcdir=$srcdir ;;
18085 *) # Relative name.
18086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18087 ac_top_srcdir=$ac_top_build_prefix$srcdir
18088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18089 esac
18090 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18091
18092
18093 cd "$ac_dir"
18094
18095 # Check for guested configure; otherwise get Cygnus style configure.
18096 if test -f "$ac_srcdir/configure.gnu"; then
18097 ac_sub_configure=$ac_srcdir/configure.gnu
18098 elif test -f "$ac_srcdir/configure"; then
18099 ac_sub_configure=$ac_srcdir/configure
18100 elif test -f "$ac_srcdir/configure.in"; then
18101 # This should be Cygnus configure.
18102 ac_sub_configure=$ac_aux_dir/configure
18103 else
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18105 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18106 ac_sub_configure=
18107 fi
18108
18109 # The recursion is here.
18110 if test -n "$ac_sub_configure"; then
18111 # Make the cache file name correct relative to the subdirectory.
18112 case $cache_file in
18113 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18114 *) # Relative name.
18115 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18116 esac
18117
18118 { $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
18119 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18120 # The eval makes quoting arguments work.
18121 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18122 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18123 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18124 fi
18125
18126 cd "$ac_popdir"
18127 done
18128 fi
18129 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18131 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18132 fi
18133
18134
18135 exit 0