Revert the previous 7 commits of: Validate binary before use
[deliverable/binutils-gdb.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 enable_option_checking=no
592 ac_subst_vars='LTLIBOBJS
593 LIBOBJS
594 GCORE_TRANSFORM_NAME
595 GDB_TRANSFORM_NAME
596 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 zlibinc
687 zlibdir
688 MIG
689 WINDRES
690 DLLTOOL
691 AR
692 YFLAGS
693 YACC
694 RANLIB
695 LN_S
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 AWK
700 REPORT_BUGS_TEXI
701 REPORT_BUGS_TO
702 PKGVERSION
703 HAVE_NATIVE_GCORE_TARGET
704 TARGET_OBS
705 subdirs
706 GDB_DATADIR
707 DEBUGDIR
708 MAKEINFO_EXTRA_FLAGS
709 MAKEINFOFLAGS
710 MAKEINFO
711 PACKAGE
712 GNULIB_STDINT_H
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 SET_MAKE
726 GMAKE_FALSE
727 GMAKE_TRUE
728 MAKE
729 CCDEPMODE
730 DEPDIR
731 am__leading_dot
732 COMPILER
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 target_os
737 target_vendor
738 target_cpu
739 target
740 host_os
741 host_vendor
742 host_cpu
743 host
744 build_os
745 build_vendor
746 build_cpu
747 build
748 EGREP
749 GREP
750 CPP
751 ac_ct_CXX
752 CXXFLAGS
753 CXX
754 OBJEXT
755 EXEEXT
756 ac_ct_CC
757 CPPFLAGS
758 LDFLAGS
759 CFLAGS
760 CC
761 MAINT
762 MAINTAINER_MODE_FALSE
763 MAINTAINER_MODE_TRUE
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files='host_makefile_frag'
803 ac_user_opts='
804 enable_option_checking
805 enable_maintainer_mode
806 enable_plugins
807 enable_largefile
808 enable_build_with_cxx
809 with_separate_debug_dir
810 with_gdb_datadir
811 with_relocated_sources
812 with_auto_load_dir
813 with_auto_load_safe_path
814 enable_targets
815 enable_64_bit_bfd
816 enable_gdbcli
817 enable_gdbmi
818 enable_tui
819 enable_gdbtk
820 with_libunwind_ia64
821 with_curses
822 enable_profiling
823 with_pkgversion
824 with_bugurl
825 with_system_zlib
826 with_libiconv_prefix
827 with_iconv_bin
828 with_system_readline
829 with_jit_reader_dir
830 with_expat
831 with_gnu_ld
832 enable_rpath
833 with_libexpat_prefix
834 with_python
835 with_guile
836 enable_libmcheck
837 with_intel_pt
838 with_libipt_prefix
839 with_included_regex
840 with_sysroot
841 with_system_gdbinit
842 enable_werror
843 enable_build_warnings
844 enable_gdb_build_warnings
845 with_lzma
846 with_liblzma_prefix
847 with_tcl
848 with_tk
849 with_x
850 enable_sim
851 enable_multi_ice
852 enable_gdbserver
853 with_babeltrace
854 with_libbabeltrace_prefix
855 '
856 ac_precious_vars='build_alias
857 host_alias
858 target_alias
859 CC
860 CFLAGS
861 LDFLAGS
862 LIBS
863 CPPFLAGS
864 CXX
865 CXXFLAGS
866 CCC
867 CPP
868 MAKEINFO
869 MAKEINFOFLAGS
870 YACC
871 YFLAGS
872 XMKMF'
873 ac_subdirs_all='testsuite
874 gdbtk
875 multi-ice
876 gdbserver'
877
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 ac_unrecognized_opts=
882 ac_unrecognized_sep=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
885 cache_file=/dev/null
886 exec_prefix=NONE
887 no_create=
888 no_recursion=
889 prefix=NONE
890 program_prefix=NONE
891 program_suffix=NONE
892 program_transform_name=s,x,x,
893 silent=
894 site=
895 srcdir=
896 verbose=
897 x_includes=NONE
898 x_libraries=NONE
899
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir='${exec_prefix}/bin'
907 sbindir='${exec_prefix}/sbin'
908 libexecdir='${exec_prefix}/libexec'
909 datarootdir='${prefix}/share'
910 datadir='${datarootdir}'
911 sysconfdir='${prefix}/etc'
912 sharedstatedir='${prefix}/com'
913 localstatedir='${prefix}/var'
914 includedir='${prefix}/include'
915 oldincludedir='/usr/include'
916 docdir='${datarootdir}/doc/${PACKAGE}'
917 infodir='${datarootdir}/info'
918 htmldir='${docdir}'
919 dvidir='${docdir}'
920 pdfdir='${docdir}'
921 psdir='${docdir}'
922 libdir='${exec_prefix}/lib'
923 localedir='${datarootdir}/locale'
924 mandir='${datarootdir}/man'
925
926 ac_prev=
927 ac_dashdash=
928 for ac_option
929 do
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
932 eval $ac_prev=\$ac_option
933 ac_prev=
934 continue
935 fi
936
937 case $ac_option in
938 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 *) ac_optarg=yes ;;
940 esac
941
942 # Accept the important Cygnus configure options, so we can diagnose typos.
943
944 case $ac_dashdash$ac_option in
945 --)
946 ac_dashdash=yes ;;
947
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 ac_prev=bindir ;;
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 bindir=$ac_optarg ;;
952
953 -build | --build | --buil | --bui | --bu)
954 ac_prev=build_alias ;;
955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956 build_alias=$ac_optarg ;;
957
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963 cache_file=$ac_optarg ;;
964
965 --config-cache | -C)
966 cache_file=config.cache ;;
967
968 -datadir | --datadir | --datadi | --datad)
969 ac_prev=datadir ;;
970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
971 datadir=$ac_optarg ;;
972
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
979
980 -disable-* | --disable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=no ;;
995
996 -docdir | --docdir | --docdi | --doc | --do)
997 ac_prev=docdir ;;
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 docdir=$ac_optarg ;;
1000
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 ac_prev=dvidir ;;
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1005
1006 -enable-* | --enable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015 "enable_$ac_useropt"
1016 "*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=\$ac_optarg ;;
1021
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1030
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1033 with_gas=yes ;;
1034
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1041
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1046
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 ac_prev=htmldir ;;
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 | --ht=*)
1051 htmldir=$ac_optarg ;;
1052
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1059
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 ac_prev=infodir ;;
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1064
1065 -libdir | --libdir | --libdi | --libd)
1066 ac_prev=libdir ;;
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1069
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1076
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1081
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1088
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 ac_prev=mandir ;;
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1093
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1096 with_fp=no ;;
1097
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1100 no_create=yes ;;
1101
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 no_recursion=yes ;;
1105
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1114
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 ac_prev=prefix ;;
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1119
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1126
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1133
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1150
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 ac_prev=pdfdir ;;
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1155
1156 -psdir | --psdir | --psdi | --psd | --ps)
1157 ac_prev=psdir ;;
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 psdir=$ac_optarg ;;
1160
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1163 silent=yes ;;
1164
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 ac_prev=sbindir ;;
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 | --sbi=* | --sb=*)
1169 sbindir=$ac_optarg ;;
1170
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1174 | --sha | --sh)
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 | --sha=* | --sh=*)
1180 sharedstatedir=$ac_optarg ;;
1181
1182 -site | --site | --sit)
1183 ac_prev=site ;;
1184 -site=* | --site=* | --sit=*)
1185 site=$ac_optarg ;;
1186
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 ac_prev=srcdir ;;
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1191
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1198
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1203
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 verbose=yes ;;
1206
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1209
1210 -with-* | --with-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error "invalid package name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=\$ac_optarg ;;
1225
1226 -without-* | --without-*)
1227 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230 as_fn_error "invalid package name: $ac_useropt"
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1234 *"
1235 "with_$ac_useropt"
1236 "*) ;;
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1239 esac
1240 eval with_$ac_useropt=no ;;
1241
1242 --x)
1243 # Obsolete; use --with-x.
1244 with_x=yes ;;
1245
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1252
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1259
1260 -*) as_fn_error "unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information."
1262 ;;
1263
1264 *=*)
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 case $ac_envvar in #(
1268 '' | [0-9]* | *[!_$as_cr_alnum]* )
1269 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1270 esac
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1273
1274 *)
1275 # FIXME: should be removed in autoconf 3.0.
1276 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280 ;;
1281
1282 esac
1283 done
1284
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 as_fn_error "missing argument to $ac_option"
1288 fi
1289
1290 if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1292 no) ;;
1293 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1294 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 esac
1296 fi
1297
1298 # Check all directory arguments for consistency.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1303 do
1304 eval ac_val=\$$ac_var
1305 # Remove trailing slashes.
1306 case $ac_val in
1307 */ )
1308 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309 eval $ac_var=\$ac_val;;
1310 esac
1311 # Be sure to have absolute directory names.
1312 case $ac_val in
1313 [\\/$]* | ?:[\\/]* ) continue;;
1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 esac
1316 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1317 done
1318
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1322 build=$build_alias
1323 host=$host_alias
1324 target=$target_alias
1325
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328 if test "x$build_alias" = x; then
1329 cross_compiling=maybe
1330 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1331 If a cross compiler is detected then cross compile mode will be used." >&2
1332 elif test "x$build_alias" != "x$host_alias"; then
1333 cross_compiling=yes
1334 fi
1335 fi
1336
1337 ac_tool_prefix=
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340 test "$silent" = yes && exec 6>/dev/null
1341
1342
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346 as_fn_error "working directory cannot be determined"
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 as_fn_error "pwd does not report name of working directory"
1349
1350
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)[^/].*/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\).*/{
1374 s//\1/
1375 q
1376 }
1377 s/.*/./; q'`
1378 srcdir=$ac_confdir
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 srcdir=..
1381 fi
1382 else
1383 ac_srcdir_defaulted=no
1384 fi
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1392 pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 srcdir=.
1396 fi
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 done
1409
1410 #
1411 # Report the --help message.
1412 #
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1416 cat <<_ACEOF
1417 \`configure' configures this package to adapt to many kinds of systems.
1418
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1423
1424 Defaults for the options are specified in brackets.
1425
1426 Configuration:
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 [PREFIX]
1442
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1447
1448 For better control, use the options below.
1449
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1470 _ACEOF
1471
1472 cat <<\_ACEOF
1473
1474 Program names:
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478
1479 X features:
1480 --x-includes=DIR X include files are in DIR
1481 --x-libraries=DIR X library files are in DIR
1482
1483 System types:
1484 --build=BUILD configure for building on BUILD [guessed]
1485 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1486 --target=TARGET configure for building compilers for TARGET [HOST]
1487 _ACEOF
1488 fi
1489
1490 if test -n "$ac_init_help"; then
1491
1492 cat <<\_ACEOF
1493
1494 Optional Features:
1495 --disable-option-checking ignore unrecognized --enable/--with options
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --enable-maintainer-mode enable make rules and dependencies not useful
1499 (and sometimes confusing) to the casual installer
1500 --enable-plugins Enable support for plugins
1501 --disable-largefile omit support for large files
1502 --enable-build-with-cxx build with C++ compiler instead of C compiler
1503 --enable-targets=TARGETS
1504 alternative target configurations
1505 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1506 --disable-gdbcli disable command-line interface (CLI)
1507 --disable-gdbmi disable machine-interface (MI)
1508 --enable-tui enable full-screen terminal user interface (TUI)
1509 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1510 --enable-profiling enable profiling of GDB
1511 --disable-rpath do not hardcode runtime library paths
1512 --enable-libmcheck Try linking with -lmcheck if available
1513 --enable-werror treat compile warnings as errors
1514 --enable-build-warnings enable build-time compiler warnings if gcc is used
1515 --enable-gdb-build-warnings
1516 enable GDB specific build-time compiler warnings if
1517 gcc is used
1518 --enable-sim link gdb with simulator
1519 --enable-multi-ice build the multi-ice-gdb-server
1520 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1521 is auto)
1522
1523 Optional Packages:
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-separate-debug-dir=PATH
1527 look for global separate debug info in this path
1528 [LIBDIR/debug]
1529 --with-gdb-datadir=PATH look for global separate data files in this path
1530 [DATADIR/gdb]
1531 --with-relocated-sources=PATH
1532 automatically relocate this path for source files
1533 --with-auto-load-dir=PATH
1534 directories from which to load auto-loaded scripts
1535 [$debugdir:$datadir/auto-load]
1536 --with-auto-load-safe-path=PATH
1537 directories safe to hold auto-loaded files
1538 [--with-auto-load-dir]
1539 --without-auto-load-safe-path
1540 do not restrict auto-loaded files locations
1541 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1542 --with-curses use the curses library instead of the termcap
1543 library
1544 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1545 --with-bugurl=URL Direct users to URL to report a bug
1546 --with-system-zlib use installed libz
1547 --with-libiconv-prefix=DIR
1548 search for libiconv in DIR/include and DIR/lib
1549 --with-iconv-bin=PATH specify where to find the iconv program
1550 --with-system-readline use installed readline library
1551 --with-jit-reader-dir=PATH
1552 directory to load the JIT readers from
1553 --with-expat include expat support (auto/yes/no)
1554 --with-gnu-ld assume the C compiler uses GNU ld default=no
1555 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1556 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1557 --with-python[=PYTHON] include python support
1558 (auto/yes/no/<python-program>)
1559 --with-guile[=GUILE] include guile support
1560 (auto/yes/no/<guile-version>/<pkg-config-program>)
1561 --with-intel-pt include Intel(R) Processor Trace support (auto/yes/no)
1562 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1563 --without-libipt-prefix don't search for libipt in includedir and libdir
1564 --without-included-regex
1565 don't use included regex; this is the default on
1566 systems with version 2 of the GNU C library (use
1567 with caution on other system)
1568 --with-sysroot[=DIR] search for usr/lib et al within DIR
1569 --with-system-gdbinit=PATH
1570 automatically load a system-wide gdbinit file
1571 --with-lzma support lzma compression (auto/yes/no)
1572 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1573 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1574 --with-tcl directory containing tcl configuration (tclConfig.sh)
1575 --with-tk directory containing tk configuration (tkConfig.sh)
1576 --with-x use the X Window System
1577 --with-babeltrace include babeltrace support (auto/yes/no)
1578 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1579 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1580
1581 Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 LIBS libraries to pass to the linker, e.g. -l<library>
1587 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1591 CPP C preprocessor
1592 MAKEINFO Parent configure detects if it is of sufficient version.
1593 MAKEINFOFLAGS
1594 Parameters for MAKEINFO.
1595 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1596 the first program found out of: `bison -y', `byacc', `yacc'.
1597 YFLAGS The list of arguments that will be passed by default to $YACC.
1598 This script will default YFLAGS to the empty string to avoid a
1599 default value of `-d' given by some make applications.
1600 XMKMF Path to xmkmf, Makefile generator for X Window System
1601
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1604
1605 Report bugs to the package provider.
1606 _ACEOF
1607 ac_status=$?
1608 fi
1609
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615 continue
1616 ac_builddir=.
1617
1618 case "$ac_dir" in
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *)
1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 esac ;;
1628 esac
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1633
1634 case $srcdir in
1635 .) # We are building in place.
1636 ac_srcdir=.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1643 *) # Relative name.
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647 esac
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1658 else
1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660 fi || ac_status=$?
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1662 done
1663 fi
1664
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1667 cat <<\_ACEOF
1668 configure
1669 generated by GNU Autoconf 2.64
1670
1671 Copyright (C) 2009 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1674 _ACEOF
1675 exit
1676 fi
1677
1678 ## ------------------------ ##
1679 ## Autoconf initialization. ##
1680 ## ------------------------ ##
1681
1682 # ac_fn_c_try_compile LINENO
1683 # --------------------------
1684 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_compile ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext
1689 if { { ac_try="$ac_compile"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_compile") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest.$ac_objext; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1
1714 fi
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716 return $ac_retval
1717
1718 } # ac_fn_c_try_compile
1719
1720 # ac_fn_cxx_try_compile LINENO
1721 # ----------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_cxx_try_compile ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_cxx_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752 fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1755
1756 } # ac_fn_cxx_try_compile
1757
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_cpp ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
1765 case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1777 fi
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } >/dev/null && {
1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 }; then :
1783 ac_retval=0
1784 else
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=1
1789 fi
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 return $ac_retval
1792
1793 } # ac_fn_c_try_cpp
1794
1795 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798 # the include files in INCLUDES and setting the cache variable VAR
1799 # accordingly.
1800 ac_fn_c_check_header_mongrel ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 $as_echo_n "(cached) " >&6
1808 fi
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 else
1813 # Is the header compilable?
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815 $as_echo_n "checking $2 usability... " >&6; }
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 $4
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822 ac_header_compiler=yes
1823 else
1824 ac_header_compiler=no
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828 $as_echo "$ac_header_compiler" >&6; }
1829
1830 # Is the header present?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832 $as_echo_n "checking $2 presence... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1835 #include <$2>
1836 _ACEOF
1837 if ac_fn_c_try_cpp "$LINENO"; then :
1838 ac_header_preproc=yes
1839 else
1840 ac_header_preproc=no
1841 fi
1842 rm -f conftest.err conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844 $as_echo "$ac_header_preproc" >&6; }
1845
1846 # So? What about this header?
1847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1848 yes:no: )
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 ;;
1854 no:yes:* )
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1858 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1862 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865 ;;
1866 esac
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870 $as_echo_n "(cached) " >&6
1871 else
1872 eval "$3=\$ac_header_compiler"
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 fi
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
1880 } # ac_fn_c_check_header_mongrel
1881
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1886 ac_fn_c_try_run ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_link"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>&5
1897 ac_status=$?
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900 { { case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_try") 2>&5
1907 ac_status=$?
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; }; }; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: program exited with status $ac_status" >&5
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1915
1916 ac_retval=$ac_status
1917 fi
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 return $ac_retval
1921
1922 } # ac_fn_c_try_run
1923
1924 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists and can be compiled using the include files in
1927 # INCLUDES, setting the cache variable VAR accordingly.
1928 ac_fn_c_check_header_compile ()
1929 {
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934 $as_echo_n "(cached) " >&6
1935 else
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 $4
1939 #include <$2>
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 eval "$3=yes"
1943 else
1944 eval "$3=no"
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 fi
1948 eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952
1953 } # ac_fn_c_check_header_compile
1954
1955 # ac_fn_c_try_link LINENO
1956 # -----------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_c_try_link ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 rm -f conftest.$ac_objext conftest$ac_exeext
1962 if { { ac_try="$ac_link"
1963 case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>conftest.err
1970 ac_status=$?
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1975 fi
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && {
1978 test -z "$ac_c_werror_flag" ||
1979 test ! -s conftest.err
1980 } && test -s conftest$ac_exeext && {
1981 test "$cross_compiling" = yes ||
1982 $as_test_x conftest$ac_exeext
1983 }; then :
1984 ac_retval=0
1985 else
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=1
1990 fi
1991 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993 # interfere with the next link command; also delete a directory that is
1994 # left behind by Apple's compiler. We do this before executing the actions.
1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997 return $ac_retval
1998
1999 } # ac_fn_c_try_link
2000
2001 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2002 # --------------------------------------------
2003 # Tries to find the compile-time value of EXPR in a program that includes
2004 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2005 # computed
2006 ac_fn_c_compute_int ()
2007 {
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if test "$cross_compiling" = yes; then
2010 # Depending upon the size, compute the lo and hi bounds.
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2013 $4
2014 int
2015 main ()
2016 {
2017 static int test_array [1 - 2 * !(($2) >= 0)];
2018 test_array [0] = 0
2019
2020 ;
2021 return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 ac_lo=0 ac_mid=0
2026 while :; do
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $4
2030 int
2031 main ()
2032 {
2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2034 test_array [0] = 0
2035
2036 ;
2037 return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 ac_hi=$ac_mid; break
2042 else
2043 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2044 if test $ac_lo -le $ac_mid; then
2045 ac_lo= ac_hi=
2046 break
2047 fi
2048 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 done
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $4
2056 int
2057 main ()
2058 {
2059 static int test_array [1 - 2 * !(($2) < 0)];
2060 test_array [0] = 0
2061
2062 ;
2063 return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 ac_hi=-1 ac_mid=-1
2068 while :; do
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $4
2072 int
2073 main ()
2074 {
2075 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2076 test_array [0] = 0
2077
2078 ;
2079 return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083 ac_lo=$ac_mid; break
2084 else
2085 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2086 if test $ac_mid -le $ac_hi; then
2087 ac_lo= ac_hi=
2088 break
2089 fi
2090 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 done
2094 else
2095 ac_lo= ac_hi=
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 # Binary search between lo and hi bounds.
2101 while test "x$ac_lo" != "x$ac_hi"; do
2102 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $4
2106 int
2107 main ()
2108 {
2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2110 test_array [0] = 0
2111
2112 ;
2113 return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_hi=$ac_mid
2118 else
2119 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 done
2123 case $ac_lo in #((
2124 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2125 '') ac_retval=1 ;;
2126 esac
2127 else
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2130 $4
2131 static long int longval () { return $2; }
2132 static unsigned long int ulongval () { return $2; }
2133 #include <stdio.h>
2134 #include <stdlib.h>
2135 int
2136 main ()
2137 {
2138
2139 FILE *f = fopen ("conftest.val", "w");
2140 if (! f)
2141 return 1;
2142 if (($2) < 0)
2143 {
2144 long int i = longval ();
2145 if (i != ($2))
2146 return 1;
2147 fprintf (f, "%ld", i);
2148 }
2149 else
2150 {
2151 unsigned long int i = ulongval ();
2152 if (i != ($2))
2153 return 1;
2154 fprintf (f, "%lu", i);
2155 }
2156 /* Do not output a trailing newline, as this causes \r\n confusion
2157 on some platforms. */
2158 return ferror (f) || fclose (f) != 0;
2159
2160 ;
2161 return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_run "$LINENO"; then :
2165 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2166 else
2167 ac_retval=1
2168 fi
2169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2170 conftest.$ac_objext conftest.beam conftest.$ac_ext
2171 rm -f conftest.val
2172
2173 fi
2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175 return $ac_retval
2176
2177 } # ac_fn_c_compute_int
2178
2179 # ac_fn_c_check_func LINENO FUNC VAR
2180 # ----------------------------------
2181 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2182 ac_fn_c_check_func ()
2183 {
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2188 $as_echo_n "(cached) " >&6
2189 else
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2192 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2194 #define $2 innocuous_$2
2195
2196 /* System header to define __stub macros and hopefully few prototypes,
2197 which can conflict with char $2 (); below.
2198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2199 <limits.h> exists even on freestanding compilers. */
2200
2201 #ifdef __STDC__
2202 # include <limits.h>
2203 #else
2204 # include <assert.h>
2205 #endif
2206
2207 #undef $2
2208
2209 /* Override any GCC internal prototype to avoid an error.
2210 Use char because int might match the return type of a GCC
2211 builtin and then its argument prototype would still apply. */
2212 #ifdef __cplusplus
2213 extern "C"
2214 #endif
2215 char $2 ();
2216 /* The GNU C library defines this for functions which it implements
2217 to always fail with ENOSYS. Some functions are actually named
2218 something starting with __ and the normal name is an alias. */
2219 #if defined __stub_$2 || defined __stub___$2
2220 choke me
2221 #endif
2222
2223 int
2224 main ()
2225 {
2226 return $2 ();
2227 ;
2228 return 0;
2229 }
2230 _ACEOF
2231 if ac_fn_c_try_link "$LINENO"; then :
2232 eval "$3=yes"
2233 else
2234 eval "$3=no"
2235 fi
2236 rm -f core conftest.err conftest.$ac_objext \
2237 conftest$ac_exeext conftest.$ac_ext
2238 fi
2239 eval ac_res=\$$3
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 $as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2243
2244 } # ac_fn_c_check_func
2245
2246 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2247 # -------------------------------------------
2248 # Tests whether TYPE exists after having included INCLUDES, setting cache
2249 # variable VAR accordingly.
2250 ac_fn_c_check_type ()
2251 {
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 eval "$3=no"
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2261 $4
2262 int
2263 main ()
2264 {
2265 if (sizeof ($2))
2266 return 0;
2267 ;
2268 return 0;
2269 }
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2274 $4
2275 int
2276 main ()
2277 {
2278 if (sizeof (($2)))
2279 return 0;
2280 ;
2281 return 0;
2282 }
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2285
2286 else
2287 eval "$3=yes"
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 fi
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 fi
2293 eval ac_res=\$$3
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2297
2298 } # ac_fn_c_check_type
2299
2300 # ac_fn_c_check_decl LINENO SYMBOL VAR
2301 # ------------------------------------
2302 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2303 ac_fn_c_check_decl ()
2304 {
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 as_decl_name=`echo $2|sed 's/ *(.*//'`
2307 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2309 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2310 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2311 $as_echo_n "(cached) " >&6
2312 else
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2315 $4
2316 int
2317 main ()
2318 {
2319 #ifndef $as_decl_name
2320 #ifdef __cplusplus
2321 (void) $as_decl_use;
2322 #else
2323 (void) $as_decl_name;
2324 #endif
2325 #endif
2326
2327 ;
2328 return 0;
2329 }
2330 _ACEOF
2331 if ac_fn_c_try_compile "$LINENO"; then :
2332 eval "$3=yes"
2333 else
2334 eval "$3=no"
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 fi
2338 eval ac_res=\$$3
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342
2343 } # ac_fn_c_check_decl
2344
2345 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2346 # ----------------------------------------------------
2347 # Tries to find if the field MEMBER exists in type AGGR, after including
2348 # INCLUDES, setting cache variable VAR accordingly.
2349 ac_fn_c_check_member ()
2350 {
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2353 $as_echo_n "checking for $2.$3... " >&6; }
2354 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2359 $5
2360 int
2361 main ()
2362 {
2363 static $2 ac_aggr;
2364 if (ac_aggr.$3)
2365 return 0;
2366 ;
2367 return 0;
2368 }
2369 _ACEOF
2370 if ac_fn_c_try_compile "$LINENO"; then :
2371 eval "$4=yes"
2372 else
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2375 $5
2376 int
2377 main ()
2378 {
2379 static $2 ac_aggr;
2380 if (sizeof ac_aggr.$3)
2381 return 0;
2382 ;
2383 return 0;
2384 }
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387 eval "$4=yes"
2388 else
2389 eval "$4=no"
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 fi
2395 eval ac_res=\$$4
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397 $as_echo "$ac_res" >&6; }
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399
2400 } # ac_fn_c_check_member
2401 cat >config.log <<_ACEOF
2402 This file contains any messages produced by compilers while
2403 running configure, to aid debugging if configure makes a mistake.
2404
2405 It was created by $as_me, which was
2406 generated by GNU Autoconf 2.64. Invocation command line was
2407
2408 $ $0 $@
2409
2410 _ACEOF
2411 exec 5>>config.log
2412 {
2413 cat <<_ASUNAME
2414 ## --------- ##
2415 ## Platform. ##
2416 ## --------- ##
2417
2418 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2419 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2420 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2421 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2422 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2423
2424 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2425 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2426
2427 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2428 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2429 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2430 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2431 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2432 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2433 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2434
2435 _ASUNAME
2436
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 $as_echo "PATH: $as_dir"
2443 done
2444 IFS=$as_save_IFS
2445
2446 } >&5
2447
2448 cat >&5 <<_ACEOF
2449
2450
2451 ## ----------- ##
2452 ## Core tests. ##
2453 ## ----------- ##
2454
2455 _ACEOF
2456
2457
2458 # Keep a trace of the command line.
2459 # Strip out --no-create and --no-recursion so they do not pile up.
2460 # Strip out --silent because we don't want to record it for future runs.
2461 # Also quote any args containing shell meta-characters.
2462 # Make two passes to allow for proper duplicate-argument suppression.
2463 ac_configure_args=
2464 ac_configure_args0=
2465 ac_configure_args1=
2466 ac_must_keep_next=false
2467 for ac_pass in 1 2
2468 do
2469 for ac_arg
2470 do
2471 case $ac_arg in
2472 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2473 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2474 | -silent | --silent | --silen | --sile | --sil)
2475 continue ;;
2476 *\'*)
2477 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2478 esac
2479 case $ac_pass in
2480 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2481 2)
2482 as_fn_append ac_configure_args1 " '$ac_arg'"
2483 if test $ac_must_keep_next = true; then
2484 ac_must_keep_next=false # Got value, back to normal.
2485 else
2486 case $ac_arg in
2487 *=* | --config-cache | -C | -disable-* | --disable-* \
2488 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2489 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2490 | -with-* | --with-* | -without-* | --without-* | --x)
2491 case "$ac_configure_args0 " in
2492 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2493 esac
2494 ;;
2495 -* ) ac_must_keep_next=true ;;
2496 esac
2497 fi
2498 as_fn_append ac_configure_args " '$ac_arg'"
2499 ;;
2500 esac
2501 done
2502 done
2503 { ac_configure_args0=; unset ac_configure_args0;}
2504 { ac_configure_args1=; unset ac_configure_args1;}
2505
2506 # When interrupted or exit'd, cleanup temporary files, and complete
2507 # config.log. We remove comments because anyway the quotes in there
2508 # would cause problems or look ugly.
2509 # WARNING: Use '\'' to represent an apostrophe within the trap.
2510 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2511 trap 'exit_status=$?
2512 # Save into config.log some information that might help in debugging.
2513 {
2514 echo
2515
2516 cat <<\_ASBOX
2517 ## ---------------- ##
2518 ## Cache variables. ##
2519 ## ---------------- ##
2520 _ASBOX
2521 echo
2522 # The following way of writing the cache mishandles newlines in values,
2523 (
2524 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2525 eval ac_val=\$$ac_var
2526 case $ac_val in #(
2527 *${as_nl}*)
2528 case $ac_var in #(
2529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2531 esac
2532 case $ac_var in #(
2533 _ | IFS | as_nl) ;; #(
2534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2535 *) { eval $ac_var=; unset $ac_var;} ;;
2536 esac ;;
2537 esac
2538 done
2539 (set) 2>&1 |
2540 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2541 *${as_nl}ac_space=\ *)
2542 sed -n \
2543 "s/'\''/'\''\\\\'\'''\''/g;
2544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2545 ;; #(
2546 *)
2547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2548 ;;
2549 esac |
2550 sort
2551 )
2552 echo
2553
2554 cat <<\_ASBOX
2555 ## ----------------- ##
2556 ## Output variables. ##
2557 ## ----------------- ##
2558 _ASBOX
2559 echo
2560 for ac_var in $ac_subst_vars
2561 do
2562 eval ac_val=\$$ac_var
2563 case $ac_val in
2564 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2565 esac
2566 $as_echo "$ac_var='\''$ac_val'\''"
2567 done | sort
2568 echo
2569
2570 if test -n "$ac_subst_files"; then
2571 cat <<\_ASBOX
2572 ## ------------------- ##
2573 ## File substitutions. ##
2574 ## ------------------- ##
2575 _ASBOX
2576 echo
2577 for ac_var in $ac_subst_files
2578 do
2579 eval ac_val=\$$ac_var
2580 case $ac_val in
2581 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2582 esac
2583 $as_echo "$ac_var='\''$ac_val'\''"
2584 done | sort
2585 echo
2586 fi
2587
2588 if test -s confdefs.h; then
2589 cat <<\_ASBOX
2590 ## ----------- ##
2591 ## confdefs.h. ##
2592 ## ----------- ##
2593 _ASBOX
2594 echo
2595 cat confdefs.h
2596 echo
2597 fi
2598 test "$ac_signal" != 0 &&
2599 $as_echo "$as_me: caught signal $ac_signal"
2600 $as_echo "$as_me: exit $exit_status"
2601 } >&5
2602 rm -f core *.core core.conftest.* &&
2603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2604 exit $exit_status
2605 ' 0
2606 for ac_signal in 1 2 13 15; do
2607 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2608 done
2609 ac_signal=0
2610
2611 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2612 rm -f -r conftest* confdefs.h
2613
2614 $as_echo "/* confdefs.h */" > confdefs.h
2615
2616 # Predefined preprocessor variables.
2617
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE_NAME "$PACKAGE_NAME"
2620 _ACEOF
2621
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2624 _ACEOF
2625
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2628 _ACEOF
2629
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE_STRING "$PACKAGE_STRING"
2632 _ACEOF
2633
2634 cat >>confdefs.h <<_ACEOF
2635 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2636 _ACEOF
2637
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE_URL "$PACKAGE_URL"
2640 _ACEOF
2641
2642
2643 # Let the site file select an alternate cache file if it wants to.
2644 # Prefer an explicitly selected file to automatically selected ones.
2645 ac_site_file1=NONE
2646 ac_site_file2=NONE
2647 if test -n "$CONFIG_SITE"; then
2648 ac_site_file1=$CONFIG_SITE
2649 elif test "x$prefix" != xNONE; then
2650 ac_site_file1=$prefix/share/config.site
2651 ac_site_file2=$prefix/etc/config.site
2652 else
2653 ac_site_file1=$ac_default_prefix/share/config.site
2654 ac_site_file2=$ac_default_prefix/etc/config.site
2655 fi
2656 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2657 do
2658 test "x$ac_site_file" = xNONE && continue
2659 if test -r "$ac_site_file"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2661 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2662 sed 's/^/| /' "$ac_site_file" >&5
2663 . "$ac_site_file"
2664 fi
2665 done
2666
2667 if test -r "$cache_file"; then
2668 # Some versions of bash will fail to source /dev/null (special
2669 # files actually), so we avoid doing that.
2670 if test -f "$cache_file"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2672 $as_echo "$as_me: loading cache $cache_file" >&6;}
2673 case $cache_file in
2674 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2675 *) . "./$cache_file";;
2676 esac
2677 fi
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2680 $as_echo "$as_me: creating cache $cache_file" >&6;}
2681 >$cache_file
2682 fi
2683
2684 # Check that the precious variables saved in the cache have kept the same
2685 # value.
2686 ac_cache_corrupted=false
2687 for ac_var in $ac_precious_vars; do
2688 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2689 eval ac_new_set=\$ac_env_${ac_var}_set
2690 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2691 eval ac_new_val=\$ac_env_${ac_var}_value
2692 case $ac_old_set,$ac_new_set in
2693 set,)
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2695 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2696 ac_cache_corrupted=: ;;
2697 ,set)
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2699 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2700 ac_cache_corrupted=: ;;
2701 ,);;
2702 *)
2703 if test "x$ac_old_val" != "x$ac_new_val"; then
2704 # differences in whitespace do not lead to failure.
2705 ac_old_val_w=`echo x $ac_old_val`
2706 ac_new_val_w=`echo x $ac_new_val`
2707 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2709 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2710 ac_cache_corrupted=:
2711 else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2713 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2714 eval $ac_var=\$ac_old_val
2715 fi
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2717 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2719 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2720 fi;;
2721 esac
2722 # Pass precious variables to config.status.
2723 if test "$ac_new_set" = set; then
2724 case $ac_new_val in
2725 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2726 *) ac_arg=$ac_var=$ac_new_val ;;
2727 esac
2728 case " $ac_configure_args " in
2729 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2730 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2731 esac
2732 fi
2733 done
2734 if $ac_cache_corrupted; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2738 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2739 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2740 fi
2741 ## -------------------- ##
2742 ## Main body of script. ##
2743 ## -------------------- ##
2744
2745 ac_ext=c
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750
2751
2752
2753
2754
2755 ac_config_headers="$ac_config_headers config.h:config.in"
2756
2757
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2759 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2760 # Check whether --enable-maintainer-mode was given.
2761 if test "${enable_maintainer_mode+set}" = set; then :
2762 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2763 else
2764 USE_MAINTAINER_MODE=no
2765 fi
2766
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2768 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2769 if test $USE_MAINTAINER_MODE = yes; then
2770 MAINTAINER_MODE_TRUE=
2771 MAINTAINER_MODE_FALSE='#'
2772 else
2773 MAINTAINER_MODE_TRUE='#'
2774 MAINTAINER_MODE_FALSE=
2775 fi
2776
2777 MAINT=$MAINTAINER_MODE_TRUE
2778
2779
2780
2781 # Set the 'development' global.
2782 . $srcdir/../bfd/development.sh
2783
2784 ac_ext=c
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 if test -n "$ac_tool_prefix"; then
2790 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if test "${ac_cv_prog_CC+set}" = set; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC="$CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 CC=$ac_cv_prog_CC
2818 if test -n "$CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820 $as_echo "$CC" >&6; }
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826
2827 fi
2828 if test -z "$ac_cv_prog_CC"; then
2829 ac_ct_CC=$CC
2830 # Extract the first word of "gcc", so it can be a program name with args.
2831 set dummy gcc; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 if test -n "$ac_ct_CC"; then
2838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CC="gcc"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851 done
2852 done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2858 if test -n "$ac_ct_CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2860 $as_echo "$ac_ct_CC" >&6; }
2861 else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864 fi
2865
2866 if test "x$ac_ct_CC" = x; then
2867 CC=""
2868 else
2869 case $cross_compiling:$ac_tool_warned in
2870 yes:)
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873 ac_tool_warned=yes ;;
2874 esac
2875 CC=$ac_ct_CC
2876 fi
2877 else
2878 CC="$ac_cv_prog_CC"
2879 fi
2880
2881 if test -z "$CC"; then
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2884 set dummy ${ac_tool_prefix}cc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if test "${ac_cv_prog_CC+set}" = set; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_CC="${ac_tool_prefix}cc"
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2903 fi
2904 done
2905 done
2906 IFS=$as_save_IFS
2907
2908 fi
2909 fi
2910 CC=$ac_cv_prog_CC
2911 if test -n "$CC"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913 $as_echo "$CC" >&6; }
2914 else
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2917 fi
2918
2919
2920 fi
2921 fi
2922 if test -z "$CC"; then
2923 # Extract the first word of "cc", so it can be a program name with args.
2924 set dummy cc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if test "${ac_cv_prog_CC+set}" = set; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC="$CC" # Let the user override the test.
2932 else
2933 ac_prog_rejected=no
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2942 ac_prog_rejected=yes
2943 continue
2944 fi
2945 ac_cv_prog_CC="cc"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 if test $ac_prog_rejected = yes; then
2954 # We found a bogon in the path, so make sure we never use it.
2955 set dummy $ac_cv_prog_CC
2956 shift
2957 if test $# != 0; then
2958 # We chose a different compiler from the bogus one.
2959 # However, it has the same basename, so the bogon will be chosen
2960 # first if we set CC to just the basename; use the full file name.
2961 shift
2962 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2963 fi
2964 fi
2965 fi
2966 fi
2967 CC=$ac_cv_prog_CC
2968 if test -n "$CC"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2971 else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 fi
2975
2976
2977 fi
2978 if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 for ac_prog in cl.exe
2981 do
2982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if test "${ac_cv_prog_CC+set}" = set; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi
3008 fi
3009 CC=$ac_cv_prog_CC
3010 if test -n "$CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3013 else
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016 fi
3017
3018
3019 test -n "$CC" && break
3020 done
3021 fi
3022 if test -z "$CC"; then
3023 ac_ct_CC=$CC
3024 for ac_prog in cl.exe
3025 do
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 if test -n "$ac_ct_CC"; then
3034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043 ac_cv_prog_ac_ct_CC="$ac_prog"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 break 2
3046 fi
3047 done
3048 done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3054 if test -n "$ac_ct_CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3056 $as_echo "$ac_ct_CC" >&6; }
3057 else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060 fi
3061
3062
3063 test -n "$ac_ct_CC" && break
3064 done
3065
3066 if test "x$ac_ct_CC" = x; then
3067 CC=""
3068 else
3069 case $cross_compiling:$ac_tool_warned in
3070 yes:)
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073 ac_tool_warned=yes ;;
3074 esac
3075 CC=$ac_ct_CC
3076 fi
3077 fi
3078
3079 fi
3080
3081
3082 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 as_fn_error "no acceptable C compiler found in \$PATH
3085 See \`config.log' for more details." "$LINENO" 5; }
3086
3087 # Provide some information about the compiler.
3088 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3089 set X $ac_compile
3090 ac_compiler=$2
3091 for ac_option in --version -v -V -qversion; do
3092 { { ac_try="$ac_compiler $ac_option >&5"
3093 case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096 esac
3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098 $as_echo "$ac_try_echo"; } >&5
3099 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3100 ac_status=$?
3101 if test -s conftest.err; then
3102 sed '10a\
3103 ... rest of stderr output deleted ...
3104 10q' conftest.err >conftest.er1
3105 cat conftest.er1 >&5
3106 rm -f conftest.er1 conftest.err
3107 fi
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }
3110 done
3111
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3114
3115 int
3116 main ()
3117 {
3118
3119 ;
3120 return 0;
3121 }
3122 _ACEOF
3123 ac_clean_files_save=$ac_clean_files
3124 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3125 # Try to create an executable without -o first, disregard a.out.
3126 # It will help us diagnose broken compilers, and finding out an intuition
3127 # of exeext.
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3129 $as_echo_n "checking for C compiler default output file name... " >&6; }
3130 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3131
3132 # The possible output files:
3133 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3134
3135 ac_rmfiles=
3136 for ac_file in $ac_files
3137 do
3138 case $ac_file in
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3140 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3141 esac
3142 done
3143 rm -f $ac_rmfiles
3144
3145 if { { ac_try="$ac_link_default"
3146 case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149 esac
3150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3151 $as_echo "$ac_try_echo"; } >&5
3152 (eval "$ac_link_default") 2>&5
3153 ac_status=$?
3154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155 test $ac_status = 0; }; then :
3156 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3158 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3159 # so that the user can short-circuit this test for compilers unknown to
3160 # Autoconf.
3161 for ac_file in $ac_files ''
3162 do
3163 test -f "$ac_file" || continue
3164 case $ac_file in
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3166 ;;
3167 [ab].out )
3168 # We found the default executable, but exeext='' is most
3169 # certainly right.
3170 break;;
3171 *.* )
3172 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3173 then :; else
3174 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3175 fi
3176 # We set ac_cv_exeext here because the later test for it is not
3177 # safe: cross compilers may not add the suffix if given an `-o'
3178 # argument, so we may need to know it at that point already.
3179 # Even if this section looks crufty: it has the advantage of
3180 # actually working.
3181 break;;
3182 * )
3183 break;;
3184 esac
3185 done
3186 test "$ac_cv_exeext" = no && ac_cv_exeext=
3187
3188 else
3189 ac_file=''
3190 fi
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3192 $as_echo "$ac_file" >&6; }
3193 if test -z "$ac_file"; then :
3194 $as_echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 { as_fn_set_status 77
3200 as_fn_error "C compiler cannot create executables
3201 See \`config.log' for more details." "$LINENO" 5; }; }
3202 fi
3203 ac_exeext=$ac_cv_exeext
3204
3205 # Check that the compiler produces executables we can run. If not, either
3206 # the compiler is broken, or we cross compile.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 # If not cross compiling, check that we can run a simple program.
3210 if test "$cross_compiling" != yes; then
3211 if { ac_try='./$ac_file'
3212 { { case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_try") 2>&5
3219 ac_status=$?
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }; }; then
3222 cross_compiling=no
3223 else
3224 if test "$cross_compiling" = maybe; then
3225 cross_compiling=yes
3226 else
3227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229 as_fn_error "cannot run C compiled programs.
3230 If you meant to cross compile, use \`--host'.
3231 See \`config.log' for more details." "$LINENO" 5; }
3232 fi
3233 fi
3234 fi
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236 $as_echo "yes" >&6; }
3237
3238 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3239 ac_clean_files=$ac_clean_files_save
3240 # Check that the compiler produces executables we can run. If not, either
3241 # the compiler is broken, or we cross compile.
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3243 $as_echo_n "checking whether we are cross compiling... " >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3245 $as_echo "$cross_compiling" >&6; }
3246
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3248 $as_echo_n "checking for suffix of executables... " >&6; }
3249 if { { ac_try="$ac_link"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 $as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_link") 2>&5
3257 ac_status=$?
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }; then :
3260 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3261 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3262 # work properly (i.e., refer to `conftest.exe'), while it won't with
3263 # `rm'.
3264 for ac_file in conftest.exe conftest conftest.*; do
3265 test -f "$ac_file" || continue
3266 case $ac_file in
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3268 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3269 break;;
3270 * ) break;;
3271 esac
3272 done
3273 else
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error "cannot compute suffix of executables: cannot compile and link
3277 See \`config.log' for more details." "$LINENO" 5; }
3278 fi
3279 rm -f conftest$ac_cv_exeext
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3281 $as_echo "$ac_cv_exeext" >&6; }
3282
3283 rm -f conftest.$ac_ext
3284 EXEEXT=$ac_cv_exeext
3285 ac_exeext=$EXEEXT
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3287 $as_echo_n "checking for suffix of object files... " >&6; }
3288 if test "${ac_cv_objext+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3293
3294 int
3295 main ()
3296 {
3297
3298 ;
3299 return 0;
3300 }
3301 _ACEOF
3302 rm -f conftest.o conftest.obj
3303 if { { ac_try="$ac_compile"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_compile") 2>&5
3311 ac_status=$?
3312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313 test $ac_status = 0; }; then :
3314 for ac_file in conftest.o conftest.obj conftest.*; do
3315 test -f "$ac_file" || continue;
3316 case $ac_file in
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3319 break;;
3320 esac
3321 done
3322 else
3323 $as_echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error "cannot compute suffix of object files: cannot compile
3329 See \`config.log' for more details." "$LINENO" 5; }
3330 fi
3331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3334 $as_echo "$ac_cv_objext" >&6; }
3335 OBJEXT=$ac_cv_objext
3336 ac_objext=$OBJEXT
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3338 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3339 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3344
3345 int
3346 main ()
3347 {
3348 #ifndef __GNUC__
3349 choke me
3350 #endif
3351
3352 ;
3353 return 0;
3354 }
3355 _ACEOF
3356 if ac_fn_c_try_compile "$LINENO"; then :
3357 ac_compiler_gnu=yes
3358 else
3359 ac_compiler_gnu=no
3360 fi
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3363
3364 fi
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3366 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3367 if test $ac_compiler_gnu = yes; then
3368 GCC=yes
3369 else
3370 GCC=
3371 fi
3372 ac_test_CFLAGS=${CFLAGS+set}
3373 ac_save_CFLAGS=$CFLAGS
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3375 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3376 if test "${ac_cv_prog_cc_g+set}" = set; then :
3377 $as_echo_n "(cached) " >&6
3378 else
3379 ac_save_c_werror_flag=$ac_c_werror_flag
3380 ac_c_werror_flag=yes
3381 ac_cv_prog_cc_g=no
3382 CFLAGS="-g"
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3385
3386 int
3387 main ()
3388 {
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 if ac_fn_c_try_compile "$LINENO"; then :
3395 ac_cv_prog_cc_g=yes
3396 else
3397 CFLAGS=""
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3400
3401 int
3402 main ()
3403 {
3404
3405 ;
3406 return 0;
3407 }
3408 _ACEOF
3409 if ac_fn_c_try_compile "$LINENO"; then :
3410
3411 else
3412 ac_c_werror_flag=$ac_save_c_werror_flag
3413 CFLAGS="-g"
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3416
3417 int
3418 main ()
3419 {
3420
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426 ac_cv_prog_cc_g=yes
3427 fi
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 fi
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 fi
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3434 fi
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3436 $as_echo "$ac_cv_prog_cc_g" >&6; }
3437 if test "$ac_test_CFLAGS" = set; then
3438 CFLAGS=$ac_save_CFLAGS
3439 elif test $ac_cv_prog_cc_g = yes; then
3440 if test "$GCC" = yes; then
3441 CFLAGS="-g -O2"
3442 else
3443 CFLAGS="-g"
3444 fi
3445 else
3446 if test "$GCC" = yes; then
3447 CFLAGS="-O2"
3448 else
3449 CFLAGS=
3450 fi
3451 fi
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3453 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3454 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 ac_cv_prog_cc_c89=no
3458 ac_save_CC=$CC
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461 #include <stdarg.h>
3462 #include <stdio.h>
3463 #include <sys/types.h>
3464 #include <sys/stat.h>
3465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3466 struct buf { int x; };
3467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3468 static char *e (p, i)
3469 char **p;
3470 int i;
3471 {
3472 return p[i];
3473 }
3474 static char *f (char * (*g) (char **, int), char **p, ...)
3475 {
3476 char *s;
3477 va_list v;
3478 va_start (v,p);
3479 s = g (p, va_arg (v,int));
3480 va_end (v);
3481 return s;
3482 }
3483
3484 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3485 function prototypes and stuff, but not '\xHH' hex character constants.
3486 These don't provoke an error unfortunately, instead are silently treated
3487 as 'x'. The following induces an error, until -std is added to get
3488 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3489 array size at least. It's necessary to write '\x00'==0 to get something
3490 that's true only with -std. */
3491 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3492
3493 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3494 inside strings and character constants. */
3495 #define FOO(x) 'x'
3496 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3497
3498 int test (int i, double x);
3499 struct s1 {int (*f) (int a);};
3500 struct s2 {int (*f) (double a);};
3501 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3502 int argc;
3503 char **argv;
3504 int
3505 main ()
3506 {
3507 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3513 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3514 do
3515 CC="$ac_save_CC $ac_arg"
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517 ac_cv_prog_cc_c89=$ac_arg
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext
3520 test "x$ac_cv_prog_cc_c89" != "xno" && break
3521 done
3522 rm -f conftest.$ac_ext
3523 CC=$ac_save_CC
3524
3525 fi
3526 # AC_CACHE_VAL
3527 case "x$ac_cv_prog_cc_c89" in
3528 x)
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3530 $as_echo "none needed" >&6; } ;;
3531 xno)
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3533 $as_echo "unsupported" >&6; } ;;
3534 *)
3535 CC="$CC $ac_cv_prog_cc_c89"
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3537 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3538 esac
3539 if test "x$ac_cv_prog_cc_c89" != xno; then :
3540
3541 fi
3542
3543 ac_ext=c
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548
3549 ac_ext=cpp
3550 ac_cpp='$CXXCPP $CPPFLAGS'
3551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3554 if test -z "$CXX"; then
3555 if test -n "$CCC"; then
3556 CXX=$CCC
3557 else
3558 if test -n "$ac_tool_prefix"; then
3559 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3560 do
3561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if test "${ac_cv_prog_CXX+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 if test -n "$CXX"; then
3569 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3581 fi
3582 done
3583 done
3584 IFS=$as_save_IFS
3585
3586 fi
3587 fi
3588 CXX=$ac_cv_prog_CXX
3589 if test -n "$CXX"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3591 $as_echo "$CXX" >&6; }
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3595 fi
3596
3597
3598 test -n "$CXX" && break
3599 done
3600 fi
3601 if test -z "$CXX"; then
3602 ac_ct_CXX=$CXX
3603 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3604 do
3605 # Extract the first word of "$ac_prog", so it can be a program name with args.
3606 set dummy $ac_prog; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 if test -n "$ac_ct_CXX"; then
3613 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3617 do
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 ac_cv_prog_ac_ct_CXX="$ac_prog"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 break 2
3625 fi
3626 done
3627 done
3628 IFS=$as_save_IFS
3629
3630 fi
3631 fi
3632 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3633 if test -n "$ac_ct_CXX"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3635 $as_echo "$ac_ct_CXX" >&6; }
3636 else
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3639 fi
3640
3641
3642 test -n "$ac_ct_CXX" && break
3643 done
3644
3645 if test "x$ac_ct_CXX" = x; then
3646 CXX="g++"
3647 else
3648 case $cross_compiling:$ac_tool_warned in
3649 yes:)
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3652 ac_tool_warned=yes ;;
3653 esac
3654 CXX=$ac_ct_CXX
3655 fi
3656 fi
3657
3658 fi
3659 fi
3660 # Provide some information about the compiler.
3661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3662 set X $ac_compile
3663 ac_compiler=$2
3664 for ac_option in --version -v -V -qversion; do
3665 { { ac_try="$ac_compiler $ac_option >&5"
3666 case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3673 ac_status=$?
3674 if test -s conftest.err; then
3675 sed '10a\
3676 ... rest of stderr output deleted ...
3677 10q' conftest.err >conftest.er1
3678 cat conftest.er1 >&5
3679 rm -f conftest.er1 conftest.err
3680 fi
3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682 test $ac_status = 0; }
3683 done
3684
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3686 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3687 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3692
3693 int
3694 main ()
3695 {
3696 #ifndef __GNUC__
3697 choke me
3698 #endif
3699
3700 ;
3701 return 0;
3702 }
3703 _ACEOF
3704 if ac_fn_cxx_try_compile "$LINENO"; then :
3705 ac_compiler_gnu=yes
3706 else
3707 ac_compiler_gnu=no
3708 fi
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3711
3712 fi
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3714 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3715 if test $ac_compiler_gnu = yes; then
3716 GXX=yes
3717 else
3718 GXX=
3719 fi
3720 ac_test_CXXFLAGS=${CXXFLAGS+set}
3721 ac_save_CXXFLAGS=$CXXFLAGS
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3723 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3724 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3728 ac_cxx_werror_flag=yes
3729 ac_cv_prog_cxx_g=no
3730 CXXFLAGS="-g"
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733
3734 int
3735 main ()
3736 {
3737
3738 ;
3739 return 0;
3740 }
3741 _ACEOF
3742 if ac_fn_cxx_try_compile "$LINENO"; then :
3743 ac_cv_prog_cxx_g=yes
3744 else
3745 CXXFLAGS=""
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748
3749 int
3750 main ()
3751 {
3752
3753 ;
3754 return 0;
3755 }
3756 _ACEOF
3757 if ac_fn_cxx_try_compile "$LINENO"; then :
3758
3759 else
3760 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3761 CXXFLAGS="-g"
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764
3765 int
3766 main ()
3767 {
3768
3769 ;
3770 return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_cxx_try_compile "$LINENO"; then :
3774 ac_cv_prog_cxx_g=yes
3775 fi
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777 fi
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 fi
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3782 fi
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3784 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3785 if test "$ac_test_CXXFLAGS" = set; then
3786 CXXFLAGS=$ac_save_CXXFLAGS
3787 elif test $ac_cv_prog_cxx_g = yes; then
3788 if test "$GXX" = yes; then
3789 CXXFLAGS="-g -O2"
3790 else
3791 CXXFLAGS="-g"
3792 fi
3793 else
3794 if test "$GXX" = yes; then
3795 CXXFLAGS="-O2"
3796 else
3797 CXXFLAGS=
3798 fi
3799 fi
3800 ac_ext=c
3801 ac_cpp='$CPP $CPPFLAGS'
3802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3805
3806
3807
3808 ac_ext=c
3809 ac_cpp='$CPP $CPPFLAGS'
3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3815 # On Suns, sometimes $CPP names a directory.
3816 if test -n "$CPP" && test -d "$CPP"; then
3817 CPP=
3818 fi
3819 if test -z "$CPP"; then
3820 if test "${ac_cv_prog_CPP+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 # Double quotes because CPP needs to be expanded
3824 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3825 do
3826 ac_preproc_ok=false
3827 for ac_c_preproc_warn_flag in '' yes
3828 do
3829 # Use a header file that comes with gcc, so configuring glibc
3830 # with a fresh cross-compiler works.
3831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3832 # <limits.h> exists even on freestanding compilers.
3833 # On the NeXT, cc -E runs the code through the compiler's parser,
3834 # not just through cpp. "Syntax error" is here to catch this case.
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837 #ifdef __STDC__
3838 # include <limits.h>
3839 #else
3840 # include <assert.h>
3841 #endif
3842 Syntax error
3843 _ACEOF
3844 if ac_fn_c_try_cpp "$LINENO"; then :
3845
3846 else
3847 # Broken: fails on valid input.
3848 continue
3849 fi
3850 rm -f conftest.err conftest.$ac_ext
3851
3852 # OK, works on sane cases. Now check whether nonexistent headers
3853 # can be detected and how.
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #include <ac_nonexistent.h>
3857 _ACEOF
3858 if ac_fn_c_try_cpp "$LINENO"; then :
3859 # Broken: success on invalid input.
3860 continue
3861 else
3862 # Passes both tests.
3863 ac_preproc_ok=:
3864 break
3865 fi
3866 rm -f conftest.err conftest.$ac_ext
3867
3868 done
3869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3870 rm -f conftest.err conftest.$ac_ext
3871 if $ac_preproc_ok; then :
3872 break
3873 fi
3874
3875 done
3876 ac_cv_prog_CPP=$CPP
3877
3878 fi
3879 CPP=$ac_cv_prog_CPP
3880 else
3881 ac_cv_prog_CPP=$CPP
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3884 $as_echo "$CPP" >&6; }
3885 ac_preproc_ok=false
3886 for ac_c_preproc_warn_flag in '' yes
3887 do
3888 # Use a header file that comes with gcc, so configuring glibc
3889 # with a fresh cross-compiler works.
3890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3891 # <limits.h> exists even on freestanding compilers.
3892 # On the NeXT, cc -E runs the code through the compiler's parser,
3893 # not just through cpp. "Syntax error" is here to catch this case.
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #ifdef __STDC__
3897 # include <limits.h>
3898 #else
3899 # include <assert.h>
3900 #endif
3901 Syntax error
3902 _ACEOF
3903 if ac_fn_c_try_cpp "$LINENO"; then :
3904
3905 else
3906 # Broken: fails on valid input.
3907 continue
3908 fi
3909 rm -f conftest.err conftest.$ac_ext
3910
3911 # OK, works on sane cases. Now check whether nonexistent headers
3912 # can be detected and how.
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #include <ac_nonexistent.h>
3916 _ACEOF
3917 if ac_fn_c_try_cpp "$LINENO"; then :
3918 # Broken: success on invalid input.
3919 continue
3920 else
3921 # Passes both tests.
3922 ac_preproc_ok=:
3923 break
3924 fi
3925 rm -f conftest.err conftest.$ac_ext
3926
3927 done
3928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3929 rm -f conftest.err conftest.$ac_ext
3930 if $ac_preproc_ok; then :
3931
3932 else
3933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3936 See \`config.log' for more details." "$LINENO" 5; }
3937 fi
3938
3939 ac_ext=c
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944
3945
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3947 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3948 if test "${ac_cv_path_GREP+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 if test -z "$GREP"; then
3952 ac_path_GREP_found=false
3953 # Loop through the user's path and test for each of PROGNAME-LIST
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956 do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_prog in grep ggrep; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3963 # Check for GNU ac_path_GREP and select it if it is found.
3964 # Check for GNU $ac_path_GREP
3965 case `"$ac_path_GREP" --version 2>&1` in
3966 *GNU*)
3967 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3968 *)
3969 ac_count=0
3970 $as_echo_n 0123456789 >"conftest.in"
3971 while :
3972 do
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
3976 $as_echo 'GREP' >> "conftest.nl"
3977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979 as_fn_arith $ac_count + 1 && ac_count=$as_val
3980 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_GREP="$ac_path_GREP"
3983 ac_path_GREP_max=$ac_count
3984 fi
3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3987 done
3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989 esac
3990
3991 $ac_path_GREP_found && break 3
3992 done
3993 done
3994 done
3995 IFS=$as_save_IFS
3996 if test -z "$ac_cv_path_GREP"; then
3997 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3998 fi
3999 else
4000 ac_cv_path_GREP=$GREP
4001 fi
4002
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4005 $as_echo "$ac_cv_path_GREP" >&6; }
4006 GREP="$ac_cv_path_GREP"
4007
4008
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4010 $as_echo_n "checking for egrep... " >&6; }
4011 if test "${ac_cv_path_EGREP+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4015 then ac_cv_path_EGREP="$GREP -E"
4016 else
4017 if test -z "$EGREP"; then
4018 ac_path_EGREP_found=false
4019 # Loop through the user's path and test for each of PROGNAME-LIST
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022 do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_prog in egrep; do
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4028 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4029 # Check for GNU ac_path_EGREP and select it if it is found.
4030 # Check for GNU $ac_path_EGREP
4031 case `"$ac_path_EGREP" --version 2>&1` in
4032 *GNU*)
4033 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4034 *)
4035 ac_count=0
4036 $as_echo_n 0123456789 >"conftest.in"
4037 while :
4038 do
4039 cat "conftest.in" "conftest.in" >"conftest.tmp"
4040 mv "conftest.tmp" "conftest.in"
4041 cp "conftest.in" "conftest.nl"
4042 $as_echo 'EGREP' >> "conftest.nl"
4043 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4045 as_fn_arith $ac_count + 1 && ac_count=$as_val
4046 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4047 # Best one so far, save it but keep looking for a better one
4048 ac_cv_path_EGREP="$ac_path_EGREP"
4049 ac_path_EGREP_max=$ac_count
4050 fi
4051 # 10*(2^10) chars as input seems more than enough
4052 test $ac_count -gt 10 && break
4053 done
4054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055 esac
4056
4057 $ac_path_EGREP_found && break 3
4058 done
4059 done
4060 done
4061 IFS=$as_save_IFS
4062 if test -z "$ac_cv_path_EGREP"; then
4063 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4064 fi
4065 else
4066 ac_cv_path_EGREP=$EGREP
4067 fi
4068
4069 fi
4070 fi
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4072 $as_echo "$ac_cv_path_EGREP" >&6; }
4073 EGREP="$ac_cv_path_EGREP"
4074
4075
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4077 $as_echo_n "checking for ANSI C header files... " >&6; }
4078 if test "${ac_cv_header_stdc+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083 #include <stdlib.h>
4084 #include <stdarg.h>
4085 #include <string.h>
4086 #include <float.h>
4087
4088 int
4089 main ()
4090 {
4091
4092 ;
4093 return 0;
4094 }
4095 _ACEOF
4096 if ac_fn_c_try_compile "$LINENO"; then :
4097 ac_cv_header_stdc=yes
4098 else
4099 ac_cv_header_stdc=no
4100 fi
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102
4103 if test $ac_cv_header_stdc = yes; then
4104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 #include <string.h>
4108
4109 _ACEOF
4110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4111 $EGREP "memchr" >/dev/null 2>&1; then :
4112
4113 else
4114 ac_cv_header_stdc=no
4115 fi
4116 rm -f conftest*
4117
4118 fi
4119
4120 if test $ac_cv_header_stdc = yes; then
4121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #include <stdlib.h>
4125
4126 _ACEOF
4127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4128 $EGREP "free" >/dev/null 2>&1; then :
4129
4130 else
4131 ac_cv_header_stdc=no
4132 fi
4133 rm -f conftest*
4134
4135 fi
4136
4137 if test $ac_cv_header_stdc = yes; then
4138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4139 if test "$cross_compiling" = yes; then :
4140 :
4141 else
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144 #include <ctype.h>
4145 #include <stdlib.h>
4146 #if ((' ' & 0x0FF) == 0x020)
4147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4149 #else
4150 # define ISLOWER(c) \
4151 (('a' <= (c) && (c) <= 'i') \
4152 || ('j' <= (c) && (c) <= 'r') \
4153 || ('s' <= (c) && (c) <= 'z'))
4154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4155 #endif
4156
4157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4158 int
4159 main ()
4160 {
4161 int i;
4162 for (i = 0; i < 256; i++)
4163 if (XOR (islower (i), ISLOWER (i))
4164 || toupper (i) != TOUPPER (i))
4165 return 2;
4166 return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_c_try_run "$LINENO"; then :
4170
4171 else
4172 ac_cv_header_stdc=no
4173 fi
4174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4175 conftest.$ac_objext conftest.beam conftest.$ac_ext
4176 fi
4177
4178 fi
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4181 $as_echo "$ac_cv_header_stdc" >&6; }
4182 if test $ac_cv_header_stdc = yes; then
4183
4184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4185
4186 fi
4187
4188 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4189 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4190 inttypes.h stdint.h unistd.h
4191 do :
4192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4193 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4194 "
4195 eval as_val=\$$as_ac_Header
4196 if test "x$as_val" = x""yes; then :
4197 cat >>confdefs.h <<_ACEOF
4198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4199 _ACEOF
4200
4201 fi
4202
4203 done
4204
4205
4206
4207 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4208 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4209 MINIX=yes
4210 else
4211 MINIX=
4212 fi
4213
4214
4215 if test "$MINIX" = yes; then
4216
4217 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4218
4219
4220 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4221
4222
4223 $as_echo "#define _MINIX 1" >>confdefs.h
4224
4225 fi
4226
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4229 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4230 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235
4236 # define __EXTENSIONS__ 1
4237 $ac_includes_default
4238 int
4239 main ()
4240 {
4241
4242 ;
4243 return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247 ac_cv_safe_to_define___extensions__=yes
4248 else
4249 ac_cv_safe_to_define___extensions__=no
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252 fi
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4254 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4255 test $ac_cv_safe_to_define___extensions__ = yes &&
4256 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4257
4258 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4259
4260 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4261
4262 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4263
4264 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4265
4266
4267 ac_aux_dir=
4268 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4269 for ac_t in install-sh install.sh shtool; do
4270 if test -f "$ac_dir/$ac_t"; then
4271 ac_aux_dir=$ac_dir
4272 ac_install_sh="$ac_aux_dir/$ac_t -c"
4273 break 2
4274 fi
4275 done
4276 done
4277 if test -z "$ac_aux_dir"; then
4278 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4279 fi
4280
4281 # These three variables are undocumented and unsupported,
4282 # and are intended to be withdrawn in a future Autoconf release.
4283 # They can cause serious problems if a builder's source tree is in a directory
4284 # whose full name contains unusual characters.
4285 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4286 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4287 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4288
4289
4290 # Make sure we can run config.sub.
4291 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4292 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4293
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4295 $as_echo_n "checking build system type... " >&6; }
4296 if test "${ac_cv_build+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 ac_build_alias=$build_alias
4300 test "x$ac_build_alias" = x &&
4301 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4302 test "x$ac_build_alias" = x &&
4303 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4304 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4305 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4306
4307 fi
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4309 $as_echo "$ac_cv_build" >&6; }
4310 case $ac_cv_build in
4311 *-*-*) ;;
4312 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4313 esac
4314 build=$ac_cv_build
4315 ac_save_IFS=$IFS; IFS='-'
4316 set x $ac_cv_build
4317 shift
4318 build_cpu=$1
4319 build_vendor=$2
4320 shift; shift
4321 # Remember, the first character of IFS is used to create $*,
4322 # except with old shells:
4323 build_os=$*
4324 IFS=$ac_save_IFS
4325 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4326
4327
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4329 $as_echo_n "checking host system type... " >&6; }
4330 if test "${ac_cv_host+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 if test "x$host_alias" = x; then
4334 ac_cv_host=$ac_cv_build
4335 else
4336 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4337 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4338 fi
4339
4340 fi
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4342 $as_echo "$ac_cv_host" >&6; }
4343 case $ac_cv_host in
4344 *-*-*) ;;
4345 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4346 esac
4347 host=$ac_cv_host
4348 ac_save_IFS=$IFS; IFS='-'
4349 set x $ac_cv_host
4350 shift
4351 host_cpu=$1
4352 host_vendor=$2
4353 shift; shift
4354 # Remember, the first character of IFS is used to create $*,
4355 # except with old shells:
4356 host_os=$*
4357 IFS=$ac_save_IFS
4358 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4359
4360
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4362 $as_echo_n "checking target system type... " >&6; }
4363 if test "${ac_cv_target+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test "x$target_alias" = x; then
4367 ac_cv_target=$ac_cv_host
4368 else
4369 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4370 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4371 fi
4372
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4375 $as_echo "$ac_cv_target" >&6; }
4376 case $ac_cv_target in
4377 *-*-*) ;;
4378 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4379 esac
4380 target=$ac_cv_target
4381 ac_save_IFS=$IFS; IFS='-'
4382 set x $ac_cv_target
4383 shift
4384 target_cpu=$1
4385 target_vendor=$2
4386 shift; shift
4387 # Remember, the first character of IFS is used to create $*,
4388 # except with old shells:
4389 target_os=$*
4390 IFS=$ac_save_IFS
4391 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4392
4393
4394 # The aliases save the names the user supplied, while $host etc.
4395 # will get canonicalized.
4396 test -n "$target_alias" &&
4397 test "$program_prefix$program_suffix$program_transform_name" = \
4398 NONENONEs,x,x, &&
4399 program_prefix=${target_alias}-
4400
4401 # The tests for host and target for $enable_largefile require
4402 # canonical names.
4403
4404
4405
4406 # As the $enable_largefile decision depends on --enable-plugins we must set it
4407 # even in directories otherwise not depending on the $plugins option.
4408
4409
4410 maybe_plugins=no
4411 for ac_header in dlfcn.h
4412 do :
4413 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4414 "
4415 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4416 cat >>confdefs.h <<_ACEOF
4417 #define HAVE_DLFCN_H 1
4418 _ACEOF
4419 maybe_plugins=yes
4420 fi
4421
4422 done
4423
4424 for ac_header in windows.h
4425 do :
4426 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4427 "
4428 if test "x$ac_cv_header_windows_h" = x""yes; then :
4429 cat >>confdefs.h <<_ACEOF
4430 #define HAVE_WINDOWS_H 1
4431 _ACEOF
4432 maybe_plugins=yes
4433 fi
4434
4435 done
4436
4437
4438 # Check whether --enable-plugins was given.
4439 if test "${enable_plugins+set}" = set; then :
4440 enableval=$enable_plugins; case "${enableval}" in
4441 no) plugins=no ;;
4442 *) plugins=yes
4443 if test "$maybe_plugins" != "yes" ; then
4444 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4445 fi ;;
4446 esac
4447 else
4448 plugins=$maybe_plugins
4449
4450 fi
4451
4452 if test "$plugins" = "yes"; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4454 $as_echo_n "checking for library containing dlopen... " >&6; }
4455 if test "${ac_cv_search_dlopen+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 ac_func_search_save_LIBS=$LIBS
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461
4462 /* Override any GCC internal prototype to avoid an error.
4463 Use char because int might match the return type of a GCC
4464 builtin and then its argument prototype would still apply. */
4465 #ifdef __cplusplus
4466 extern "C"
4467 #endif
4468 char dlopen ();
4469 int
4470 main ()
4471 {
4472 return dlopen ();
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 for ac_lib in '' dl; do
4478 if test -z "$ac_lib"; then
4479 ac_res="none required"
4480 else
4481 ac_res=-l$ac_lib
4482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4483 fi
4484 if ac_fn_c_try_link "$LINENO"; then :
4485 ac_cv_search_dlopen=$ac_res
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext \
4488 conftest$ac_exeext
4489 if test "${ac_cv_search_dlopen+set}" = set; then :
4490 break
4491 fi
4492 done
4493 if test "${ac_cv_search_dlopen+set}" = set; then :
4494
4495 else
4496 ac_cv_search_dlopen=no
4497 fi
4498 rm conftest.$ac_ext
4499 LIBS=$ac_func_search_save_LIBS
4500 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4502 $as_echo "$ac_cv_search_dlopen" >&6; }
4503 ac_res=$ac_cv_search_dlopen
4504 if test "$ac_res" != no; then :
4505 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4506
4507 fi
4508
4509 fi
4510
4511
4512 case "${host}" in
4513 sparc-*-solaris*|i[3-7]86-*-solaris*)
4514 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4515 # are mutually exclusive; and without procfs support, the bfd/ elf module
4516 # cannot provide certain routines such as elfcore_write_prpsinfo
4517 # or elfcore_write_prstatus. So unless the user explicitly requested
4518 # large-file support through the --enable-largefile switch, disable
4519 # large-file support in favor of procfs support.
4520 test "${target}" = "${host}" -a "x$plugins" = xno \
4521 && : ${enable_largefile="no"}
4522 ;;
4523 esac
4524
4525 # Check whether --enable-largefile was given.
4526 if test "${enable_largefile+set}" = set; then :
4527 enableval=$enable_largefile;
4528 fi
4529
4530 if test "$enable_largefile" != no; then
4531
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4533 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4534 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 ac_cv_sys_largefile_CC=no
4538 if test "$GCC" != yes; then
4539 ac_save_CC=$CC
4540 while :; do
4541 # IRIX 6.2 and later do not support large files by default,
4542 # so use the C compiler's -n32 option if that helps.
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 #include <sys/types.h>
4546 /* Check that off_t can represent 2**63 - 1 correctly.
4547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4548 since some C++ compilers masquerading as C compilers
4549 incorrectly reject 9223372036854775807. */
4550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4552 && LARGE_OFF_T % 2147483647 == 1)
4553 ? 1 : -1];
4554 int
4555 main ()
4556 {
4557
4558 ;
4559 return 0;
4560 }
4561 _ACEOF
4562 if ac_fn_c_try_compile "$LINENO"; then :
4563 break
4564 fi
4565 rm -f core conftest.err conftest.$ac_objext
4566 CC="$CC -n32"
4567 if ac_fn_c_try_compile "$LINENO"; then :
4568 ac_cv_sys_largefile_CC=' -n32'; break
4569 fi
4570 rm -f core conftest.err conftest.$ac_objext
4571 break
4572 done
4573 CC=$ac_save_CC
4574 rm -f conftest.$ac_ext
4575 fi
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4578 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4579 if test "$ac_cv_sys_largefile_CC" != no; then
4580 CC=$CC$ac_cv_sys_largefile_CC
4581 fi
4582
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4584 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4585 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 while :; do
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 #include <sys/types.h>
4592 /* Check that off_t can represent 2**63 - 1 correctly.
4593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4594 since some C++ compilers masquerading as C compilers
4595 incorrectly reject 9223372036854775807. */
4596 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4598 && LARGE_OFF_T % 2147483647 == 1)
4599 ? 1 : -1];
4600 int
4601 main ()
4602 {
4603
4604 ;
4605 return 0;
4606 }
4607 _ACEOF
4608 if ac_fn_c_try_compile "$LINENO"; then :
4609 ac_cv_sys_file_offset_bits=no; break
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614 #define _FILE_OFFSET_BITS 64
4615 #include <sys/types.h>
4616 /* Check that off_t can represent 2**63 - 1 correctly.
4617 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4618 since some C++ compilers masquerading as C compilers
4619 incorrectly reject 9223372036854775807. */
4620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4621 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4622 && LARGE_OFF_T % 2147483647 == 1)
4623 ? 1 : -1];
4624 int
4625 main ()
4626 {
4627
4628 ;
4629 return 0;
4630 }
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_sys_file_offset_bits=64; break
4634 fi
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 ac_cv_sys_file_offset_bits=unknown
4637 break
4638 done
4639 fi
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4641 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4642 case $ac_cv_sys_file_offset_bits in #(
4643 no | unknown) ;;
4644 *)
4645 cat >>confdefs.h <<_ACEOF
4646 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4647 _ACEOF
4648 ;;
4649 esac
4650 rm -rf conftest*
4651 if test $ac_cv_sys_file_offset_bits = unknown; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4653 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4654 if test "${ac_cv_sys_large_files+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 while :; do
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #include <sys/types.h>
4661 /* Check that off_t can represent 2**63 - 1 correctly.
4662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4663 since some C++ compilers masquerading as C compilers
4664 incorrectly reject 9223372036854775807. */
4665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4667 && LARGE_OFF_T % 2147483647 == 1)
4668 ? 1 : -1];
4669 int
4670 main ()
4671 {
4672
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 if ac_fn_c_try_compile "$LINENO"; then :
4678 ac_cv_sys_large_files=no; break
4679 fi
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683 #define _LARGE_FILES 1
4684 #include <sys/types.h>
4685 /* Check that off_t can represent 2**63 - 1 correctly.
4686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4687 since some C++ compilers masquerading as C compilers
4688 incorrectly reject 9223372036854775807. */
4689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4691 && LARGE_OFF_T % 2147483647 == 1)
4692 ? 1 : -1];
4693 int
4694 main ()
4695 {
4696
4697 ;
4698 return 0;
4699 }
4700 _ACEOF
4701 if ac_fn_c_try_compile "$LINENO"; then :
4702 ac_cv_sys_large_files=1; break
4703 fi
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 ac_cv_sys_large_files=unknown
4706 break
4707 done
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4710 $as_echo "$ac_cv_sys_large_files" >&6; }
4711 case $ac_cv_sys_large_files in #(
4712 no | unknown) ;;
4713 *)
4714 cat >>confdefs.h <<_ACEOF
4715 #define _LARGE_FILES $ac_cv_sys_large_files
4716 _ACEOF
4717 ;;
4718 esac
4719 rm -rf conftest*
4720 fi
4721 fi
4722
4723
4724
4725
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4728 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4729 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 am_cv_prog_cc_stdc=no
4733 ac_save_CC="$CC"
4734 # Don't try gcc -ansi; that turns off useful extensions and
4735 # breaks some systems' header files.
4736 # AIX -qlanglvl=ansi
4737 # Ultrix and OSF/1 -std1
4738 # HP-UX 10.20 and later -Ae
4739 # HP-UX older versions -Aa -D_HPUX_SOURCE
4740 # SVR4 -Xc -D__EXTENSIONS__
4741 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4742 do
4743 CC="$ac_save_CC $ac_arg"
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746 #include <stdarg.h>
4747 #include <stdio.h>
4748 #include <sys/types.h>
4749 #include <sys/stat.h>
4750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4751 struct buf { int x; };
4752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4753 static char *e (p, i)
4754 char **p;
4755 int i;
4756 {
4757 return p[i];
4758 }
4759 static char *f (char * (*g) (char **, int), char **p, ...)
4760 {
4761 char *s;
4762 va_list v;
4763 va_start (v,p);
4764 s = g (p, va_arg (v,int));
4765 va_end (v);
4766 return s;
4767 }
4768 int test (int i, double x);
4769 struct s1 {int (*f) (int a);};
4770 struct s2 {int (*f) (double a);};
4771 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4772 int argc;
4773 char **argv;
4774
4775 int
4776 main ()
4777 {
4778
4779 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4780
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786 am_cv_prog_cc_stdc="$ac_arg"; break
4787 fi
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 done
4790 CC="$ac_save_CC"
4791
4792 fi
4793
4794 if test -z "$am_cv_prog_cc_stdc"; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4796 $as_echo "none needed" >&6; }
4797 else
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4799 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4800 fi
4801 case "x$am_cv_prog_cc_stdc" in
4802 x|xno) ;;
4803 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4804 esac
4805
4806 # expand $ac_aux_dir to an absolute path
4807 am_aux_dir=`cd $ac_aux_dir && pwd`
4808
4809 if test x"${install_sh}" != xset; then
4810 case $am_aux_dir in
4811 *\ * | *\ *)
4812 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4813 *)
4814 install_sh="\${SHELL} $am_aux_dir/install-sh"
4815 esac
4816 fi
4817
4818 # Installed binaries are usually stripped using `strip' when the user
4819 # run `make install-strip'. However `strip' might not be the right
4820 # tool to use in cross-compilation environments, therefore Automake
4821 # will honor the `STRIP' environment variable to overrule this program.
4822 if test "$cross_compiling" != no; then
4823 if test -n "$ac_tool_prefix"; then
4824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4825 set dummy ${ac_tool_prefix}strip; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_prog_STRIP+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 if test -n "$STRIP"; then
4832 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4844 fi
4845 done
4846 done
4847 IFS=$as_save_IFS
4848
4849 fi
4850 fi
4851 STRIP=$ac_cv_prog_STRIP
4852 if test -n "$STRIP"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4854 $as_echo "$STRIP" >&6; }
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4858 fi
4859
4860
4861 fi
4862 if test -z "$ac_cv_prog_STRIP"; then
4863 ac_ct_STRIP=$STRIP
4864 # Extract the first word of "strip", so it can be a program name with args.
4865 set dummy strip; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 if test -n "$ac_ct_STRIP"; then
4872 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_STRIP="strip"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885 done
4886 done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4892 if test -n "$ac_ct_STRIP"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4894 $as_echo "$ac_ct_STRIP" >&6; }
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4898 fi
4899
4900 if test "x$ac_ct_STRIP" = x; then
4901 STRIP=":"
4902 else
4903 case $cross_compiling:$ac_tool_warned in
4904 yes:)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned=yes ;;
4908 esac
4909 STRIP=$ac_ct_STRIP
4910 fi
4911 else
4912 STRIP="$ac_cv_prog_STRIP"
4913 fi
4914
4915 fi
4916 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4917
4918
4919 ac_aux_dir=
4920 for ac_dir in .. "$srcdir"/..; do
4921 for ac_t in install-sh install.sh shtool; do
4922 if test -f "$ac_dir/$ac_t"; then
4923 ac_aux_dir=$ac_dir
4924 ac_install_sh="$ac_aux_dir/$ac_t -c"
4925 break 2
4926 fi
4927 done
4928 done
4929 if test -z "$ac_aux_dir"; then
4930 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4931 fi
4932
4933 # These three variables are undocumented and unsupported,
4934 # and are intended to be withdrawn in a future Autoconf release.
4935 # They can cause serious problems if a builder's source tree is in a directory
4936 # whose full name contains unusual characters.
4937 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4938 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4939 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4940
4941
4942
4943 test "$program_prefix" != NONE &&
4944 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4945 # Use a double $ so make ignores it.
4946 test "$program_suffix" != NONE &&
4947 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4948 # Double any \ or $.
4949 # By default was `s,x,x', remove it if useless.
4950 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4951 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4952
4953
4954 # See if we are building with C++, and substitute COMPILER.
4955
4956 # Check whether --enable-build-with-cxx was given.
4957 if test "${enable_build_with_cxx+set}" = set; then :
4958 enableval=$enable_build_with_cxx; case $enableval in
4959 yes | no)
4960 ;;
4961 *)
4962 as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4963 esac
4964 else
4965 enable_build_with_cxx=no
4966 fi
4967
4968
4969 if test "$enable_build_with_cxx" = "yes"; then
4970 # We're using -fpermissive as shortcut for now.
4971 COMPILER='$(CXX) -fpermissive'
4972 else
4973 COMPILER='$(CC)'
4974 fi
4975
4976
4977
4978 # Dependency checking.
4979 rm -rf .tst 2>/dev/null
4980 mkdir .tst 2>/dev/null
4981 if test -d .tst; then
4982 am__leading_dot=.
4983 else
4984 am__leading_dot=_
4985 fi
4986 rmdir .tst 2>/dev/null
4987
4988 DEPDIR="${am__leading_dot}deps"
4989
4990 ac_config_commands="$ac_config_commands depdir"
4991
4992
4993 depcc="$CC" am_compiler_list=
4994
4995 am_depcomp=$ac_aux_dir/depcomp
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4997 $as_echo_n "checking dependency style of $depcc... " >&6; }
4998 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 if test -f "$am_depcomp"; then
5002 # We make a subdir and do the tests there. Otherwise we can end up
5003 # making bogus files that we don't know about and never remove. For
5004 # instance it was reported that on HP-UX the gcc test will end up
5005 # making a dummy file named `D' -- because `-MD' means `put the output
5006 # in D'.
5007 mkdir conftest.dir
5008 # Copy depcomp to subdir because otherwise we won't find it if we're
5009 # using a relative directory.
5010 cp "$am_depcomp" conftest.dir
5011 cd conftest.dir
5012 # We will build objects and dependencies in a subdirectory because
5013 # it helps to detect inapplicable dependency modes. For instance
5014 # both Tru64's cc and ICC support -MD to output dependencies as a
5015 # side effect of compilation, but ICC will put the dependencies in
5016 # the current directory while Tru64 will put them in the object
5017 # directory.
5018 mkdir sub
5019
5020 am_cv_CC_dependencies_compiler_type=none
5021 if test "$am_compiler_list" = ""; then
5022 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5023 fi
5024 for depmode in $am_compiler_list; do
5025 if test $depmode = none; then break; fi
5026
5027 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5028 # Setup a source with many dependencies, because some compilers
5029 # like to wrap large dependency lists on column 80 (with \), and
5030 # we should not choose a depcomp mode which is confused by this.
5031 #
5032 # We need to recreate these files for each test, as the compiler may
5033 # overwrite some of them when testing with obscure command lines.
5034 # This happens at least with the AIX C compiler.
5035 : > sub/conftest.c
5036 for i in 1 2 3 4 5 6; do
5037 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5038 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5039 # Solaris 8's {/usr,}/bin/sh.
5040 touch sub/conftst$i.h
5041 done
5042 echo "include sub/conftest.Po" > confmf
5043
5044 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5045 # mode. It turns out that the SunPro C++ compiler does not properly
5046 # handle `-M -o', and we need to detect this.
5047 depcmd="depmode=$depmode \
5048 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5049 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5050 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5051 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5052 if env $depcmd > conftest.err 2>&1 &&
5053 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5054 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5055 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5056 # icc doesn't choke on unknown options, it will just issue warnings
5057 # or remarks (even with -Werror). So we grep stderr for any message
5058 # that says an option was ignored or not supported.
5059 # When given -MP, icc 7.0 and 7.1 complain thusly:
5060 # icc: Command line warning: ignoring option '-M'; no argument required
5061 # The diagnosis changed in icc 8.0:
5062 # icc: Command line remark: option '-MP' not supported
5063 if (grep 'ignoring option' conftest.err ||
5064 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5065 am_cv_CC_dependencies_compiler_type=$depmode
5066 $as_echo "$as_me:$LINENO: success" >&5
5067 break
5068 fi
5069 fi
5070 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5071 sed -e 's/^/| /' < conftest.err >&5
5072 done
5073
5074 cd ..
5075 rm -rf conftest.dir
5076 else
5077 am_cv_CC_dependencies_compiler_type=none
5078 fi
5079
5080 fi
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5082 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5083 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
5084 then as_fn_error "no usable dependency style found" "$LINENO" 5
5085 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5086
5087 fi
5088
5089
5090 # Check for the 'make' the user wants to use.
5091 for ac_prog in make
5092 do
5093 # Extract the first word of "$ac_prog", so it can be a program name with args.
5094 set dummy $ac_prog; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_MAKE+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -n "$MAKE"; then
5101 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_MAKE="$ac_prog"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 MAKE=$ac_cv_prog_MAKE
5121 if test -n "$MAKE"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5123 $as_echo "$MAKE" >&6; }
5124 else
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129
5130 test -n "$MAKE" && break
5131 done
5132
5133 MAKE_IS_GNU=
5134 case "`$MAKE --version 2>&1 | sed 1q`" in
5135 *GNU*)
5136 MAKE_IS_GNU=yes
5137 ;;
5138 esac
5139 if test "$MAKE_IS_GNU" = yes; then
5140 GMAKE_TRUE=
5141 GMAKE_FALSE='#'
5142 else
5143 GMAKE_TRUE='#'
5144 GMAKE_FALSE=
5145 fi
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5148 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5149 set x ${MAKE-make}
5150 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5151 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 cat >conftest.make <<\_ACEOF
5155 SHELL = /bin/sh
5156 all:
5157 @echo '@@@%%%=$(MAKE)=@@@%%%'
5158 _ACEOF
5159 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5160 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5161 *@@@%%%=?*=@@@%%%*)
5162 eval ac_cv_prog_make_${ac_make}_set=yes;;
5163 *)
5164 eval ac_cv_prog_make_${ac_make}_set=no;;
5165 esac
5166 rm -f conftest.make
5167 fi
5168 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5170 $as_echo "yes" >&6; }
5171 SET_MAKE=
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 SET_MAKE="MAKE=${MAKE-make}"
5176 fi
5177
5178
5179 gnulib_extra_configure_args=
5180 # If large-file support is disabled, make sure gnulib does the same.
5181 if test "$enable_largefile" = no; then
5182 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
5183 fi
5184
5185 # Configure gnulib. We need to build gnulib under some other
5186 # directory not "gnulib", to avoid the problem of both GDB and
5187 # GDBserver wanting to build it in the same directory, when building
5188 # in the source dir.
5189
5190 in_src="gnulib"
5191 in_build="build-gnulib"
5192 in_extra_args="$gnulib_extra_configure_args"
5193
5194 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5195 # so they do not pile up.
5196 ac_sub_configure_args=
5197 ac_prev=
5198 eval "set x $ac_configure_args"
5199 shift
5200 for ac_arg
5201 do
5202 if test -n "$ac_prev"; then
5203 ac_prev=
5204 continue
5205 fi
5206 case $ac_arg in
5207 -cache-file | --cache-file | --cache-fil | --cache-fi \
5208 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5209 ac_prev=cache_file ;;
5210 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5211 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5212 | --c=*)
5213 ;;
5214 --config-cache | -C)
5215 ;;
5216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5217 ac_prev=srcdir ;;
5218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5219 ;;
5220 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5221 ac_prev=prefix ;;
5222 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5223 ;;
5224 --disable-option-checking)
5225 ;;
5226 *)
5227 case $ac_arg in
5228 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5229 esac
5230 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5231 esac
5232 done
5233
5234 # Always prepend --prefix to ensure using the same prefix
5235 # in subdir configurations.
5236 ac_arg="--prefix=$prefix"
5237 case $ac_arg in
5238 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5239 esac
5240 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
5241
5242 # Pass --silent
5243 if test "$silent" = yes; then
5244 ac_sub_configure_args="--silent $ac_sub_configure_args"
5245 fi
5246
5247 # Always prepend --disable-option-checking to silence warnings, since
5248 # different subdirs can have different --enable and --with options.
5249 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
5250
5251 ac_popdir=`pwd`
5252 ac_dir=$in_build
5253
5254 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5255 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5256 $as_echo "$ac_msg" >&6
5257 as_dir="$ac_dir"; as_fn_mkdir_p
5258
5259 case $srcdir in
5260 [\\/]* | ?:[\\/]* )
5261 ac_srcdir=$srcdir/$in_src ;;
5262 *) # Relative name.
5263 ac_srcdir=../$srcdir/$in_src ;;
5264 esac
5265
5266 cd "$ac_dir"
5267
5268 ac_sub_configure=$ac_srcdir/configure
5269
5270 # Make the cache file name correct relative to the subdirectory.
5271 case $cache_file in
5272 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5273 *) # Relative name.
5274 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5275 esac
5276
5277 if test -n "$in_extra_args"; then
5278 # Add the extra args at the end.
5279 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
5280 fi
5281
5282 { $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
5283 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5284 # The eval makes quoting arguments work.
5285 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5286 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5287 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5288
5289 cd "$ac_popdir"
5290
5291
5292
5293 CONFIG_OBS=
5294 CONFIG_DEPS=
5295 CONFIG_SRCS=
5296 ENABLE_CFLAGS=
5297
5298 CONFIG_ALL=
5299 CONFIG_CLEAN=
5300 CONFIG_INSTALL=
5301 CONFIG_UNINSTALL=
5302
5303 # If we haven't got the data from the intl directory,
5304 # assume NLS is disabled.
5305 USE_NLS=no
5306 LIBINTL=
5307 LIBINTL_DEP=
5308 INCINTL=
5309 XGETTEXT=
5310 GMSGFMT=
5311 POSUB=
5312
5313 if test -f ../intl/config.intl; then
5314 . ../intl/config.intl
5315 fi
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5317 $as_echo_n "checking whether NLS is requested... " >&6; }
5318 if test x"$USE_NLS" != xyes; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5321 else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5323 $as_echo "yes" >&6; }
5324
5325 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5326
5327
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5329 $as_echo_n "checking for catalogs to be installed... " >&6; }
5330 # Look for .po and .gmo files in the source directory.
5331 CATALOGS=
5332 XLINGUAS=
5333 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5334 # If there aren't any .gmo files the shell will give us the
5335 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5336 # weeded out.
5337 case "$cat" in *\**)
5338 continue;;
5339 esac
5340 # The quadruple backslash is collapsed to a double backslash
5341 # by the backticks, then collapsed again by the double quotes,
5342 # leaving us with one backslash in the sed expression (right
5343 # before the dot that mustn't act as a wildcard).
5344 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5345 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5346 # The user is allowed to set LINGUAS to a list of languages to
5347 # install catalogs for. If it's empty that means "all of them."
5348 if test "x$LINGUAS" = x; then
5349 CATALOGS="$CATALOGS $cat"
5350 XLINGUAS="$XLINGUAS $lang"
5351 else
5352 case "$LINGUAS" in *$lang*)
5353 CATALOGS="$CATALOGS $cat"
5354 XLINGUAS="$XLINGUAS $lang"
5355 ;;
5356 esac
5357 fi
5358 done
5359 LINGUAS="$XLINGUAS"
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5361 $as_echo "$LINGUAS" >&6; }
5362
5363
5364 DATADIRNAME=share
5365
5366 INSTOBJEXT=.mo
5367
5368 GENCAT=gencat
5369
5370 CATOBJEXT=.gmo
5371
5372 fi
5373
5374 localedir='${datadir}/locale'
5375
5376
5377 if test x"$USE_NLS" = xyes; then
5378 CONFIG_ALL="$CONFIG_ALL all-po"
5379 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5380 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5381 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5382 fi
5383
5384 GNULIB=build-gnulib/import
5385
5386 # For Makefile dependencies.
5387 GNULIB_STDINT_H=
5388 if test x"$STDINT_H" != x; then
5389 GNULIB_STDINT_H=$GNULIB/$STDINT_H
5390 fi
5391
5392
5393 PACKAGE=gdb
5394
5395 cat >>confdefs.h <<_ACEOF
5396 #define PACKAGE "$PACKAGE"
5397 _ACEOF
5398
5399
5400
5401 # We never need to detect it in this sub-configure.
5402 # But preserve it for config.status --recheck.
5403
5404
5405
5406 MAKEINFO_EXTRA_FLAGS=""
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5408 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5409 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5413 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5414 gdb_cv_have_makeinfo_click=yes
5415 else
5416 gdb_cv_have_makeinfo_click=no
5417 fi
5418 fi
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5420 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5421 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
5422 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5423 fi
5424
5425
5426
5427
5428 # Check whether --with-separate-debug-dir was given.
5429 if test "${with_separate_debug_dir+set}" = set; then :
5430 withval=$with_separate_debug_dir;
5431 DEBUGDIR=$withval
5432 else
5433 DEBUGDIR=${libdir}/debug
5434 fi
5435
5436
5437 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5438 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5439 ac_define_dir=`eval echo $DEBUGDIR`
5440 ac_define_dir=`eval echo $ac_define_dir`
5441
5442 cat >>confdefs.h <<_ACEOF
5443 #define DEBUGDIR "$ac_define_dir"
5444 _ACEOF
5445
5446
5447
5448
5449 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5450 if test "x$prefix" = xNONE; then
5451 test_prefix=/usr/local
5452 else
5453 test_prefix=$prefix
5454 fi
5455 else
5456 test_prefix=$exec_prefix
5457 fi
5458 value=0
5459 case ${ac_define_dir} in
5460 "${test_prefix}"|"${test_prefix}/"*|\
5461 '${exec_prefix}'|'${exec_prefix}/'*)
5462 value=1
5463 ;;
5464 esac
5465
5466 cat >>confdefs.h <<_ACEOF
5467 #define DEBUGDIR_RELOCATABLE $value
5468 _ACEOF
5469
5470
5471
5472
5473 # We can't pass paths as command line arguments.
5474 # Mingw32 tries to be clever and will convert the paths for us.
5475 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5476 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5477 # This breaks GDB's relocatable path conversions since paths passed in
5478 # config.h would not get so translated, the path prefixes no longer match.
5479
5480 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5482 ac_define_dir=`eval echo $bindir`
5483 ac_define_dir=`eval echo $ac_define_dir`
5484
5485 cat >>confdefs.h <<_ACEOF
5486 #define BINDIR "$ac_define_dir"
5487 _ACEOF
5488
5489
5490
5491 # GDB's datadir relocation
5492
5493
5494
5495 # Check whether --with-gdb-datadir was given.
5496 if test "${with_gdb_datadir+set}" = set; then :
5497 withval=$with_gdb_datadir;
5498 GDB_DATADIR=$withval
5499 else
5500 GDB_DATADIR=${datadir}/gdb
5501 fi
5502
5503
5504 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5506 ac_define_dir=`eval echo $GDB_DATADIR`
5507 ac_define_dir=`eval echo $ac_define_dir`
5508
5509 cat >>confdefs.h <<_ACEOF
5510 #define GDB_DATADIR "$ac_define_dir"
5511 _ACEOF
5512
5513
5514
5515
5516 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5517 if test "x$prefix" = xNONE; then
5518 test_prefix=/usr/local
5519 else
5520 test_prefix=$prefix
5521 fi
5522 else
5523 test_prefix=$exec_prefix
5524 fi
5525 value=0
5526 case ${ac_define_dir} in
5527 "${test_prefix}"|"${test_prefix}/"*|\
5528 '${exec_prefix}'|'${exec_prefix}/'*)
5529 value=1
5530 ;;
5531 esac
5532
5533 cat >>confdefs.h <<_ACEOF
5534 #define GDB_DATADIR_RELOCATABLE $value
5535 _ACEOF
5536
5537
5538
5539
5540
5541 # Check whether --with-relocated-sources was given.
5542 if test "${with_relocated_sources+set}" = set; then :
5543 withval=$with_relocated_sources; reloc_srcdir="${withval}"
5544
5545 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5547 ac_define_dir=`eval echo $reloc_srcdir`
5548 ac_define_dir=`eval echo $ac_define_dir`
5549
5550 cat >>confdefs.h <<_ACEOF
5551 #define RELOC_SRCDIR "$ac_define_dir"
5552 _ACEOF
5553
5554
5555
5556 fi
5557
5558
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5560 $as_echo_n "checking for default auto-load directory... " >&6; }
5561
5562 # Check whether --with-auto-load-dir was given.
5563 if test "${with_auto_load_dir+set}" = set; then :
5564 withval=$with_auto_load_dir;
5565 else
5566 with_auto_load_dir='$debugdir:$datadir/auto-load'
5567 fi
5568
5569 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5570
5571 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5572 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5573 ac_define_dir=`eval echo $escape_dir`
5574 ac_define_dir=`eval echo $ac_define_dir`
5575
5576 cat >>confdefs.h <<_ACEOF
5577 #define AUTO_LOAD_DIR "$ac_define_dir"
5578 _ACEOF
5579
5580
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5582 $as_echo "$with_auto_load_dir" >&6; }
5583
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5585 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5586
5587 # Check whether --with-auto-load-safe-path was given.
5588 if test "${with_auto_load_safe_path+set}" = set; then :
5589 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5590 with_auto_load_safe_path="/"
5591 fi
5592 else
5593 with_auto_load_safe_path="$with_auto_load_dir"
5594 fi
5595
5596 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5597
5598 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5600 ac_define_dir=`eval echo $escape_dir`
5601 ac_define_dir=`eval echo $ac_define_dir`
5602
5603 cat >>confdefs.h <<_ACEOF
5604 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5605 _ACEOF
5606
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5609 $as_echo "$with_auto_load_safe_path" >&6; }
5610
5611
5612
5613 subdirs="$subdirs testsuite"
5614
5615
5616 # Check whether to support alternative target configurations
5617 # Check whether --enable-targets was given.
5618 if test "${enable_targets+set}" = set; then :
5619 enableval=$enable_targets; case "${enableval}" in
5620 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5621 ;;
5622 no) enable_targets= ;;
5623 *) enable_targets=$enableval ;;
5624 esac
5625 fi
5626
5627
5628 # Check whether to enable 64-bit support on 32-bit hosts
5629 # Check whether --enable-64-bit-bfd was given.
5630 if test "${enable_64_bit_bfd+set}" = set; then :
5631 enableval=$enable_64_bit_bfd; case "${enableval}" in
5632 yes) want64=true ;;
5633 no) want64=false ;;
5634 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5635 esac
5636 else
5637 want64=false
5638 fi
5639
5640 # Provide defaults for some variables set by the per-host and per-target
5641 # configuration.
5642 gdb_host_obs=posix-hdep.o
5643
5644 if test "${target}" = "${host}"; then
5645 gdb_native=yes
5646 else
5647 gdb_native=no
5648 fi
5649
5650 . $srcdir/configure.host
5651
5652 # Add in the common host objects.
5653 . $srcdir/common/common.host
5654 gdb_host_obs="$gdb_host_obs $common_host_obs"
5655
5656 # Accumulate some settings from configure.tgt over all enabled targets
5657
5658 TARGET_OBS=
5659 all_targets=
5660 HAVE_NATIVE_GCORE_TARGET=
5661
5662 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5663 do
5664 if test "$targ_alias" = "all"; then
5665 all_targets=true
5666 else
5667 # Canonicalize the secondary target names.
5668 result=`$ac_config_sub $targ_alias 2>/dev/null`
5669 if test -n "$result"; then
5670 targ=$result
5671 else
5672 targ=$targ_alias
5673 fi
5674
5675 . ${srcdir}/configure.tgt
5676
5677 if test -z "${gdb_target_obs}"; then :
5678 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5679 fi
5680
5681 # Target-specific object files
5682 for i in ${gdb_target_obs}; do
5683 case " $TARGET_OBS " in
5684 *" ${i} "*) ;;
5685 *)
5686 TARGET_OBS="$TARGET_OBS ${i}"
5687 ;;
5688 esac
5689 done
5690
5691 # Check whether this target needs 64-bit CORE_ADDR
5692 if test x${want64} = xfalse; then
5693 . ${srcdir}/../bfd/config.bfd
5694 fi
5695
5696 # Check whether this target is native and supports gcore.
5697 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5698 && $gdb_have_gcore; then
5699 HAVE_NATIVE_GCORE_TARGET=1
5700 fi
5701 fi
5702 done
5703
5704 if test x${all_targets} = xtrue; then
5705
5706 # We want all 64-bit targets if we either:
5707 # - run on a 64-bit host or
5708 # - already require 64-bit support for some other target or
5709 # - the --enable-64-bit-bfd option was supplied
5710 # Otherwise we only support all 32-bit targets.
5711 #
5712 # NOTE: This test must be in sync with the corresponding
5713 # tests in BFD!
5714
5715 if test x${want64} = xfalse; then
5716 # The cast to long int works around a bug in the HP C Compiler
5717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5719 # This bug is HP SR number 8606223364.
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5721 $as_echo_n "checking size of long... " >&6; }
5722 if test "${ac_cv_sizeof_long+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5726
5727 else
5728 if test "$ac_cv_type_long" = yes; then
5729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5731 { as_fn_set_status 77
5732 as_fn_error "cannot compute sizeof (long)
5733 See \`config.log' for more details." "$LINENO" 5; }; }
5734 else
5735 ac_cv_sizeof_long=0
5736 fi
5737 fi
5738
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5741 $as_echo "$ac_cv_sizeof_long" >&6; }
5742
5743
5744
5745 cat >>confdefs.h <<_ACEOF
5746 #define SIZEOF_LONG $ac_cv_sizeof_long
5747 _ACEOF
5748
5749
5750 if test "x${ac_cv_sizeof_long}" = "x8"; then
5751 want64=true
5752 fi
5753 fi
5754 if test x${want64} = xtrue; then
5755 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5756 else
5757 TARGET_OBS='$(ALL_TARGET_OBS)'
5758 fi
5759 fi
5760
5761
5762
5763
5764 # For other settings, only the main target counts.
5765 gdb_sim=
5766 gdb_osabi=
5767 build_gdbserver=
5768 targ=$target; . ${srcdir}/configure.tgt
5769
5770 # Fetch the default architecture and default target vector from BFD.
5771 targ=$target; . $srcdir/../bfd/config.bfd
5772
5773 # We only want the first architecture, so strip off the others if
5774 # there is more than one.
5775 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5776
5777 if test "x$targ_archs" != x; then
5778
5779 cat >>confdefs.h <<_ACEOF
5780 #define DEFAULT_BFD_ARCH $targ_archs
5781 _ACEOF
5782
5783 fi
5784 if test "x$targ_defvec" != x; then
5785
5786 cat >>confdefs.h <<_ACEOF
5787 #define DEFAULT_BFD_VEC $targ_defvec
5788 _ACEOF
5789
5790 fi
5791
5792 # The CLI cannot be disabled yet, but may be in the future.
5793
5794 # Enable CLI.
5795 # Check whether --enable-gdbcli was given.
5796 if test "${enable_gdbcli+set}" = set; then :
5797 enableval=$enable_gdbcli; case $enableval in
5798 yes)
5799 ;;
5800 no)
5801 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5802 *)
5803 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5804 esac
5805 else
5806 enable_gdbcli=yes
5807 fi
5808
5809 if test x"$enable_gdbcli" = xyes; then
5810 if test -d $srcdir/cli; then
5811 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5812 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5813 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5814 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5815 fi
5816 fi
5817
5818 # Enable MI.
5819 # Check whether --enable-gdbmi was given.
5820 if test "${enable_gdbmi+set}" = set; then :
5821 enableval=$enable_gdbmi; case $enableval in
5822 yes | no)
5823 ;;
5824 *)
5825 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5826 esac
5827 else
5828 enable_gdbmi=yes
5829 fi
5830
5831 if test x"$enable_gdbmi" = xyes; then
5832 if test -d $srcdir/mi; then
5833 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5834 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5835 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5836 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5837 fi
5838 fi
5839
5840 # Enable TUI.
5841 # Check whether --enable-tui was given.
5842 if test "${enable_tui+set}" = set; then :
5843 enableval=$enable_tui; case $enableval in
5844 yes | no | auto)
5845 ;;
5846 *)
5847 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5848 esac
5849 else
5850 enable_tui=auto
5851 fi
5852
5853
5854 # Enable gdbtk.
5855 # Check whether --enable-gdbtk was given.
5856 if test "${enable_gdbtk+set}" = set; then :
5857 enableval=$enable_gdbtk; case $enableval in
5858 yes | no)
5859 ;;
5860 *)
5861 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5862 esac
5863 else
5864 if test -d $srcdir/gdbtk; then
5865 enable_gdbtk=yes
5866 else
5867 enable_gdbtk=no
5868 fi
5869 fi
5870
5871 # We unconditionally disable gdbtk tests on selected platforms.
5872 case $host_os in
5873 go32* | windows*)
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5875 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5876 enable_gdbtk=no ;;
5877 esac
5878
5879 # Libunwind support for ia64.
5880
5881
5882 # Check whether --with-libunwind-ia64 was given.
5883 if test "${with_libunwind_ia64+set}" = set; then :
5884 withval=$with_libunwind_ia64;
5885 else
5886 with_libunwind_ia64=auto
5887 fi
5888
5889
5890 # Backward compatibility option.
5891 if test "${with_libunwind+set}" = set; then
5892 if test x"$with_libunwind_ia64" != xauto; then
5893 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5894 fi
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5896 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5897 with_libunwind_ia64="$with_libunwind"
5898 fi
5899
5900 case "$with_libunwind_ia64" in
5901 yes | no)
5902 ;;
5903 auto)
5904 for ac_header in libunwind-ia64.h
5905 do :
5906 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5907 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5908 cat >>confdefs.h <<_ACEOF
5909 #define HAVE_LIBUNWIND_IA64_H 1
5910 _ACEOF
5911
5912 fi
5913
5914 done
5915
5916 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5917 ;;
5918 *)
5919 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5920 ;;
5921 esac
5922
5923 if test x"$with_libunwind_ia64" = xyes; then
5924 for ac_header in libunwind-ia64.h
5925 do :
5926 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5927 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5928 cat >>confdefs.h <<_ACEOF
5929 #define HAVE_LIBUNWIND_IA64_H 1
5930 _ACEOF
5931
5932 fi
5933
5934 done
5935
5936 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5937 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5938 fi
5939 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5940 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5941 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5942 fi
5943
5944 opt_curses=no
5945
5946 # Check whether --with-curses was given.
5947 if test "${with_curses+set}" = set; then :
5948 withval=$with_curses; opt_curses=$withval
5949 fi
5950
5951
5952 prefer_curses=no
5953 if test "$opt_curses" = "yes"; then
5954 prefer_curses=yes
5955 fi
5956
5957 # Profiling support.
5958 # Check whether --enable-profiling was given.
5959 if test "${enable_profiling+set}" = set; then :
5960 enableval=$enable_profiling; case $enableval in
5961 yes | no)
5962 ;;
5963 *)
5964 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5965 esac
5966 else
5967 enable_profiling=no
5968 fi
5969
5970
5971 for ac_func in monstartup _mcleanup
5972 do :
5973 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5974 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5975 eval as_val=\$$as_ac_var
5976 if test "x$as_val" = x""yes; then :
5977 cat >>confdefs.h <<_ACEOF
5978 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5979 _ACEOF
5980
5981 fi
5982 done
5983
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5985 $as_echo_n "checking for _etext... " >&6; }
5986 if test "${ac_cv_var__etext+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5991 #include <stdlib.h>
5992 extern char _etext;
5993
5994 int
5995 main ()
5996 {
5997 free (&_etext);
5998 ;
5999 return 0;
6000 }
6001 _ACEOF
6002 if ac_fn_c_try_link "$LINENO"; then :
6003 ac_cv_var__etext=yes
6004 else
6005 ac_cv_var__etext=no
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext \
6008 conftest$ac_exeext conftest.$ac_ext
6009 fi
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6011 $as_echo "$ac_cv_var__etext" >&6; }
6012 if test $ac_cv_var__etext = yes; then
6013
6014 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6015
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6018 $as_echo_n "checking for etext... " >&6; }
6019 if test "${ac_cv_var_etext+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 #include <stdlib.h>
6025 extern char etext;
6026
6027 int
6028 main ()
6029 {
6030 free (&etext);
6031 ;
6032 return 0;
6033 }
6034 _ACEOF
6035 if ac_fn_c_try_link "$LINENO"; then :
6036 ac_cv_var_etext=yes
6037 else
6038 ac_cv_var_etext=no
6039 fi
6040 rm -f core conftest.err conftest.$ac_objext \
6041 conftest$ac_exeext conftest.$ac_ext
6042 fi
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6044 $as_echo "$ac_cv_var_etext" >&6; }
6045 if test $ac_cv_var_etext = yes; then
6046
6047 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6048
6049 fi
6050 if test "$enable_profiling" = yes ; then
6051 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6052 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6053 fi
6054 PROFILE_CFLAGS=-pg
6055 OLD_CFLAGS="$CFLAGS"
6056 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6057
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6059 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6060 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065
6066 int
6067 main ()
6068 {
6069 int x;
6070 ;
6071 return 0;
6072 }
6073 _ACEOF
6074 if ac_fn_c_try_compile "$LINENO"; then :
6075 ac_cv_cc_supports_pg=yes
6076 else
6077 ac_cv_cc_supports_pg=no
6078 fi
6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 fi
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6082 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6083
6084 if test $ac_cv_cc_supports_pg = no; then
6085 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6086 fi
6087
6088 CFLAGS="$OLD_CFLAGS"
6089 fi
6090
6091
6092
6093 # Check whether --with-pkgversion was given.
6094 if test "${with_pkgversion+set}" = set; then :
6095 withval=$with_pkgversion; case "$withval" in
6096 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6097 no) PKGVERSION= ;;
6098 *) PKGVERSION="($withval) " ;;
6099 esac
6100 else
6101 PKGVERSION="(GDB) "
6102
6103 fi
6104
6105
6106
6107
6108
6109 # Check whether --with-bugurl was given.
6110 if test "${with_bugurl+set}" = set; then :
6111 withval=$with_bugurl; case "$withval" in
6112 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6113 no) BUGURL=
6114 ;;
6115 *) BUGURL="$withval"
6116 ;;
6117 esac
6118 else
6119 BUGURL="http://www.gnu.org/software/gdb/bugs/"
6120
6121 fi
6122
6123 case ${BUGURL} in
6124 "")
6125 REPORT_BUGS_TO=
6126 REPORT_BUGS_TEXI=
6127 ;;
6128 *)
6129 REPORT_BUGS_TO="<$BUGURL>"
6130 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6131 ;;
6132 esac;
6133
6134
6135
6136
6137 cat >>confdefs.h <<_ACEOF
6138 #define PKGVERSION "$PKGVERSION"
6139 _ACEOF
6140
6141
6142 cat >>confdefs.h <<_ACEOF
6143 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6144 _ACEOF
6145
6146
6147 # --------------------- #
6148 # Checks for programs. #
6149 # --------------------- #
6150
6151 for ac_prog in gawk mawk nawk awk
6152 do
6153 # Extract the first word of "$ac_prog", so it can be a program name with args.
6154 set dummy $ac_prog; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_AWK+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 if test -n "$AWK"; then
6161 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6165 do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_AWK="$ac_prog"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 fi
6179 fi
6180 AWK=$ac_cv_prog_AWK
6181 if test -n "$AWK"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6183 $as_echo "$AWK" >&6; }
6184 else
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6187 fi
6188
6189
6190 test -n "$AWK" && break
6191 done
6192
6193 # Find a good install program. We prefer a C program (faster),
6194 # so one script is as good as another. But avoid the broken or
6195 # incompatible versions:
6196 # SysV /etc/install, /usr/sbin/install
6197 # SunOS /usr/etc/install
6198 # IRIX /sbin/install
6199 # AIX /bin/install
6200 # AmigaOS /C/install, which installs bootblocks on floppy discs
6201 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6202 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6203 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6204 # OS/2's system install, which has a completely different semantic
6205 # ./install, which can be erroneously created by make from ./install.sh.
6206 # Reject install programs that cannot install multiple files.
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6208 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6209 if test -z "$INSTALL"; then
6210 if test "${ac_cv_path_install+set}" = set; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 # Account for people who put trailing slashes in PATH elements.
6219 case $as_dir/ in #((
6220 ./ | .// | /[cC]/* | \
6221 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6222 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6223 /usr/ucb/* ) ;;
6224 *)
6225 # OSF1 and SCO ODT 3.0 have their own names for install.
6226 # Don't use installbsd from OSF since it installs stuff as root
6227 # by default.
6228 for ac_prog in ginstall scoinst install; do
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6231 if test $ac_prog = install &&
6232 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6233 # AIX install. It has an incompatible calling convention.
6234 :
6235 elif test $ac_prog = install &&
6236 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6237 # program-specific install script used by HP pwplus--don't use.
6238 :
6239 else
6240 rm -rf conftest.one conftest.two conftest.dir
6241 echo one > conftest.one
6242 echo two > conftest.two
6243 mkdir conftest.dir
6244 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6245 test -s conftest.one && test -s conftest.two &&
6246 test -s conftest.dir/conftest.one &&
6247 test -s conftest.dir/conftest.two
6248 then
6249 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6250 break 3
6251 fi
6252 fi
6253 fi
6254 done
6255 done
6256 ;;
6257 esac
6258
6259 done
6260 IFS=$as_save_IFS
6261
6262 rm -rf conftest.one conftest.two conftest.dir
6263
6264 fi
6265 if test "${ac_cv_path_install+set}" = set; then
6266 INSTALL=$ac_cv_path_install
6267 else
6268 # As a last resort, use the slow shell script. Don't cache a
6269 # value for INSTALL within a source directory, because that will
6270 # break other packages using the cache if that directory is
6271 # removed, or if the value is a relative name.
6272 INSTALL=$ac_install_sh
6273 fi
6274 fi
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6276 $as_echo "$INSTALL" >&6; }
6277
6278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6279 # It thinks the first close brace ends the variable substitution.
6280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6281
6282 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6283
6284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6285
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6287 $as_echo_n "checking whether ln -s works... " >&6; }
6288 LN_S=$as_ln_s
6289 if test "$LN_S" = "ln -s"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6291 $as_echo "yes" >&6; }
6292 else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6294 $as_echo "no, using $LN_S" >&6; }
6295 fi
6296
6297 if test -n "$ac_tool_prefix"; then
6298 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 if test -n "$RANLIB"; then
6306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319 done
6320 done
6321 IFS=$as_save_IFS
6322
6323 fi
6324 fi
6325 RANLIB=$ac_cv_prog_RANLIB
6326 if test -n "$RANLIB"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6328 $as_echo "$RANLIB" >&6; }
6329 else
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6332 fi
6333
6334
6335 fi
6336 if test -z "$ac_cv_prog_RANLIB"; then
6337 ac_ct_RANLIB=$RANLIB
6338 # Extract the first word of "ranlib", so it can be a program name with args.
6339 set dummy ranlib; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 if test -n "$ac_ct_RANLIB"; then
6346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_ac_ct_RANLIB="ranlib"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 break 2
6358 fi
6359 done
6360 done
6361 IFS=$as_save_IFS
6362
6363 fi
6364 fi
6365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6366 if test -n "$ac_ct_RANLIB"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6368 $as_echo "$ac_ct_RANLIB" >&6; }
6369 else
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6372 fi
6373
6374 if test "x$ac_ct_RANLIB" = x; then
6375 RANLIB=":"
6376 else
6377 case $cross_compiling:$ac_tool_warned in
6378 yes:)
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6381 ac_tool_warned=yes ;;
6382 esac
6383 RANLIB=$ac_ct_RANLIB
6384 fi
6385 else
6386 RANLIB="$ac_cv_prog_RANLIB"
6387 fi
6388
6389 for ac_prog in 'bison -y' byacc
6390 do
6391 # Extract the first word of "$ac_prog", so it can be a program name with args.
6392 set dummy $ac_prog; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if test "${ac_cv_prog_YACC+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 if test -n "$YACC"; then
6399 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_YACC="$ac_prog"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 YACC=$ac_cv_prog_YACC
6419 if test -n "$YACC"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6421 $as_echo "$YACC" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6425 fi
6426
6427
6428 test -n "$YACC" && break
6429 done
6430 test -n "$YACC" || YACC="yacc"
6431
6432
6433 if test -n "$ac_tool_prefix"; then
6434 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6435 set dummy ${ac_tool_prefix}ar; ac_word=$2
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_AR+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 if test -n "$AR"; then
6442 ac_cv_prog_AR="$AR" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_prog_AR="${ac_tool_prefix}ar"
6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 break 2
6454 fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 AR=$ac_cv_prog_AR
6462 if test -n "$AR"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6464 $as_echo "$AR" >&6; }
6465 else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469
6470
6471 fi
6472 if test -z "$ac_cv_prog_AR"; then
6473 ac_ct_AR=$AR
6474 # Extract the first word of "ar", so it can be a program name with args.
6475 set dummy ar; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481 if test -n "$ac_ct_AR"; then
6482 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_ac_ct_AR="ar"
6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6494 fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6502 if test -n "$ac_ct_AR"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6504 $as_echo "$ac_ct_AR" >&6; }
6505 else
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510 if test "x$ac_ct_AR" = x; then
6511 AR=""
6512 else
6513 case $cross_compiling:$ac_tool_warned in
6514 yes:)
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6517 ac_tool_warned=yes ;;
6518 esac
6519 AR=$ac_ct_AR
6520 fi
6521 else
6522 AR="$ac_cv_prog_AR"
6523 fi
6524
6525 if test -n "$ac_tool_prefix"; then
6526 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6527 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 if test -n "$DLLTOOL"; then
6534 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 break 2
6546 fi
6547 done
6548 done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 DLLTOOL=$ac_cv_prog_DLLTOOL
6554 if test -n "$DLLTOOL"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6556 $as_echo "$DLLTOOL" >&6; }
6557 else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561
6562
6563 fi
6564 if test -z "$ac_cv_prog_DLLTOOL"; then
6565 ac_ct_DLLTOOL=$DLLTOOL
6566 # Extract the first word of "dlltool", so it can be a program name with args.
6567 set dummy dlltool; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 if test -n "$ac_ct_DLLTOOL"; then
6574 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579 IFS=$as_save_IFS
6580 test -z "$as_dir" && as_dir=.
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6583 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 break 2
6586 fi
6587 done
6588 done
6589 IFS=$as_save_IFS
6590
6591 fi
6592 fi
6593 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6594 if test -n "$ac_ct_DLLTOOL"; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6596 $as_echo "$ac_ct_DLLTOOL" >&6; }
6597 else
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6600 fi
6601
6602 if test "x$ac_ct_DLLTOOL" = x; then
6603 DLLTOOL=""
6604 else
6605 case $cross_compiling:$ac_tool_warned in
6606 yes:)
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6609 ac_tool_warned=yes ;;
6610 esac
6611 DLLTOOL=$ac_ct_DLLTOOL
6612 fi
6613 else
6614 DLLTOOL="$ac_cv_prog_DLLTOOL"
6615 fi
6616
6617 if test -n "$ac_tool_prefix"; then
6618 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6619 set dummy ${ac_tool_prefix}windres; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6623 $as_echo_n "(cached) " >&6
6624 else
6625 if test -n "$WINDRES"; then
6626 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6627 else
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6635 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 break 2
6638 fi
6639 done
6640 done
6641 IFS=$as_save_IFS
6642
6643 fi
6644 fi
6645 WINDRES=$ac_cv_prog_WINDRES
6646 if test -n "$WINDRES"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6648 $as_echo "$WINDRES" >&6; }
6649 else
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6652 fi
6653
6654
6655 fi
6656 if test -z "$ac_cv_prog_WINDRES"; then
6657 ac_ct_WINDRES=$WINDRES
6658 # Extract the first word of "windres", so it can be a program name with args.
6659 set dummy windres; ac_word=$2
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 $as_echo_n "checking for $ac_word... " >&6; }
6662 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6663 $as_echo_n "(cached) " >&6
6664 else
6665 if test -n "$ac_ct_WINDRES"; then
6666 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6667 else
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 for as_dir in $PATH
6670 do
6671 IFS=$as_save_IFS
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6675 ac_cv_prog_ac_ct_WINDRES="windres"
6676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 break 2
6678 fi
6679 done
6680 done
6681 IFS=$as_save_IFS
6682
6683 fi
6684 fi
6685 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6686 if test -n "$ac_ct_WINDRES"; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6688 $as_echo "$ac_ct_WINDRES" >&6; }
6689 else
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 $as_echo "no" >&6; }
6692 fi
6693
6694 if test "x$ac_ct_WINDRES" = x; then
6695 WINDRES=""
6696 else
6697 case $cross_compiling:$ac_tool_warned in
6698 yes:)
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6701 ac_tool_warned=yes ;;
6702 esac
6703 WINDRES=$ac_ct_WINDRES
6704 fi
6705 else
6706 WINDRES="$ac_cv_prog_WINDRES"
6707 fi
6708
6709
6710 case $host_os in
6711 gnu*)
6712 # Needed for GNU Hurd hosts.
6713 if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}mig; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_MIG+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 if test -n "$MIG"; then
6722 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735 done
6736 done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 MIG=$ac_cv_prog_MIG
6742 if test -n "$MIG"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6744 $as_echo "$MIG" >&6; }
6745 else
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750
6751 fi
6752 if test -z "$ac_cv_prog_MIG"; then
6753 ac_ct_MIG=$MIG
6754 # Extract the first word of "mig", so it can be a program name with args.
6755 set dummy mig; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 if test -n "$ac_ct_MIG"; then
6762 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_prog_ac_ct_MIG="mig"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6782 if test -n "$ac_ct_MIG"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6784 $as_echo "$ac_ct_MIG" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790 if test "x$ac_ct_MIG" = x; then
6791 MIG=""
6792 else
6793 case $cross_compiling:$ac_tool_warned in
6794 yes:)
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799 MIG=$ac_ct_MIG
6800 fi
6801 else
6802 MIG="$ac_cv_prog_MIG"
6803 fi
6804
6805 if test x"$MIG" = x; then
6806 as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
6807 fi
6808 ;;
6809 esac
6810
6811 # ---------------------- #
6812 # Checks for libraries. #
6813 # ---------------------- #
6814
6815 # We might need to link with -lm; most simulators need it.
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6817 $as_echo_n "checking for main in -lm... " >&6; }
6818 if test "${ac_cv_lib_m_main+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 ac_check_lib_save_LIBS=$LIBS
6822 LIBS="-lm $LIBS"
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825
6826
6827 int
6828 main ()
6829 {
6830 return main ();
6831 ;
6832 return 0;
6833 }
6834 _ACEOF
6835 if ac_fn_c_try_link "$LINENO"; then :
6836 ac_cv_lib_m_main=yes
6837 else
6838 ac_cv_lib_m_main=no
6839 fi
6840 rm -f core conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
6842 LIBS=$ac_check_lib_save_LIBS
6843 fi
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6845 $as_echo "$ac_cv_lib_m_main" >&6; }
6846 if test "x$ac_cv_lib_m_main" = x""yes; then :
6847 cat >>confdefs.h <<_ACEOF
6848 #define HAVE_LIBM 1
6849 _ACEOF
6850
6851 LIBS="-lm $LIBS"
6852
6853 fi
6854
6855
6856 # We need to link with -lw to get `wctype' on Solaris before Solaris
6857 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6858 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6859 # is known to have this problem). Therefore we avoid libw if we can.
6860 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6861 if test "x$ac_cv_func_wctype" = x""yes; then :
6862
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6865 $as_echo_n "checking for wctype in -lw... " >&6; }
6866 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 ac_check_lib_save_LIBS=$LIBS
6870 LIBS="-lw $LIBS"
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873
6874 /* Override any GCC internal prototype to avoid an error.
6875 Use char because int might match the return type of a GCC
6876 builtin and then its argument prototype would still apply. */
6877 #ifdef __cplusplus
6878 extern "C"
6879 #endif
6880 char wctype ();
6881 int
6882 main ()
6883 {
6884 return wctype ();
6885 ;
6886 return 0;
6887 }
6888 _ACEOF
6889 if ac_fn_c_try_link "$LINENO"; then :
6890 ac_cv_lib_w_wctype=yes
6891 else
6892 ac_cv_lib_w_wctype=no
6893 fi
6894 rm -f core conftest.err conftest.$ac_objext \
6895 conftest$ac_exeext conftest.$ac_ext
6896 LIBS=$ac_check_lib_save_LIBS
6897 fi
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6899 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6900 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6901 cat >>confdefs.h <<_ACEOF
6902 #define HAVE_LIBW 1
6903 _ACEOF
6904
6905 LIBS="-lw $LIBS"
6906
6907 fi
6908
6909 fi
6910
6911
6912 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6914 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6915 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 ac_func_search_save_LIBS=$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 gethostbyname ();
6929 int
6930 main ()
6931 {
6932 return gethostbyname ();
6933 ;
6934 return 0;
6935 }
6936 _ACEOF
6937 for ac_lib in '' nsl; do
6938 if test -z "$ac_lib"; then
6939 ac_res="none required"
6940 else
6941 ac_res=-l$ac_lib
6942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6943 fi
6944 if ac_fn_c_try_link "$LINENO"; then :
6945 ac_cv_search_gethostbyname=$ac_res
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext \
6948 conftest$ac_exeext
6949 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6950 break
6951 fi
6952 done
6953 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6954
6955 else
6956 ac_cv_search_gethostbyname=no
6957 fi
6958 rm conftest.$ac_ext
6959 LIBS=$ac_func_search_save_LIBS
6960 fi
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6962 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6963 ac_res=$ac_cv_search_gethostbyname
6964 if test "$ac_res" != no; then :
6965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6966
6967 fi
6968
6969
6970 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6972 $as_echo_n "checking for library containing socketpair... " >&6; }
6973 if test "${ac_cv_search_socketpair+set}" = set; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 ac_func_search_save_LIBS=$LIBS
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6979
6980 /* Override any GCC internal prototype to avoid an error.
6981 Use char because int might match the return type of a GCC
6982 builtin and then its argument prototype would still apply. */
6983 #ifdef __cplusplus
6984 extern "C"
6985 #endif
6986 char socketpair ();
6987 int
6988 main ()
6989 {
6990 return socketpair ();
6991 ;
6992 return 0;
6993 }
6994 _ACEOF
6995 for ac_lib in '' socket; do
6996 if test -z "$ac_lib"; then
6997 ac_res="none required"
6998 else
6999 ac_res=-l$ac_lib
7000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7001 fi
7002 if ac_fn_c_try_link "$LINENO"; then :
7003 ac_cv_search_socketpair=$ac_res
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext \
7006 conftest$ac_exeext
7007 if test "${ac_cv_search_socketpair+set}" = set; then :
7008 break
7009 fi
7010 done
7011 if test "${ac_cv_search_socketpair+set}" = set; then :
7012
7013 else
7014 ac_cv_search_socketpair=no
7015 fi
7016 rm conftest.$ac_ext
7017 LIBS=$ac_func_search_save_LIBS
7018 fi
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7020 $as_echo "$ac_cv_search_socketpair" >&6; }
7021 ac_res=$ac_cv_search_socketpair
7022 if test "$ac_res" != no; then :
7023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7024
7025 fi
7026
7027
7028 # Link in zlib if we can. This allows us to read compressed debug sections.
7029
7030 # Use the system's zlib library.
7031 zlibdir="-L\$(top_builddir)/../zlib"
7032 zlibinc="-I\$(top_srcdir)/../zlib"
7033
7034 # Check whether --with-system-zlib was given.
7035 if test "${with_system_zlib+set}" = set; then :
7036 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7037 zlibdir=
7038 zlibinc=
7039 fi
7040
7041 fi
7042
7043
7044
7045
7046
7047 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7049 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7050 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 ac_func_search_save_LIBS=$LIBS
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056
7057 /* Override any GCC internal prototype to avoid an error.
7058 Use char because int might match the return type of a GCC
7059 builtin and then its argument prototype would still apply. */
7060 #ifdef __cplusplus
7061 extern "C"
7062 #endif
7063 char kinfo_getvmmap ();
7064 int
7065 main ()
7066 {
7067 return kinfo_getvmmap ();
7068 ;
7069 return 0;
7070 }
7071 _ACEOF
7072 for ac_lib in '' util; do
7073 if test -z "$ac_lib"; then
7074 ac_res="none required"
7075 else
7076 ac_res=-l$ac_lib
7077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7078 fi
7079 if ac_fn_c_try_link "$LINENO"; then :
7080 ac_cv_search_kinfo_getvmmap=$ac_res
7081 fi
7082 rm -f core conftest.err conftest.$ac_objext \
7083 conftest$ac_exeext
7084 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7085 break
7086 fi
7087 done
7088 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7089
7090 else
7091 ac_cv_search_kinfo_getvmmap=no
7092 fi
7093 rm conftest.$ac_ext
7094 LIBS=$ac_func_search_save_LIBS
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7097 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7098 ac_res=$ac_cv_search_kinfo_getvmmap
7099 if test "$ac_res" != no; then :
7100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7101
7102 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7103
7104 fi
7105
7106
7107
7108
7109
7110 # Check whether --with-libiconv-prefix was given.
7111 if test "${with_libiconv_prefix+set}" = set; then :
7112 withval=$with_libiconv_prefix;
7113 for dir in `echo "$withval" | tr : ' '`; do
7114 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
7115 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
7116 done
7117
7118 fi
7119
7120
7121 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
7122 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
7123
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7125 $as_echo_n "checking for iconv... " >&6; }
7126 if test "${am_cv_func_iconv+set}" = set; then :
7127 $as_echo_n "(cached) " >&6
7128 else
7129
7130 am_cv_func_iconv="no, consider installing GNU libiconv"
7131 am_cv_lib_iconv=no
7132 am_cv_use_build_libiconv=no
7133 am_cv_build_libiconv_path=
7134
7135 # If libiconv is part of the build tree, then try using it over
7136 # any system iconv.
7137 if test -d ../libiconv; then
7138 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
7139 am_save_LIBS="$LIBS"
7140 am_save_CPPFLAGS="$CPPFLAGS"
7141 LIBS="$LIBS $lib_dir/libiconv.a"
7142 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145 #include <stdlib.h>
7146 #include <iconv.h>
7147 int
7148 main ()
7149 {
7150 iconv_t cd = iconv_open("","");
7151 iconv(cd,NULL,NULL,NULL,NULL);
7152 iconv_close(cd);
7153 ;
7154 return 0;
7155 }
7156 _ACEOF
7157 if ac_fn_c_try_link "$LINENO"; then :
7158 am_cv_use_build_libiconv=yes
7159 am_cv_build_libiconv_path=$lib_dir/libiconv.a
7160 am_cv_lib_iconv=yes
7161 am_cv_func_iconv=yes
7162 fi
7163 rm -f core conftest.err conftest.$ac_objext \
7164 conftest$ac_exeext conftest.$ac_ext
7165 LIBS="$am_save_LIBS"
7166 CPPFLAGS="$am_save_CPPFLAGS"
7167 if test "$am_cv_use_build_libiconv" = "yes"; then
7168 break
7169 fi
7170 done
7171 fi
7172
7173 # Next, try to find iconv in libc.
7174 if test "$am_cv_func_iconv" != yes; then
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 #include <stdlib.h>
7178 #include <iconv.h>
7179 int
7180 main ()
7181 {
7182 iconv_t cd = iconv_open("","");
7183 iconv(cd,NULL,NULL,NULL,NULL);
7184 iconv_close(cd);
7185 ;
7186 return 0;
7187 }
7188 _ACEOF
7189 if ac_fn_c_try_link "$LINENO"; then :
7190 am_cv_func_iconv=yes
7191 fi
7192 rm -f core conftest.err conftest.$ac_objext \
7193 conftest$ac_exeext conftest.$ac_ext
7194 fi
7195
7196 # If iconv was not in libc, try -liconv. In this case, arrange to
7197 # look in the libiconv prefix, if it was specified by the user.
7198 if test "$am_cv_func_iconv" != yes; then
7199 am_save_CPPFLAGS="$CPPFLAGS"
7200 am_save_LIBS="$LIBS"
7201 if test -n "$LIBICONV_INCLUDE"; then
7202 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
7203 LIBS="$LIBS $LIBICONV_LIBDIR"
7204 fi
7205 LIBS="$LIBS -liconv"
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7208 #include <stdlib.h>
7209 #include <iconv.h>
7210 int
7211 main ()
7212 {
7213 iconv_t cd = iconv_open("","");
7214 iconv(cd,NULL,NULL,NULL,NULL);
7215 iconv_close(cd);
7216 ;
7217 return 0;
7218 }
7219 _ACEOF
7220 if ac_fn_c_try_link "$LINENO"; then :
7221 am_cv_lib_iconv=yes
7222 am_cv_func_iconv=yes
7223 fi
7224 rm -f core conftest.err conftest.$ac_objext \
7225 conftest$ac_exeext conftest.$ac_ext
7226 LIBS="$am_save_LIBS"
7227 CPPFLAGS="$am_save_CPPFLAGS"
7228 fi
7229
7230 fi
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7232 $as_echo "$am_cv_func_iconv" >&6; }
7233
7234 # Set the various flags based on the cache variables. We can't rely
7235 # on the flags to remain set from the above code, due to caching.
7236 LIBICONV=
7237 if test "$am_cv_lib_iconv" = yes; then
7238 LIBICONV="-liconv"
7239 else
7240 LIBICONV_LIBDIR=
7241 LIBICONV_INCLUDE=
7242 fi
7243 if test "$am_cv_use_build_libiconv" = yes; then
7244 LIBICONV="$am_cv_build_libiconv_path"
7245 LIBICONV_LIBDIR=""
7246 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
7247 fi
7248 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
7249 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
7250
7251 if test "$am_cv_func_iconv" = yes; then
7252
7253 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7254
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7256 $as_echo_n "checking for iconv declaration... " >&6; }
7257 if test "${am_cv_proto_iconv+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260
7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7263
7264 #include <stdlib.h>
7265 #include <iconv.h>
7266 extern
7267 #ifdef __cplusplus
7268 "C"
7269 #endif
7270 #if defined(__STDC__) || defined(__cplusplus)
7271 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7272 #else
7273 size_t iconv();
7274 #endif
7275
7276 int
7277 main ()
7278 {
7279
7280 ;
7281 return 0;
7282 }
7283 _ACEOF
7284 if ac_fn_c_try_compile "$LINENO"; then :
7285 am_cv_proto_iconv_arg1=""
7286 else
7287 am_cv_proto_iconv_arg1="const"
7288 fi
7289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 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);"
7291 fi
7292
7293 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7295 }$am_cv_proto_iconv" >&5
7296 $as_echo "${ac_t:-
7297 }$am_cv_proto_iconv" >&6; }
7298
7299 cat >>confdefs.h <<_ACEOF
7300 #define ICONV_CONST $am_cv_proto_iconv_arg1
7301 _ACEOF
7302
7303 fi
7304
7305
7306 # GDB may fork/exec the iconv program to get the list of supported character
7307 # sets. Allow the user to specify where to find it.
7308 # There are several factors affecting the choice of option name:
7309 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7310 # the build-time location of libiconv files.
7311 # - The program we need to find is iconv, which comes with glibc. The user
7312 # doesn't necessarily have libiconv installed. Therefore naming this
7313 # --with-libiconv-foo feels wrong.
7314 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7315 # defined to work on directories not files (though it really doesn't know
7316 # the difference).
7317 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7318 # with --with-libiconv-prefix.
7319 # Putting these together is why the option name is --with-iconv-bin.
7320
7321
7322 # Check whether --with-iconv-bin was given.
7323 if test "${with_iconv_bin+set}" = set; then :
7324 withval=$with_iconv_bin; iconv_bin="${withval}"
7325
7326 cat >>confdefs.h <<_ACEOF
7327 #define ICONV_BIN "${iconv_bin}"
7328 _ACEOF
7329
7330
7331 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7332 if test "x$prefix" = xNONE; then
7333 test_prefix=/usr/local
7334 else
7335 test_prefix=$prefix
7336 fi
7337 else
7338 test_prefix=$exec_prefix
7339 fi
7340 value=0
7341 case ${iconv_bin} in
7342 "${test_prefix}"|"${test_prefix}/"*|\
7343 '${exec_prefix}'|'${exec_prefix}/'*)
7344 value=1
7345 ;;
7346 esac
7347
7348 cat >>confdefs.h <<_ACEOF
7349 #define ICONV_BIN_RELOCATABLE $value
7350 _ACEOF
7351
7352
7353
7354 fi
7355
7356
7357 # For the TUI, we need enhanced curses functionality.
7358 if test x"$enable_tui" != xno; then
7359 prefer_curses=yes
7360 fi
7361
7362 curses_found=no
7363 if test x"$prefer_curses" = xyes; then
7364 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7365 # curses library because the latter might not provide all the
7366 # functionality we need. However, this leads to problems on systems
7367 # where the linker searches /usr/local/lib, but the compiler doesn't
7368 # search /usr/local/include, if ncurses is installed in /usr/local. A
7369 # default installation of ncurses on alpha*-dec-osf* will lead to such
7370 # a situation.
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7372 $as_echo_n "checking for library containing waddstr... " >&6; }
7373 if test "${ac_cv_search_waddstr+set}" = set; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 ac_func_search_save_LIBS=$LIBS
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379
7380 /* Override any GCC internal prototype to avoid an error.
7381 Use char because int might match the return type of a GCC
7382 builtin and then its argument prototype would still apply. */
7383 #ifdef __cplusplus
7384 extern "C"
7385 #endif
7386 char waddstr ();
7387 int
7388 main ()
7389 {
7390 return waddstr ();
7391 ;
7392 return 0;
7393 }
7394 _ACEOF
7395 for ac_lib in '' ncurses cursesX curses; do
7396 if test -z "$ac_lib"; then
7397 ac_res="none required"
7398 else
7399 ac_res=-l$ac_lib
7400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7401 fi
7402 if ac_fn_c_try_link "$LINENO"; then :
7403 ac_cv_search_waddstr=$ac_res
7404 fi
7405 rm -f core conftest.err conftest.$ac_objext \
7406 conftest$ac_exeext
7407 if test "${ac_cv_search_waddstr+set}" = set; then :
7408 break
7409 fi
7410 done
7411 if test "${ac_cv_search_waddstr+set}" = set; then :
7412
7413 else
7414 ac_cv_search_waddstr=no
7415 fi
7416 rm conftest.$ac_ext
7417 LIBS=$ac_func_search_save_LIBS
7418 fi
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7420 $as_echo "$ac_cv_search_waddstr" >&6; }
7421 ac_res=$ac_cv_search_waddstr
7422 if test "$ac_res" != no; then :
7423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7424
7425 fi
7426
7427
7428 if test "$ac_cv_search_waddstr" != no; then
7429 curses_found=yes
7430 fi
7431 fi
7432
7433 # Check whether we should enable the TUI, but only do so if we really
7434 # can.
7435 if test x"$enable_tui" != xno; then
7436 if test -d $srcdir/tui; then
7437 if test "$curses_found" != no; then
7438 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7439 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7440 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7441 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7442 else
7443 if test x"$enable_tui" = xyes; then
7444 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
7445 else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7447 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7448 fi
7449 fi
7450 fi
7451 fi
7452
7453 # Since GDB uses Readline, we need termcap functionality. In many
7454 # cases this will be provided by the curses library, but some systems
7455 # have a seperate termcap library, or no curses library at all.
7456
7457 case $host_os in
7458 cygwin*)
7459 if test -d $srcdir/libtermcap; then
7460 LIBS="../libtermcap/libtermcap.a $LIBS"
7461 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
7462 fi ;;
7463 go32* | *djgpp*)
7464 ac_cv_search_tgetent="none required"
7465 ;;
7466 esac
7467
7468 # These are the libraries checked by Readline.
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7470 $as_echo_n "checking for library containing tgetent... " >&6; }
7471 if test "${ac_cv_search_tgetent+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 ac_func_search_save_LIBS=$LIBS
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477
7478 /* Override any GCC internal prototype to avoid an error.
7479 Use char because int might match the return type of a GCC
7480 builtin and then its argument prototype would still apply. */
7481 #ifdef __cplusplus
7482 extern "C"
7483 #endif
7484 char tgetent ();
7485 int
7486 main ()
7487 {
7488 return tgetent ();
7489 ;
7490 return 0;
7491 }
7492 _ACEOF
7493 for ac_lib in '' termcap tinfo curses ncurses; do
7494 if test -z "$ac_lib"; then
7495 ac_res="none required"
7496 else
7497 ac_res=-l$ac_lib
7498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7499 fi
7500 if ac_fn_c_try_link "$LINENO"; then :
7501 ac_cv_search_tgetent=$ac_res
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext \
7504 conftest$ac_exeext
7505 if test "${ac_cv_search_tgetent+set}" = set; then :
7506 break
7507 fi
7508 done
7509 if test "${ac_cv_search_tgetent+set}" = set; then :
7510
7511 else
7512 ac_cv_search_tgetent=no
7513 fi
7514 rm conftest.$ac_ext
7515 LIBS=$ac_func_search_save_LIBS
7516 fi
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7518 $as_echo "$ac_cv_search_tgetent" >&6; }
7519 ac_res=$ac_cv_search_tgetent
7520 if test "$ac_res" != no; then :
7521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7522
7523 fi
7524
7525
7526 if test "$ac_cv_search_tgetent" = no; then
7527 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
7528 fi
7529
7530
7531 # Check whether --with-system-readline was given.
7532 if test "${with_system_readline+set}" = set; then :
7533 withval=$with_system_readline;
7534 fi
7535
7536
7537 if test "$with_system_readline" = yes; then
7538 READLINE=-lreadline
7539 READLINE_DEPS=
7540 READLINE_CFLAGS=
7541 READLINE_TEXI_INCFLAG=
7542 else
7543 READLINE='$(READLINE_DIR)/libreadline.a'
7544 READLINE_DEPS='$(READLINE)'
7545 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7546 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7547 fi
7548
7549
7550
7551
7552
7553 # Generate jit-reader.h
7554
7555 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7556 TARGET_PTR=
7557
7558 # The cast to long int works around a bug in the HP C Compiler
7559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7561 # This bug is HP SR number 8606223364.
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7563 $as_echo_n "checking size of unsigned long long... " >&6; }
7564 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7568
7569 else
7570 if test "$ac_cv_type_unsigned_long_long" = yes; then
7571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7573 { as_fn_set_status 77
7574 as_fn_error "cannot compute sizeof (unsigned long long)
7575 See \`config.log' for more details." "$LINENO" 5; }; }
7576 else
7577 ac_cv_sizeof_unsigned_long_long=0
7578 fi
7579 fi
7580
7581 fi
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7583 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7584
7585
7586
7587 cat >>confdefs.h <<_ACEOF
7588 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7589 _ACEOF
7590
7591
7592 # The cast to long int works around a bug in the HP C Compiler
7593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7595 # This bug is HP SR number 8606223364.
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7597 $as_echo_n "checking size of unsigned long... " >&6; }
7598 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7602
7603 else
7604 if test "$ac_cv_type_unsigned_long" = yes; then
7605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7607 { as_fn_set_status 77
7608 as_fn_error "cannot compute sizeof (unsigned long)
7609 See \`config.log' for more details." "$LINENO" 5; }; }
7610 else
7611 ac_cv_sizeof_unsigned_long=0
7612 fi
7613 fi
7614
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7617 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7618
7619
7620
7621 cat >>confdefs.h <<_ACEOF
7622 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7623 _ACEOF
7624
7625
7626 # The cast to long int works around a bug in the HP C Compiler
7627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7629 # This bug is HP SR number 8606223364.
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7631 $as_echo_n "checking size of unsigned __int128... " >&6; }
7632 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7633 $as_echo_n "(cached) " >&6
7634 else
7635 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7636
7637 else
7638 if test "$ac_cv_type_unsigned___int128" = yes; then
7639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7641 { as_fn_set_status 77
7642 as_fn_error "cannot compute sizeof (unsigned __int128)
7643 See \`config.log' for more details." "$LINENO" 5; }; }
7644 else
7645 ac_cv_sizeof_unsigned___int128=0
7646 fi
7647 fi
7648
7649 fi
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7651 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7652
7653
7654
7655 cat >>confdefs.h <<_ACEOF
7656 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7657 _ACEOF
7658
7659
7660
7661 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7662 TARGET_PTR="unsigned long"
7663 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7664 TARGET_PTR="unsigned long long"
7665 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7666 TARGET_PTR="unsigned __int128"
7667 else
7668 TARGET_PTR="unsigned long"
7669 fi
7670
7671
7672 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7673
7674
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7676 $as_echo_n "checking for library containing dlopen... " >&6; }
7677 if test "${ac_cv_search_dlopen+set}" = set; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 ac_func_search_save_LIBS=$LIBS
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683
7684 /* Override any GCC internal prototype to avoid an error.
7685 Use char because int might match the return type of a GCC
7686 builtin and then its argument prototype would still apply. */
7687 #ifdef __cplusplus
7688 extern "C"
7689 #endif
7690 char dlopen ();
7691 int
7692 main ()
7693 {
7694 return dlopen ();
7695 ;
7696 return 0;
7697 }
7698 _ACEOF
7699 for ac_lib in '' dl; do
7700 if test -z "$ac_lib"; then
7701 ac_res="none required"
7702 else
7703 ac_res=-l$ac_lib
7704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7705 fi
7706 if ac_fn_c_try_link "$LINENO"; then :
7707 ac_cv_search_dlopen=$ac_res
7708 fi
7709 rm -f core conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext
7711 if test "${ac_cv_search_dlopen+set}" = set; then :
7712 break
7713 fi
7714 done
7715 if test "${ac_cv_search_dlopen+set}" = set; then :
7716
7717 else
7718 ac_cv_search_dlopen=no
7719 fi
7720 rm conftest.$ac_ext
7721 LIBS=$ac_func_search_save_LIBS
7722 fi
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7724 $as_echo "$ac_cv_search_dlopen" >&6; }
7725 ac_res=$ac_cv_search_dlopen
7726 if test "$ac_res" != no; then :
7727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7728
7729 fi
7730
7731
7732
7733
7734 # Check whether --with-jit-reader-dir was given.
7735 if test "${with_jit_reader_dir+set}" = set; then :
7736 withval=$with_jit_reader_dir;
7737 JIT_READER_DIR=$withval
7738 else
7739 JIT_READER_DIR=${libdir}/gdb
7740 fi
7741
7742
7743 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7745 ac_define_dir=`eval echo $JIT_READER_DIR`
7746 ac_define_dir=`eval echo $ac_define_dir`
7747
7748 cat >>confdefs.h <<_ACEOF
7749 #define JIT_READER_DIR "$ac_define_dir"
7750 _ACEOF
7751
7752
7753
7754
7755 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7756 if test "x$prefix" = xNONE; then
7757 test_prefix=/usr/local
7758 else
7759 test_prefix=$prefix
7760 fi
7761 else
7762 test_prefix=$exec_prefix
7763 fi
7764 value=0
7765 case ${ac_define_dir} in
7766 "${test_prefix}"|"${test_prefix}/"*|\
7767 '${exec_prefix}'|'${exec_prefix}/'*)
7768 value=1
7769 ;;
7770 esac
7771
7772 cat >>confdefs.h <<_ACEOF
7773 #define JIT_READER_DIR_RELOCATABLE $value
7774 _ACEOF
7775
7776
7777
7778
7779
7780 # Check whether --with-expat was given.
7781 if test "${with_expat+set}" = set; then :
7782 withval=$with_expat;
7783 else
7784 with_expat=auto
7785 fi
7786
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7788 $as_echo_n "checking whether to use expat... " >&6; }
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7790 $as_echo "$with_expat" >&6; }
7791
7792 if test "${with_expat}" = no; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7794 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7795 HAVE_LIBEXPAT=no
7796 else
7797
7798 if test "X$prefix" = "XNONE"; then
7799 acl_final_prefix="$ac_default_prefix"
7800 else
7801 acl_final_prefix="$prefix"
7802 fi
7803 if test "X$exec_prefix" = "XNONE"; then
7804 acl_final_exec_prefix='${prefix}'
7805 else
7806 acl_final_exec_prefix="$exec_prefix"
7807 fi
7808 acl_save_prefix="$prefix"
7809 prefix="$acl_final_prefix"
7810 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7811 prefix="$acl_save_prefix"
7812
7813
7814 # Check whether --with-gnu-ld was given.
7815 if test "${with_gnu_ld+set}" = set; then :
7816 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7817 else
7818 with_gnu_ld=no
7819 fi
7820
7821 # Prepare PATH_SEPARATOR.
7822 # The user is always right.
7823 if test "${PATH_SEPARATOR+set}" != set; then
7824 echo "#! /bin/sh" >conf$$.sh
7825 echo "exit 0" >>conf$$.sh
7826 chmod +x conf$$.sh
7827 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7828 PATH_SEPARATOR=';'
7829 else
7830 PATH_SEPARATOR=:
7831 fi
7832 rm -f conf$$.sh
7833 fi
7834 ac_prog=ld
7835 if test "$GCC" = yes; then
7836 # Check if gcc -print-prog-name=ld gives a path.
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7838 $as_echo_n "checking for ld used by GCC... " >&6; }
7839 case $host in
7840 *-*-mingw*)
7841 # gcc leaves a trailing carriage return which upsets mingw
7842 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7843 *)
7844 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7845 esac
7846 case $ac_prog in
7847 # Accept absolute paths.
7848 [\\/]* | [A-Za-z]:[\\/]*)
7849 re_direlt='/[^/][^/]*/\.\./'
7850 # Canonicalize the path of ld
7851 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7852 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7853 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7854 done
7855 test -z "$LD" && LD="$ac_prog"
7856 ;;
7857 "")
7858 # If it fails, then pretend we aren't using GCC.
7859 ac_prog=ld
7860 ;;
7861 *)
7862 # If it is relative, then search for the first ld in PATH.
7863 with_gnu_ld=unknown
7864 ;;
7865 esac
7866 elif test "$with_gnu_ld" = yes; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7868 $as_echo_n "checking for GNU ld... " >&6; }
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7871 $as_echo_n "checking for non-GNU ld... " >&6; }
7872 fi
7873 if test "${acl_cv_path_LD+set}" = set; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 if test -z "$LD"; then
7877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7878 for ac_dir in $PATH; do
7879 test -z "$ac_dir" && ac_dir=.
7880 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7881 acl_cv_path_LD="$ac_dir/$ac_prog"
7882 # Check to see if the program is GNU ld. I'd rather use --version,
7883 # but apparently some GNU ld's only accept -v.
7884 # Break only if it was the GNU/non-GNU ld that we prefer.
7885 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7886 test "$with_gnu_ld" != no && break
7887 else
7888 test "$with_gnu_ld" != yes && break
7889 fi
7890 fi
7891 done
7892 IFS="$ac_save_ifs"
7893 else
7894 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7895 fi
7896 fi
7897
7898 LD="$acl_cv_path_LD"
7899 if test -n "$LD"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7901 $as_echo "$LD" >&6; }
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7905 fi
7906 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7908 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7909 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7913 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7914 acl_cv_prog_gnu_ld=yes
7915 else
7916 acl_cv_prog_gnu_ld=no
7917 fi
7918 fi
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7920 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7921 with_gnu_ld=$acl_cv_prog_gnu_ld
7922
7923
7924
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7926 $as_echo_n "checking for shared library run path origin... " >&6; }
7927 if test "${acl_cv_rpath+set}" = set; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930
7931 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7932 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7933 . ./conftest.sh
7934 rm -f ./conftest.sh
7935 acl_cv_rpath=done
7936
7937 fi
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7939 $as_echo "$acl_cv_rpath" >&6; }
7940 wl="$acl_cv_wl"
7941 libext="$acl_cv_libext"
7942 shlibext="$acl_cv_shlibext"
7943 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7944 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7945 hardcode_direct="$acl_cv_hardcode_direct"
7946 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7947 # Check whether --enable-rpath was given.
7948 if test "${enable_rpath+set}" = set; then :
7949 enableval=$enable_rpath; :
7950 else
7951 enable_rpath=yes
7952 fi
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963 use_additional=yes
7964
7965 acl_save_prefix="$prefix"
7966 prefix="$acl_final_prefix"
7967 acl_save_exec_prefix="$exec_prefix"
7968 exec_prefix="$acl_final_exec_prefix"
7969
7970 eval additional_includedir=\"$includedir\"
7971 eval additional_libdir=\"$libdir\"
7972
7973 exec_prefix="$acl_save_exec_prefix"
7974 prefix="$acl_save_prefix"
7975
7976
7977 # Check whether --with-libexpat-prefix was given.
7978 if test "${with_libexpat_prefix+set}" = set; then :
7979 withval=$with_libexpat_prefix;
7980 if test "X$withval" = "Xno"; then
7981 use_additional=no
7982 else
7983 if test "X$withval" = "X"; then
7984
7985 acl_save_prefix="$prefix"
7986 prefix="$acl_final_prefix"
7987 acl_save_exec_prefix="$exec_prefix"
7988 exec_prefix="$acl_final_exec_prefix"
7989
7990 eval additional_includedir=\"$includedir\"
7991 eval additional_libdir=\"$libdir\"
7992
7993 exec_prefix="$acl_save_exec_prefix"
7994 prefix="$acl_save_prefix"
7995
7996 else
7997 additional_includedir="$withval/include"
7998 additional_libdir="$withval/lib"
7999 fi
8000 fi
8001
8002 fi
8003
8004 LIBEXPAT=
8005 LTLIBEXPAT=
8006 INCEXPAT=
8007 rpathdirs=
8008 ltrpathdirs=
8009 names_already_handled=
8010 names_next_round='expat '
8011 while test -n "$names_next_round"; do
8012 names_this_round="$names_next_round"
8013 names_next_round=
8014 for name in $names_this_round; do
8015 already_handled=
8016 for n in $names_already_handled; do
8017 if test "$n" = "$name"; then
8018 already_handled=yes
8019 break
8020 fi
8021 done
8022 if test -z "$already_handled"; then
8023 names_already_handled="$names_already_handled $name"
8024 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8025 eval value=\"\$HAVE_LIB$uppername\"
8026 if test -n "$value"; then
8027 if test "$value" = yes; then
8028 eval value=\"\$LIB$uppername\"
8029 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
8030 eval value=\"\$LTLIB$uppername\"
8031 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8032 else
8033 :
8034 fi
8035 else
8036 found_dir=
8037 found_la=
8038 found_so=
8039 found_a=
8040 if test $use_additional = yes; then
8041 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8042 found_dir="$additional_libdir"
8043 found_so="$additional_libdir/lib$name.$shlibext"
8044 if test -f "$additional_libdir/lib$name.la"; then
8045 found_la="$additional_libdir/lib$name.la"
8046 fi
8047 else
8048 if test -f "$additional_libdir/lib$name.$libext"; then
8049 found_dir="$additional_libdir"
8050 found_a="$additional_libdir/lib$name.$libext"
8051 if test -f "$additional_libdir/lib$name.la"; then
8052 found_la="$additional_libdir/lib$name.la"
8053 fi
8054 fi
8055 fi
8056 fi
8057 if test "X$found_dir" = "X"; then
8058 for x in $LDFLAGS $LTLIBEXPAT; do
8059
8060 acl_save_prefix="$prefix"
8061 prefix="$acl_final_prefix"
8062 acl_save_exec_prefix="$exec_prefix"
8063 exec_prefix="$acl_final_exec_prefix"
8064 eval x=\"$x\"
8065 exec_prefix="$acl_save_exec_prefix"
8066 prefix="$acl_save_prefix"
8067
8068 case "$x" in
8069 -L*)
8070 dir=`echo "X$x" | sed -e 's/^X-L//'`
8071 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8072 found_dir="$dir"
8073 found_so="$dir/lib$name.$shlibext"
8074 if test -f "$dir/lib$name.la"; then
8075 found_la="$dir/lib$name.la"
8076 fi
8077 else
8078 if test -f "$dir/lib$name.$libext"; then
8079 found_dir="$dir"
8080 found_a="$dir/lib$name.$libext"
8081 if test -f "$dir/lib$name.la"; then
8082 found_la="$dir/lib$name.la"
8083 fi
8084 fi
8085 fi
8086 ;;
8087 esac
8088 if test "X$found_dir" != "X"; then
8089 break
8090 fi
8091 done
8092 fi
8093 if test "X$found_dir" != "X"; then
8094 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8095 if test "X$found_so" != "X"; then
8096 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8097 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8098 else
8099 haveit=
8100 for x in $ltrpathdirs; do
8101 if test "X$x" = "X$found_dir"; then
8102 haveit=yes
8103 break
8104 fi
8105 done
8106 if test -z "$haveit"; then
8107 ltrpathdirs="$ltrpathdirs $found_dir"
8108 fi
8109 if test "$hardcode_direct" = yes; then
8110 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8111 else
8112 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8113 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8114 haveit=
8115 for x in $rpathdirs; do
8116 if test "X$x" = "X$found_dir"; then
8117 haveit=yes
8118 break
8119 fi
8120 done
8121 if test -z "$haveit"; then
8122 rpathdirs="$rpathdirs $found_dir"
8123 fi
8124 else
8125 haveit=
8126 for x in $LDFLAGS $LIBEXPAT; do
8127
8128 acl_save_prefix="$prefix"
8129 prefix="$acl_final_prefix"
8130 acl_save_exec_prefix="$exec_prefix"
8131 exec_prefix="$acl_final_exec_prefix"
8132 eval x=\"$x\"
8133 exec_prefix="$acl_save_exec_prefix"
8134 prefix="$acl_save_prefix"
8135
8136 if test "X$x" = "X-L$found_dir"; then
8137 haveit=yes
8138 break
8139 fi
8140 done
8141 if test -z "$haveit"; then
8142 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8143 fi
8144 if test "$hardcode_minus_L" != no; then
8145 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8146 else
8147 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8148 fi
8149 fi
8150 fi
8151 fi
8152 else
8153 if test "X$found_a" != "X"; then
8154 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8155 else
8156 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8157 fi
8158 fi
8159 additional_includedir=
8160 case "$found_dir" in
8161 */lib | */lib/)
8162 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8163 additional_includedir="$basedir/include"
8164 ;;
8165 esac
8166 if test "X$additional_includedir" != "X"; then
8167 if test "X$additional_includedir" != "X/usr/include"; then
8168 haveit=
8169 if test "X$additional_includedir" = "X/usr/local/include"; then
8170 if test -n "$GCC"; then
8171 case $host_os in
8172 linux*) haveit=yes;;
8173 esac
8174 fi
8175 fi
8176 if test -z "$haveit"; then
8177 for x in $CPPFLAGS $INCEXPAT; do
8178
8179 acl_save_prefix="$prefix"
8180 prefix="$acl_final_prefix"
8181 acl_save_exec_prefix="$exec_prefix"
8182 exec_prefix="$acl_final_exec_prefix"
8183 eval x=\"$x\"
8184 exec_prefix="$acl_save_exec_prefix"
8185 prefix="$acl_save_prefix"
8186
8187 if test "X$x" = "X-I$additional_includedir"; then
8188 haveit=yes
8189 break
8190 fi
8191 done
8192 if test -z "$haveit"; then
8193 if test -d "$additional_includedir"; then
8194 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8195 fi
8196 fi
8197 fi
8198 fi
8199 fi
8200 if test -n "$found_la"; then
8201 save_libdir="$libdir"
8202 case "$found_la" in
8203 */* | *\\*) . "$found_la" ;;
8204 *) . "./$found_la" ;;
8205 esac
8206 libdir="$save_libdir"
8207 for dep in $dependency_libs; do
8208 case "$dep" in
8209 -L*)
8210 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8211 if test "X$additional_libdir" != "X/usr/lib"; then
8212 haveit=
8213 if test "X$additional_libdir" = "X/usr/local/lib"; then
8214 if test -n "$GCC"; then
8215 case $host_os in
8216 linux*) haveit=yes;;
8217 esac
8218 fi
8219 fi
8220 if test -z "$haveit"; then
8221 haveit=
8222 for x in $LDFLAGS $LIBEXPAT; do
8223
8224 acl_save_prefix="$prefix"
8225 prefix="$acl_final_prefix"
8226 acl_save_exec_prefix="$exec_prefix"
8227 exec_prefix="$acl_final_exec_prefix"
8228 eval x=\"$x\"
8229 exec_prefix="$acl_save_exec_prefix"
8230 prefix="$acl_save_prefix"
8231
8232 if test "X$x" = "X-L$additional_libdir"; then
8233 haveit=yes
8234 break
8235 fi
8236 done
8237 if test -z "$haveit"; then
8238 if test -d "$additional_libdir"; then
8239 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8240 fi
8241 fi
8242 haveit=
8243 for x in $LDFLAGS $LTLIBEXPAT; do
8244
8245 acl_save_prefix="$prefix"
8246 prefix="$acl_final_prefix"
8247 acl_save_exec_prefix="$exec_prefix"
8248 exec_prefix="$acl_final_exec_prefix"
8249 eval x=\"$x\"
8250 exec_prefix="$acl_save_exec_prefix"
8251 prefix="$acl_save_prefix"
8252
8253 if test "X$x" = "X-L$additional_libdir"; then
8254 haveit=yes
8255 break
8256 fi
8257 done
8258 if test -z "$haveit"; then
8259 if test -d "$additional_libdir"; then
8260 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8261 fi
8262 fi
8263 fi
8264 fi
8265 ;;
8266 -R*)
8267 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8268 if test "$enable_rpath" != no; then
8269 haveit=
8270 for x in $rpathdirs; do
8271 if test "X$x" = "X$dir"; then
8272 haveit=yes
8273 break
8274 fi
8275 done
8276 if test -z "$haveit"; then
8277 rpathdirs="$rpathdirs $dir"
8278 fi
8279 haveit=
8280 for x in $ltrpathdirs; do
8281 if test "X$x" = "X$dir"; then
8282 haveit=yes
8283 break
8284 fi
8285 done
8286 if test -z "$haveit"; then
8287 ltrpathdirs="$ltrpathdirs $dir"
8288 fi
8289 fi
8290 ;;
8291 -l*)
8292 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8293 ;;
8294 *.la)
8295 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8296 ;;
8297 *)
8298 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8299 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8300 ;;
8301 esac
8302 done
8303 fi
8304 else
8305 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8306 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8307 fi
8308 fi
8309 fi
8310 done
8311 done
8312 if test "X$rpathdirs" != "X"; then
8313 if test -n "$hardcode_libdir_separator"; then
8314 alldirs=
8315 for found_dir in $rpathdirs; do
8316 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8317 done
8318 acl_save_libdir="$libdir"
8319 libdir="$alldirs"
8320 eval flag=\"$hardcode_libdir_flag_spec\"
8321 libdir="$acl_save_libdir"
8322 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8323 else
8324 for found_dir in $rpathdirs; do
8325 acl_save_libdir="$libdir"
8326 libdir="$found_dir"
8327 eval flag=\"$hardcode_libdir_flag_spec\"
8328 libdir="$acl_save_libdir"
8329 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8330 done
8331 fi
8332 fi
8333 if test "X$ltrpathdirs" != "X"; then
8334 for found_dir in $ltrpathdirs; do
8335 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8336 done
8337 fi
8338
8339
8340 ac_save_CPPFLAGS="$CPPFLAGS"
8341
8342 for element in $INCEXPAT; do
8343 haveit=
8344 for x in $CPPFLAGS; do
8345
8346 acl_save_prefix="$prefix"
8347 prefix="$acl_final_prefix"
8348 acl_save_exec_prefix="$exec_prefix"
8349 exec_prefix="$acl_final_exec_prefix"
8350 eval x=\"$x\"
8351 exec_prefix="$acl_save_exec_prefix"
8352 prefix="$acl_save_prefix"
8353
8354 if test "X$x" = "X$element"; then
8355 haveit=yes
8356 break
8357 fi
8358 done
8359 if test -z "$haveit"; then
8360 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8361 fi
8362 done
8363
8364
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8366 $as_echo_n "checking for libexpat... " >&6; }
8367 if test "${ac_cv_libexpat+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370
8371 ac_save_LIBS="$LIBS"
8372 LIBS="$LIBS $LIBEXPAT"
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375 #include "expat.h"
8376 int
8377 main ()
8378 {
8379 XML_Parser p = XML_ParserCreate (0);
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_link "$LINENO"; then :
8385 ac_cv_libexpat=yes
8386 else
8387 ac_cv_libexpat=no
8388 fi
8389 rm -f core conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
8391 LIBS="$ac_save_LIBS"
8392
8393 fi
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8395 $as_echo "$ac_cv_libexpat" >&6; }
8396 if test "$ac_cv_libexpat" = yes; then
8397 HAVE_LIBEXPAT=yes
8398
8399 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8400
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8402 $as_echo_n "checking how to link with libexpat... " >&6; }
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8404 $as_echo "$LIBEXPAT" >&6; }
8405 else
8406 HAVE_LIBEXPAT=no
8407 CPPFLAGS="$ac_save_CPPFLAGS"
8408 LIBEXPAT=
8409 LTLIBEXPAT=
8410 fi
8411
8412
8413
8414
8415
8416
8417 if test "$HAVE_LIBEXPAT" != yes; then
8418 if test "$with_expat" = yes; then
8419 as_fn_error "expat is missing or unusable" "$LINENO" 5
8420 else
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8422 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8423 fi
8424 else
8425 save_LIBS=$LIBS
8426 LIBS="$LIBS $LIBEXPAT"
8427 for ac_func in XML_StopParser
8428 do :
8429 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8430 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
8431 cat >>confdefs.h <<_ACEOF
8432 #define HAVE_XML_STOPPARSER 1
8433 _ACEOF
8434
8435 fi
8436 done
8437
8438 LIBS=$save_LIBS
8439 fi
8440 fi
8441
8442 # --------------------- #
8443 # Check for libpython. #
8444 # --------------------- #
8445
8446
8447
8448
8449
8450
8451 # Check whether --with-python was given.
8452 if test "${with_python+set}" = set; then :
8453 withval=$with_python;
8454 else
8455 with_python=auto
8456 fi
8457
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8459 $as_echo_n "checking whether to use python... " >&6; }
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8461 $as_echo "$with_python" >&6; }
8462
8463 if test "${with_python}" = no; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8465 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8466 have_libpython=no
8467 else
8468 case "${with_python}" in
8469 [\\/]* | ?:[\\/]*)
8470 if test -d ${with_python}; then
8471 # Assume the python binary is ${with_python}/bin/python.
8472 python_prog="${with_python}/bin/python"
8473 python_prefix=
8474 # If python does not exit ${with_python}/bin, then try in
8475 # ${with_python}. On Windows/MinGW, this is where the Python
8476 # executable is.
8477 if test ! -x "${python_prog}"; then
8478 python_prog="${with_python}/python"
8479 python_prefix=
8480 fi
8481 if test ! -x "${python_prog}"; then
8482 # Fall back to gdb 7.0/7.1 behaviour.
8483 python_prog=missing
8484 python_prefix=${with_python}
8485 fi
8486 elif test -x "${with_python}"; then
8487 # While we can't run python compiled for $host (unless host == build),
8488 # the user could write a script that provides the needed information,
8489 # so we support that.
8490 python_prog=${with_python}
8491 python_prefix=
8492 else
8493 as_fn_error "invalid value for --with-python" "$LINENO" 5
8494 fi
8495 ;;
8496 */*)
8497 # Disallow --with-python=foo/bar.
8498 as_fn_error "invalid value for --with-python" "$LINENO" 5
8499 ;;
8500 *)
8501 # The user has either specified auto, yes, or the name of the python
8502 # program assumed to be in $PATH.
8503 python_prefix=
8504 case "${with_python}" in
8505 yes | auto)
8506 if test ${build} = ${host}; then
8507 # Extract the first word of "python", so it can be a program name with args.
8508 set dummy python; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 case $python_prog_path in
8515 [\\/]* | ?:[\\/]*)
8516 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8517 ;;
8518 *)
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8521 do
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 break 2
8529 fi
8530 done
8531 done
8532 IFS=$as_save_IFS
8533
8534 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8535 ;;
8536 esac
8537 fi
8538 python_prog_path=$ac_cv_path_python_prog_path
8539 if test -n "$python_prog_path"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8541 $as_echo "$python_prog_path" >&6; }
8542 else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 fi
8546
8547
8548 if test "${python_prog_path}" = missing; then
8549 python_prog=missing
8550 else
8551 python_prog=${python_prog_path}
8552 fi
8553 else
8554 # Not much we can do except assume the cross-compiler will find the
8555 # right files.
8556 python_prog=missing
8557 fi
8558 ;;
8559 *)
8560 # While we can't run python compiled for $host (unless host == build),
8561 # the user could write a script that provides the needed information,
8562 # so we support that.
8563 python_prog="${with_python}"
8564 # Extract the first word of "${python_prog}", so it can be a program name with args.
8565 set dummy ${python_prog}; ac_word=$2
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567 $as_echo_n "checking for $ac_word... " >&6; }
8568 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 case $python_prog_path in
8572 [\\/]* | ?:[\\/]*)
8573 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8574 ;;
8575 *)
8576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577 for as_dir in $PATH
8578 do
8579 IFS=$as_save_IFS
8580 test -z "$as_dir" && as_dir=.
8581 for ac_exec_ext in '' $ac_executable_extensions; do
8582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8583 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8585 break 2
8586 fi
8587 done
8588 done
8589 IFS=$as_save_IFS
8590
8591 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8592 ;;
8593 esac
8594 fi
8595 python_prog_path=$ac_cv_path_python_prog_path
8596 if test -n "$python_prog_path"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8598 $as_echo "$python_prog_path" >&6; }
8599 else
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8602 fi
8603
8604
8605 if test "${python_prog_path}" = missing; then
8606 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8607 fi
8608 ;;
8609 esac
8610 esac
8611
8612 if test "${python_prog}" != missing; then
8613 # We have a python program to use, but it may be too old.
8614 # Don't flag an error for --with-python=auto (the default).
8615 have_python_config=yes
8616 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8617 if test $? != 0; then
8618 have_python_config=failed
8619 if test "${with_python}" != auto; then
8620 as_fn_error "failure running python-config --includes" "$LINENO" 5
8621 fi
8622 fi
8623 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8624 if test $? != 0; then
8625 have_python_config=failed
8626 if test "${with_python}" != auto; then
8627 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8628 fi
8629 fi
8630 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8631 if test $? != 0; then
8632 have_python_config=failed
8633 if test "${with_python}" != auto; then
8634 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8635 fi
8636 fi
8637 else
8638 # We do not have a python executable we can use to determine where
8639 # to find the Python headers and libs. We cannot guess the include
8640 # path from the python_prefix either, because that include path
8641 # depends on the Python version. So, there is nothing much we can
8642 # do except assume that the compiler will be able to find those files.
8643 python_includes=
8644 python_libs=
8645 have_python_config=no
8646 fi
8647
8648 # If we have python-config, only try the configuration it provides.
8649 # Otherwise fallback on the old way of trying different versions of
8650 # python in turn.
8651
8652 have_libpython=no
8653 if test "${have_python_config}" = yes; then
8654 # Determine the Python version by extracting "-lpython<version>"
8655 # part of the python_libs. <version> is usually X.Y with X and Y
8656 # being decimal numbers, but can also be XY (seen on Windows).
8657 #
8658 # The extraction is performed using sed with a regular expression.
8659 # Initially, the regexp used was using the '?' quantifier to make
8660 # the dot in the version number optional. Unfortunately, this
8661 # does not work with non-GNU versions of sed because, because of
8662 # what looks like a limitation (the '?' quantifier does not work
8663 # with back-references). We work around this limitation by using
8664 # the '*' quantifier instead. It means that, in theory, we might
8665 # match unexpected version strings such as "-lpython2..7", but
8666 # this seems unlikely in practice. And even if that happens,
8667 # an error will be triggered later on, when checking that version
8668 # number.
8669 python_version=`echo " ${python_libs} " \
8670 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8671 case "${python_version}" in
8672 python*)
8673
8674 version=${python_version}
8675
8676 new_CPPFLAGS=${python_includes}
8677 new_LIBS=${python_libs}
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8679 $as_echo_n "checking for ${version}... " >&6; }
8680 save_CPPFLAGS=$CPPFLAGS
8681 save_LIBS=$LIBS
8682 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8683 LIBS="$LIBS $new_LIBS"
8684 found_usable_python=no
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 #include "Python.h"
8688 int
8689 main ()
8690 {
8691 Py_Initialize ();
8692 ;
8693 return 0;
8694 }
8695 _ACEOF
8696 if ac_fn_c_try_link "$LINENO"; then :
8697 have_libpython=${version}
8698 found_usable_python=yes
8699 PYTHON_CPPFLAGS=$new_CPPFLAGS
8700 PYTHON_LIBS=$new_LIBS
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
8704 CPPFLAGS=$save_CPPFLAGS
8705 LIBS=$save_LIBS
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8707 $as_echo "${found_usable_python}" >&6; }
8708
8709 ;;
8710 *)
8711 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8712 ;;
8713 esac
8714 elif test "${have_python_config}" != failed; then
8715 if test "${have_libpython}" = no; then
8716
8717 version=python2.7
8718
8719 new_CPPFLAGS=${python_includes}
8720 new_LIBS="${python_libs} -lpython2.7"
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8722 $as_echo_n "checking for ${version}... " >&6; }
8723 save_CPPFLAGS=$CPPFLAGS
8724 save_LIBS=$LIBS
8725 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8726 LIBS="$LIBS $new_LIBS"
8727 found_usable_python=no
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 #include "Python.h"
8731 int
8732 main ()
8733 {
8734 Py_Initialize ();
8735 ;
8736 return 0;
8737 }
8738 _ACEOF
8739 if ac_fn_c_try_link "$LINENO"; then :
8740 have_libpython=${version}
8741 found_usable_python=yes
8742 PYTHON_CPPFLAGS=$new_CPPFLAGS
8743 PYTHON_LIBS=$new_LIBS
8744 fi
8745 rm -f core conftest.err conftest.$ac_objext \
8746 conftest$ac_exeext conftest.$ac_ext
8747 CPPFLAGS=$save_CPPFLAGS
8748 LIBS=$save_LIBS
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8750 $as_echo "${found_usable_python}" >&6; }
8751
8752 fi
8753 if test "${have_libpython}" = no; then
8754
8755 version=python2.6
8756
8757 new_CPPFLAGS=${python_includes}
8758 new_LIBS="${python_libs} -lpython2.6"
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8760 $as_echo_n "checking for ${version}... " >&6; }
8761 save_CPPFLAGS=$CPPFLAGS
8762 save_LIBS=$LIBS
8763 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8764 LIBS="$LIBS $new_LIBS"
8765 found_usable_python=no
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8768 #include "Python.h"
8769 int
8770 main ()
8771 {
8772 Py_Initialize ();
8773 ;
8774 return 0;
8775 }
8776 _ACEOF
8777 if ac_fn_c_try_link "$LINENO"; then :
8778 have_libpython=${version}
8779 found_usable_python=yes
8780 PYTHON_CPPFLAGS=$new_CPPFLAGS
8781 PYTHON_LIBS=$new_LIBS
8782 fi
8783 rm -f core conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext conftest.$ac_ext
8785 CPPFLAGS=$save_CPPFLAGS
8786 LIBS=$save_LIBS
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8788 $as_echo "${found_usable_python}" >&6; }
8789
8790 fi
8791 if test ${have_libpython} = no; then
8792
8793 version=python2.5
8794
8795 new_CPPFLAGS=${python_includes}
8796 new_LIBS="${python_libs} -lpython2.5"
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8798 $as_echo_n "checking for ${version}... " >&6; }
8799 save_CPPFLAGS=$CPPFLAGS
8800 save_LIBS=$LIBS
8801 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8802 LIBS="$LIBS $new_LIBS"
8803 found_usable_python=no
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 #include "Python.h"
8807 int
8808 main ()
8809 {
8810 Py_Initialize ();
8811 ;
8812 return 0;
8813 }
8814 _ACEOF
8815 if ac_fn_c_try_link "$LINENO"; then :
8816 have_libpython=${version}
8817 found_usable_python=yes
8818 PYTHON_CPPFLAGS=$new_CPPFLAGS
8819 PYTHON_LIBS=$new_LIBS
8820 fi
8821 rm -f core conftest.err conftest.$ac_objext \
8822 conftest$ac_exeext conftest.$ac_ext
8823 CPPFLAGS=$save_CPPFLAGS
8824 LIBS=$save_LIBS
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8826 $as_echo "${found_usable_python}" >&6; }
8827
8828 fi
8829 if test ${have_libpython} = no; then
8830
8831 version=python2.4
8832
8833 new_CPPFLAGS=${python_includes}
8834 new_LIBS="${python_libs} -lpython2.4"
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8836 $as_echo_n "checking for ${version}... " >&6; }
8837 save_CPPFLAGS=$CPPFLAGS
8838 save_LIBS=$LIBS
8839 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8840 LIBS="$LIBS $new_LIBS"
8841 found_usable_python=no
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8844 #include "Python.h"
8845 int
8846 main ()
8847 {
8848 Py_Initialize ();
8849 ;
8850 return 0;
8851 }
8852 _ACEOF
8853 if ac_fn_c_try_link "$LINENO"; then :
8854 have_libpython=${version}
8855 found_usable_python=yes
8856 PYTHON_CPPFLAGS=$new_CPPFLAGS
8857 PYTHON_LIBS=$new_LIBS
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext \
8860 conftest$ac_exeext conftest.$ac_ext
8861 CPPFLAGS=$save_CPPFLAGS
8862 LIBS=$save_LIBS
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8864 $as_echo "${found_usable_python}" >&6; }
8865
8866 fi
8867 fi
8868 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8869
8870 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8871
8872 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8873
8874 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8875
8876 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8877
8878 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8879
8880 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8881
8882 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8883
8884 fi
8885
8886 if test "${have_libpython}" = no; then
8887 case "${with_python}" in
8888 yes)
8889 as_fn_error "python is missing or unusable" "$LINENO" 5
8890 ;;
8891 auto)
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8893 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8894 ;;
8895 *)
8896 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8897 ;;
8898 esac
8899 else
8900 if test -n "${python_prefix}"; then
8901
8902 cat >>confdefs.h <<_ACEOF
8903 #define WITH_PYTHON_PATH "${python_prefix}"
8904 _ACEOF
8905
8906
8907 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8908 if test "x$prefix" = xNONE; then
8909 test_prefix=/usr/local
8910 else
8911 test_prefix=$prefix
8912 fi
8913 else
8914 test_prefix=$exec_prefix
8915 fi
8916 value=0
8917 case ${python_prefix} in
8918 "${test_prefix}"|"${test_prefix}/"*|\
8919 '${exec_prefix}'|'${exec_prefix}/'*)
8920 value=1
8921 ;;
8922 esac
8923
8924 cat >>confdefs.h <<_ACEOF
8925 #define PYTHON_PATH_RELOCATABLE $value
8926 _ACEOF
8927
8928
8929 fi
8930 fi
8931 fi
8932
8933 if test "${have_libpython}" != no; then
8934
8935 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8936
8937 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8938 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8939 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8940 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
8941 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8942
8943 # Flags needed to compile Python code (taken from python-config --cflags).
8944 # We cannot call python-config directly because it will output whatever was
8945 # used when compiling the Python interpreter itself, including flags which
8946 # would make the python-related objects be compiled differently from the
8947 # rest of GDB (e.g., -O2 and -fPIC).
8948 if test "${GCC}" = yes; then
8949 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
8950 fi
8951
8952 if test "x${tentative_python_cflags}" != x; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8954 $as_echo_n "checking compiler flags for python code... " >&6; }
8955 for flag in ${tentative_python_cflags}; do
8956 # Check that the compiler accepts it
8957 saved_CFLAGS="$CFLAGS"
8958 CFLAGS="$CFLAGS $flag"
8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8961
8962 int
8963 main ()
8964 {
8965
8966 ;
8967 return 0;
8968 }
8969 _ACEOF
8970 if ac_fn_c_try_compile "$LINENO"; then :
8971 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 CFLAGS="$saved_CFLAGS"
8975 done
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8977 $as_echo "${PYTHON_CFLAGS}" >&6; }
8978 fi
8979
8980 # On x64 Windows, Python's include headers, and pyconfig.h in
8981 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8982 # version of Windows. Unfortunately, MS_WIN64 is only defined if
8983 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
8984 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8985 # The issue was reported to the Python community, but still isn't
8986 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8987
8988 case "$gdb_host" in
8989 mingw64)
8990 if test "${GCC}" = yes; then
8991 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
8992 fi
8993 ;;
8994 esac
8995
8996 # Note that "python -m threading" cannot be used to check for
8997 # threading support due to a bug in Python 2.7.3
8998 # (http://bugs.python.org/issue15567).
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
9000 $as_echo_n "checking whether python supports threads... " >&6; }
9001 saved_CPPFLAGS="${CPPFLAGS}"
9002 CPPFLAGS="${PYTHON_CPPFLAGS}"
9003 # Note that the test is reversed so that python_has_threads=yes on
9004 # unexpected failures.
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007
9008 #include <Python.h>
9009 #ifdef WITH_THREAD
9010 # error
9011 #endif
9012
9013 _ACEOF
9014 if ac_fn_c_try_cpp "$LINENO"; then :
9015 python_has_threads=no
9016 else
9017 python_has_threads=yes
9018 fi
9019 rm -f conftest.err conftest.$ac_ext
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9021 $as_echo "${python_has_threads}" >&6; }
9022 CPPFLAGS="${saved_CPPFLAGS}"
9023 else
9024 # Even if Python support is not compiled in, we need to have this file
9025 # included so that the "python" command, et.al., still exists.
9026 CONFIG_OBS="$CONFIG_OBS python.o"
9027 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
9028 fi
9029
9030
9031
9032 if test "${have_libpython}" != no; then
9033 HAVE_PYTHON_TRUE=
9034 HAVE_PYTHON_FALSE='#'
9035 else
9036 HAVE_PYTHON_TRUE='#'
9037 HAVE_PYTHON_FALSE=
9038 fi
9039
9040
9041 # -------------------- #
9042 # Check for libguile. #
9043 # -------------------- #
9044
9045
9046
9047
9048
9049
9050 # Check whether --with-guile was given.
9051 if test "${with_guile+set}" = set; then :
9052 withval=$with_guile;
9053 else
9054 with_guile=auto
9055 fi
9056
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9058 $as_echo_n "checking whether to use guile... " >&6; }
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9060 $as_echo "$with_guile" >&6; }
9061
9062 # Extract the first word of "pkg-config", so it can be a program name with args.
9063 set dummy pkg-config; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 case $pkg_config_prog_path in
9070 [\\/]* | ?:[\\/]*)
9071 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
9072 ;;
9073 *)
9074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 for as_dir in $PATH
9076 do
9077 IFS=$as_save_IFS
9078 test -z "$as_dir" && as_dir=.
9079 for ac_exec_ext in '' $ac_executable_extensions; do
9080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9081 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
9082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083 break 2
9084 fi
9085 done
9086 done
9087 IFS=$as_save_IFS
9088
9089 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
9090 ;;
9091 esac
9092 fi
9093 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
9094 if test -n "$pkg_config_prog_path"; then
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9096 $as_echo "$pkg_config_prog_path" >&6; }
9097 else
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 $as_echo "no" >&6; }
9100 fi
9101
9102
9103
9104 try_guile_versions="guile-2.2 guile-2.0"
9105 have_libguile=no
9106 case "${with_guile}" in
9107 no)
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9109 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9110 ;;
9111 auto)
9112 if test "${pkg_config_prog_path}" = "missing"; then
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9114 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9115 else
9116
9117 pkg_config=${pkg_config_prog_path}
9118 guile_version_list=${try_guile_versions}
9119 flag_errors=no
9120
9121 found_usable_guile=checking
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9123 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9124 for guile_version in ${guile_version_list}; do
9125 ${pkg_config} --exists ${guile_version} 2>/dev/null
9126 if test $? != 0; then
9127 continue
9128 fi
9129 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9130 if test $? != 0; then
9131 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9132 fi
9133 new_LIBS=`${pkg_config} --libs ${guile_version}`
9134 if test $? != 0; then
9135 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9136 fi
9137 found_usable_guile=${guile_version}
9138 break
9139 done
9140 if test "${found_usable_guile}" = "checking"; then
9141 if test "${flag_errors}" = "yes"; then
9142 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9143 else
9144 found_usable_guile=no
9145 fi
9146 fi
9147 if test "${found_usable_guile}" != no; then
9148 save_CPPFLAGS=$CPPFLAGS
9149 save_LIBS=$LIBS
9150 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9151 LIBS="$LIBS $new_LIBS"
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 #include "libguile.h"
9155 int
9156 main ()
9157 {
9158 scm_init_guile ();
9159 ;
9160 return 0;
9161 }
9162 _ACEOF
9163 if ac_fn_c_try_link "$LINENO"; then :
9164 have_libguile=yes
9165 GUILE_CPPFLAGS=$new_CPPFLAGS
9166 GUILE_LIBS=$new_LIBS
9167 else
9168 found_usable_guile=no
9169 fi
9170 rm -f core conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
9172 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9173 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9174
9175 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9176
9177
9178 fi
9179
9180 CPPFLAGS=$save_CPPFLAGS
9181 LIBS=$save_LIBS
9182 if test "${found_usable_guile}" = no; then
9183 if test "${flag_errors}" = yes; then
9184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9186 as_fn_error "linking guile version ${guile_version} test program failed
9187 See \`config.log' for more details." "$LINENO" 5; }
9188 fi
9189 fi
9190 fi
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9192 $as_echo "${found_usable_guile}" >&6; }
9193
9194 fi
9195 ;;
9196 yes)
9197 if test "${pkg_config_prog_path}" = "missing"; then
9198 as_fn_error "pkg-config not found" "$LINENO" 5
9199 fi
9200
9201 pkg_config=${pkg_config_prog_path}
9202 guile_version_list=${try_guile_versions}
9203 flag_errors=yes
9204
9205 found_usable_guile=checking
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9207 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9208 for guile_version in ${guile_version_list}; do
9209 ${pkg_config} --exists ${guile_version} 2>/dev/null
9210 if test $? != 0; then
9211 continue
9212 fi
9213 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9214 if test $? != 0; then
9215 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9216 fi
9217 new_LIBS=`${pkg_config} --libs ${guile_version}`
9218 if test $? != 0; then
9219 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9220 fi
9221 found_usable_guile=${guile_version}
9222 break
9223 done
9224 if test "${found_usable_guile}" = "checking"; then
9225 if test "${flag_errors}" = "yes"; then
9226 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9227 else
9228 found_usable_guile=no
9229 fi
9230 fi
9231 if test "${found_usable_guile}" != no; then
9232 save_CPPFLAGS=$CPPFLAGS
9233 save_LIBS=$LIBS
9234 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9235 LIBS="$LIBS $new_LIBS"
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238 #include "libguile.h"
9239 int
9240 main ()
9241 {
9242 scm_init_guile ();
9243 ;
9244 return 0;
9245 }
9246 _ACEOF
9247 if ac_fn_c_try_link "$LINENO"; then :
9248 have_libguile=yes
9249 GUILE_CPPFLAGS=$new_CPPFLAGS
9250 GUILE_LIBS=$new_LIBS
9251 else
9252 found_usable_guile=no
9253 fi
9254 rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
9256 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9257 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9258
9259 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9260
9261
9262 fi
9263
9264 CPPFLAGS=$save_CPPFLAGS
9265 LIBS=$save_LIBS
9266 if test "${found_usable_guile}" = no; then
9267 if test "${flag_errors}" = yes; then
9268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9270 as_fn_error "linking guile version ${guile_version} test program failed
9271 See \`config.log' for more details." "$LINENO" 5; }
9272 fi
9273 fi
9274 fi
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9276 $as_echo "${found_usable_guile}" >&6; }
9277
9278 ;;
9279 [\\/]* | ?:[\\/]*)
9280 if test -x "${with_guile}"; then
9281
9282 pkg_config=${with_guile}
9283 guile_version_list=${try_guile_versions}
9284 flag_errors=yes
9285
9286 found_usable_guile=checking
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9288 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9289 for guile_version in ${guile_version_list}; do
9290 ${pkg_config} --exists ${guile_version} 2>/dev/null
9291 if test $? != 0; then
9292 continue
9293 fi
9294 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9295 if test $? != 0; then
9296 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9297 fi
9298 new_LIBS=`${pkg_config} --libs ${guile_version}`
9299 if test $? != 0; then
9300 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9301 fi
9302 found_usable_guile=${guile_version}
9303 break
9304 done
9305 if test "${found_usable_guile}" = "checking"; then
9306 if test "${flag_errors}" = "yes"; then
9307 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9308 else
9309 found_usable_guile=no
9310 fi
9311 fi
9312 if test "${found_usable_guile}" != no; then
9313 save_CPPFLAGS=$CPPFLAGS
9314 save_LIBS=$LIBS
9315 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9316 LIBS="$LIBS $new_LIBS"
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319 #include "libguile.h"
9320 int
9321 main ()
9322 {
9323 scm_init_guile ();
9324 ;
9325 return 0;
9326 }
9327 _ACEOF
9328 if ac_fn_c_try_link "$LINENO"; then :
9329 have_libguile=yes
9330 GUILE_CPPFLAGS=$new_CPPFLAGS
9331 GUILE_LIBS=$new_LIBS
9332 else
9333 found_usable_guile=no
9334 fi
9335 rm -f core conftest.err conftest.$ac_objext \
9336 conftest$ac_exeext conftest.$ac_ext
9337 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9338 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9339
9340 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9341
9342
9343 fi
9344
9345 CPPFLAGS=$save_CPPFLAGS
9346 LIBS=$save_LIBS
9347 if test "${found_usable_guile}" = no; then
9348 if test "${flag_errors}" = yes; then
9349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9351 as_fn_error "linking guile version ${guile_version} test program failed
9352 See \`config.log' for more details." "$LINENO" 5; }
9353 fi
9354 fi
9355 fi
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9357 $as_echo "${found_usable_guile}" >&6; }
9358
9359 else
9360 as_fn_error "Guile config program not executable: ${with_guile}" "$LINENO" 5
9361 fi
9362 ;;
9363 "" | */*)
9364 # Disallow --with=guile="" and --with-guile=foo/bar.
9365 as_fn_error "invalid value for --with-guile" "$LINENO" 5
9366 ;;
9367 *)
9368 # A space separate list of guile versions to try, in order.
9369 if test "${pkg_config_prog_path}" = "missing"; then
9370 as_fn_error "pkg-config not found" "$LINENO" 5
9371 fi
9372
9373 pkg_config=${pkg_config_prog_path}
9374 guile_version_list=${with_guile}
9375 flag_errors=yes
9376
9377 found_usable_guile=checking
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9379 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9380 for guile_version in ${guile_version_list}; do
9381 ${pkg_config} --exists ${guile_version} 2>/dev/null
9382 if test $? != 0; then
9383 continue
9384 fi
9385 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9386 if test $? != 0; then
9387 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9388 fi
9389 new_LIBS=`${pkg_config} --libs ${guile_version}`
9390 if test $? != 0; then
9391 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9392 fi
9393 found_usable_guile=${guile_version}
9394 break
9395 done
9396 if test "${found_usable_guile}" = "checking"; then
9397 if test "${flag_errors}" = "yes"; then
9398 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9399 else
9400 found_usable_guile=no
9401 fi
9402 fi
9403 if test "${found_usable_guile}" != no; then
9404 save_CPPFLAGS=$CPPFLAGS
9405 save_LIBS=$LIBS
9406 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9407 LIBS="$LIBS $new_LIBS"
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 #include "libguile.h"
9411 int
9412 main ()
9413 {
9414 scm_init_guile ();
9415 ;
9416 return 0;
9417 }
9418 _ACEOF
9419 if ac_fn_c_try_link "$LINENO"; then :
9420 have_libguile=yes
9421 GUILE_CPPFLAGS=$new_CPPFLAGS
9422 GUILE_LIBS=$new_LIBS
9423 else
9424 found_usable_guile=no
9425 fi
9426 rm -f core conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext conftest.$ac_ext
9428 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9429 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9430
9431 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9432
9433
9434 fi
9435
9436 CPPFLAGS=$save_CPPFLAGS
9437 LIBS=$save_LIBS
9438 if test "${found_usable_guile}" = no; then
9439 if test "${flag_errors}" = yes; then
9440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9442 as_fn_error "linking guile version ${guile_version} test program failed
9443 See \`config.log' for more details." "$LINENO" 5; }
9444 fi
9445 fi
9446 fi
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9448 $as_echo "${found_usable_guile}" >&6; }
9449
9450 ;;
9451 esac
9452
9453 if test "${have_libguile}" != no; then
9454 case "${with_guile}" in
9455 [\\/]* | ?:[\\/]*)
9456
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9458 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9459 if test "${ac_cv_guild_program_name+set}" = set; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
9463
9464 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9465 # the 'guild' and 'bindir' variables. In that case, try to guess
9466 # what the program name is, at the risk of getting it wrong if
9467 # Guile was configured with '--program-suffix' or similar.
9468 if test "x$ac_cv_guild_program_name" = "x"; then
9469 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9470 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9471 fi
9472
9473 fi
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9475 $as_echo "$ac_cv_guild_program_name" >&6; }
9476
9477 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9478 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9479 fi
9480
9481 GUILD="$ac_cv_guild_program_name"
9482
9483
9484 ;;
9485 *)
9486
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9488 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9489 if test "${ac_cv_guild_program_name+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9493
9494 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9495 # the 'guild' and 'bindir' variables. In that case, try to guess
9496 # what the program name is, at the risk of getting it wrong if
9497 # Guile was configured with '--program-suffix' or similar.
9498 if test "x$ac_cv_guild_program_name" = "x"; then
9499 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9500 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9501 fi
9502
9503 fi
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9505 $as_echo "$ac_cv_guild_program_name" >&6; }
9506
9507 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9508 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9509 fi
9510
9511 GUILD="$ac_cv_guild_program_name"
9512
9513
9514 ;;
9515 esac
9516
9517
9518 if test "$cross_compiling" = no; then
9519 GUILD_TARGET_FLAG=
9520 else
9521 GUILD_TARGET_FLAG="--target=$host"
9522 fi
9523
9524
9525
9526
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9528 $as_echo_n "checking whether guild supports this host... " >&6; }
9529 if test "${ac_cv_guild_ok+set}" = set; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9533 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9534 ac_cv_guild_ok=yes
9535 else
9536 ac_cv_guild_ok=no
9537 fi
9538 fi
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9540 $as_echo "$ac_cv_guild_ok" >&6; }
9541
9542 if test "$ac_cv_guild_ok" = no; then
9543 have_libguile=no
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9545 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9546 fi
9547 fi
9548
9549 if test "${have_libguile}" != no; then
9550
9551 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9552
9553 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9554 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9555 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9556 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
9557 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9558
9559 save_LIBS="$LIBS"
9560 save_CPPFLAGS="$CPPFLAGS"
9561 LIBS="$GUILE_LIBS"
9562 CPPFLAGS="$GUILE_CPPFLAGS"
9563 for ac_func in scm_new_smob
9564 do :
9565 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9566 if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
9567 cat >>confdefs.h <<_ACEOF
9568 #define HAVE_SCM_NEW_SMOB 1
9569 _ACEOF
9570
9571 fi
9572 done
9573
9574 LIBS="$save_LIBS"
9575 CPPFLAGS="$save_CPPFLAGS"
9576 else
9577 # Even if Guile support is not compiled in, we need to have these files
9578 # included.
9579 CONFIG_OBS="$CONFIG_OBS guile.o"
9580 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
9581 fi
9582
9583
9584 if test "${have_libguile}" != no; then
9585 HAVE_GUILE_TRUE=
9586 HAVE_GUILE_FALSE='#'
9587 else
9588 HAVE_GUILE_TRUE='#'
9589 HAVE_GUILE_FALSE=
9590 fi
9591
9592
9593 # --------------------- #
9594 # Check for libmcheck. #
9595 # --------------------- #
9596
9597 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9598 # but turn it off if Python is enabled with threads, since -lmcheck is
9599 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9600 # and for releases.
9601 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
9602 && $development; then
9603 libmcheck_default=yes
9604 else
9605 libmcheck_default=no
9606 fi
9607
9608 # Check whether --enable-libmcheck was given.
9609 if test "${enable_libmcheck+set}" = set; then :
9610 enableval=$enable_libmcheck; case "${enableval}" in
9611 yes | y) ENABLE_LIBMCHECK="yes" ;;
9612 no | n) ENABLE_LIBMCHECK="no" ;;
9613 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
9614 esac
9615 fi
9616
9617
9618 if test -z "${ENABLE_LIBMCHECK}"; then
9619 ENABLE_LIBMCHECK=${libmcheck_default}
9620 fi
9621
9622 if test "$ENABLE_LIBMCHECK" = "yes" ; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
9624 $as_echo_n "checking for main in -lmcheck... " >&6; }
9625 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 ac_check_lib_save_LIBS=$LIBS
9629 LIBS="-lmcheck $LIBS"
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632
9633
9634 int
9635 main ()
9636 {
9637 return main ();
9638 ;
9639 return 0;
9640 }
9641 _ACEOF
9642 if ac_fn_c_try_link "$LINENO"; then :
9643 ac_cv_lib_mcheck_main=yes
9644 else
9645 ac_cv_lib_mcheck_main=no
9646 fi
9647 rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LIBS=$ac_check_lib_save_LIBS
9650 fi
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
9652 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
9653 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
9654 cat >>confdefs.h <<_ACEOF
9655 #define HAVE_LIBMCHECK 1
9656 _ACEOF
9657
9658 LIBS="-lmcheck $LIBS"
9659
9660 fi
9661
9662 fi
9663
9664
9665 if test "$ENABLE_LIBMCHECK" = "yes" \
9666 -a "${have_libpython}" != "no" \
9667 -a "${python_has_threads}" = "yes" ; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
9669 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
9670 fi
9671
9672
9673 # Check whether --with-intel_pt was given.
9674 if test "${with_intel_pt+set}" = set; then :
9675 withval=$with_intel_pt;
9676 else
9677 with_intel_pt=auto
9678 fi
9679
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9681 $as_echo_n "checking whether to use intel pt... " >&6; }
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9683 $as_echo "$with_intel_pt" >&6; }
9684
9685 if test "${with_intel_pt}" = no; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel(R) Processor Trace support disabled; some features may be unavailable." >&5
9687 $as_echo "$as_me: WARNING: Intel(R) Processor Trace support disabled; some features may be unavailable." >&2;}
9688 HAVE_LIBIPT=no
9689 else
9690
9691
9692
9693
9694
9695
9696
9697
9698 use_additional=yes
9699
9700 acl_save_prefix="$prefix"
9701 prefix="$acl_final_prefix"
9702 acl_save_exec_prefix="$exec_prefix"
9703 exec_prefix="$acl_final_exec_prefix"
9704
9705 eval additional_includedir=\"$includedir\"
9706 eval additional_libdir=\"$libdir\"
9707
9708 exec_prefix="$acl_save_exec_prefix"
9709 prefix="$acl_save_prefix"
9710
9711
9712 # Check whether --with-libipt-prefix was given.
9713 if test "${with_libipt_prefix+set}" = set; then :
9714 withval=$with_libipt_prefix;
9715 if test "X$withval" = "Xno"; then
9716 use_additional=no
9717 else
9718 if test "X$withval" = "X"; then
9719
9720 acl_save_prefix="$prefix"
9721 prefix="$acl_final_prefix"
9722 acl_save_exec_prefix="$exec_prefix"
9723 exec_prefix="$acl_final_exec_prefix"
9724
9725 eval additional_includedir=\"$includedir\"
9726 eval additional_libdir=\"$libdir\"
9727
9728 exec_prefix="$acl_save_exec_prefix"
9729 prefix="$acl_save_prefix"
9730
9731 else
9732 additional_includedir="$withval/include"
9733 additional_libdir="$withval/lib"
9734 fi
9735 fi
9736
9737 fi
9738
9739 LIBIPT=
9740 LTLIBIPT=
9741 INCIPT=
9742 rpathdirs=
9743 ltrpathdirs=
9744 names_already_handled=
9745 names_next_round='ipt '
9746 while test -n "$names_next_round"; do
9747 names_this_round="$names_next_round"
9748 names_next_round=
9749 for name in $names_this_round; do
9750 already_handled=
9751 for n in $names_already_handled; do
9752 if test "$n" = "$name"; then
9753 already_handled=yes
9754 break
9755 fi
9756 done
9757 if test -z "$already_handled"; then
9758 names_already_handled="$names_already_handled $name"
9759 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9760 eval value=\"\$HAVE_LIB$uppername\"
9761 if test -n "$value"; then
9762 if test "$value" = yes; then
9763 eval value=\"\$LIB$uppername\"
9764 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
9765 eval value=\"\$LTLIB$uppername\"
9766 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
9767 else
9768 :
9769 fi
9770 else
9771 found_dir=
9772 found_la=
9773 found_so=
9774 found_a=
9775 if test $use_additional = yes; then
9776 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9777 found_dir="$additional_libdir"
9778 found_so="$additional_libdir/lib$name.$shlibext"
9779 if test -f "$additional_libdir/lib$name.la"; then
9780 found_la="$additional_libdir/lib$name.la"
9781 fi
9782 else
9783 if test -f "$additional_libdir/lib$name.$libext"; then
9784 found_dir="$additional_libdir"
9785 found_a="$additional_libdir/lib$name.$libext"
9786 if test -f "$additional_libdir/lib$name.la"; then
9787 found_la="$additional_libdir/lib$name.la"
9788 fi
9789 fi
9790 fi
9791 fi
9792 if test "X$found_dir" = "X"; then
9793 for x in $LDFLAGS $LTLIBIPT; do
9794
9795 acl_save_prefix="$prefix"
9796 prefix="$acl_final_prefix"
9797 acl_save_exec_prefix="$exec_prefix"
9798 exec_prefix="$acl_final_exec_prefix"
9799 eval x=\"$x\"
9800 exec_prefix="$acl_save_exec_prefix"
9801 prefix="$acl_save_prefix"
9802
9803 case "$x" in
9804 -L*)
9805 dir=`echo "X$x" | sed -e 's/^X-L//'`
9806 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9807 found_dir="$dir"
9808 found_so="$dir/lib$name.$shlibext"
9809 if test -f "$dir/lib$name.la"; then
9810 found_la="$dir/lib$name.la"
9811 fi
9812 else
9813 if test -f "$dir/lib$name.$libext"; then
9814 found_dir="$dir"
9815 found_a="$dir/lib$name.$libext"
9816 if test -f "$dir/lib$name.la"; then
9817 found_la="$dir/lib$name.la"
9818 fi
9819 fi
9820 fi
9821 ;;
9822 esac
9823 if test "X$found_dir" != "X"; then
9824 break
9825 fi
9826 done
9827 fi
9828 if test "X$found_dir" != "X"; then
9829 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9830 if test "X$found_so" != "X"; then
9831 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9832 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9833 else
9834 haveit=
9835 for x in $ltrpathdirs; do
9836 if test "X$x" = "X$found_dir"; then
9837 haveit=yes
9838 break
9839 fi
9840 done
9841 if test -z "$haveit"; then
9842 ltrpathdirs="$ltrpathdirs $found_dir"
9843 fi
9844 if test "$hardcode_direct" = yes; then
9845 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9846 else
9847 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9848 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9849 haveit=
9850 for x in $rpathdirs; do
9851 if test "X$x" = "X$found_dir"; then
9852 haveit=yes
9853 break
9854 fi
9855 done
9856 if test -z "$haveit"; then
9857 rpathdirs="$rpathdirs $found_dir"
9858 fi
9859 else
9860 haveit=
9861 for x in $LDFLAGS $LIBIPT; do
9862
9863 acl_save_prefix="$prefix"
9864 prefix="$acl_final_prefix"
9865 acl_save_exec_prefix="$exec_prefix"
9866 exec_prefix="$acl_final_exec_prefix"
9867 eval x=\"$x\"
9868 exec_prefix="$acl_save_exec_prefix"
9869 prefix="$acl_save_prefix"
9870
9871 if test "X$x" = "X-L$found_dir"; then
9872 haveit=yes
9873 break
9874 fi
9875 done
9876 if test -z "$haveit"; then
9877 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9878 fi
9879 if test "$hardcode_minus_L" != no; then
9880 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9881 else
9882 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
9883 fi
9884 fi
9885 fi
9886 fi
9887 else
9888 if test "X$found_a" != "X"; then
9889 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
9890 else
9891 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9892 fi
9893 fi
9894 additional_includedir=
9895 case "$found_dir" in
9896 */lib | */lib/)
9897 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9898 additional_includedir="$basedir/include"
9899 ;;
9900 esac
9901 if test "X$additional_includedir" != "X"; then
9902 if test "X$additional_includedir" != "X/usr/include"; then
9903 haveit=
9904 if test "X$additional_includedir" = "X/usr/local/include"; then
9905 if test -n "$GCC"; then
9906 case $host_os in
9907 linux*) haveit=yes;;
9908 esac
9909 fi
9910 fi
9911 if test -z "$haveit"; then
9912 for x in $CPPFLAGS $INCIPT; do
9913
9914 acl_save_prefix="$prefix"
9915 prefix="$acl_final_prefix"
9916 acl_save_exec_prefix="$exec_prefix"
9917 exec_prefix="$acl_final_exec_prefix"
9918 eval x=\"$x\"
9919 exec_prefix="$acl_save_exec_prefix"
9920 prefix="$acl_save_prefix"
9921
9922 if test "X$x" = "X-I$additional_includedir"; then
9923 haveit=yes
9924 break
9925 fi
9926 done
9927 if test -z "$haveit"; then
9928 if test -d "$additional_includedir"; then
9929 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
9930 fi
9931 fi
9932 fi
9933 fi
9934 fi
9935 if test -n "$found_la"; then
9936 save_libdir="$libdir"
9937 case "$found_la" in
9938 */* | *\\*) . "$found_la" ;;
9939 *) . "./$found_la" ;;
9940 esac
9941 libdir="$save_libdir"
9942 for dep in $dependency_libs; do
9943 case "$dep" in
9944 -L*)
9945 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9946 if test "X$additional_libdir" != "X/usr/lib"; then
9947 haveit=
9948 if test "X$additional_libdir" = "X/usr/local/lib"; then
9949 if test -n "$GCC"; then
9950 case $host_os in
9951 linux*) haveit=yes;;
9952 esac
9953 fi
9954 fi
9955 if test -z "$haveit"; then
9956 haveit=
9957 for x in $LDFLAGS $LIBIPT; do
9958
9959 acl_save_prefix="$prefix"
9960 prefix="$acl_final_prefix"
9961 acl_save_exec_prefix="$exec_prefix"
9962 exec_prefix="$acl_final_exec_prefix"
9963 eval x=\"$x\"
9964 exec_prefix="$acl_save_exec_prefix"
9965 prefix="$acl_save_prefix"
9966
9967 if test "X$x" = "X-L$additional_libdir"; then
9968 haveit=yes
9969 break
9970 fi
9971 done
9972 if test -z "$haveit"; then
9973 if test -d "$additional_libdir"; then
9974 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
9975 fi
9976 fi
9977 haveit=
9978 for x in $LDFLAGS $LTLIBIPT; do
9979
9980 acl_save_prefix="$prefix"
9981 prefix="$acl_final_prefix"
9982 acl_save_exec_prefix="$exec_prefix"
9983 exec_prefix="$acl_final_exec_prefix"
9984 eval x=\"$x\"
9985 exec_prefix="$acl_save_exec_prefix"
9986 prefix="$acl_save_prefix"
9987
9988 if test "X$x" = "X-L$additional_libdir"; then
9989 haveit=yes
9990 break
9991 fi
9992 done
9993 if test -z "$haveit"; then
9994 if test -d "$additional_libdir"; then
9995 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
9996 fi
9997 fi
9998 fi
9999 fi
10000 ;;
10001 -R*)
10002 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10003 if test "$enable_rpath" != no; then
10004 haveit=
10005 for x in $rpathdirs; do
10006 if test "X$x" = "X$dir"; then
10007 haveit=yes
10008 break
10009 fi
10010 done
10011 if test -z "$haveit"; then
10012 rpathdirs="$rpathdirs $dir"
10013 fi
10014 haveit=
10015 for x in $ltrpathdirs; do
10016 if test "X$x" = "X$dir"; then
10017 haveit=yes
10018 break
10019 fi
10020 done
10021 if test -z "$haveit"; then
10022 ltrpathdirs="$ltrpathdirs $dir"
10023 fi
10024 fi
10025 ;;
10026 -l*)
10027 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10028 ;;
10029 *.la)
10030 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10031 ;;
10032 *)
10033 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10034 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10035 ;;
10036 esac
10037 done
10038 fi
10039 else
10040 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10041 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10042 fi
10043 fi
10044 fi
10045 done
10046 done
10047 if test "X$rpathdirs" != "X"; then
10048 if test -n "$hardcode_libdir_separator"; then
10049 alldirs=
10050 for found_dir in $rpathdirs; do
10051 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10052 done
10053 acl_save_libdir="$libdir"
10054 libdir="$alldirs"
10055 eval flag=\"$hardcode_libdir_flag_spec\"
10056 libdir="$acl_save_libdir"
10057 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10058 else
10059 for found_dir in $rpathdirs; do
10060 acl_save_libdir="$libdir"
10061 libdir="$found_dir"
10062 eval flag=\"$hardcode_libdir_flag_spec\"
10063 libdir="$acl_save_libdir"
10064 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10065 done
10066 fi
10067 fi
10068 if test "X$ltrpathdirs" != "X"; then
10069 for found_dir in $ltrpathdirs; do
10070 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10071 done
10072 fi
10073
10074
10075 ac_save_CPPFLAGS="$CPPFLAGS"
10076
10077 for element in $INCIPT; do
10078 haveit=
10079 for x in $CPPFLAGS; do
10080
10081 acl_save_prefix="$prefix"
10082 prefix="$acl_final_prefix"
10083 acl_save_exec_prefix="$exec_prefix"
10084 exec_prefix="$acl_final_exec_prefix"
10085 eval x=\"$x\"
10086 exec_prefix="$acl_save_exec_prefix"
10087 prefix="$acl_save_prefix"
10088
10089 if test "X$x" = "X$element"; then
10090 haveit=yes
10091 break
10092 fi
10093 done
10094 if test -z "$haveit"; then
10095 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10096 fi
10097 done
10098
10099
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10101 $as_echo_n "checking for libipt... " >&6; }
10102 if test "${ac_cv_libipt+set}" = set; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105
10106 ac_save_LIBS="$LIBS"
10107 LIBS="$LIBS $LIBIPT"
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110 #include "intel-pt.h"
10111 int
10112 main ()
10113 {
10114 pt_insn_alloc_decoder (0);
10115 ;
10116 return 0;
10117 }
10118 _ACEOF
10119 if ac_fn_c_try_link "$LINENO"; then :
10120 ac_cv_libipt=yes
10121 else
10122 ac_cv_libipt=no
10123 fi
10124 rm -f core conftest.err conftest.$ac_objext \
10125 conftest$ac_exeext conftest.$ac_ext
10126 LIBS="$ac_save_LIBS"
10127
10128 fi
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10130 $as_echo "$ac_cv_libipt" >&6; }
10131 if test "$ac_cv_libipt" = yes; then
10132 HAVE_LIBIPT=yes
10133
10134 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10135
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10137 $as_echo_n "checking how to link with libipt... " >&6; }
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10139 $as_echo "$LIBIPT" >&6; }
10140 else
10141 HAVE_LIBIPT=no
10142 CPPFLAGS="$ac_save_CPPFLAGS"
10143 LIBIPT=
10144 LTLIBIPT=
10145 fi
10146
10147
10148
10149
10150
10151
10152 if test "$HAVE_LIBIPT" != yes; then
10153 if test "$with_intel_pt" = yes; then
10154 as_fn_error "libipt is missing or unusable" "$LINENO" 5
10155 else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10157 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10158 fi
10159 fi
10160 fi
10161
10162 # ------------------------- #
10163 # Checks for header files. #
10164 # ------------------------- #
10165
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10167 $as_echo_n "checking for ANSI C header files... " >&6; }
10168 if test "${ac_cv_header_stdc+set}" = set; then :
10169 $as_echo_n "(cached) " >&6
10170 else
10171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172 /* end confdefs.h. */
10173 #include <stdlib.h>
10174 #include <stdarg.h>
10175 #include <string.h>
10176 #include <float.h>
10177
10178 int
10179 main ()
10180 {
10181
10182 ;
10183 return 0;
10184 }
10185 _ACEOF
10186 if ac_fn_c_try_compile "$LINENO"; then :
10187 ac_cv_header_stdc=yes
10188 else
10189 ac_cv_header_stdc=no
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10192
10193 if test $ac_cv_header_stdc = yes; then
10194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10197 #include <string.h>
10198
10199 _ACEOF
10200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10201 $EGREP "memchr" >/dev/null 2>&1; then :
10202
10203 else
10204 ac_cv_header_stdc=no
10205 fi
10206 rm -f conftest*
10207
10208 fi
10209
10210 if test $ac_cv_header_stdc = yes; then
10211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214 #include <stdlib.h>
10215
10216 _ACEOF
10217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10218 $EGREP "free" >/dev/null 2>&1; then :
10219
10220 else
10221 ac_cv_header_stdc=no
10222 fi
10223 rm -f conftest*
10224
10225 fi
10226
10227 if test $ac_cv_header_stdc = yes; then
10228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10229 if test "$cross_compiling" = yes; then :
10230 :
10231 else
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10234 #include <ctype.h>
10235 #include <stdlib.h>
10236 #if ((' ' & 0x0FF) == 0x020)
10237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10239 #else
10240 # define ISLOWER(c) \
10241 (('a' <= (c) && (c) <= 'i') \
10242 || ('j' <= (c) && (c) <= 'r') \
10243 || ('s' <= (c) && (c) <= 'z'))
10244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10245 #endif
10246
10247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10248 int
10249 main ()
10250 {
10251 int i;
10252 for (i = 0; i < 256; i++)
10253 if (XOR (islower (i), ISLOWER (i))
10254 || toupper (i) != TOUPPER (i))
10255 return 2;
10256 return 0;
10257 }
10258 _ACEOF
10259 if ac_fn_c_try_run "$LINENO"; then :
10260
10261 else
10262 ac_cv_header_stdc=no
10263 fi
10264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10265 conftest.$ac_objext conftest.beam conftest.$ac_ext
10266 fi
10267
10268 fi
10269 fi
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10271 $as_echo "$ac_cv_header_stdc" >&6; }
10272 if test $ac_cv_header_stdc = yes; then
10273
10274 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10275
10276 fi
10277
10278 # elf_hp.h is for HP/UX 64-bit shared library support.
10279 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
10280 thread_db.h \
10281 sys/fault.h \
10282 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
10283 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
10284 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
10285 termios.h termio.h \
10286 sgtty.h elf_hp.h \
10287 dlfcn.h
10288 do :
10289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10290 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10291 eval as_val=\$$as_ac_Header
10292 if test "x$as_val" = x""yes; then :
10293 cat >>confdefs.h <<_ACEOF
10294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10295 _ACEOF
10296
10297 fi
10298
10299 done
10300
10301 for ac_header in sys/proc.h
10302 do :
10303 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10304 # include <sys/param.h>
10305 #endif
10306
10307 "
10308 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
10309 cat >>confdefs.h <<_ACEOF
10310 #define HAVE_SYS_PROC_H 1
10311 _ACEOF
10312
10313 fi
10314
10315 done
10316
10317 for ac_header in sys/user.h
10318 do :
10319 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10320 # include <sys/param.h>
10321 #endif
10322
10323 "
10324 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
10325 cat >>confdefs.h <<_ACEOF
10326 #define HAVE_SYS_USER_H 1
10327 _ACEOF
10328
10329 fi
10330
10331 done
10332
10333
10334 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10335 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10336 # think that we don't have <curses.h> if we're using GCC.
10337 case $host_os in
10338 solaris2.[789])
10339 if test "$GCC" = yes; then
10340
10341 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10342
10343 fi ;;
10344 esac
10345 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
10346 do :
10347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10348 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10349 eval as_val=\$$as_ac_Header
10350 if test "x$as_val" = x""yes; then :
10351 cat >>confdefs.h <<_ACEOF
10352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10353 _ACEOF
10354
10355 fi
10356
10357 done
10358
10359 for ac_header in term.h
10360 do :
10361 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10362 # include <curses.h>
10363 #endif
10364
10365 "
10366 if test "x$ac_cv_header_term_h" = x""yes; then :
10367 cat >>confdefs.h <<_ACEOF
10368 #define HAVE_TERM_H 1
10369 _ACEOF
10370
10371 fi
10372
10373 done
10374
10375
10376 # ------------------------- #
10377 # Checks for declarations. #
10378 # ------------------------- #
10379
10380
10381 # Check for presence and size of long long.
10382 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10383 if test "x$ac_cv_type_long_long" = x""yes; then :
10384
10385 cat >>confdefs.h <<_ACEOF
10386 #define HAVE_LONG_LONG 1
10387 _ACEOF
10388
10389 # The cast to long int works around a bug in the HP C Compiler
10390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10392 # This bug is HP SR number 8606223364.
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10394 $as_echo_n "checking size of long long... " >&6; }
10395 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10399
10400 else
10401 if test "$ac_cv_type_long_long" = yes; then
10402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10404 { as_fn_set_status 77
10405 as_fn_error "cannot compute sizeof (long long)
10406 See \`config.log' for more details." "$LINENO" 5; }; }
10407 else
10408 ac_cv_sizeof_long_long=0
10409 fi
10410 fi
10411
10412 fi
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10414 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10415
10416
10417
10418 cat >>confdefs.h <<_ACEOF
10419 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10420 _ACEOF
10421
10422
10423 fi
10424
10425
10426 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
10427 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
10428 ac_have_decl=1
10429 else
10430 ac_have_decl=0
10431 fi
10432
10433 cat >>confdefs.h <<_ACEOF
10434 #define HAVE_DECL_BASENAME $ac_have_decl
10435 _ACEOF
10436 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10437 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
10438 ac_have_decl=1
10439 else
10440 ac_have_decl=0
10441 fi
10442
10443 cat >>confdefs.h <<_ACEOF
10444 #define HAVE_DECL_FFS $ac_have_decl
10445 _ACEOF
10446 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10447 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
10448 ac_have_decl=1
10449 else
10450 ac_have_decl=0
10451 fi
10452
10453 cat >>confdefs.h <<_ACEOF
10454 #define HAVE_DECL_ASPRINTF $ac_have_decl
10455 _ACEOF
10456 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10457 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
10458 ac_have_decl=1
10459 else
10460 ac_have_decl=0
10461 fi
10462
10463 cat >>confdefs.h <<_ACEOF
10464 #define HAVE_DECL_VASPRINTF $ac_have_decl
10465 _ACEOF
10466 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10467 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10468 ac_have_decl=1
10469 else
10470 ac_have_decl=0
10471 fi
10472
10473 cat >>confdefs.h <<_ACEOF
10474 #define HAVE_DECL_SNPRINTF $ac_have_decl
10475 _ACEOF
10476 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10477 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
10478 ac_have_decl=1
10479 else
10480 ac_have_decl=0
10481 fi
10482
10483 cat >>confdefs.h <<_ACEOF
10484 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10485 _ACEOF
10486
10487 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10488 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
10489 ac_have_decl=1
10490 else
10491 ac_have_decl=0
10492 fi
10493
10494 cat >>confdefs.h <<_ACEOF
10495 #define HAVE_DECL_STRTOL $ac_have_decl
10496 _ACEOF
10497 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10498 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
10499 ac_have_decl=1
10500 else
10501 ac_have_decl=0
10502 fi
10503
10504 cat >>confdefs.h <<_ACEOF
10505 #define HAVE_DECL_STRTOUL $ac_have_decl
10506 _ACEOF
10507 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10508 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
10509 ac_have_decl=1
10510 else
10511 ac_have_decl=0
10512 fi
10513
10514 cat >>confdefs.h <<_ACEOF
10515 #define HAVE_DECL_STRTOLL $ac_have_decl
10516 _ACEOF
10517 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10518 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
10519 ac_have_decl=1
10520 else
10521 ac_have_decl=0
10522 fi
10523
10524 cat >>confdefs.h <<_ACEOF
10525 #define HAVE_DECL_STRTOULL $ac_have_decl
10526 _ACEOF
10527
10528 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10529 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
10530 ac_have_decl=1
10531 else
10532 ac_have_decl=0
10533 fi
10534
10535 cat >>confdefs.h <<_ACEOF
10536 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10537 _ACEOF
10538
10539
10540
10541 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10542 if test "x$ac_cv_have_decl_free" = x""yes; then :
10543 ac_have_decl=1
10544 else
10545 ac_have_decl=0
10546 fi
10547
10548 cat >>confdefs.h <<_ACEOF
10549 #define HAVE_DECL_FREE $ac_have_decl
10550 _ACEOF
10551 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10552 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
10553 ac_have_decl=1
10554 else
10555 ac_have_decl=0
10556 fi
10557
10558 cat >>confdefs.h <<_ACEOF
10559 #define HAVE_DECL_MALLOC $ac_have_decl
10560 _ACEOF
10561 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10562 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
10563 ac_have_decl=1
10564 else
10565 ac_have_decl=0
10566 fi
10567
10568 cat >>confdefs.h <<_ACEOF
10569 #define HAVE_DECL_REALLOC $ac_have_decl
10570 _ACEOF
10571 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10572 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10573 ac_have_decl=1
10574 else
10575 ac_have_decl=0
10576 fi
10577
10578 cat >>confdefs.h <<_ACEOF
10579 #define HAVE_DECL_SNPRINTF $ac_have_decl
10580 _ACEOF
10581
10582
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10584 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10585 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10586 $as_echo_n "(cached) " >&6
10587 else
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10590 #include <locale.h>
10591 int
10592 main ()
10593 {
10594 return LC_MESSAGES
10595 ;
10596 return 0;
10597 }
10598 _ACEOF
10599 if ac_fn_c_try_link "$LINENO"; then :
10600 am_cv_val_LC_MESSAGES=yes
10601 else
10602 am_cv_val_LC_MESSAGES=no
10603 fi
10604 rm -f core conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext conftest.$ac_ext
10606 fi
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10608 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10609 if test $am_cv_val_LC_MESSAGES = yes; then
10610
10611 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10612
10613 fi
10614
10615
10616 # ----------------------- #
10617 # Checks for structures. #
10618 # ----------------------- #
10619
10620 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10621 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
10622
10623 cat >>confdefs.h <<_ACEOF
10624 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10625 _ACEOF
10626
10627
10628 fi
10629 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10630 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
10631
10632 cat >>confdefs.h <<_ACEOF
10633 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10634 _ACEOF
10635
10636
10637 fi
10638
10639
10640 # ------------------ #
10641 # Checks for types. #
10642 # ------------------ #
10643
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10645 $as_echo_n "checking return type of signal handlers... " >&6; }
10646 if test "${ac_cv_type_signal+set}" = set; then :
10647 $as_echo_n "(cached) " >&6
10648 else
10649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10651 #include <sys/types.h>
10652 #include <signal.h>
10653
10654 int
10655 main ()
10656 {
10657 return *(signal (0, 0)) (0) == 1;
10658 ;
10659 return 0;
10660 }
10661 _ACEOF
10662 if ac_fn_c_try_compile "$LINENO"; then :
10663 ac_cv_type_signal=int
10664 else
10665 ac_cv_type_signal=void
10666 fi
10667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10668 fi
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10670 $as_echo "$ac_cv_type_signal" >&6; }
10671
10672 cat >>confdefs.h <<_ACEOF
10673 #define RETSIGTYPE $ac_cv_type_signal
10674 _ACEOF
10675
10676
10677 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10678 #include <sys/socket.h>
10679
10680 "
10681 if test "x$ac_cv_type_socklen_t" = x""yes; then :
10682
10683 cat >>confdefs.h <<_ACEOF
10684 #define HAVE_SOCKLEN_T 1
10685 _ACEOF
10686
10687
10688 fi
10689
10690
10691 # ------------------------------------- #
10692 # Checks for compiler characteristics. #
10693 # ------------------------------------- #
10694
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10696 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10697 if test "${ac_cv_c_const+set}" = set; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10702
10703 int
10704 main ()
10705 {
10706 /* FIXME: Include the comments suggested by Paul. */
10707 #ifndef __cplusplus
10708 /* Ultrix mips cc rejects this. */
10709 typedef int charset[2];
10710 const charset cs;
10711 /* SunOS 4.1.1 cc rejects this. */
10712 char const *const *pcpcc;
10713 char **ppc;
10714 /* NEC SVR4.0.2 mips cc rejects this. */
10715 struct point {int x, y;};
10716 static struct point const zero = {0,0};
10717 /* AIX XL C 1.02.0.0 rejects this.
10718 It does not let you subtract one const X* pointer from another in
10719 an arm of an if-expression whose if-part is not a constant
10720 expression */
10721 const char *g = "string";
10722 pcpcc = &g + (g ? g-g : 0);
10723 /* HPUX 7.0 cc rejects these. */
10724 ++pcpcc;
10725 ppc = (char**) pcpcc;
10726 pcpcc = (char const *const *) ppc;
10727 { /* SCO 3.2v4 cc rejects this. */
10728 char *t;
10729 char const *s = 0 ? (char *) 0 : (char const *) 0;
10730
10731 *t++ = 0;
10732 if (s) return 0;
10733 }
10734 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10735 int x[] = {25, 17};
10736 const int *foo = &x[0];
10737 ++foo;
10738 }
10739 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10740 typedef const int *iptr;
10741 iptr p = 0;
10742 ++p;
10743 }
10744 { /* AIX XL C 1.02.0.0 rejects this saying
10745 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10746 struct s { int j; const int *ap[3]; };
10747 struct s *b; b->j = 5;
10748 }
10749 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10750 const int foo = 10;
10751 if (!foo) return 0;
10752 }
10753 return !cs[0] && !zero.x;
10754 #endif
10755
10756 ;
10757 return 0;
10758 }
10759 _ACEOF
10760 if ac_fn_c_try_compile "$LINENO"; then :
10761 ac_cv_c_const=yes
10762 else
10763 ac_cv_c_const=no
10764 fi
10765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10766 fi
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10768 $as_echo "$ac_cv_c_const" >&6; }
10769 if test $ac_cv_c_const = no; then
10770
10771 $as_echo "#define const /**/" >>confdefs.h
10772
10773 fi
10774
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10776 $as_echo_n "checking for inline... " >&6; }
10777 if test "${ac_cv_c_inline+set}" = set; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 ac_cv_c_inline=no
10781 for ac_kw in inline __inline__ __inline; do
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #ifndef __cplusplus
10785 typedef int foo_t;
10786 static $ac_kw foo_t static_foo () {return 0; }
10787 $ac_kw foo_t foo () {return 0; }
10788 #endif
10789
10790 _ACEOF
10791 if ac_fn_c_try_compile "$LINENO"; then :
10792 ac_cv_c_inline=$ac_kw
10793 fi
10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10795 test "$ac_cv_c_inline" != no && break
10796 done
10797
10798 fi
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10800 $as_echo "$ac_cv_c_inline" >&6; }
10801
10802 case $ac_cv_c_inline in
10803 inline | yes) ;;
10804 *)
10805 case $ac_cv_c_inline in
10806 no) ac_val=;;
10807 *) ac_val=$ac_cv_c_inline;;
10808 esac
10809 cat >>confdefs.h <<_ACEOF
10810 #ifndef __cplusplus
10811 #define inline $ac_val
10812 #endif
10813 _ACEOF
10814 ;;
10815 esac
10816
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10818 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10819 if test "${ac_cv_c_bigendian+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 ac_cv_c_bigendian=unknown
10823 # See if we're dealing with a universal compiler.
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10826 #ifndef __APPLE_CC__
10827 not a universal capable compiler
10828 #endif
10829 typedef int dummy;
10830
10831 _ACEOF
10832 if ac_fn_c_try_compile "$LINENO"; then :
10833
10834 # Check for potential -arch flags. It is not universal unless
10835 # there are at least two -arch flags with different values.
10836 ac_arch=
10837 ac_prev=
10838 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10839 if test -n "$ac_prev"; then
10840 case $ac_word in
10841 i?86 | x86_64 | ppc | ppc64)
10842 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10843 ac_arch=$ac_word
10844 else
10845 ac_cv_c_bigendian=universal
10846 break
10847 fi
10848 ;;
10849 esac
10850 ac_prev=
10851 elif test "x$ac_word" = "x-arch"; then
10852 ac_prev=arch
10853 fi
10854 done
10855 fi
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10857 if test $ac_cv_c_bigendian = unknown; then
10858 # See if sys/param.h defines the BYTE_ORDER macro.
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10861 #include <sys/types.h>
10862 #include <sys/param.h>
10863
10864 int
10865 main ()
10866 {
10867 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10868 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10869 && LITTLE_ENDIAN)
10870 bogus endian macros
10871 #endif
10872
10873 ;
10874 return 0;
10875 }
10876 _ACEOF
10877 if ac_fn_c_try_compile "$LINENO"; then :
10878 # It does; now see whether it defined to BIG_ENDIAN or not.
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10881 #include <sys/types.h>
10882 #include <sys/param.h>
10883
10884 int
10885 main ()
10886 {
10887 #if BYTE_ORDER != BIG_ENDIAN
10888 not big endian
10889 #endif
10890
10891 ;
10892 return 0;
10893 }
10894 _ACEOF
10895 if ac_fn_c_try_compile "$LINENO"; then :
10896 ac_cv_c_bigendian=yes
10897 else
10898 ac_cv_c_bigendian=no
10899 fi
10900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901 fi
10902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10903 fi
10904 if test $ac_cv_c_bigendian = unknown; then
10905 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908 #include <limits.h>
10909
10910 int
10911 main ()
10912 {
10913 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10914 bogus endian macros
10915 #endif
10916
10917 ;
10918 return 0;
10919 }
10920 _ACEOF
10921 if ac_fn_c_try_compile "$LINENO"; then :
10922 # It does; now see whether it defined to _BIG_ENDIAN or not.
10923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924 /* end confdefs.h. */
10925 #include <limits.h>
10926
10927 int
10928 main ()
10929 {
10930 #ifndef _BIG_ENDIAN
10931 not big endian
10932 #endif
10933
10934 ;
10935 return 0;
10936 }
10937 _ACEOF
10938 if ac_fn_c_try_compile "$LINENO"; then :
10939 ac_cv_c_bigendian=yes
10940 else
10941 ac_cv_c_bigendian=no
10942 fi
10943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10944 fi
10945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10946 fi
10947 if test $ac_cv_c_bigendian = unknown; then
10948 # Compile a test program.
10949 if test "$cross_compiling" = yes; then :
10950 # Try to guess by grepping values from an object file.
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953 short int ascii_mm[] =
10954 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10955 short int ascii_ii[] =
10956 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10957 int use_ascii (int i) {
10958 return ascii_mm[i] + ascii_ii[i];
10959 }
10960 short int ebcdic_ii[] =
10961 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10962 short int ebcdic_mm[] =
10963 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10964 int use_ebcdic (int i) {
10965 return ebcdic_mm[i] + ebcdic_ii[i];
10966 }
10967 extern int foo;
10968
10969 int
10970 main ()
10971 {
10972 return use_ascii (foo) == use_ebcdic (foo);
10973 ;
10974 return 0;
10975 }
10976 _ACEOF
10977 if ac_fn_c_try_compile "$LINENO"; then :
10978 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10979 ac_cv_c_bigendian=yes
10980 fi
10981 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10982 if test "$ac_cv_c_bigendian" = unknown; then
10983 ac_cv_c_bigendian=no
10984 else
10985 # finding both strings is unlikely to happen, but who knows?
10986 ac_cv_c_bigendian=unknown
10987 fi
10988 fi
10989 fi
10990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10991 else
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10994 $ac_includes_default
10995 int
10996 main ()
10997 {
10998
10999 /* Are we little or big endian? From Harbison&Steele. */
11000 union
11001 {
11002 long int l;
11003 char c[sizeof (long int)];
11004 } u;
11005 u.l = 1;
11006 return u.c[sizeof (long int) - 1] == 1;
11007
11008 ;
11009 return 0;
11010 }
11011 _ACEOF
11012 if ac_fn_c_try_run "$LINENO"; then :
11013 ac_cv_c_bigendian=no
11014 else
11015 ac_cv_c_bigendian=yes
11016 fi
11017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11018 conftest.$ac_objext conftest.beam conftest.$ac_ext
11019 fi
11020
11021 fi
11022 fi
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11024 $as_echo "$ac_cv_c_bigendian" >&6; }
11025 case $ac_cv_c_bigendian in #(
11026 yes)
11027 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11028 ;; #(
11029 no)
11030 ;; #(
11031 universal)
11032
11033 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11034
11035 ;; #(
11036 *)
11037 as_fn_error "unknown endianness
11038 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11039 esac
11040
11041
11042 # ------------------------------ #
11043 # Checks for library functions. #
11044 # ------------------------------ #
11045
11046 for ac_header in stdlib.h unistd.h
11047 do :
11048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11049 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11050 eval as_val=\$$as_ac_Header
11051 if test "x$as_val" = x""yes; then :
11052 cat >>confdefs.h <<_ACEOF
11053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11054 _ACEOF
11055
11056 fi
11057
11058 done
11059
11060 for ac_func in getpagesize
11061 do :
11062 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11063 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11064 cat >>confdefs.h <<_ACEOF
11065 #define HAVE_GETPAGESIZE 1
11066 _ACEOF
11067
11068 fi
11069 done
11070
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11072 $as_echo_n "checking for working mmap... " >&6; }
11073 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
11075 else
11076 if test "$cross_compiling" = yes; then :
11077 ac_cv_func_mmap_fixed_mapped=no
11078 else
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081 $ac_includes_default
11082 /* malloc might have been renamed as rpl_malloc. */
11083 #undef malloc
11084
11085 /* Thanks to Mike Haertel and Jim Avera for this test.
11086 Here is a matrix of mmap possibilities:
11087 mmap private not fixed
11088 mmap private fixed at somewhere currently unmapped
11089 mmap private fixed at somewhere already mapped
11090 mmap shared not fixed
11091 mmap shared fixed at somewhere currently unmapped
11092 mmap shared fixed at somewhere already mapped
11093 For private mappings, we should verify that changes cannot be read()
11094 back from the file, nor mmap's back from the file at a different
11095 address. (There have been systems where private was not correctly
11096 implemented like the infamous i386 svr4.0, and systems where the
11097 VM page cache was not coherent with the file system buffer cache
11098 like early versions of FreeBSD and possibly contemporary NetBSD.)
11099 For shared mappings, we should conversely verify that changes get
11100 propagated back to all the places they're supposed to be.
11101
11102 Grep wants private fixed already mapped.
11103 The main things grep needs to know about mmap are:
11104 * does it exist and is it safe to write into the mmap'd area
11105 * how to use it (BSD variants) */
11106
11107 #include <fcntl.h>
11108 #include <sys/mman.h>
11109
11110 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11111 char *malloc ();
11112 #endif
11113
11114 /* This mess was copied from the GNU getpagesize.h. */
11115 #ifndef HAVE_GETPAGESIZE
11116 /* Assume that all systems that can run configure have sys/param.h. */
11117 # ifndef HAVE_SYS_PARAM_H
11118 # define HAVE_SYS_PARAM_H 1
11119 # endif
11120
11121 # ifdef _SC_PAGESIZE
11122 # define getpagesize() sysconf(_SC_PAGESIZE)
11123 # else /* no _SC_PAGESIZE */
11124 # ifdef HAVE_SYS_PARAM_H
11125 # include <sys/param.h>
11126 # ifdef EXEC_PAGESIZE
11127 # define getpagesize() EXEC_PAGESIZE
11128 # else /* no EXEC_PAGESIZE */
11129 # ifdef NBPG
11130 # define getpagesize() NBPG * CLSIZE
11131 # ifndef CLSIZE
11132 # define CLSIZE 1
11133 # endif /* no CLSIZE */
11134 # else /* no NBPG */
11135 # ifdef NBPC
11136 # define getpagesize() NBPC
11137 # else /* no NBPC */
11138 # ifdef PAGESIZE
11139 # define getpagesize() PAGESIZE
11140 # endif /* PAGESIZE */
11141 # endif /* no NBPC */
11142 # endif /* no NBPG */
11143 # endif /* no EXEC_PAGESIZE */
11144 # else /* no HAVE_SYS_PARAM_H */
11145 # define getpagesize() 8192 /* punt totally */
11146 # endif /* no HAVE_SYS_PARAM_H */
11147 # endif /* no _SC_PAGESIZE */
11148
11149 #endif /* no HAVE_GETPAGESIZE */
11150
11151 int
11152 main ()
11153 {
11154 char *data, *data2, *data3;
11155 int i, pagesize;
11156 int fd;
11157
11158 pagesize = getpagesize ();
11159
11160 /* First, make a file with some known garbage in it. */
11161 data = (char *) malloc (pagesize);
11162 if (!data)
11163 return 1;
11164 for (i = 0; i < pagesize; ++i)
11165 *(data + i) = rand ();
11166 umask (0);
11167 fd = creat ("conftest.mmap", 0600);
11168 if (fd < 0)
11169 return 1;
11170 if (write (fd, data, pagesize) != pagesize)
11171 return 1;
11172 close (fd);
11173
11174 /* Next, try to mmap the file at a fixed address which already has
11175 something else allocated at it. If we can, also make sure that
11176 we see the same garbage. */
11177 fd = open ("conftest.mmap", O_RDWR);
11178 if (fd < 0)
11179 return 1;
11180 data2 = (char *) malloc (2 * pagesize);
11181 if (!data2)
11182 return 1;
11183 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11184 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11185 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11186 return 1;
11187 for (i = 0; i < pagesize; ++i)
11188 if (*(data + i) != *(data2 + i))
11189 return 1;
11190
11191 /* Finally, make sure that changes to the mapped area do not
11192 percolate back to the file as seen by read(). (This is a bug on
11193 some variants of i386 svr4.0.) */
11194 for (i = 0; i < pagesize; ++i)
11195 *(data2 + i) = *(data2 + i) + 1;
11196 data3 = (char *) malloc (pagesize);
11197 if (!data3)
11198 return 1;
11199 if (read (fd, data3, pagesize) != pagesize)
11200 return 1;
11201 for (i = 0; i < pagesize; ++i)
11202 if (*(data + i) != *(data3 + i))
11203 return 1;
11204 close (fd);
11205 return 0;
11206 }
11207 _ACEOF
11208 if ac_fn_c_try_run "$LINENO"; then :
11209 ac_cv_func_mmap_fixed_mapped=yes
11210 else
11211 ac_cv_func_mmap_fixed_mapped=no
11212 fi
11213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11214 conftest.$ac_objext conftest.beam conftest.$ac_ext
11215 fi
11216
11217 fi
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11219 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11220 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11221
11222 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11223
11224 fi
11225 rm -f conftest.mmap
11226
11227 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11228 if test "x$ac_cv_type_pid_t" = x""yes; then :
11229
11230 else
11231
11232 cat >>confdefs.h <<_ACEOF
11233 #define pid_t int
11234 _ACEOF
11235
11236 fi
11237
11238 for ac_header in vfork.h
11239 do :
11240 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11241 if test "x$ac_cv_header_vfork_h" = x""yes; then :
11242 cat >>confdefs.h <<_ACEOF
11243 #define HAVE_VFORK_H 1
11244 _ACEOF
11245
11246 fi
11247
11248 done
11249
11250 for ac_func in fork vfork
11251 do :
11252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11254 eval as_val=\$$as_ac_var
11255 if test "x$as_val" = x""yes; then :
11256 cat >>confdefs.h <<_ACEOF
11257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11258 _ACEOF
11259
11260 fi
11261 done
11262
11263 if test "x$ac_cv_func_fork" = xyes; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11265 $as_echo_n "checking for working fork... " >&6; }
11266 if test "${ac_cv_func_fork_works+set}" = set; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 if test "$cross_compiling" = yes; then :
11270 ac_cv_func_fork_works=cross
11271 else
11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273 /* end confdefs.h. */
11274 $ac_includes_default
11275 int
11276 main ()
11277 {
11278
11279 /* By Ruediger Kuhlmann. */
11280 return fork () < 0;
11281
11282 ;
11283 return 0;
11284 }
11285 _ACEOF
11286 if ac_fn_c_try_run "$LINENO"; then :
11287 ac_cv_func_fork_works=yes
11288 else
11289 ac_cv_func_fork_works=no
11290 fi
11291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11292 conftest.$ac_objext conftest.beam conftest.$ac_ext
11293 fi
11294
11295 fi
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11297 $as_echo "$ac_cv_func_fork_works" >&6; }
11298
11299 else
11300 ac_cv_func_fork_works=$ac_cv_func_fork
11301 fi
11302 if test "x$ac_cv_func_fork_works" = xcross; then
11303 case $host in
11304 *-*-amigaos* | *-*-msdosdjgpp*)
11305 # Override, as these systems have only a dummy fork() stub
11306 ac_cv_func_fork_works=no
11307 ;;
11308 *)
11309 ac_cv_func_fork_works=yes
11310 ;;
11311 esac
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11313 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11314 fi
11315 ac_cv_func_vfork_works=$ac_cv_func_vfork
11316 if test "x$ac_cv_func_vfork" = xyes; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11318 $as_echo_n "checking for working vfork... " >&6; }
11319 if test "${ac_cv_func_vfork_works+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
11321 else
11322 if test "$cross_compiling" = yes; then :
11323 ac_cv_func_vfork_works=cross
11324 else
11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11327 /* Thanks to Paul Eggert for this test. */
11328 $ac_includes_default
11329 #include <sys/wait.h>
11330 #ifdef HAVE_VFORK_H
11331 # include <vfork.h>
11332 #endif
11333 /* On some sparc systems, changes by the child to local and incoming
11334 argument registers are propagated back to the parent. The compiler
11335 is told about this with #include <vfork.h>, but some compilers
11336 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11337 static variable whose address is put into a register that is
11338 clobbered by the vfork. */
11339 static void
11340 #ifdef __cplusplus
11341 sparc_address_test (int arg)
11342 # else
11343 sparc_address_test (arg) int arg;
11344 #endif
11345 {
11346 static pid_t child;
11347 if (!child) {
11348 child = vfork ();
11349 if (child < 0) {
11350 perror ("vfork");
11351 _exit(2);
11352 }
11353 if (!child) {
11354 arg = getpid();
11355 write(-1, "", 0);
11356 _exit (arg);
11357 }
11358 }
11359 }
11360
11361 int
11362 main ()
11363 {
11364 pid_t parent = getpid ();
11365 pid_t child;
11366
11367 sparc_address_test (0);
11368
11369 child = vfork ();
11370
11371 if (child == 0) {
11372 /* Here is another test for sparc vfork register problems. This
11373 test uses lots of local variables, at least as many local
11374 variables as main has allocated so far including compiler
11375 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11376 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11377 reuse the register of parent for one of the local variables,
11378 since it will think that parent can't possibly be used any more
11379 in this routine. Assigning to the local variable will thus
11380 munge parent in the parent process. */
11381 pid_t
11382 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11383 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11384 /* Convince the compiler that p..p7 are live; otherwise, it might
11385 use the same hardware register for all 8 local variables. */
11386 if (p != p1 || p != p2 || p != p3 || p != p4
11387 || p != p5 || p != p6 || p != p7)
11388 _exit(1);
11389
11390 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11391 from child file descriptors. If the child closes a descriptor
11392 before it execs or exits, this munges the parent's descriptor
11393 as well. Test for this by closing stdout in the child. */
11394 _exit(close(fileno(stdout)) != 0);
11395 } else {
11396 int status;
11397 struct stat st;
11398
11399 while (wait(&status) != child)
11400 ;
11401 return (
11402 /* Was there some problem with vforking? */
11403 child < 0
11404
11405 /* Did the child fail? (This shouldn't happen.) */
11406 || status
11407
11408 /* Did the vfork/compiler bug occur? */
11409 || parent != getpid()
11410
11411 /* Did the file descriptor bug occur? */
11412 || fstat(fileno(stdout), &st) != 0
11413 );
11414 }
11415 }
11416 _ACEOF
11417 if ac_fn_c_try_run "$LINENO"; then :
11418 ac_cv_func_vfork_works=yes
11419 else
11420 ac_cv_func_vfork_works=no
11421 fi
11422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11423 conftest.$ac_objext conftest.beam conftest.$ac_ext
11424 fi
11425
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11428 $as_echo "$ac_cv_func_vfork_works" >&6; }
11429
11430 fi;
11431 if test "x$ac_cv_func_fork_works" = xcross; then
11432 ac_cv_func_vfork_works=$ac_cv_func_vfork
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11434 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11435 fi
11436
11437 if test "x$ac_cv_func_vfork_works" = xyes; then
11438
11439 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11440
11441 else
11442
11443 $as_echo "#define vfork fork" >>confdefs.h
11444
11445 fi
11446 if test "x$ac_cv_func_fork_works" = xyes; then
11447
11448 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11449
11450 fi
11451
11452 for ac_func in getauxval getrusage getuid getgid \
11453 pipe poll pread pread64 pwrite resize_term \
11454 sbrk setpgid setpgrp setsid \
11455 sigaction sigprocmask sigsetmask socketpair \
11456 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
11457 setrlimit getrlimit posix_madvise waitpid \
11458 ptrace64 sigaltstack mkdtemp setns
11459 do :
11460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11461 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11462 eval as_val=\$$as_ac_var
11463 if test "x$as_val" = x""yes; then :
11464 cat >>confdefs.h <<_ACEOF
11465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11466 _ACEOF
11467
11468 fi
11469 done
11470
11471
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11473 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11474 if test "${am_cv_langinfo_codeset+set}" = set; then :
11475 $as_echo_n "(cached) " >&6
11476 else
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11479 #include <langinfo.h>
11480 int
11481 main ()
11482 {
11483 char* cs = nl_langinfo(CODESET);
11484 ;
11485 return 0;
11486 }
11487 _ACEOF
11488 if ac_fn_c_try_link "$LINENO"; then :
11489 am_cv_langinfo_codeset=yes
11490 else
11491 am_cv_langinfo_codeset=no
11492 fi
11493 rm -f core conftest.err conftest.$ac_objext \
11494 conftest$ac_exeext conftest.$ac_ext
11495
11496 fi
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11498 $as_echo "$am_cv_langinfo_codeset" >&6; }
11499 if test $am_cv_langinfo_codeset = yes; then
11500
11501 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11502
11503 fi
11504
11505
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11507 $as_echo_n "checking for ANSI C header files... " >&6; }
11508 if test "${ac_cv_header_stdc+set}" = set; then :
11509 $as_echo_n "(cached) " >&6
11510 else
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11513 #include <stdlib.h>
11514 #include <stdarg.h>
11515 #include <string.h>
11516 #include <float.h>
11517
11518 int
11519 main ()
11520 {
11521
11522 ;
11523 return 0;
11524 }
11525 _ACEOF
11526 if ac_fn_c_try_compile "$LINENO"; then :
11527 ac_cv_header_stdc=yes
11528 else
11529 ac_cv_header_stdc=no
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532
11533 if test $ac_cv_header_stdc = yes; then
11534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11537 #include <string.h>
11538
11539 _ACEOF
11540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11541 $EGREP "memchr" >/dev/null 2>&1; then :
11542
11543 else
11544 ac_cv_header_stdc=no
11545 fi
11546 rm -f conftest*
11547
11548 fi
11549
11550 if test $ac_cv_header_stdc = yes; then
11551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553 /* end confdefs.h. */
11554 #include <stdlib.h>
11555
11556 _ACEOF
11557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11558 $EGREP "free" >/dev/null 2>&1; then :
11559
11560 else
11561 ac_cv_header_stdc=no
11562 fi
11563 rm -f conftest*
11564
11565 fi
11566
11567 if test $ac_cv_header_stdc = yes; then
11568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11569 if test "$cross_compiling" = yes; then :
11570 :
11571 else
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11574 #include <ctype.h>
11575 #include <stdlib.h>
11576 #if ((' ' & 0x0FF) == 0x020)
11577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11579 #else
11580 # define ISLOWER(c) \
11581 (('a' <= (c) && (c) <= 'i') \
11582 || ('j' <= (c) && (c) <= 'r') \
11583 || ('s' <= (c) && (c) <= 'z'))
11584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11585 #endif
11586
11587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11588 int
11589 main ()
11590 {
11591 int i;
11592 for (i = 0; i < 256; i++)
11593 if (XOR (islower (i), ISLOWER (i))
11594 || toupper (i) != TOUPPER (i))
11595 return 2;
11596 return 0;
11597 }
11598 _ACEOF
11599 if ac_fn_c_try_run "$LINENO"; then :
11600
11601 else
11602 ac_cv_header_stdc=no
11603 fi
11604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11605 conftest.$ac_objext conftest.beam conftest.$ac_ext
11606 fi
11607
11608 fi
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11611 $as_echo "$ac_cv_header_stdc" >&6; }
11612 if test $ac_cv_header_stdc = yes; then
11613
11614 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11615
11616 fi
11617
11618 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11619 # for constant arguments. Useless!
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11621 $as_echo_n "checking for working alloca.h... " >&6; }
11622 if test "${ac_cv_working_alloca_h+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11627 #include <alloca.h>
11628 int
11629 main ()
11630 {
11631 char *p = (char *) alloca (2 * sizeof (int));
11632 if (p) return 0;
11633 ;
11634 return 0;
11635 }
11636 _ACEOF
11637 if ac_fn_c_try_link "$LINENO"; then :
11638 ac_cv_working_alloca_h=yes
11639 else
11640 ac_cv_working_alloca_h=no
11641 fi
11642 rm -f core conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644 fi
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11646 $as_echo "$ac_cv_working_alloca_h" >&6; }
11647 if test $ac_cv_working_alloca_h = yes; then
11648
11649 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11650
11651 fi
11652
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11654 $as_echo_n "checking for alloca... " >&6; }
11655 if test "${ac_cv_func_alloca_works+set}" = set; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11660 #ifdef __GNUC__
11661 # define alloca __builtin_alloca
11662 #else
11663 # ifdef _MSC_VER
11664 # include <malloc.h>
11665 # define alloca _alloca
11666 # else
11667 # ifdef HAVE_ALLOCA_H
11668 # include <alloca.h>
11669 # else
11670 # ifdef _AIX
11671 #pragma alloca
11672 # else
11673 # ifndef alloca /* predefined by HP cc +Olibcalls */
11674 char *alloca ();
11675 # endif
11676 # endif
11677 # endif
11678 # endif
11679 #endif
11680
11681 int
11682 main ()
11683 {
11684 char *p = (char *) alloca (1);
11685 if (p) return 0;
11686 ;
11687 return 0;
11688 }
11689 _ACEOF
11690 if ac_fn_c_try_link "$LINENO"; then :
11691 ac_cv_func_alloca_works=yes
11692 else
11693 ac_cv_func_alloca_works=no
11694 fi
11695 rm -f core conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11697 fi
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11699 $as_echo "$ac_cv_func_alloca_works" >&6; }
11700
11701 if test $ac_cv_func_alloca_works = yes; then
11702
11703 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11704
11705 else
11706 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11707 # that cause trouble. Some versions do not even contain alloca or
11708 # contain a buggy version. If you still want to use their alloca,
11709 # use ar to extract alloca.o from them instead of compiling alloca.c.
11710
11711 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11712
11713 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11714
11715
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11717 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11718 if test "${ac_cv_os_cray+set}" = set; then :
11719 $as_echo_n "(cached) " >&6
11720 else
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11723 #if defined CRAY && ! defined CRAY2
11724 webecray
11725 #else
11726 wenotbecray
11727 #endif
11728
11729 _ACEOF
11730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11731 $EGREP "webecray" >/dev/null 2>&1; then :
11732 ac_cv_os_cray=yes
11733 else
11734 ac_cv_os_cray=no
11735 fi
11736 rm -f conftest*
11737
11738 fi
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11740 $as_echo "$ac_cv_os_cray" >&6; }
11741 if test $ac_cv_os_cray = yes; then
11742 for ac_func in _getb67 GETB67 getb67; do
11743 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11744 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11745 eval as_val=\$$as_ac_var
11746 if test "x$as_val" = x""yes; then :
11747
11748 cat >>confdefs.h <<_ACEOF
11749 #define CRAY_STACKSEG_END $ac_func
11750 _ACEOF
11751
11752 break
11753 fi
11754
11755 done
11756 fi
11757
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11759 $as_echo_n "checking stack direction for C alloca... " >&6; }
11760 if test "${ac_cv_c_stack_direction+set}" = set; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763 if test "$cross_compiling" = yes; then :
11764 ac_cv_c_stack_direction=0
11765 else
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h. */
11768 $ac_includes_default
11769 int
11770 find_stack_direction ()
11771 {
11772 static char *addr = 0;
11773 auto char dummy;
11774 if (addr == 0)
11775 {
11776 addr = &dummy;
11777 return find_stack_direction ();
11778 }
11779 else
11780 return (&dummy > addr) ? 1 : -1;
11781 }
11782
11783 int
11784 main ()
11785 {
11786 return find_stack_direction () < 0;
11787 }
11788 _ACEOF
11789 if ac_fn_c_try_run "$LINENO"; then :
11790 ac_cv_c_stack_direction=1
11791 else
11792 ac_cv_c_stack_direction=-1
11793 fi
11794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11795 conftest.$ac_objext conftest.beam conftest.$ac_ext
11796 fi
11797
11798 fi
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11800 $as_echo "$ac_cv_c_stack_direction" >&6; }
11801 cat >>confdefs.h <<_ACEOF
11802 #define STACK_DIRECTION $ac_cv_c_stack_direction
11803 _ACEOF
11804
11805
11806 fi
11807
11808
11809
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11811 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11812 if test "${am_cv_langinfo_codeset+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11817 #include <langinfo.h>
11818 int
11819 main ()
11820 {
11821 char* cs = nl_langinfo(CODESET);
11822 ;
11823 return 0;
11824 }
11825 _ACEOF
11826 if ac_fn_c_try_link "$LINENO"; then :
11827 am_cv_langinfo_codeset=yes
11828 else
11829 am_cv_langinfo_codeset=no
11830 fi
11831 rm -f core conftest.err conftest.$ac_objext \
11832 conftest$ac_exeext conftest.$ac_ext
11833
11834 fi
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11836 $as_echo "$am_cv_langinfo_codeset" >&6; }
11837 if test $am_cv_langinfo_codeset = yes; then
11838
11839 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11840
11841 fi
11842
11843
11844 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
11845 do :
11846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11847 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11848 eval as_val=\$$as_ac_Header
11849 if test "x$as_val" = x""yes; then :
11850 cat >>confdefs.h <<_ACEOF
11851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11852 _ACEOF
11853
11854 fi
11855
11856 done
11857
11858
11859 for ac_func in fdwalk getrlimit pipe pipe2 socketpair
11860 do :
11861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11863 eval as_val=\$$as_ac_var
11864 if test "x$as_val" = x""yes; then :
11865 cat >>confdefs.h <<_ACEOF
11866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11867 _ACEOF
11868
11869 fi
11870 done
11871
11872
11873 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11874 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11875 ac_have_decl=1
11876 else
11877 ac_have_decl=0
11878 fi
11879
11880 cat >>confdefs.h <<_ACEOF
11881 #define HAVE_DECL_STRERROR $ac_have_decl
11882 _ACEOF
11883 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11884 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11885 ac_have_decl=1
11886 else
11887 ac_have_decl=0
11888 fi
11889
11890 cat >>confdefs.h <<_ACEOF
11891 #define HAVE_DECL_STRSTR $ac_have_decl
11892 _ACEOF
11893
11894
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11896 $as_echo_n "checking for sigsetjmp... " >&6; }
11897 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11902
11903 #include <setjmp.h>
11904
11905 int
11906 main ()
11907 {
11908 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11909 ;
11910 return 0;
11911 }
11912 _ACEOF
11913 if ac_fn_c_try_compile "$LINENO"; then :
11914 gdb_cv_func_sigsetjmp=yes
11915 else
11916 gdb_cv_func_sigsetjmp=no
11917 fi
11918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11921 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11922 if test $gdb_cv_func_sigsetjmp = yes; then
11923
11924 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11925
11926 fi
11927
11928
11929 # Check the return and argument types of ptrace. No canned test for
11930 # this, so roll our own.
11931 gdb_ptrace_headers='
11932 #include <sys/types.h>
11933 #if HAVE_SYS_PTRACE_H
11934 # include <sys/ptrace.h>
11935 #endif
11936 #if HAVE_UNISTD_H
11937 # include <unistd.h>
11938 #endif
11939 '
11940 # There is no point in checking if we don't have a prototype.
11941 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11942 "
11943 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
11944 ac_have_decl=1
11945 else
11946 ac_have_decl=0
11947 fi
11948
11949 cat >>confdefs.h <<_ACEOF
11950 #define HAVE_DECL_PTRACE $ac_have_decl
11951 _ACEOF
11952 if test $ac_have_decl = 1; then :
11953
11954 else
11955
11956 : ${gdb_cv_func_ptrace_ret='int'}
11957 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11958
11959 fi
11960
11961 # Check return type. Varargs (used on GNU/Linux) conflict with the
11962 # empty argument list, so check for that explicitly.
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11964 $as_echo_n "checking return type of ptrace... " >&6; }
11965 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969 /* end confdefs.h. */
11970 $gdb_ptrace_headers
11971 int
11972 main ()
11973 {
11974 extern long ptrace (enum __ptrace_request, ...);
11975 ;
11976 return 0;
11977 }
11978 _ACEOF
11979 if ac_fn_c_try_compile "$LINENO"; then :
11980 gdb_cv_func_ptrace_ret='long'
11981 else
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984 $gdb_ptrace_headers
11985 int
11986 main ()
11987 {
11988 extern int ptrace ();
11989 ;
11990 return 0;
11991 }
11992 _ACEOF
11993 if ac_fn_c_try_compile "$LINENO"; then :
11994 gdb_cv_func_ptrace_ret='int'
11995 else
11996 gdb_cv_func_ptrace_ret='long'
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 fi
12000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001 fi
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12003 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12004
12005 cat >>confdefs.h <<_ACEOF
12006 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12007 _ACEOF
12008
12009 # Check argument types.
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12011 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12012 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018 $gdb_ptrace_headers
12019 int
12020 main ()
12021 {
12022 extern long ptrace (enum __ptrace_request, ...);
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 if ac_fn_c_try_compile "$LINENO"; then :
12028 gdb_cv_func_ptrace_args='int,int,long,long'
12029 else
12030
12031 for gdb_arg1 in 'int' 'long'; do
12032 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12033 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12034 for gdb_arg4 in 'int' 'long' 'void *'; do
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037 $gdb_ptrace_headers
12038 int
12039 main ()
12040 {
12041
12042 extern $gdb_cv_func_ptrace_ret
12043 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12044
12045 ;
12046 return 0;
12047 }
12048 _ACEOF
12049 if ac_fn_c_try_compile "$LINENO"; then :
12050 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12051 break 4;
12052 fi
12053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054 for gdb_arg5 in 'int *' 'int' 'long'; do
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12057 $gdb_ptrace_headers
12058 int
12059 main ()
12060 {
12061
12062 extern $gdb_cv_func_ptrace_ret
12063 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12064
12065 ;
12066 return 0;
12067 }
12068 _ACEOF
12069 if ac_fn_c_try_compile "$LINENO"; then :
12070
12071 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12072 break 5;
12073 fi
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075 done
12076 done
12077 done
12078 done
12079 done
12080 # Provide a safe default value.
12081 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12082
12083 fi
12084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12085 fi
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12087 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12088 ac_save_IFS=$IFS; IFS=','
12089 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12090 IFS=$ac_save_IFS
12091 shift
12092
12093 cat >>confdefs.h <<_ACEOF
12094 #define PTRACE_TYPE_ARG3 $3
12095 _ACEOF
12096
12097
12098 cat >>confdefs.h <<_ACEOF
12099 #define PTRACE_TYPE_ARG4 $4
12100 _ACEOF
12101
12102 if test -n "$5"; then
12103
12104 cat >>confdefs.h <<_ACEOF
12105 #define PTRACE_TYPE_ARG5 $5
12106 _ACEOF
12107
12108 fi
12109
12110 if test "$cross_compiling" = no; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12112 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12113 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12114 $as_echo_n "(cached) " >&6
12115 else
12116 if test "$cross_compiling" = yes; then :
12117 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12118 else
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12121 $ac_includes_default
12122 int
12123 main ()
12124 {
12125 /* If this system has a BSD-style setpgrp which takes arguments,
12126 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12127 exit successfully. */
12128 return setpgrp (1,1) != -1;
12129 ;
12130 return 0;
12131 }
12132 _ACEOF
12133 if ac_fn_c_try_run "$LINENO"; then :
12134 ac_cv_func_setpgrp_void=no
12135 else
12136 ac_cv_func_setpgrp_void=yes
12137 fi
12138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12139 conftest.$ac_objext conftest.beam conftest.$ac_ext
12140 fi
12141
12142 fi
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12144 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12145 if test $ac_cv_func_setpgrp_void = yes; then
12146
12147 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12148
12149 fi
12150
12151 else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12153 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12154 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12159
12160 #include <unistd.h>
12161
12162 int
12163 main ()
12164 {
12165
12166 if (setpgrp(1,1) == -1)
12167 exit (0);
12168 else
12169 exit (1);
12170
12171 ;
12172 return 0;
12173 }
12174 _ACEOF
12175 if ac_fn_c_try_compile "$LINENO"; then :
12176 ac_cv_func_setpgrp_void=no
12177 else
12178 ac_cv_func_setpgrp_void=yes
12179 fi
12180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12181 fi
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12183 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12184 if test $ac_cv_func_setpgrp_void = yes; then
12185 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12186
12187 fi
12188 fi
12189
12190 # Assume we'll default to using the included libiberty regex.
12191 gdb_use_included_regex=yes
12192
12193 # However, if the system regex is GNU regex, then default to *not*
12194 # using the included regex.
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12196 $as_echo_n "checking for GNU regex... " >&6; }
12197 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202 #include <gnu-versions.h>
12203 int
12204 main ()
12205 {
12206 #define REGEX_INTERFACE_VERSION 1
12207 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12208 # error "Version mismatch"
12209 #endif
12210 ;
12211 return 0;
12212 }
12213 _ACEOF
12214 if ac_fn_c_try_compile "$LINENO"; then :
12215 gdb_cv_have_gnu_regex=yes
12216 else
12217 gdb_cv_have_gnu_regex=no
12218 fi
12219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12220 fi
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12222 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12223 if test $gdb_cv_have_gnu_regex = yes; then
12224 gdb_use_included_regex=no
12225 fi
12226
12227
12228 # Check whether --with-included-regex was given.
12229 if test "${with_included_regex+set}" = set; then :
12230 withval=$with_included_regex; gdb_with_regex=$withval
12231 else
12232 gdb_with_regex=$gdb_use_included_regex
12233 fi
12234
12235 if test "$gdb_with_regex" = yes; then
12236
12237 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12238
12239 fi
12240
12241 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12242 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12243 #include <sys/proc.h>
12244
12245 "
12246 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12247
12248 cat >>confdefs.h <<_ACEOF
12249 #define HAVE_STRUCT_THREAD_TD_PCB 1
12250 _ACEOF
12251
12252
12253 fi
12254
12255
12256 # See if <sys/lwp.h> defines `struct lwp`.
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12258 $as_echo_n "checking for struct lwp... " >&6; }
12259 if test "${gdb_cv_struct_lwp+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
12261 else
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264 #include <sys/param.h>
12265 #include <sys/lwp.h>
12266 int
12267 main ()
12268 {
12269 struct lwp l;
12270 ;
12271 return 0;
12272 }
12273 _ACEOF
12274 if ac_fn_c_try_compile "$LINENO"; then :
12275 gdb_cv_struct_lwp=yes
12276 else
12277 gdb_cv_struct_lwp=no
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12282 $as_echo "$gdb_cv_struct_lwp" >&6; }
12283 if test $gdb_cv_struct_lwp = yes; then
12284
12285 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12286
12287 fi
12288
12289 # See if <machine/reg.h> degines `struct reg'.
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12291 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12292 if test "${gdb_cv_struct_reg+set}" = set; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297 #include <sys/types.h>
12298 #include <machine/reg.h>
12299 int
12300 main ()
12301 {
12302 struct reg r;
12303 ;
12304 return 0;
12305 }
12306 _ACEOF
12307 if ac_fn_c_try_compile "$LINENO"; then :
12308 gdb_cv_struct_reg=yes
12309 else
12310 gdb_cv_struct_reg=no
12311 fi
12312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12313 fi
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12315 $as_echo "$gdb_cv_struct_reg" >&6; }
12316 if test $gdb_cv_struct_reg = yes; then
12317
12318 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12319
12320 fi
12321
12322 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12323 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12324 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
12325 "
12326 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
12327
12328 cat >>confdefs.h <<_ACEOF
12329 #define HAVE_STRUCT_REG_R_FS 1
12330 _ACEOF
12331
12332
12333 fi
12334 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
12335 "
12336 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
12337
12338 cat >>confdefs.h <<_ACEOF
12339 #define HAVE_STRUCT_REG_R_GS 1
12340 _ACEOF
12341
12342
12343 fi
12344
12345
12346 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
12347 # Older amd64 Linux's don't have the fs_base and gs_base members of
12348 # `struct user_regs_struct'.
12349 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>
12350 "
12351 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
12352
12353 cat >>confdefs.h <<_ACEOF
12354 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
12355 _ACEOF
12356
12357
12358 fi
12359 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>
12360 "
12361 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
12362
12363 cat >>confdefs.h <<_ACEOF
12364 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
12365 _ACEOF
12366
12367
12368 fi
12369
12370
12371 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12373 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12374 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12379 #include <sys/ptrace.h>
12380 int
12381 main ()
12382 {
12383 PTRACE_GETREGS;
12384 ;
12385 return 0;
12386 }
12387 _ACEOF
12388 if ac_fn_c_try_compile "$LINENO"; then :
12389 gdb_cv_have_ptrace_getregs=yes
12390 else
12391 gdb_cv_have_ptrace_getregs=no
12392 fi
12393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12394 fi
12395
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12397 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12398 if test $gdb_cv_have_ptrace_getregs = yes; then
12399
12400 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12401
12402 fi
12403
12404 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12406 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12407 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12408 $as_echo_n "(cached) " >&6
12409 else
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12412 #include <sys/ptrace.h>
12413 int
12414 main ()
12415 {
12416 PTRACE_GETFPXREGS;
12417 ;
12418 return 0;
12419 }
12420 _ACEOF
12421 if ac_fn_c_try_compile "$LINENO"; then :
12422 gdb_cv_have_ptrace_getfpxregs=yes
12423 else
12424 gdb_cv_have_ptrace_getfpxregs=no
12425 fi
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427 fi
12428
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12430 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12431 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12432
12433 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12434
12435 fi
12436
12437 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12439 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12440 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445 #include <sys/types.h>
12446 #include <sys/ptrace.h>
12447 int
12448 main ()
12449 {
12450 PT_GETDBREGS;
12451 ;
12452 return 0;
12453 }
12454 _ACEOF
12455 if ac_fn_c_try_compile "$LINENO"; then :
12456 gdb_cv_have_pt_getdbregs=yes
12457 else
12458 gdb_cv_have_pt_getdbregs=no
12459 fi
12460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461 fi
12462
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12464 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12465 if test $gdb_cv_have_pt_getdbregs = yes; then
12466
12467 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12468
12469 fi
12470
12471 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12473 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12474 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479 #include <sys/types.h>
12480 #include <sys/ptrace.h>
12481 int
12482 main ()
12483 {
12484 PT_GETXMMREGS;
12485 ;
12486 return 0;
12487 }
12488 _ACEOF
12489 if ac_fn_c_try_compile "$LINENO"; then :
12490 gdb_cv_have_pt_getxmmregs=yes
12491 else
12492 gdb_cv_have_pt_getxmmregs=no
12493 fi
12494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12495 fi
12496
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12498 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12499 if test $gdb_cv_have_pt_getxmmregs = yes; then
12500
12501 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12502
12503 fi
12504
12505 # Detect which type of /proc is in use, such as for Solaris.
12506
12507 if test "${target}" = "${host}"; then
12508 case "${host}" in
12509 *-*-sysv4.2* | *-*-sysv5* )
12510
12511 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12512
12513 ;;
12514 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
12515
12516 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12517
12518 ;;
12519 mips-sgi-irix5*)
12520 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12521
12522 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12523
12524 ;;
12525 esac
12526 fi
12527
12528 if test "$ac_cv_header_sys_procfs_h" = yes; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12530 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12531 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12532 $as_echo_n "(cached) " >&6
12533 else
12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h. */
12536
12537 #define _SYSCALL32
12538 /* Needed for new procfs interface on sparc-solaris. */
12539 #define _STRUCTURED_PROC 1
12540 #include <sys/procfs.h>
12541 int
12542 main ()
12543 {
12544 gregset_t avar
12545 ;
12546 return 0;
12547 }
12548 _ACEOF
12549 if ac_fn_c_try_compile "$LINENO"; then :
12550 bfd_cv_have_sys_procfs_type_gregset_t=yes
12551 else
12552 bfd_cv_have_sys_procfs_type_gregset_t=no
12553
12554 fi
12555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556 fi
12557
12558 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
12559
12560 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
12561
12562 fi
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
12564 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
12565
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
12567 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
12568 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
12570 else
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12573
12574 #define _SYSCALL32
12575 /* Needed for new procfs interface on sparc-solaris. */
12576 #define _STRUCTURED_PROC 1
12577 #include <sys/procfs.h>
12578 int
12579 main ()
12580 {
12581 fpregset_t avar
12582 ;
12583 return 0;
12584 }
12585 _ACEOF
12586 if ac_fn_c_try_compile "$LINENO"; then :
12587 bfd_cv_have_sys_procfs_type_fpregset_t=yes
12588 else
12589 bfd_cv_have_sys_procfs_type_fpregset_t=no
12590
12591 fi
12592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12593 fi
12594
12595 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
12596
12597 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
12598
12599 fi
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
12601 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
12602
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
12604 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
12605 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12610
12611 #define _SYSCALL32
12612 /* Needed for new procfs interface on sparc-solaris. */
12613 #define _STRUCTURED_PROC 1
12614 #include <sys/procfs.h>
12615 int
12616 main ()
12617 {
12618 prgregset_t avar
12619 ;
12620 return 0;
12621 }
12622 _ACEOF
12623 if ac_fn_c_try_compile "$LINENO"; then :
12624 bfd_cv_have_sys_procfs_type_prgregset_t=yes
12625 else
12626 bfd_cv_have_sys_procfs_type_prgregset_t=no
12627
12628 fi
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 fi
12631
12632 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
12633
12634 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
12635
12636 fi
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
12638 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
12639
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
12641 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
12642 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
12643 $as_echo_n "(cached) " >&6
12644 else
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647
12648 #define _SYSCALL32
12649 /* Needed for new procfs interface on sparc-solaris. */
12650 #define _STRUCTURED_PROC 1
12651 #include <sys/procfs.h>
12652 int
12653 main ()
12654 {
12655 prfpregset_t avar
12656 ;
12657 return 0;
12658 }
12659 _ACEOF
12660 if ac_fn_c_try_compile "$LINENO"; then :
12661 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
12662 else
12663 bfd_cv_have_sys_procfs_type_prfpregset_t=no
12664
12665 fi
12666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667 fi
12668
12669 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12670
12671 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
12672
12673 fi
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
12675 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
12676
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
12678 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
12679 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12684
12685 #define _SYSCALL32
12686 /* Needed for new procfs interface on sparc-solaris. */
12687 #define _STRUCTURED_PROC 1
12688 #include <sys/procfs.h>
12689 int
12690 main ()
12691 {
12692 prgregset32_t avar
12693 ;
12694 return 0;
12695 }
12696 _ACEOF
12697 if ac_fn_c_try_compile "$LINENO"; then :
12698 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
12699 else
12700 bfd_cv_have_sys_procfs_type_prgregset32_t=no
12701
12702 fi
12703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12704 fi
12705
12706 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
12707
12708 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
12709
12710 fi
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
12712 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
12713
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
12715 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
12716 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721
12722 #define _SYSCALL32
12723 /* Needed for new procfs interface on sparc-solaris. */
12724 #define _STRUCTURED_PROC 1
12725 #include <sys/procfs.h>
12726 int
12727 main ()
12728 {
12729 lwpid_t avar
12730 ;
12731 return 0;
12732 }
12733 _ACEOF
12734 if ac_fn_c_try_compile "$LINENO"; then :
12735 bfd_cv_have_sys_procfs_type_lwpid_t=yes
12736 else
12737 bfd_cv_have_sys_procfs_type_lwpid_t=no
12738
12739 fi
12740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741 fi
12742
12743 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
12744
12745 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
12746
12747 fi
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
12749 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
12750
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
12752 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
12753 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12758
12759 #define _SYSCALL32
12760 /* Needed for new procfs interface on sparc-solaris. */
12761 #define _STRUCTURED_PROC 1
12762 #include <sys/procfs.h>
12763 int
12764 main ()
12765 {
12766 psaddr_t avar
12767 ;
12768 return 0;
12769 }
12770 _ACEOF
12771 if ac_fn_c_try_compile "$LINENO"; then :
12772 bfd_cv_have_sys_procfs_type_psaddr_t=yes
12773 else
12774 bfd_cv_have_sys_procfs_type_psaddr_t=no
12775
12776 fi
12777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12778 fi
12779
12780 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
12781
12782 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
12783
12784 fi
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
12786 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
12787
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
12789 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
12790 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
12791 $as_echo_n "(cached) " >&6
12792 else
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12795
12796 #define _SYSCALL32
12797 /* Needed for new procfs interface on sparc-solaris. */
12798 #define _STRUCTURED_PROC 1
12799 #include <sys/procfs.h>
12800 int
12801 main ()
12802 {
12803 prsysent_t avar
12804 ;
12805 return 0;
12806 }
12807 _ACEOF
12808 if ac_fn_c_try_compile "$LINENO"; then :
12809 bfd_cv_have_sys_procfs_type_prsysent_t=yes
12810 else
12811 bfd_cv_have_sys_procfs_type_prsysent_t=no
12812
12813 fi
12814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12815 fi
12816
12817 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
12818
12819 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
12820
12821 fi
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
12823 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
12824
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
12826 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
12827 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12832
12833 #define _SYSCALL32
12834 /* Needed for new procfs interface on sparc-solaris. */
12835 #define _STRUCTURED_PROC 1
12836 #include <sys/procfs.h>
12837 int
12838 main ()
12839 {
12840 pr_sigset_t avar
12841 ;
12842 return 0;
12843 }
12844 _ACEOF
12845 if ac_fn_c_try_compile "$LINENO"; then :
12846 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
12847 else
12848 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
12849
12850 fi
12851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852 fi
12853
12854 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12855
12856 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12857
12858 fi
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12860 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12861
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12863 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12864 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
12866 else
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869
12870 #define _SYSCALL32
12871 /* Needed for new procfs interface on sparc-solaris. */
12872 #define _STRUCTURED_PROC 1
12873 #include <sys/procfs.h>
12874 int
12875 main ()
12876 {
12877 pr_sigaction64_t avar
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 if ac_fn_c_try_compile "$LINENO"; then :
12883 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
12884 else
12885 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
12886
12887 fi
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12889 fi
12890
12891 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12892
12893 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12894
12895 fi
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12897 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12898
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12900 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12901 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12903 else
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12906
12907 #define _SYSCALL32
12908 /* Needed for new procfs interface on sparc-solaris. */
12909 #define _STRUCTURED_PROC 1
12910 #include <sys/procfs.h>
12911 int
12912 main ()
12913 {
12914 pr_siginfo64_t avar
12915 ;
12916 return 0;
12917 }
12918 _ACEOF
12919 if ac_fn_c_try_compile "$LINENO"; then :
12920 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
12921 else
12922 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
12923
12924 fi
12925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12926 fi
12927
12928 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12929
12930 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12931
12932 fi
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12934 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12935
12936
12937
12938
12939
12940 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12942 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12943 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12944 $as_echo_n "(cached) " >&6
12945 else
12946 if test "$cross_compiling" = yes; then :
12947 gdb_cv_prfpregset_t_broken=yes
12948 else
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951 #include <sys/procfs.h>
12952 int main ()
12953 {
12954 if (sizeof (prfpregset_t) == sizeof (void *))
12955 return 1;
12956 return 0;
12957 }
12958 _ACEOF
12959 if ac_fn_c_try_run "$LINENO"; then :
12960 gdb_cv_prfpregset_t_broken=no
12961 else
12962 gdb_cv_prfpregset_t_broken=yes
12963 fi
12964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12965 conftest.$ac_objext conftest.beam conftest.$ac_ext
12966 fi
12967
12968 fi
12969
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12971 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12972 if test $gdb_cv_prfpregset_t_broken = yes; then
12973
12974 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12975
12976 fi
12977 fi
12978 fi
12979
12980 # Check if the compiler supports the `long long' type.
12981
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12983 $as_echo_n "checking for long long support in compiler... " >&6; }
12984 if test "${gdb_cv_c_long_long+set}" = set; then :
12985 $as_echo_n "(cached) " >&6
12986 else
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12989 extern long long foo;
12990 int
12991 main ()
12992 {
12993 switch (foo & 2) { case 0: return 1; }
12994 ;
12995 return 0;
12996 }
12997 _ACEOF
12998 if ac_fn_c_try_compile "$LINENO"; then :
12999 gdb_cv_c_long_long=yes
13000 else
13001 gdb_cv_c_long_long=no
13002 fi
13003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13004 fi
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13006 $as_echo "$gdb_cv_c_long_long" >&6; }
13007 if test $gdb_cv_c_long_long != yes; then
13008 # libdecnumber requires long long.
13009 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
13010 fi
13011
13012 # Check if the compiler and runtime support printing long longs.
13013
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13015 $as_echo_n "checking for long long support in printf... " >&6; }
13016 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13017 $as_echo_n "(cached) " >&6
13018 else
13019 if test "$cross_compiling" = yes; then :
13020 gdb_cv_printf_has_long_long=no
13021 else
13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13024 $ac_includes_default
13025 int
13026 main ()
13027 {
13028 char buf[32];
13029 long long l = 0;
13030 l = (l << 16) + 0x0123;
13031 l = (l << 16) + 0x4567;
13032 l = (l << 16) + 0x89ab;
13033 l = (l << 16) + 0xcdef;
13034 sprintf (buf, "0x%016llx", l);
13035 return (strcmp ("0x0123456789abcdef", buf));
13036 ;
13037 return 0;
13038 }
13039 _ACEOF
13040 if ac_fn_c_try_run "$LINENO"; then :
13041 gdb_cv_printf_has_long_long=yes
13042 else
13043 gdb_cv_printf_has_long_long=no
13044 fi
13045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13046 conftest.$ac_objext conftest.beam conftest.$ac_ext
13047 fi
13048
13049 fi
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13051 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13052 if test $gdb_cv_printf_has_long_long = yes; then
13053
13054 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13055
13056 fi
13057
13058 # Check if the compiler and runtime support printing decfloats.
13059
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13061 $as_echo_n "checking for decfloat support in printf... " >&6; }
13062 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13063 $as_echo_n "(cached) " >&6
13064 else
13065 if test "$cross_compiling" = yes; then :
13066 gdb_cv_printf_has_decfloat=no
13067 else
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13070 $ac_includes_default
13071 int
13072 main ()
13073 {
13074 char buf[64];
13075 _Decimal32 d32 = 1.2345df;
13076 _Decimal64 d64 = 1.2345dd;
13077 _Decimal128 d128 = 1.2345dl;
13078 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13079 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13080 ;
13081 return 0;
13082 }
13083 _ACEOF
13084 if ac_fn_c_try_run "$LINENO"; then :
13085 gdb_cv_printf_has_decfloat=yes
13086 else
13087 gdb_cv_printf_has_decfloat=no
13088 fi
13089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13090 conftest.$ac_objext conftest.beam conftest.$ac_ext
13091 fi
13092
13093 fi
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13095 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13096 if test $gdb_cv_printf_has_decfloat = yes; then
13097
13098 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13099
13100 fi
13101
13102 # Check if the compiler supports the `long double' type. We can't use
13103 # AC_C_LONG_DOUBLE because that one does additional checks on the
13104 # constants defined in <float.h> that fail on some systems,
13105 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13106
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13108 $as_echo_n "checking for long double support in compiler... " >&6; }
13109 if test "${gdb_cv_c_long_double+set}" = set; then :
13110 $as_echo_n "(cached) " >&6
13111 else
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114 long double foo;
13115 _ACEOF
13116 if ac_fn_c_try_compile "$LINENO"; then :
13117 gdb_cv_c_long_double=yes
13118 else
13119 gdb_cv_c_long_double=no
13120 fi
13121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13122 fi
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13124 $as_echo "$gdb_cv_c_long_double" >&6; }
13125 if test $gdb_cv_c_long_double = yes; then
13126
13127 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13128
13129 fi
13130
13131 # Check if the compiler and runtime support printing long doubles.
13132
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
13134 $as_echo_n "checking for long double support in printf... " >&6; }
13135 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
13136 $as_echo_n "(cached) " >&6
13137 else
13138 if test "$cross_compiling" = yes; then :
13139 gdb_cv_printf_has_long_double=no
13140 else
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13143 $ac_includes_default
13144 int
13145 main ()
13146 {
13147 char buf[16];
13148 long double f = 3.141592653;
13149 sprintf (buf, "%Lg", f);
13150 return (strncmp ("3.14159", buf, 7));
13151 ;
13152 return 0;
13153 }
13154 _ACEOF
13155 if ac_fn_c_try_run "$LINENO"; then :
13156 gdb_cv_printf_has_long_double=yes
13157 else
13158 gdb_cv_printf_has_long_double=no
13159 fi
13160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13161 conftest.$ac_objext conftest.beam conftest.$ac_ext
13162 fi
13163
13164 fi
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
13166 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
13167 if test $gdb_cv_printf_has_long_double = yes; then
13168
13169 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
13170
13171 fi
13172
13173 # Check if the compiler and runtime support scanning long doubles.
13174
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
13176 $as_echo_n "checking for long double support in scanf... " >&6; }
13177 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
13178 $as_echo_n "(cached) " >&6
13179 else
13180 if test "$cross_compiling" = yes; then :
13181 gdb_cv_scanf_has_long_double=no
13182 else
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13185 #include <stdio.h>
13186 int
13187 main ()
13188 {
13189 char *buf = "3.141592653";
13190 long double f = 0;
13191 sscanf (buf, "%Lg", &f);
13192 return !(f > 3.14159 && f < 3.14160);
13193 ;
13194 return 0;
13195 }
13196 _ACEOF
13197 if ac_fn_c_try_run "$LINENO"; then :
13198 gdb_cv_scanf_has_long_double=yes
13199 else
13200 gdb_cv_scanf_has_long_double=no
13201 fi
13202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13203 conftest.$ac_objext conftest.beam conftest.$ac_ext
13204 fi
13205
13206 fi
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
13208 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
13209 if test $gdb_cv_scanf_has_long_double = yes; then
13210
13211 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
13212
13213 fi
13214
13215 case ${host_os} in
13216 aix*)
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
13218 $as_echo_n "checking for -bbigtoc option... " >&6; }
13219 if test "${gdb_cv_bigtoc+set}" = set; then :
13220 $as_echo_n "(cached) " >&6
13221 else
13222
13223 SAVE_LDFLAGS=$LDFLAGS
13224
13225 case $GCC in
13226 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
13227 *) gdb_cv_bigtoc=-bbigtoc ;;
13228 esac
13229
13230 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13233
13234 int
13235 main ()
13236 {
13237 int i;
13238 ;
13239 return 0;
13240 }
13241 _ACEOF
13242 if ac_fn_c_try_link "$LINENO"; then :
13243
13244 else
13245 gdb_cv_bigtoc=
13246 fi
13247 rm -f core conftest.err conftest.$ac_objext \
13248 conftest$ac_exeext conftest.$ac_ext
13249 LDFLAGS="${SAVE_LDFLAGS}"
13250
13251 fi
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
13253 $as_echo "$gdb_cv_bigtoc" >&6; }
13254 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
13255 ;;
13256 esac
13257
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
13259 $as_echo_n "checking for the dynamic export flag... " >&6; }
13260 dynamic_list=false
13261 if test "${gdb_native}" = yes; then
13262 # The dynamically loaded libthread_db needs access to symbols in the gdb
13263 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
13264 # may not be supported there.
13265 old_LDFLAGS="$LDFLAGS"
13266 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
13267 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
13268 LDFLAGS="$LDFLAGS $RDYNAMIC"
13269 if test "${have_libpython}" = no; then
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13272
13273 int
13274 main ()
13275 {
13276
13277 ;
13278 return 0;
13279 }
13280 _ACEOF
13281 if ac_fn_c_try_link "$LINENO"; then :
13282 dynamic_list=true
13283 fi
13284 rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
13286 else
13287 # Workaround http://bugs.python.org/issue4434 where static
13288 # libpythonX.Y.a would get its symbols required for
13289 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
13290 # Problem does not happen for the recommended libpythonX.Y.so linkage.
13291 old_CFLAGS="$CFLAGS"
13292 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
13293 old_LIBS="$LIBS"
13294 LIBS="$LIBS $PYTHON_LIBS"
13295 if test "$cross_compiling" = yes; then :
13296 true
13297 else
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300 #include "${have_libpython}/Python.h"
13301 int
13302 main ()
13303 {
13304 int err;
13305 Py_Initialize ();
13306 err = PyRun_SimpleString ("import itertools\n");
13307 Py_Finalize ();
13308 return err == 0 ? 0 : 1;
13309 ;
13310 return 0;
13311 }
13312 _ACEOF
13313 if ac_fn_c_try_run "$LINENO"; then :
13314 dynamic_list=true
13315 fi
13316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13317 conftest.$ac_objext conftest.beam conftest.$ac_ext
13318 fi
13319
13320 LIBS="$old_LIBS"
13321 CFLAGS="$old_CFLAGS"
13322 fi
13323 LDFLAGS="$old_LDFLAGS"
13324 fi
13325 if $dynamic_list; then
13326 found="-Wl,--dynamic-list"
13327 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
13328 else
13329 found="-rdynamic"
13330 RDYNAMIC="-rdynamic"
13331 fi
13332
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13334 $as_echo "$found" >&6; }
13335
13336
13337 if test ${build} = ${host} -a ${host} = ${target} ; then
13338 case ${host_os} in
13339 solaris*)
13340 # See if thread_db library is around for Solaris thread debugging.
13341 # Note that we must explicitly test for version 1 of the library
13342 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
13343 # the same API.
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
13345 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
13346 if test -f /usr/lib/libthread_db.so.1 ; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13348 $as_echo "yes" >&6; }
13349
13350 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
13351
13352 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
13353 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13355 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13356 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13357 $as_echo_n "(cached) " >&6
13358 else
13359 ac_check_lib_save_LIBS=$LIBS
13360 LIBS="-ldl $LIBS"
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13363
13364 /* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13367 #ifdef __cplusplus
13368 extern "C"
13369 #endif
13370 char dlopen ();
13371 int
13372 main ()
13373 {
13374 return dlopen ();
13375 ;
13376 return 0;
13377 }
13378 _ACEOF
13379 if ac_fn_c_try_link "$LINENO"; then :
13380 ac_cv_lib_dl_dlopen=yes
13381 else
13382 ac_cv_lib_dl_dlopen=no
13383 fi
13384 rm -f core conftest.err conftest.$ac_objext \
13385 conftest$ac_exeext conftest.$ac_ext
13386 LIBS=$ac_check_lib_save_LIBS
13387 fi
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13389 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13390 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13391 cat >>confdefs.h <<_ACEOF
13392 #define HAVE_LIBDL 1
13393 _ACEOF
13394
13395 LIBS="-ldl $LIBS"
13396
13397 fi
13398
13399 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
13400 # Sun randomly tweaked the prototypes in <proc_service.h>
13401 # at one point.
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13403 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
13404 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410
13411 #include <proc_service.h>
13412 ps_err_e ps_pdwrite
13413 (struct ps_prochandle*, psaddr_t, const void*, size_t);
13414
13415 int
13416 main ()
13417 {
13418
13419 ;
13420 return 0;
13421 }
13422 _ACEOF
13423 if ac_fn_c_try_compile "$LINENO"; then :
13424 gdb_cv_proc_service_is_old=no
13425 else
13426 gdb_cv_proc_service_is_old=yes
13427 fi
13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429
13430 fi
13431
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13433 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13434 if test $gdb_cv_proc_service_is_old = yes; then
13435
13436 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13437
13438 fi
13439 else
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441 $as_echo "no" >&6; }
13442 fi
13443 ;;
13444 aix*)
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13446 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13447 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13448 $as_echo_n "(cached) " >&6
13449 else
13450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13452 #include <sys/pthdebug.h>
13453 int
13454 main ()
13455 {
13456 #ifndef PTHDB_VERSION_3
13457 #error
13458 #endif
13459 ;
13460 return 0;
13461 }
13462 _ACEOF
13463 if ac_fn_c_try_compile "$LINENO"; then :
13464 gdb_cv_have_aix_thread_debug=yes
13465 else
13466 gdb_cv_have_aix_thread_debug=no
13467 fi
13468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13469 fi
13470
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13472 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13473 if test $gdb_cv_have_aix_thread_debug = yes; then
13474 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
13475 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
13476 LIBS="$LIBS -lpthdebug"
13477
13478 # Older versions of AIX do not provide the declaration for
13479 # the getthrds function (it appears that it was introduced
13480 # with AIX 6.x).
13481 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
13482 "
13483 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
13484 ac_have_decl=1
13485 else
13486 ac_have_decl=0
13487 fi
13488
13489 cat >>confdefs.h <<_ACEOF
13490 #define HAVE_DECL_GETTHRDS $ac_have_decl
13491 _ACEOF
13492
13493 fi
13494 ;;
13495 esac
13496
13497 fi
13498
13499 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13501 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13502 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13507 #include <thread_db.h>
13508 int
13509 main ()
13510 {
13511 int i = TD_NOTALLOC;
13512 ;
13513 return 0;
13514 }
13515 _ACEOF
13516 if ac_fn_c_try_compile "$LINENO"; then :
13517 gdb_cv_thread_db_h_has_td_notalloc=yes
13518 else
13519 gdb_cv_thread_db_h_has_td_notalloc=no
13520
13521 fi
13522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523
13524 fi
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13526 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13528 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13529 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13530 $as_echo_n "(cached) " >&6
13531 else
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13534 #include <thread_db.h>
13535 int
13536 main ()
13537 {
13538 int i = TD_VERSION;
13539 ;
13540 return 0;
13541 }
13542 _ACEOF
13543 if ac_fn_c_try_compile "$LINENO"; then :
13544 gdb_cv_thread_db_h_has_td_version=yes
13545 else
13546 gdb_cv_thread_db_h_has_td_version=no
13547
13548 fi
13549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550
13551 fi
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13553 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
13555 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
13556 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13557 $as_echo_n "(cached) " >&6
13558 else
13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13561 #include <thread_db.h>
13562 int
13563 main ()
13564 {
13565 int i = TD_NOTLS;
13566 ;
13567 return 0;
13568 }
13569 _ACEOF
13570 if ac_fn_c_try_compile "$LINENO"; then :
13571 gdb_cv_thread_db_h_has_td_notls=yes
13572 else
13573 gdb_cv_thread_db_h_has_td_notls=no
13574
13575 fi
13576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13577
13578 fi
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
13580 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
13581 fi
13582 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
13583
13584 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
13585
13586 fi
13587 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
13588
13589 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
13590
13591 fi
13592 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
13593
13594 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
13595
13596 fi
13597
13598 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
13600 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
13601 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
13602 $as_echo_n "(cached) " >&6
13603 else
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606 #include <sys/syscall.h>
13607 int
13608 main ()
13609 {
13610 int i = __NR_tkill;
13611 ;
13612 return 0;
13613 }
13614 _ACEOF
13615 if ac_fn_c_try_compile "$LINENO"; then :
13616 gdb_cv_sys_syscall_h_has_tkill=yes
13617 else
13618 gdb_cv_sys_syscall_h_has_tkill=no
13619
13620 fi
13621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13622
13623 fi
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
13625 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
13626 fi
13627 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
13628 ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
13629 if test "x$ac_cv_func_syscall" = x""yes; then :
13630
13631 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
13632
13633
13634 fi
13635
13636 fi
13637
13638 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13639 "
13640 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
13641 ac_have_decl=1
13642 else
13643 ac_have_decl=0
13644 fi
13645
13646 cat >>confdefs.h <<_ACEOF
13647 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13648 _ACEOF
13649
13650
13651 if test "$cross_compiling" = yes; then :
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13654 #include <sys/personality.h>
13655 int
13656 main ()
13657 {
13658
13659 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13660 # define ADDR_NO_RANDOMIZE 0x0040000
13661 # endif
13662 /* Test the flag could be set and stays set. */
13663 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13664 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13665 return 1
13666 ;
13667 return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"; then :
13671 have_personality=true
13672 else
13673 have_personality=false
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext \
13676 conftest$ac_exeext conftest.$ac_ext
13677 else
13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13680 #include <sys/personality.h>
13681 int
13682 main ()
13683 {
13684
13685 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13686 # define ADDR_NO_RANDOMIZE 0x0040000
13687 # endif
13688 /* Test the flag could be set and stays set. */
13689 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13690 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13691 return 1
13692 ;
13693 return 0;
13694 }
13695 _ACEOF
13696 if ac_fn_c_try_run "$LINENO"; then :
13697 have_personality=true
13698 else
13699 have_personality=false
13700 fi
13701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13702 conftest.$ac_objext conftest.beam conftest.$ac_ext
13703 fi
13704
13705 if $have_personality
13706 then
13707
13708 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13709
13710 fi
13711
13712 case $host_os in
13713 go32* | *djgpp*)
13714 gdbinit=gdb.ini
13715 ;;
13716 *)
13717 gdbinit=.gdbinit
13718 ;;
13719 esac
13720
13721 cat >>confdefs.h <<_ACEOF
13722 #define GDBINIT "$gdbinit"
13723 _ACEOF
13724
13725
13726
13727 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
13728 # except that the argument to --with-sysroot is optional.
13729 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
13730 if test "x$with_sysroot" = xyes; then
13731 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
13732 fi
13733
13734 # Check whether --with-sysroot was given.
13735 if test "${with_sysroot+set}" = set; then :
13736 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
13737 else
13738 TARGET_SYSTEM_ROOT=
13739 fi
13740
13741
13742 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
13743 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13744 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
13745 ac_define_dir=`eval echo $ac_define_dir`
13746
13747 cat >>confdefs.h <<_ACEOF
13748 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
13749 _ACEOF
13750
13751
13752
13753
13754 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
13755 if test "x$prefix" = xNONE; then
13756 test_prefix=/usr/local
13757 else
13758 test_prefix=$prefix
13759 fi
13760 else
13761 test_prefix=$exec_prefix
13762 fi
13763 value=0
13764 case ${ac_define_dir} in
13765 "${test_prefix}"|"${test_prefix}/"*|\
13766 '${exec_prefix}'|'${exec_prefix}/'*)
13767 value=1
13768 ;;
13769 esac
13770
13771 cat >>confdefs.h <<_ACEOF
13772 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
13773 _ACEOF
13774
13775
13776
13777
13778
13779 # Check whether --with-system-gdbinit was given.
13780 if test "${with_system_gdbinit+set}" = set; then :
13781 withval=$with_system_gdbinit;
13782 SYSTEM_GDBINIT=$withval
13783 else
13784 SYSTEM_GDBINIT=
13785 fi
13786
13787
13788 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
13789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13790 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
13791 ac_define_dir=`eval echo $ac_define_dir`
13792
13793 cat >>confdefs.h <<_ACEOF
13794 #define SYSTEM_GDBINIT "$ac_define_dir"
13795 _ACEOF
13796
13797
13798
13799
13800 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
13801 if test "x$prefix" = xNONE; then
13802 test_prefix=/usr/local
13803 else
13804 test_prefix=$prefix
13805 fi
13806 else
13807 test_prefix=$exec_prefix
13808 fi
13809 value=0
13810 case ${ac_define_dir} in
13811 "${test_prefix}"|"${test_prefix}/"*|\
13812 '${exec_prefix}'|'${exec_prefix}/'*)
13813 value=1
13814 ;;
13815 esac
13816
13817 cat >>confdefs.h <<_ACEOF
13818 #define SYSTEM_GDBINIT_RELOCATABLE $value
13819 _ACEOF
13820
13821
13822
13823
13824 # Check whether --enable-werror was given.
13825 if test "${enable_werror+set}" = set; then :
13826 enableval=$enable_werror; case "${enableval}" in
13827 yes | y) ERROR_ON_WARNING="yes" ;;
13828 no | n) ERROR_ON_WARNING="no" ;;
13829 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13830 esac
13831 fi
13832
13833
13834 # Enable -Werror by default when using gcc in C mode. Leave it off
13835 # for C++ until we're warning clean. Turn it off for releases.
13836 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
13837 && test x"$enable_build_with_cxx" != x"yes" \
13838 && $development; then
13839 ERROR_ON_WARNING=yes
13840 fi
13841
13842 WERROR_CFLAGS=""
13843 if test "${ERROR_ON_WARNING}" = yes ; then
13844 WERROR_CFLAGS="-Werror"
13845 fi
13846
13847 # These options work in either C or C++ modes.
13848 build_warnings="-Wall -Wpointer-arith \
13849 -Wno-unused -Wunused-value -Wunused-function \
13850 -Wno-switch -Wno-char-subscripts \
13851 -Wempty-body"
13852
13853 # Now add in C and C++ specific options, depending on mode.
13854 if test "$enable_build_with_cxx" = "yes"; then
13855 build_warnings="$build_warnings -Wno-sign-compare -Wno-write-strings \
13856 -Wno-narrowing"
13857 else
13858 build_warnings="$build_warnings -Wpointer-sign -Wmissing-prototypes \
13859 -Wdeclaration-after-statement -Wmissing-parameter-type \
13860 -Wold-style-declaration -Wold-style-definition"
13861 fi
13862
13863 # Enable -Wno-format by default when using gcc on mingw since many
13864 # GCC versions complain about %I64.
13865 case "${host}" in
13866 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13867 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
13868 esac
13869
13870 # Check whether --enable-build-warnings was given.
13871 if test "${enable_build_warnings+set}" = set; then :
13872 enableval=$enable_build_warnings; case "${enableval}" in
13873 yes) ;;
13874 no) build_warnings="-w";;
13875 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13876 build_warnings="${build_warnings} ${t}";;
13877 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13878 build_warnings="${t} ${build_warnings}";;
13879 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13880 esac
13881 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13882 echo "Setting compiler warning flags = $build_warnings" 6>&1
13883 fi
13884 fi
13885 # Check whether --enable-gdb-build-warnings was given.
13886 if test "${enable_gdb_build_warnings+set}" = set; then :
13887 enableval=$enable_gdb_build_warnings; case "${enableval}" in
13888 yes) ;;
13889 no) build_warnings="-w";;
13890 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13891 build_warnings="${build_warnings} ${t}";;
13892 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13893 build_warnings="${t} ${build_warnings}";;
13894 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13895 esac
13896 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13897 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13898 fi
13899 fi
13900
13901 # The set of warnings supported by a C++ compiler is not the same as
13902 # of the C compiler.
13903 if test "$enable_build_with_cxx" = "yes"; then
13904 ac_ext=cpp
13905 ac_cpp='$CXXCPP $CPPFLAGS'
13906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13909
13910 fi
13911
13912 WARN_CFLAGS=""
13913 if test "x${build_warnings}" != x -a "x$GCC" = xyes
13914 then
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13916 $as_echo_n "checking compiler warning flags... " >&6; }
13917 # Separate out the -Werror flag as some files just cannot be
13918 # compiled with it enabled.
13919 for w in ${build_warnings}; do
13920 case $w in
13921 -Werr*) WERROR_CFLAGS=-Werror ;;
13922 *)
13923 # Check whether GCC accepts it.
13924 saved_CFLAGS="$CFLAGS"
13925 CFLAGS="$CFLAGS $w"
13926 saved_CXXFLAGS="$CXXFLAGS"
13927 CXXFLAGS="$CXXFLAGS $w"
13928
13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13931
13932 int
13933 main ()
13934 {
13935
13936 ;
13937 return 0;
13938 }
13939 _ACEOF
13940 if ac_fn_cxx_try_compile "$LINENO"; then :
13941 WARN_CFLAGS="${WARN_CFLAGS} $w"
13942 fi
13943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13944 CFLAGS="$saved_CFLAGS"
13945 CXXFLAGS="$saved_CXXFLAGS"
13946 esac
13947 done
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13949 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13950 fi
13951
13952
13953
13954 if test "$enable_build_with_cxx" = "yes"; then
13955 ac_ext=c
13956 ac_cpp='$CPP $CPPFLAGS'
13957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13960
13961 fi
13962
13963 # In the Cygwin environment, we need some additional flags.
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13965 $as_echo_n "checking for cygwin... " >&6; }
13966 if test "${gdb_cv_os_cygwin+set}" = set; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971
13972 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13973 lose
13974 #endif
13975 _ACEOF
13976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13977 $EGREP "^lose$" >/dev/null 2>&1; then :
13978 gdb_cv_os_cygwin=yes
13979 else
13980 gdb_cv_os_cygwin=no
13981 fi
13982 rm -f conftest*
13983
13984 fi
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
13986 $as_echo "$gdb_cv_os_cygwin" >&6; }
13987
13988
13989 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
13990 case ${host} in
13991 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13992 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13993 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
13994 esac
13995
13996
13997 # libreadline needs libuser32.a in a cygwin environment
13998 WIN32LIBS=
13999 if test x$gdb_cv_os_cygwin = xyes; then
14000 WIN32LIBS="-luser32"
14001 case "${target}" in
14002 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14003 ;;
14004 esac
14005 fi
14006
14007 # The ser-tcp.c module requires sockets.
14008 case ${host} in
14009 *mingw32*)
14010
14011 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14012
14013 WIN32LIBS="$WIN32LIBS -lws2_32"
14014 ;;
14015 esac
14016
14017
14018 # Add ELF support to GDB, but only if BFD includes ELF support.
14019
14020 OLD_CFLAGS=$CFLAGS
14021 OLD_LDFLAGS=$LDFLAGS
14022 OLD_LIBS=$LIBS
14023 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14024 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14025 # always want our bfd.
14026 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14027 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14028 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14029 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14030 LIBS="-lbfd -liberty -lz $intl $LIBS"
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14032 $as_echo_n "checking for ELF support in BFD... " >&6; }
14033 if test "${gdb_cv_var_elf+set}" = set; then :
14034 $as_echo_n "(cached) " >&6
14035 else
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14038 #include <stdlib.h>
14039 #include "bfd.h"
14040 #include "elf-bfd.h"
14041
14042 int
14043 main ()
14044 {
14045 return bfd_get_elf_phdr_upper_bound (NULL);
14046 ;
14047 return 0;
14048 }
14049 _ACEOF
14050 if ac_fn_c_try_link "$LINENO"; then :
14051 gdb_cv_var_elf=yes
14052 else
14053 gdb_cv_var_elf=no
14054 fi
14055 rm -f core conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
14057 fi
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14059 $as_echo "$gdb_cv_var_elf" >&6; }
14060 CFLAGS=$OLD_CFLAGS
14061 LDFLAGS=$OLD_LDFLAGS
14062 LIBS=$OLD_LIBS
14063 if test $gdb_cv_var_elf = yes; then
14064 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
14065
14066 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14067
14068 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14069 if test "$plugins" = "yes"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14071 $as_echo_n "checking for library containing dlopen... " >&6; }
14072 if test "${ac_cv_search_dlopen+set}" = set; then :
14073 $as_echo_n "(cached) " >&6
14074 else
14075 ac_func_search_save_LIBS=$LIBS
14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14078
14079 /* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply. */
14082 #ifdef __cplusplus
14083 extern "C"
14084 #endif
14085 char dlopen ();
14086 int
14087 main ()
14088 {
14089 return dlopen ();
14090 ;
14091 return 0;
14092 }
14093 _ACEOF
14094 for ac_lib in '' dl; do
14095 if test -z "$ac_lib"; then
14096 ac_res="none required"
14097 else
14098 ac_res=-l$ac_lib
14099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14100 fi
14101 if ac_fn_c_try_link "$LINENO"; then :
14102 ac_cv_search_dlopen=$ac_res
14103 fi
14104 rm -f core conftest.err conftest.$ac_objext \
14105 conftest$ac_exeext
14106 if test "${ac_cv_search_dlopen+set}" = set; then :
14107 break
14108 fi
14109 done
14110 if test "${ac_cv_search_dlopen+set}" = set; then :
14111
14112 else
14113 ac_cv_search_dlopen=no
14114 fi
14115 rm conftest.$ac_ext
14116 LIBS=$ac_func_search_save_LIBS
14117 fi
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14119 $as_echo "$ac_cv_search_dlopen" >&6; }
14120 ac_res=$ac_cv_search_dlopen
14121 if test "$ac_res" != no; then :
14122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14123
14124 fi
14125
14126 fi
14127 fi
14128
14129 # Add macho support to GDB, but only if BFD includes it.
14130
14131 OLD_CFLAGS=$CFLAGS
14132 OLD_LDFLAGS=$LDFLAGS
14133 OLD_LIBS=$LIBS
14134 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14135 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14136 # always want our bfd.
14137 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14138 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14139 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14140 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14141 LIBS="-lbfd -liberty -lz $intl $LIBS"
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
14143 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
14144 if test "${gdb_cv_var_macho+set}" = set; then :
14145 $as_echo_n "(cached) " >&6
14146 else
14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 #include <stdlib.h>
14150 #include "bfd.h"
14151 #include "mach-o.h"
14152
14153 int
14154 main ()
14155 {
14156 return bfd_mach_o_lookup_command (NULL, 0, NULL);
14157 ;
14158 return 0;
14159 }
14160 _ACEOF
14161 if ac_fn_c_try_link "$LINENO"; then :
14162 gdb_cv_var_macho=yes
14163 else
14164 gdb_cv_var_macho=no
14165 fi
14166 rm -f core conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
14168 fi
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
14170 $as_echo "$gdb_cv_var_macho" >&6; }
14171 CFLAGS=$OLD_CFLAGS
14172 LDFLAGS=$OLD_LDFLAGS
14173 LIBS=$OLD_LIBS
14174 if test $gdb_cv_var_macho = yes; then
14175 CONFIG_OBS="$CONFIG_OBS machoread.o"
14176 fi
14177
14178 # Add any host-specific objects to GDB.
14179 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14180
14181 # If building on ELF, look for lzma support for embedded compressed debug info.
14182 if test $gdb_cv_var_elf = yes; then
14183
14184 # Check whether --with-lzma was given.
14185 if test "${with_lzma+set}" = set; then :
14186 withval=$with_lzma;
14187 else
14188 with_lzma=auto
14189 fi
14190
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
14192 $as_echo_n "checking whether to use lzma... " >&6; }
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
14194 $as_echo "$with_lzma" >&6; }
14195
14196 if test "${with_lzma}" != no; then
14197
14198
14199
14200
14201
14202
14203
14204
14205 use_additional=yes
14206
14207 acl_save_prefix="$prefix"
14208 prefix="$acl_final_prefix"
14209 acl_save_exec_prefix="$exec_prefix"
14210 exec_prefix="$acl_final_exec_prefix"
14211
14212 eval additional_includedir=\"$includedir\"
14213 eval additional_libdir=\"$libdir\"
14214
14215 exec_prefix="$acl_save_exec_prefix"
14216 prefix="$acl_save_prefix"
14217
14218
14219 # Check whether --with-liblzma-prefix was given.
14220 if test "${with_liblzma_prefix+set}" = set; then :
14221 withval=$with_liblzma_prefix;
14222 if test "X$withval" = "Xno"; then
14223 use_additional=no
14224 else
14225 if test "X$withval" = "X"; then
14226
14227 acl_save_prefix="$prefix"
14228 prefix="$acl_final_prefix"
14229 acl_save_exec_prefix="$exec_prefix"
14230 exec_prefix="$acl_final_exec_prefix"
14231
14232 eval additional_includedir=\"$includedir\"
14233 eval additional_libdir=\"$libdir\"
14234
14235 exec_prefix="$acl_save_exec_prefix"
14236 prefix="$acl_save_prefix"
14237
14238 else
14239 additional_includedir="$withval/include"
14240 additional_libdir="$withval/lib"
14241 fi
14242 fi
14243
14244 fi
14245
14246 LIBLZMA=
14247 LTLIBLZMA=
14248 INCLZMA=
14249 rpathdirs=
14250 ltrpathdirs=
14251 names_already_handled=
14252 names_next_round='lzma '
14253 while test -n "$names_next_round"; do
14254 names_this_round="$names_next_round"
14255 names_next_round=
14256 for name in $names_this_round; do
14257 already_handled=
14258 for n in $names_already_handled; do
14259 if test "$n" = "$name"; then
14260 already_handled=yes
14261 break
14262 fi
14263 done
14264 if test -z "$already_handled"; then
14265 names_already_handled="$names_already_handled $name"
14266 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14267 eval value=\"\$HAVE_LIB$uppername\"
14268 if test -n "$value"; then
14269 if test "$value" = yes; then
14270 eval value=\"\$LIB$uppername\"
14271 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
14272 eval value=\"\$LTLIB$uppername\"
14273 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
14274 else
14275 :
14276 fi
14277 else
14278 found_dir=
14279 found_la=
14280 found_so=
14281 found_a=
14282 if test $use_additional = yes; then
14283 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14284 found_dir="$additional_libdir"
14285 found_so="$additional_libdir/lib$name.$shlibext"
14286 if test -f "$additional_libdir/lib$name.la"; then
14287 found_la="$additional_libdir/lib$name.la"
14288 fi
14289 else
14290 if test -f "$additional_libdir/lib$name.$libext"; then
14291 found_dir="$additional_libdir"
14292 found_a="$additional_libdir/lib$name.$libext"
14293 if test -f "$additional_libdir/lib$name.la"; then
14294 found_la="$additional_libdir/lib$name.la"
14295 fi
14296 fi
14297 fi
14298 fi
14299 if test "X$found_dir" = "X"; then
14300 for x in $LDFLAGS $LTLIBLZMA; do
14301
14302 acl_save_prefix="$prefix"
14303 prefix="$acl_final_prefix"
14304 acl_save_exec_prefix="$exec_prefix"
14305 exec_prefix="$acl_final_exec_prefix"
14306 eval x=\"$x\"
14307 exec_prefix="$acl_save_exec_prefix"
14308 prefix="$acl_save_prefix"
14309
14310 case "$x" in
14311 -L*)
14312 dir=`echo "X$x" | sed -e 's/^X-L//'`
14313 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14314 found_dir="$dir"
14315 found_so="$dir/lib$name.$shlibext"
14316 if test -f "$dir/lib$name.la"; then
14317 found_la="$dir/lib$name.la"
14318 fi
14319 else
14320 if test -f "$dir/lib$name.$libext"; then
14321 found_dir="$dir"
14322 found_a="$dir/lib$name.$libext"
14323 if test -f "$dir/lib$name.la"; then
14324 found_la="$dir/lib$name.la"
14325 fi
14326 fi
14327 fi
14328 ;;
14329 esac
14330 if test "X$found_dir" != "X"; then
14331 break
14332 fi
14333 done
14334 fi
14335 if test "X$found_dir" != "X"; then
14336 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
14337 if test "X$found_so" != "X"; then
14338 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14339 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14340 else
14341 haveit=
14342 for x in $ltrpathdirs; do
14343 if test "X$x" = "X$found_dir"; then
14344 haveit=yes
14345 break
14346 fi
14347 done
14348 if test -z "$haveit"; then
14349 ltrpathdirs="$ltrpathdirs $found_dir"
14350 fi
14351 if test "$hardcode_direct" = yes; then
14352 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14353 else
14354 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14355 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14356 haveit=
14357 for x in $rpathdirs; do
14358 if test "X$x" = "X$found_dir"; then
14359 haveit=yes
14360 break
14361 fi
14362 done
14363 if test -z "$haveit"; then
14364 rpathdirs="$rpathdirs $found_dir"
14365 fi
14366 else
14367 haveit=
14368 for x in $LDFLAGS $LIBLZMA; do
14369
14370 acl_save_prefix="$prefix"
14371 prefix="$acl_final_prefix"
14372 acl_save_exec_prefix="$exec_prefix"
14373 exec_prefix="$acl_final_exec_prefix"
14374 eval x=\"$x\"
14375 exec_prefix="$acl_save_exec_prefix"
14376 prefix="$acl_save_prefix"
14377
14378 if test "X$x" = "X-L$found_dir"; then
14379 haveit=yes
14380 break
14381 fi
14382 done
14383 if test -z "$haveit"; then
14384 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
14385 fi
14386 if test "$hardcode_minus_L" != no; then
14387 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14388 else
14389 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14390 fi
14391 fi
14392 fi
14393 fi
14394 else
14395 if test "X$found_a" != "X"; then
14396 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
14397 else
14398 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
14399 fi
14400 fi
14401 additional_includedir=
14402 case "$found_dir" in
14403 */lib | */lib/)
14404 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14405 additional_includedir="$basedir/include"
14406 ;;
14407 esac
14408 if test "X$additional_includedir" != "X"; then
14409 if test "X$additional_includedir" != "X/usr/include"; then
14410 haveit=
14411 if test "X$additional_includedir" = "X/usr/local/include"; then
14412 if test -n "$GCC"; then
14413 case $host_os in
14414 linux*) haveit=yes;;
14415 esac
14416 fi
14417 fi
14418 if test -z "$haveit"; then
14419 for x in $CPPFLAGS $INCLZMA; do
14420
14421 acl_save_prefix="$prefix"
14422 prefix="$acl_final_prefix"
14423 acl_save_exec_prefix="$exec_prefix"
14424 exec_prefix="$acl_final_exec_prefix"
14425 eval x=\"$x\"
14426 exec_prefix="$acl_save_exec_prefix"
14427 prefix="$acl_save_prefix"
14428
14429 if test "X$x" = "X-I$additional_includedir"; then
14430 haveit=yes
14431 break
14432 fi
14433 done
14434 if test -z "$haveit"; then
14435 if test -d "$additional_includedir"; then
14436 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
14437 fi
14438 fi
14439 fi
14440 fi
14441 fi
14442 if test -n "$found_la"; then
14443 save_libdir="$libdir"
14444 case "$found_la" in
14445 */* | *\\*) . "$found_la" ;;
14446 *) . "./$found_la" ;;
14447 esac
14448 libdir="$save_libdir"
14449 for dep in $dependency_libs; do
14450 case "$dep" in
14451 -L*)
14452 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14453 if test "X$additional_libdir" != "X/usr/lib"; then
14454 haveit=
14455 if test "X$additional_libdir" = "X/usr/local/lib"; then
14456 if test -n "$GCC"; then
14457 case $host_os in
14458 linux*) haveit=yes;;
14459 esac
14460 fi
14461 fi
14462 if test -z "$haveit"; then
14463 haveit=
14464 for x in $LDFLAGS $LIBLZMA; do
14465
14466 acl_save_prefix="$prefix"
14467 prefix="$acl_final_prefix"
14468 acl_save_exec_prefix="$exec_prefix"
14469 exec_prefix="$acl_final_exec_prefix"
14470 eval x=\"$x\"
14471 exec_prefix="$acl_save_exec_prefix"
14472 prefix="$acl_save_prefix"
14473
14474 if test "X$x" = "X-L$additional_libdir"; then
14475 haveit=yes
14476 break
14477 fi
14478 done
14479 if test -z "$haveit"; then
14480 if test -d "$additional_libdir"; then
14481 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
14482 fi
14483 fi
14484 haveit=
14485 for x in $LDFLAGS $LTLIBLZMA; do
14486
14487 acl_save_prefix="$prefix"
14488 prefix="$acl_final_prefix"
14489 acl_save_exec_prefix="$exec_prefix"
14490 exec_prefix="$acl_final_exec_prefix"
14491 eval x=\"$x\"
14492 exec_prefix="$acl_save_exec_prefix"
14493 prefix="$acl_save_prefix"
14494
14495 if test "X$x" = "X-L$additional_libdir"; then
14496 haveit=yes
14497 break
14498 fi
14499 done
14500 if test -z "$haveit"; then
14501 if test -d "$additional_libdir"; then
14502 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14503 fi
14504 fi
14505 fi
14506 fi
14507 ;;
14508 -R*)
14509 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14510 if test "$enable_rpath" != no; then
14511 haveit=
14512 for x in $rpathdirs; do
14513 if test "X$x" = "X$dir"; then
14514 haveit=yes
14515 break
14516 fi
14517 done
14518 if test -z "$haveit"; then
14519 rpathdirs="$rpathdirs $dir"
14520 fi
14521 haveit=
14522 for x in $ltrpathdirs; do
14523 if test "X$x" = "X$dir"; then
14524 haveit=yes
14525 break
14526 fi
14527 done
14528 if test -z "$haveit"; then
14529 ltrpathdirs="$ltrpathdirs $dir"
14530 fi
14531 fi
14532 ;;
14533 -l*)
14534 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14535 ;;
14536 *.la)
14537 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14538 ;;
14539 *)
14540 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
14541 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14542 ;;
14543 esac
14544 done
14545 fi
14546 else
14547 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14548 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
14549 fi
14550 fi
14551 fi
14552 done
14553 done
14554 if test "X$rpathdirs" != "X"; then
14555 if test -n "$hardcode_libdir_separator"; then
14556 alldirs=
14557 for found_dir in $rpathdirs; do
14558 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14559 done
14560 acl_save_libdir="$libdir"
14561 libdir="$alldirs"
14562 eval flag=\"$hardcode_libdir_flag_spec\"
14563 libdir="$acl_save_libdir"
14564 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14565 else
14566 for found_dir in $rpathdirs; do
14567 acl_save_libdir="$libdir"
14568 libdir="$found_dir"
14569 eval flag=\"$hardcode_libdir_flag_spec\"
14570 libdir="$acl_save_libdir"
14571 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14572 done
14573 fi
14574 fi
14575 if test "X$ltrpathdirs" != "X"; then
14576 for found_dir in $ltrpathdirs; do
14577 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
14578 done
14579 fi
14580
14581
14582 ac_save_CPPFLAGS="$CPPFLAGS"
14583
14584 for element in $INCLZMA; do
14585 haveit=
14586 for x in $CPPFLAGS; do
14587
14588 acl_save_prefix="$prefix"
14589 prefix="$acl_final_prefix"
14590 acl_save_exec_prefix="$exec_prefix"
14591 exec_prefix="$acl_final_exec_prefix"
14592 eval x=\"$x\"
14593 exec_prefix="$acl_save_exec_prefix"
14594 prefix="$acl_save_prefix"
14595
14596 if test "X$x" = "X$element"; then
14597 haveit=yes
14598 break
14599 fi
14600 done
14601 if test -z "$haveit"; then
14602 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14603 fi
14604 done
14605
14606
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
14608 $as_echo_n "checking for liblzma... " >&6; }
14609 if test "${ac_cv_liblzma+set}" = set; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612
14613 ac_save_LIBS="$LIBS"
14614 LIBS="$LIBS $LIBLZMA"
14615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14617 #include "lzma.h"
14618 int
14619 main ()
14620 {
14621 lzma_index_iter iter;
14622 lzma_index_iter_init (&iter, 0);
14623 lzma_mf_is_supported (LZMA_MF_HC3);
14624 ;
14625 return 0;
14626 }
14627 _ACEOF
14628 if ac_fn_c_try_link "$LINENO"; then :
14629 ac_cv_liblzma=yes
14630 else
14631 ac_cv_liblzma=no
14632 fi
14633 rm -f core conftest.err conftest.$ac_objext \
14634 conftest$ac_exeext conftest.$ac_ext
14635 LIBS="$ac_save_LIBS"
14636
14637 fi
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
14639 $as_echo "$ac_cv_liblzma" >&6; }
14640 if test "$ac_cv_liblzma" = yes; then
14641 HAVE_LIBLZMA=yes
14642
14643 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14644
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
14646 $as_echo_n "checking how to link with liblzma... " >&6; }
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
14648 $as_echo "$LIBLZMA" >&6; }
14649 else
14650 HAVE_LIBLZMA=no
14651 CPPFLAGS="$ac_save_CPPFLAGS"
14652 LIBLZMA=
14653 LTLIBLZMA=
14654 fi
14655
14656
14657
14658
14659
14660
14661 if test "$HAVE_LIBLZMA" != yes; then
14662 if test "$with_lzma" = yes; then
14663 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
14664 fi
14665 fi
14666 fi
14667 fi
14668
14669 LIBGUI="../libgui/src/libgui.a"
14670 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14671
14672
14673
14674 WIN32LDAPP=
14675
14676
14677
14678 case "${host}" in
14679 *-*-cygwin* | *-*-mingw* )
14680 configdir="win"
14681 ;;
14682 *)
14683 configdir="unix"
14684 ;;
14685 esac
14686
14687 GDBTKLIBS=
14688 if test "${enable_gdbtk}" = "yes"; then
14689
14690 # Gdbtk must have an absolute path to srcdir in order to run
14691 # properly when not installed.
14692 here=`pwd`
14693 cd ${srcdir}
14694 GDBTK_SRC_DIR=`pwd`
14695 cd $here
14696
14697
14698 #
14699 # Ok, lets find the tcl configuration
14700 # First, look for one uninstalled.
14701 # the alternative search directory is invoked by --with-tcl
14702 #
14703
14704 if test x"${no_tcl}" = x ; then
14705 # we reset no_tcl in case something fails here
14706 no_tcl=true
14707
14708 # Check whether --with-tcl was given.
14709 if test "${with_tcl+set}" = set; then :
14710 withval=$with_tcl; with_tclconfig=${withval}
14711 fi
14712
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14714 $as_echo_n "checking for Tcl configuration... " >&6; }
14715 if test "${ac_cv_c_tclconfig+set}" = set; then :
14716 $as_echo_n "(cached) " >&6
14717 else
14718
14719
14720 # First check to see if --with-tcl was specified.
14721 case "${host}" in
14722 *-*-cygwin*) platDir="win" ;;
14723 *) platDir="unix" ;;
14724 esac
14725 if test x"${with_tclconfig}" != x ; then
14726 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14727 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
14728 else
14729 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14730 fi
14731 fi
14732
14733 # then check for a private Tcl installation
14734 if test x"${ac_cv_c_tclconfig}" = x ; then
14735 for i in \
14736 ../tcl \
14737 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14738 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14739 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14740 ../../tcl \
14741 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14742 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14743 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14744 ../../../tcl \
14745 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14746 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14747 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14748 if test -f "$i/$platDir/tclConfig.sh" ; then
14749 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14750 break
14751 fi
14752 done
14753 fi
14754
14755 # on Darwin, check in Framework installation locations
14756 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
14757 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14758 `ls -d /Library/Frameworks 2>/dev/null` \
14759 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14760 `ls -d /System/Library/Frameworks 2>/dev/null` \
14761 ; do
14762 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14763 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
14764 break
14765 fi
14766 done
14767 fi
14768
14769 # check in a few common install locations
14770 if test x"${ac_cv_c_tclconfig}" = x ; then
14771 for i in `ls -d ${libdir} 2>/dev/null` \
14772 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14773 `ls -d ${prefix}/lib 2>/dev/null` \
14774 `ls -d /usr/local/lib 2>/dev/null` \
14775 `ls -d /usr/contrib/lib 2>/dev/null` \
14776 `ls -d /usr/lib 2>/dev/null` \
14777 ; do
14778 if test -f "$i/tclConfig.sh" ; then
14779 ac_cv_c_tclconfig=`(cd $i; pwd)`
14780 break
14781 fi
14782 done
14783 fi
14784
14785 # check in a few other private locations
14786 if test x"${ac_cv_c_tclconfig}" = x ; then
14787 for i in \
14788 ${srcdir}/../tcl \
14789 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14790 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14791 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14792 if test -f "$i/$platDir/tclConfig.sh" ; then
14793 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14794 break
14795 fi
14796 done
14797 fi
14798
14799 fi
14800
14801
14802 if test x"${ac_cv_c_tclconfig}" = x ; then
14803 TCL_BIN_DIR="# no Tcl configs found"
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14805 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14806 else
14807 no_tcl=
14808 TCL_BIN_DIR=${ac_cv_c_tclconfig}
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14810 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14811 fi
14812 fi
14813
14814
14815 # If $no_tk is nonempty, then we can't do Tk, and there is no
14816 # point to doing Tcl.
14817
14818 #
14819 # Ok, lets find the tk configuration
14820 # First, look for one uninstalled.
14821 # the alternative search directory is invoked by --with-tk
14822 #
14823
14824 if test x"${no_tk}" = x ; then
14825 # we reset no_tk in case something fails here
14826 no_tk=true
14827
14828 # Check whether --with-tk was given.
14829 if test "${with_tk+set}" = set; then :
14830 withval=$with_tk; with_tkconfig=${withval}
14831 fi
14832
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14834 $as_echo_n "checking for Tk configuration... " >&6; }
14835 if test "${ac_cv_c_tkconfig+set}" = set; then :
14836 $as_echo_n "(cached) " >&6
14837 else
14838
14839
14840 # First check to see if --with-tkconfig was specified.
14841 if test x"${with_tkconfig}" != x ; then
14842 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14843 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
14844 else
14845 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14846 fi
14847 fi
14848
14849 # then check for a private Tk library
14850 case "${host}" in
14851 *-*-cygwin*) platDir="win" ;;
14852 *) platDir="unix" ;;
14853 esac
14854 if test x"${ac_cv_c_tkconfig}" = x ; then
14855 for i in \
14856 ../tk \
14857 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14858 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14859 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14860 ../../tk \
14861 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14862 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14863 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14864 ../../../tk \
14865 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14866 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14867 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14868 if test -f "$i/$platDir/tkConfig.sh" ; then
14869 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14870 break
14871 fi
14872 done
14873 fi
14874
14875 # on Darwin, check in Framework installation locations
14876 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
14877 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14878 `ls -d /Library/Frameworks 2>/dev/null` \
14879 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14880 `ls -d /System/Library/Frameworks 2>/dev/null` \
14881 ; do
14882 if test -f "$i/Tk.framework/tkConfig.sh" ; then
14883 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
14884 break
14885 fi
14886 done
14887 fi
14888
14889 # check in a few common install locations
14890 if test x"${ac_cv_c_tkconfig}" = x ; then
14891 for i in `ls -d ${libdir} 2>/dev/null` \
14892 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14893 `ls -d ${prefix}/lib 2>/dev/null` \
14894 `ls -d /usr/local/lib 2>/dev/null` \
14895 `ls -d /usr/contrib/lib 2>/dev/null` \
14896 `ls -d /usr/lib 2>/dev/null` \
14897 ; do
14898 if test -f "$i/tkConfig.sh" ; then
14899 ac_cv_c_tkconfig=`(cd $i; pwd)`
14900 break
14901 fi
14902 done
14903 fi
14904 # check in a few other private locations
14905 if test x"${ac_cv_c_tkconfig}" = x ; then
14906 for i in \
14907 ${srcdir}/../tk \
14908 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14909 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14910 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14911 if test -f "$i/$platDir/tkConfig.sh" ; then
14912 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14913 break
14914 fi
14915 done
14916 fi
14917
14918 fi
14919
14920
14921 if test x"${ac_cv_c_tkconfig}" = x ; then
14922 TK_BIN_DIR="# no Tk configs found"
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14924 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14925 else
14926 no_tk=
14927 TK_BIN_DIR=${ac_cv_c_tkconfig}
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14929 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14930 fi
14931 fi
14932
14933
14934 if test -z "${no_tcl}" -a -z "${no_tk}"; then
14935
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14937 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14938
14939 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14941 $as_echo "loading" >&6; }
14942 . ${TCL_BIN_DIR}/tclConfig.sh
14943 else
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14945 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14946 fi
14947
14948 # eval is required to do the TCL_DBGX substitution
14949 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14950 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14951
14952 # If the TCL_BIN_DIR is the build directory (not the install directory),
14953 # then set the common variable name to the value of the build variables.
14954 # For example, the variable TCL_LIB_SPEC will be set to the value
14955 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14956 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14957 # installed and uninstalled version of Tcl.
14958 if test -f "${TCL_BIN_DIR}/Makefile" ; then
14959 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
14960 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
14961 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
14962 elif test "`uname -s`" = "Darwin"; then
14963 # If Tcl was built as a framework, attempt to use the libraries
14964 # from the framework at the given location so that linking works
14965 # against Tcl.framework installed in an arbitrary location.
14966 case ${TCL_DEFS} in
14967 *TCL_FRAMEWORK*)
14968 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14969 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
14970 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14971 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14972 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14973 break
14974 fi
14975 done
14976 fi
14977 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14978 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14979 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14980 fi
14981 ;;
14982 esac
14983 fi
14984
14985 # eval is required to do the TCL_DBGX substitution
14986 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14987 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14988 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14989 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005 # Check for in-tree tcl
15006 here=`pwd`
15007 cd ${srcdir}/..
15008 topdir=`pwd`
15009 cd ${here}
15010
15011 intree="no"
15012 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15013 intree="yes"
15014 fi
15015
15016 # Find Tcl private headers
15017 if test x"${intree}" = xno; then
15018
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15020 $as_echo_n "checking for Tcl private headers... " >&6; }
15021 private_dir=""
15022 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15023 if test -f ${dir}/tclInt.h ; then
15024 private_dir=${dir}
15025 fi
15026
15027 if test x"${private_dir}" = x; then
15028 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15029 else
15030 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15032 $as_echo "${private_dir}" >&6; }
15033 fi
15034
15035 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15036 TCL_LIBRARY="${TCL_LIB_SPEC}"
15037 TCL_DEPS=""
15038 else
15039 # If building tcl in the same src tree, private headers
15040 # are not needed, but we need to be sure to use the right
15041 # headers library
15042 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15043 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15044 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15045 fi
15046
15047
15048
15049
15050
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15052 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15053
15054 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15056 $as_echo "loading" >&6; }
15057 . ${TK_BIN_DIR}/tkConfig.sh
15058 else
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15060 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15061 fi
15062
15063 # eval is required to do the TK_DBGX substitution
15064 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15065 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15066
15067 # If the TK_BIN_DIR is the build directory (not the install directory),
15068 # then set the common variable name to the value of the build variables.
15069 # For example, the variable TK_LIB_SPEC will be set to the value
15070 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15071 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15072 # installed and uninstalled version of Tcl.
15073 if test -f "${TK_BIN_DIR}/Makefile" ; then
15074 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15075 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15076 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15077 elif test "`uname -s`" = "Darwin"; then
15078 # If Tk was built as a framework, attempt to use the libraries
15079 # from the framework at the given location so that linking works
15080 # against Tk.framework installed in an arbitrary location.
15081 case ${TK_DEFS} in
15082 *TK_FRAMEWORK*)
15083 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15084 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15085 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15086 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15087 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15088 break
15089 fi
15090 done
15091 fi
15092 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15093 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15094 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15095 fi
15096 ;;
15097 esac
15098 fi
15099
15100 # eval is required to do the TK_DBGX substitution
15101 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15102 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15103 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15104 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119 # Check for in-tree Tk
15120 intree="no"
15121 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15122 intree="yes"
15123 fi
15124
15125 # Find Tk private headers
15126 if test x"${intree}" = xno; then
15127
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15129 $as_echo_n "checking for Tk private headers... " >&6; }
15130 private_dir=""
15131 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15132 if test -f ${dir}/tkInt.h; then
15133 private_dir=${dir}
15134 fi
15135
15136 if test x"${private_dir}" = x; then
15137 as_fn_error "could not find Tk private headers" "$LINENO" 5
15138 else
15139 TK_PRIVATE_INCLUDE="-I${private_dir}"
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15141 $as_echo "${private_dir}" >&6; }
15142 fi
15143
15144 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15145 TK_LIBRARY=${TK_LIB_SPEC}
15146 TK_DEPS=""
15147 else
15148 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15149 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15150 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15151 fi
15152
15153
15154
15155
15156
15157 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15158
15159 # Include some libraries that Tcl and Tk want.
15160 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15161 # Yes, the ordering seems wrong here. But it isn't.
15162 # TK_LIBS is the list of libraries that need to be linked
15163 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15164 # were in LIBS then any link tests after this point would
15165 # try to include things like `$(LIBGUI)', which wouldn't work.
15166 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15167
15168 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15169 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15170 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15171 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15172 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15173 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15174 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15175
15176 if test x$gdb_cv_os_cygwin = xyes; then
15177 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15178 WIN32LDAPP="-Wl,--subsystem,console"
15179 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15180 fi
15181
15182 subdirs="$subdirs gdbtk"
15183
15184 fi
15185 fi
15186
15187
15188
15189
15190
15191
15192
15193
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15195 $as_echo_n "checking for X... " >&6; }
15196
15197
15198 # Check whether --with-x was given.
15199 if test "${with_x+set}" = set; then :
15200 withval=$with_x;
15201 fi
15202
15203 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15204 if test "x$with_x" = xno; then
15205 # The user explicitly disabled X.
15206 have_x=disabled
15207 else
15208 case $x_includes,$x_libraries in #(
15209 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15210 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15211 $as_echo_n "(cached) " >&6
15212 else
15213 # One or both of the vars are not set, and there is no cached value.
15214 ac_x_includes=no ac_x_libraries=no
15215 rm -f -r conftest.dir
15216 if mkdir conftest.dir; then
15217 cd conftest.dir
15218 cat >Imakefile <<'_ACEOF'
15219 incroot:
15220 @echo incroot='${INCROOT}'
15221 usrlibdir:
15222 @echo usrlibdir='${USRLIBDIR}'
15223 libdir:
15224 @echo libdir='${LIBDIR}'
15225 _ACEOF
15226 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15228 for ac_var in incroot usrlibdir libdir; do
15229 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15230 done
15231 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15232 for ac_extension in a so sl dylib la dll; do
15233 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15234 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15235 ac_im_usrlibdir=$ac_im_libdir; break
15236 fi
15237 done
15238 # Screen out bogus values from the imake configuration. They are
15239 # bogus both because they are the default anyway, and because
15240 # using them would break gcc on systems where it needs fixed includes.
15241 case $ac_im_incroot in
15242 /usr/include) ac_x_includes= ;;
15243 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15244 esac
15245 case $ac_im_usrlibdir in
15246 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15247 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15248 esac
15249 fi
15250 cd ..
15251 rm -f -r conftest.dir
15252 fi
15253
15254 # Standard set of common directories for X headers.
15255 # Check X11 before X11Rn because it is often a symlink to the current release.
15256 ac_x_header_dirs='
15257 /usr/X11/include
15258 /usr/X11R7/include
15259 /usr/X11R6/include
15260 /usr/X11R5/include
15261 /usr/X11R4/include
15262
15263 /usr/include/X11
15264 /usr/include/X11R7
15265 /usr/include/X11R6
15266 /usr/include/X11R5
15267 /usr/include/X11R4
15268
15269 /usr/local/X11/include
15270 /usr/local/X11R7/include
15271 /usr/local/X11R6/include
15272 /usr/local/X11R5/include
15273 /usr/local/X11R4/include
15274
15275 /usr/local/include/X11
15276 /usr/local/include/X11R7
15277 /usr/local/include/X11R6
15278 /usr/local/include/X11R5
15279 /usr/local/include/X11R4
15280
15281 /usr/X386/include
15282 /usr/x386/include
15283 /usr/XFree86/include/X11
15284
15285 /usr/include
15286 /usr/local/include
15287 /usr/unsupported/include
15288 /usr/athena/include
15289 /usr/local/x11r5/include
15290 /usr/lpp/Xamples/include
15291
15292 /usr/openwin/include
15293 /usr/openwin/share/include'
15294
15295 if test "$ac_x_includes" = no; then
15296 # Guess where to find include files, by looking for Xlib.h.
15297 # First, try using that file with no special directory specified.
15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15300 #include <X11/Xlib.h>
15301 _ACEOF
15302 if ac_fn_c_try_cpp "$LINENO"; then :
15303 # We can compile using X headers with no special include directory.
15304 ac_x_includes=
15305 else
15306 for ac_dir in $ac_x_header_dirs; do
15307 if test -r "$ac_dir/X11/Xlib.h"; then
15308 ac_x_includes=$ac_dir
15309 break
15310 fi
15311 done
15312 fi
15313 rm -f conftest.err conftest.$ac_ext
15314 fi # $ac_x_includes = no
15315
15316 if test "$ac_x_libraries" = no; then
15317 # Check for the libraries.
15318 # See if we find them without any special options.
15319 # Don't add to $LIBS permanently.
15320 ac_save_LIBS=$LIBS
15321 LIBS="-lX11 $LIBS"
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323 /* end confdefs.h. */
15324 #include <X11/Xlib.h>
15325 int
15326 main ()
15327 {
15328 XrmInitialize ()
15329 ;
15330 return 0;
15331 }
15332 _ACEOF
15333 if ac_fn_c_try_link "$LINENO"; then :
15334 LIBS=$ac_save_LIBS
15335 # We can link X programs with no special library path.
15336 ac_x_libraries=
15337 else
15338 LIBS=$ac_save_LIBS
15339 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15340 do
15341 # Don't even attempt the hair of trying to link an X program!
15342 for ac_extension in a so sl dylib la dll; do
15343 if test -r "$ac_dir/libX11.$ac_extension"; then
15344 ac_x_libraries=$ac_dir
15345 break 2
15346 fi
15347 done
15348 done
15349 fi
15350 rm -f core conftest.err conftest.$ac_objext \
15351 conftest$ac_exeext conftest.$ac_ext
15352 fi # $ac_x_libraries = no
15353
15354 case $ac_x_includes,$ac_x_libraries in #(
15355 no,* | *,no | *\'*)
15356 # Didn't find X, or a directory has "'" in its name.
15357 ac_cv_have_x="have_x=no";; #(
15358 *)
15359 # Record where we found X for the cache.
15360 ac_cv_have_x="have_x=yes\
15361 ac_x_includes='$ac_x_includes'\
15362 ac_x_libraries='$ac_x_libraries'"
15363 esac
15364 fi
15365 ;; #(
15366 *) have_x=yes;;
15367 esac
15368 eval "$ac_cv_have_x"
15369 fi # $with_x != no
15370
15371 if test "$have_x" != yes; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15373 $as_echo "$have_x" >&6; }
15374 no_x=yes
15375 else
15376 # If each of the values was on the command line, it overrides each guess.
15377 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15378 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15379 # Update the cache value to reflect the command line values.
15380 ac_cv_have_x="have_x=yes\
15381 ac_x_includes='$x_includes'\
15382 ac_x_libraries='$x_libraries'"
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15384 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15385 fi
15386
15387
15388 # Unlike the sim directory, whether a simulator is linked is controlled by
15389 # presence of a gdb_sim definition in the target configure.tgt entry.
15390 # This code just checks for a few cases where we'd like to ignore those
15391 # definitions, even when they're present in the '.mt' file. These cases
15392 # are when --disable-sim is specified, or if the simulator directory is
15393 # not part of the source tree.
15394 #
15395 # Check whether --enable-sim was given.
15396 if test "${enable_sim+set}" = set; then :
15397 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15398 echo "enableval = ${enableval}";
15399 case "${enableval}" in
15400 yes) ignore_sim=false ;;
15401 no) ignore_sim=true ;;
15402 *) ignore_sim=false ;;
15403 esac
15404 else
15405 ignore_sim=false
15406 fi
15407
15408
15409 if test ! -d "${srcdir}/../sim"; then
15410 ignore_sim=true
15411 fi
15412
15413 SIM=
15414 SIM_OBS=
15415 if test "${ignore_sim}" = "false"; then
15416 if test x"${gdb_sim}" != x ; then
15417 SIM="${gdb_sim}"
15418 SIM_OBS="remote-sim.o"
15419
15420 $as_echo "#define WITH_SIM 1" >>confdefs.h
15421
15422 fi
15423 fi
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438 # List of host floatformats.
15439
15440 cat >>confdefs.h <<_ACEOF
15441 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15442 _ACEOF
15443
15444
15445 cat >>confdefs.h <<_ACEOF
15446 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15447 _ACEOF
15448
15449
15450 cat >>confdefs.h <<_ACEOF
15451 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15452 _ACEOF
15453
15454
15455 # target_subdir is used by the testsuite to find the target libraries.
15456 target_subdir=
15457 if test "${host}" != "${target}"; then
15458 target_subdir="${target_alias}/"
15459 fi
15460
15461
15462 frags=
15463 if test "${gdb_native}" = "yes"; then
15464 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15465 if test ! -f ${host_makefile_frag}; then
15466 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15467 fi
15468 frags="$frags $host_makefile_frag"
15469 else
15470 host_makefile_frag=/dev/null
15471 fi
15472
15473
15474
15475
15476 if test "${gdb_native}" = "yes"; then
15477 # We pick this up from the host configuration file (.mh) because we
15478 # do not have a native configuration Makefile fragment.
15479 nativefile=`sed -n '
15480 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15481 ' ${host_makefile_frag}`
15482 fi
15483
15484
15485 if test x"${gdb_osabi}" != x ; then
15486
15487 cat >>confdefs.h <<_ACEOF
15488 #define GDB_OSABI_DEFAULT $gdb_osabi
15489 _ACEOF
15490
15491 fi
15492
15493 # Enable multi-ice-gdb-server.
15494 # Check whether --enable-multi-ice was given.
15495 if test "${enable_multi_ice+set}" = set; then :
15496 enableval=$enable_multi_ice; case $enableval in
15497 yes | no)
15498 ;;
15499 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15500 esac
15501 fi
15502
15503 if test "x$enable_multi_ice" = xyes; then
15504 subdirs="$subdirs multi-ice"
15505
15506 fi
15507
15508 # Check whether --enable-gdbserver was given.
15509 if test "${enable_gdbserver+set}" = set; then :
15510 enableval=$enable_gdbserver; case "${enableval}" in
15511 yes| no|auto) ;;
15512 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15513 esac
15514 else
15515 enable_gdbserver=auto
15516 fi
15517
15518
15519 # We only build gdbserver automatically in a native configuration, and
15520 # only if the user did not explicitly disable its build.
15521 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15523 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15524 if test "x$build_gdbserver" = xyes; then
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15526 $as_echo "yes" >&6; }
15527 subdirs="$subdirs gdbserver"
15528
15529 gdbserver_build_enabled=yes
15530 else
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15532 $as_echo "no" >&6; }
15533 fi
15534 fi
15535
15536 # If the user explicitly request the gdbserver to be built, verify that
15537 # we were in fact able to enable it.
15538 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15539 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15540 fi
15541
15542 # Check for babeltrace and babeltrace-ctf
15543
15544 # Check whether --with-babeltrace was given.
15545 if test "${with_babeltrace+set}" = set; then :
15546 withval=$with_babeltrace;
15547 else
15548 with_babeltrace=auto
15549 fi
15550
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
15552 $as_echo_n "checking whether to use babeltrace... " >&6; }
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
15554 $as_echo "$with_babeltrace" >&6; }
15555
15556 if test "x$with_babeltrace" = "xno"; then
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
15558 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
15559 else
15560 # Append -Werror to CFLAGS so that configure can catch the warning
15561 # "assignment from incompatible pointer type", which is related to
15562 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
15563 # in GDB, while babeltrace 1.0.3 is broken.
15564 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
15565 # safe to save and restore CFLAGS here.
15566 saved_CFLAGS=$CFLAGS
15567 CFLAGS="$CFLAGS -Werror"
15568
15569
15570
15571
15572
15573
15574
15575
15576 use_additional=yes
15577
15578 acl_save_prefix="$prefix"
15579 prefix="$acl_final_prefix"
15580 acl_save_exec_prefix="$exec_prefix"
15581 exec_prefix="$acl_final_exec_prefix"
15582
15583 eval additional_includedir=\"$includedir\"
15584 eval additional_libdir=\"$libdir\"
15585
15586 exec_prefix="$acl_save_exec_prefix"
15587 prefix="$acl_save_prefix"
15588
15589
15590 # Check whether --with-libbabeltrace-prefix was given.
15591 if test "${with_libbabeltrace_prefix+set}" = set; then :
15592 withval=$with_libbabeltrace_prefix;
15593 if test "X$withval" = "Xno"; then
15594 use_additional=no
15595 else
15596 if test "X$withval" = "X"; then
15597
15598 acl_save_prefix="$prefix"
15599 prefix="$acl_final_prefix"
15600 acl_save_exec_prefix="$exec_prefix"
15601 exec_prefix="$acl_final_exec_prefix"
15602
15603 eval additional_includedir=\"$includedir\"
15604 eval additional_libdir=\"$libdir\"
15605
15606 exec_prefix="$acl_save_exec_prefix"
15607 prefix="$acl_save_prefix"
15608
15609 else
15610 additional_includedir="$withval/include"
15611 additional_libdir="$withval/lib"
15612 fi
15613 fi
15614
15615 fi
15616
15617 LIBBABELTRACE=
15618 LTLIBBABELTRACE=
15619 INCBABELTRACE=
15620 rpathdirs=
15621 ltrpathdirs=
15622 names_already_handled=
15623 names_next_round='babeltrace babeltrace-ctf'
15624 while test -n "$names_next_round"; do
15625 names_this_round="$names_next_round"
15626 names_next_round=
15627 for name in $names_this_round; do
15628 already_handled=
15629 for n in $names_already_handled; do
15630 if test "$n" = "$name"; then
15631 already_handled=yes
15632 break
15633 fi
15634 done
15635 if test -z "$already_handled"; then
15636 names_already_handled="$names_already_handled $name"
15637 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15638 eval value=\"\$HAVE_LIB$uppername\"
15639 if test -n "$value"; then
15640 if test "$value" = yes; then
15641 eval value=\"\$LIB$uppername\"
15642 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
15643 eval value=\"\$LTLIB$uppername\"
15644 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
15645 else
15646 :
15647 fi
15648 else
15649 found_dir=
15650 found_la=
15651 found_so=
15652 found_a=
15653 if test $use_additional = yes; then
15654 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15655 found_dir="$additional_libdir"
15656 found_so="$additional_libdir/lib$name.$shlibext"
15657 if test -f "$additional_libdir/lib$name.la"; then
15658 found_la="$additional_libdir/lib$name.la"
15659 fi
15660 else
15661 if test -f "$additional_libdir/lib$name.$libext"; then
15662 found_dir="$additional_libdir"
15663 found_a="$additional_libdir/lib$name.$libext"
15664 if test -f "$additional_libdir/lib$name.la"; then
15665 found_la="$additional_libdir/lib$name.la"
15666 fi
15667 fi
15668 fi
15669 fi
15670 if test "X$found_dir" = "X"; then
15671 for x in $LDFLAGS $LTLIBBABELTRACE; do
15672
15673 acl_save_prefix="$prefix"
15674 prefix="$acl_final_prefix"
15675 acl_save_exec_prefix="$exec_prefix"
15676 exec_prefix="$acl_final_exec_prefix"
15677 eval x=\"$x\"
15678 exec_prefix="$acl_save_exec_prefix"
15679 prefix="$acl_save_prefix"
15680
15681 case "$x" in
15682 -L*)
15683 dir=`echo "X$x" | sed -e 's/^X-L//'`
15684 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15685 found_dir="$dir"
15686 found_so="$dir/lib$name.$shlibext"
15687 if test -f "$dir/lib$name.la"; then
15688 found_la="$dir/lib$name.la"
15689 fi
15690 else
15691 if test -f "$dir/lib$name.$libext"; then
15692 found_dir="$dir"
15693 found_a="$dir/lib$name.$libext"
15694 if test -f "$dir/lib$name.la"; then
15695 found_la="$dir/lib$name.la"
15696 fi
15697 fi
15698 fi
15699 ;;
15700 esac
15701 if test "X$found_dir" != "X"; then
15702 break
15703 fi
15704 done
15705 fi
15706 if test "X$found_dir" != "X"; then
15707 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
15708 if test "X$found_so" != "X"; then
15709 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15710 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15711 else
15712 haveit=
15713 for x in $ltrpathdirs; do
15714 if test "X$x" = "X$found_dir"; then
15715 haveit=yes
15716 break
15717 fi
15718 done
15719 if test -z "$haveit"; then
15720 ltrpathdirs="$ltrpathdirs $found_dir"
15721 fi
15722 if test "$hardcode_direct" = yes; then
15723 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15724 else
15725 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15726 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15727 haveit=
15728 for x in $rpathdirs; do
15729 if test "X$x" = "X$found_dir"; then
15730 haveit=yes
15731 break
15732 fi
15733 done
15734 if test -z "$haveit"; then
15735 rpathdirs="$rpathdirs $found_dir"
15736 fi
15737 else
15738 haveit=
15739 for x in $LDFLAGS $LIBBABELTRACE; do
15740
15741 acl_save_prefix="$prefix"
15742 prefix="$acl_final_prefix"
15743 acl_save_exec_prefix="$exec_prefix"
15744 exec_prefix="$acl_final_exec_prefix"
15745 eval x=\"$x\"
15746 exec_prefix="$acl_save_exec_prefix"
15747 prefix="$acl_save_prefix"
15748
15749 if test "X$x" = "X-L$found_dir"; then
15750 haveit=yes
15751 break
15752 fi
15753 done
15754 if test -z "$haveit"; then
15755 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
15756 fi
15757 if test "$hardcode_minus_L" != no; then
15758 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15759 else
15760 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15761 fi
15762 fi
15763 fi
15764 fi
15765 else
15766 if test "X$found_a" != "X"; then
15767 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
15768 else
15769 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
15770 fi
15771 fi
15772 additional_includedir=
15773 case "$found_dir" in
15774 */lib | */lib/)
15775 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15776 additional_includedir="$basedir/include"
15777 ;;
15778 esac
15779 if test "X$additional_includedir" != "X"; then
15780 if test "X$additional_includedir" != "X/usr/include"; then
15781 haveit=
15782 if test "X$additional_includedir" = "X/usr/local/include"; then
15783 if test -n "$GCC"; then
15784 case $host_os in
15785 linux*) haveit=yes;;
15786 esac
15787 fi
15788 fi
15789 if test -z "$haveit"; then
15790 for x in $CPPFLAGS $INCBABELTRACE; do
15791
15792 acl_save_prefix="$prefix"
15793 prefix="$acl_final_prefix"
15794 acl_save_exec_prefix="$exec_prefix"
15795 exec_prefix="$acl_final_exec_prefix"
15796 eval x=\"$x\"
15797 exec_prefix="$acl_save_exec_prefix"
15798 prefix="$acl_save_prefix"
15799
15800 if test "X$x" = "X-I$additional_includedir"; then
15801 haveit=yes
15802 break
15803 fi
15804 done
15805 if test -z "$haveit"; then
15806 if test -d "$additional_includedir"; then
15807 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
15808 fi
15809 fi
15810 fi
15811 fi
15812 fi
15813 if test -n "$found_la"; then
15814 save_libdir="$libdir"
15815 case "$found_la" in
15816 */* | *\\*) . "$found_la" ;;
15817 *) . "./$found_la" ;;
15818 esac
15819 libdir="$save_libdir"
15820 for dep in $dependency_libs; do
15821 case "$dep" in
15822 -L*)
15823 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15824 if test "X$additional_libdir" != "X/usr/lib"; then
15825 haveit=
15826 if test "X$additional_libdir" = "X/usr/local/lib"; then
15827 if test -n "$GCC"; then
15828 case $host_os in
15829 linux*) haveit=yes;;
15830 esac
15831 fi
15832 fi
15833 if test -z "$haveit"; then
15834 haveit=
15835 for x in $LDFLAGS $LIBBABELTRACE; do
15836
15837 acl_save_prefix="$prefix"
15838 prefix="$acl_final_prefix"
15839 acl_save_exec_prefix="$exec_prefix"
15840 exec_prefix="$acl_final_exec_prefix"
15841 eval x=\"$x\"
15842 exec_prefix="$acl_save_exec_prefix"
15843 prefix="$acl_save_prefix"
15844
15845 if test "X$x" = "X-L$additional_libdir"; then
15846 haveit=yes
15847 break
15848 fi
15849 done
15850 if test -z "$haveit"; then
15851 if test -d "$additional_libdir"; then
15852 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
15853 fi
15854 fi
15855 haveit=
15856 for x in $LDFLAGS $LTLIBBABELTRACE; do
15857
15858 acl_save_prefix="$prefix"
15859 prefix="$acl_final_prefix"
15860 acl_save_exec_prefix="$exec_prefix"
15861 exec_prefix="$acl_final_exec_prefix"
15862 eval x=\"$x\"
15863 exec_prefix="$acl_save_exec_prefix"
15864 prefix="$acl_save_prefix"
15865
15866 if test "X$x" = "X-L$additional_libdir"; then
15867 haveit=yes
15868 break
15869 fi
15870 done
15871 if test -z "$haveit"; then
15872 if test -d "$additional_libdir"; then
15873 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
15874 fi
15875 fi
15876 fi
15877 fi
15878 ;;
15879 -R*)
15880 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15881 if test "$enable_rpath" != no; then
15882 haveit=
15883 for x in $rpathdirs; do
15884 if test "X$x" = "X$dir"; then
15885 haveit=yes
15886 break
15887 fi
15888 done
15889 if test -z "$haveit"; then
15890 rpathdirs="$rpathdirs $dir"
15891 fi
15892 haveit=
15893 for x in $ltrpathdirs; do
15894 if test "X$x" = "X$dir"; then
15895 haveit=yes
15896 break
15897 fi
15898 done
15899 if test -z "$haveit"; then
15900 ltrpathdirs="$ltrpathdirs $dir"
15901 fi
15902 fi
15903 ;;
15904 -l*)
15905 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15906 ;;
15907 *.la)
15908 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15909 ;;
15910 *)
15911 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
15912 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
15913 ;;
15914 esac
15915 done
15916 fi
15917 else
15918 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15919 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
15920 fi
15921 fi
15922 fi
15923 done
15924 done
15925 if test "X$rpathdirs" != "X"; then
15926 if test -n "$hardcode_libdir_separator"; then
15927 alldirs=
15928 for found_dir in $rpathdirs; do
15929 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15930 done
15931 acl_save_libdir="$libdir"
15932 libdir="$alldirs"
15933 eval flag=\"$hardcode_libdir_flag_spec\"
15934 libdir="$acl_save_libdir"
15935 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15936 else
15937 for found_dir in $rpathdirs; do
15938 acl_save_libdir="$libdir"
15939 libdir="$found_dir"
15940 eval flag=\"$hardcode_libdir_flag_spec\"
15941 libdir="$acl_save_libdir"
15942 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15943 done
15944 fi
15945 fi
15946 if test "X$ltrpathdirs" != "X"; then
15947 for found_dir in $ltrpathdirs; do
15948 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
15949 done
15950 fi
15951
15952
15953 ac_save_CPPFLAGS="$CPPFLAGS"
15954
15955 for element in $INCBABELTRACE; do
15956 haveit=
15957 for x in $CPPFLAGS; do
15958
15959 acl_save_prefix="$prefix"
15960 prefix="$acl_final_prefix"
15961 acl_save_exec_prefix="$exec_prefix"
15962 exec_prefix="$acl_final_exec_prefix"
15963 eval x=\"$x\"
15964 exec_prefix="$acl_save_exec_prefix"
15965 prefix="$acl_save_prefix"
15966
15967 if test "X$x" = "X$element"; then
15968 haveit=yes
15969 break
15970 fi
15971 done
15972 if test -z "$haveit"; then
15973 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15974 fi
15975 done
15976
15977
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
15979 $as_echo_n "checking for libbabeltrace... " >&6; }
15980 if test "${ac_cv_libbabeltrace+set}" = set; then :
15981 $as_echo_n "(cached) " >&6
15982 else
15983
15984 ac_save_LIBS="$LIBS"
15985 LIBS="$LIBS $LIBBABELTRACE"
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h. */
15988 #include <babeltrace/babeltrace.h>
15989 #include <babeltrace/ctf/events.h>
15990 #include <babeltrace/ctf/iterator.h>
15991 int
15992 main ()
15993 {
15994 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
15995 struct bt_ctf_event *event = NULL;
15996 const struct bt_definition *scope;
15997
15998 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
15999 scope = bt_ctf_get_top_level_scope (event,
16000 BT_STREAM_EVENT_HEADER);
16001 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
16002
16003 ;
16004 return 0;
16005 }
16006 _ACEOF
16007 if ac_fn_c_try_link "$LINENO"; then :
16008 ac_cv_libbabeltrace=yes
16009 else
16010 ac_cv_libbabeltrace=no
16011 fi
16012 rm -f core conftest.err conftest.$ac_objext \
16013 conftest$ac_exeext conftest.$ac_ext
16014 LIBS="$ac_save_LIBS"
16015
16016 fi
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
16018 $as_echo "$ac_cv_libbabeltrace" >&6; }
16019 if test "$ac_cv_libbabeltrace" = yes; then
16020 HAVE_LIBBABELTRACE=yes
16021
16022 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
16023
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
16025 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
16027 $as_echo "$LIBBABELTRACE" >&6; }
16028 else
16029 HAVE_LIBBABELTRACE=no
16030 CPPFLAGS="$ac_save_CPPFLAGS"
16031 LIBBABELTRACE=
16032 LTLIBBABELTRACE=
16033 fi
16034
16035
16036
16037
16038
16039
16040 CFLAGS=$saved_CFLAGS
16041
16042 if test "$HAVE_LIBBABELTRACE" != yes; then
16043 if test "$with_babeltrace" = yes; then
16044 as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
16045 else
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
16047 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
16048 fi
16049 fi
16050 fi
16051
16052 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16053 # to an empty version.
16054
16055 files=
16056 links=
16057
16058 rm -f nm.h
16059 if test "${nativefile}" != ""; then
16060 case "${nativefile}" in
16061 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
16062 * ) GDB_NM_FILE="${nativefile}"
16063 esac
16064 files="${files} ${GDB_NM_FILE}"
16065 links="${links} nm.h"
16066
16067 cat >>confdefs.h <<_ACEOF
16068 #define GDB_NM_FILE "${GDB_NM_FILE}"
16069 _ACEOF
16070
16071 fi
16072
16073
16074 ac_sources="$files"
16075 ac_dests="$links"
16076 while test -n "$ac_sources"; do
16077 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16078 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16079 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
16080 done
16081 ac_config_links="$ac_config_links $ac_config_links_1"
16082
16083
16084
16085
16086
16087 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16088
16089
16090
16091 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16092 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
16093 if test "x$GDB_TRANSFORM_NAME" = x; then
16094 GDB_TRANSFORM_NAME=gdb
16095 fi
16096
16097
16098
16099 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16100 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
16101 if test "x$GCORE_TRANSFORM_NAME" = x; then
16102 GCORE_TRANSFORM_NAME=gcore
16103 fi
16104
16105
16106 ac_config_files="$ac_config_files gcore"
16107
16108
16109 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
16110
16111 ac_config_commands="$ac_config_commands default"
16112
16113 cat >confcache <<\_ACEOF
16114 # This file is a shell script that caches the results of configure
16115 # tests run on this system so they can be shared between configure
16116 # scripts and configure runs, see configure's option --config-cache.
16117 # It is not useful on other systems. If it contains results you don't
16118 # want to keep, you may remove or edit it.
16119 #
16120 # config.status only pays attention to the cache file if you give it
16121 # the --recheck option to rerun configure.
16122 #
16123 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16125 # following values.
16126
16127 _ACEOF
16128
16129 # The following way of writing the cache mishandles newlines in values,
16130 # but we know of no workaround that is simple, portable, and efficient.
16131 # So, we kill variables containing newlines.
16132 # Ultrix sh set writes to stderr and can't be redirected directly,
16133 # and sets the high bit in the cache file unless we assign to the vars.
16134 (
16135 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16136 eval ac_val=\$$ac_var
16137 case $ac_val in #(
16138 *${as_nl}*)
16139 case $ac_var in #(
16140 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16141 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16142 esac
16143 case $ac_var in #(
16144 _ | IFS | as_nl) ;; #(
16145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16146 *) { eval $ac_var=; unset $ac_var;} ;;
16147 esac ;;
16148 esac
16149 done
16150
16151 (set) 2>&1 |
16152 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16153 *${as_nl}ac_space=\ *)
16154 # `set' does not quote correctly, so add quotes: double-quote
16155 # substitution turns \\\\ into \\, and sed turns \\ into \.
16156 sed -n \
16157 "s/'/'\\\\''/g;
16158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16159 ;; #(
16160 *)
16161 # `set' quotes correctly as required by POSIX, so do not add quotes.
16162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16163 ;;
16164 esac |
16165 sort
16166 ) |
16167 sed '
16168 /^ac_cv_env_/b end
16169 t clear
16170 :clear
16171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16172 t end
16173 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16174 :end' >>confcache
16175 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16176 if test -w "$cache_file"; then
16177 test "x$cache_file" != "x/dev/null" &&
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16179 $as_echo "$as_me: updating cache $cache_file" >&6;}
16180 cat confcache >$cache_file
16181 else
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16183 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16184 fi
16185 fi
16186 rm -f confcache
16187
16188 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16189 # Let make expand exec_prefix.
16190 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16191
16192 DEFS=-DHAVE_CONFIG_H
16193
16194 ac_libobjs=
16195 ac_ltlibobjs=
16196 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16197 # 1. Remove the extension, and $U if already installed.
16198 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16199 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16200 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16201 # will be set to the directory where LIBOBJS objects are built.
16202 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16203 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16204 done
16205 LIBOBJS=$ac_libobjs
16206
16207 LTLIBOBJS=$ac_ltlibobjs
16208
16209
16210 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16211 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16213 fi
16214 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16215 as_fn_error "conditional \"GMAKE\" was never defined.
16216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16217 fi
16218 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16219 as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
16220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16221 fi
16222 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
16223 as_fn_error "conditional \"HAVE_GUILE\" was never defined.
16224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16225 fi
16226
16227
16228 : ${CONFIG_STATUS=./config.status}
16229 ac_write_fail=0
16230 ac_clean_files_save=$ac_clean_files
16231 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16233 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16234 as_write_fail=0
16235 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16236 #! $SHELL
16237 # Generated by $as_me.
16238 # Run this file to recreate the current configuration.
16239 # Compiler output produced by configure, useful for debugging
16240 # configure, is in config.log if it exists.
16241
16242 debug=false
16243 ac_cs_recheck=false
16244 ac_cs_silent=false
16245
16246 SHELL=\${CONFIG_SHELL-$SHELL}
16247 export SHELL
16248 _ASEOF
16249 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16250 ## -------------------- ##
16251 ## M4sh Initialization. ##
16252 ## -------------------- ##
16253
16254 # Be more Bourne compatible
16255 DUALCASE=1; export DUALCASE # for MKS sh
16256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16257 emulate sh
16258 NULLCMD=:
16259 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16260 # is contrary to our usage. Disable this feature.
16261 alias -g '${1+"$@"}'='"$@"'
16262 setopt NO_GLOB_SUBST
16263 else
16264 case `(set -o) 2>/dev/null` in #(
16265 *posix*) :
16266 set -o posix ;; #(
16267 *) :
16268 ;;
16269 esac
16270 fi
16271
16272
16273 as_nl='
16274 '
16275 export as_nl
16276 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16277 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16278 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16280 # Prefer a ksh shell builtin over an external printf program on Solaris,
16281 # but without wasting forks for bash or zsh.
16282 if test -z "$BASH_VERSION$ZSH_VERSION" \
16283 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16284 as_echo='print -r --'
16285 as_echo_n='print -rn --'
16286 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16287 as_echo='printf %s\n'
16288 as_echo_n='printf %s'
16289 else
16290 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16291 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16292 as_echo_n='/usr/ucb/echo -n'
16293 else
16294 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16295 as_echo_n_body='eval
16296 arg=$1;
16297 case $arg in #(
16298 *"$as_nl"*)
16299 expr "X$arg" : "X\\(.*\\)$as_nl";
16300 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16301 esac;
16302 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16303 '
16304 export as_echo_n_body
16305 as_echo_n='sh -c $as_echo_n_body as_echo'
16306 fi
16307 export as_echo_body
16308 as_echo='sh -c $as_echo_body as_echo'
16309 fi
16310
16311 # The user is always right.
16312 if test "${PATH_SEPARATOR+set}" != set; then
16313 PATH_SEPARATOR=:
16314 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16315 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16316 PATH_SEPARATOR=';'
16317 }
16318 fi
16319
16320
16321 # IFS
16322 # We need space, tab and new line, in precisely that order. Quoting is
16323 # there to prevent editors from complaining about space-tab.
16324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16325 # splitting by setting IFS to empty value.)
16326 IFS=" "" $as_nl"
16327
16328 # Find who we are. Look in the path if we contain no directory separator.
16329 case $0 in #((
16330 *[\\/]* ) as_myself=$0 ;;
16331 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16332 for as_dir in $PATH
16333 do
16334 IFS=$as_save_IFS
16335 test -z "$as_dir" && as_dir=.
16336 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16337 done
16338 IFS=$as_save_IFS
16339
16340 ;;
16341 esac
16342 # We did not find ourselves, most probably we were run as `sh COMMAND'
16343 # in which case we are not to be found in the path.
16344 if test "x$as_myself" = x; then
16345 as_myself=$0
16346 fi
16347 if test ! -f "$as_myself"; then
16348 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16349 exit 1
16350 fi
16351
16352 # Unset variables that we do not need and which cause bugs (e.g. in
16353 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16354 # suppresses any "Segmentation fault" message there. '((' could
16355 # trigger a bug in pdksh 5.2.14.
16356 for as_var in BASH_ENV ENV MAIL MAILPATH
16357 do eval test x\${$as_var+set} = xset \
16358 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16359 done
16360 PS1='$ '
16361 PS2='> '
16362 PS4='+ '
16363
16364 # NLS nuisances.
16365 LC_ALL=C
16366 export LC_ALL
16367 LANGUAGE=C
16368 export LANGUAGE
16369
16370 # CDPATH.
16371 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16372
16373
16374 # as_fn_error ERROR [LINENO LOG_FD]
16375 # ---------------------------------
16376 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16377 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16378 # script with status $?, using 1 if that was 0.
16379 as_fn_error ()
16380 {
16381 as_status=$?; test $as_status -eq 0 && as_status=1
16382 if test "$3"; then
16383 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16384 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16385 fi
16386 $as_echo "$as_me: error: $1" >&2
16387 as_fn_exit $as_status
16388 } # as_fn_error
16389
16390
16391 # as_fn_set_status STATUS
16392 # -----------------------
16393 # Set $? to STATUS, without forking.
16394 as_fn_set_status ()
16395 {
16396 return $1
16397 } # as_fn_set_status
16398
16399 # as_fn_exit STATUS
16400 # -----------------
16401 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16402 as_fn_exit ()
16403 {
16404 set +e
16405 as_fn_set_status $1
16406 exit $1
16407 } # as_fn_exit
16408
16409 # as_fn_unset VAR
16410 # ---------------
16411 # Portably unset VAR.
16412 as_fn_unset ()
16413 {
16414 { eval $1=; unset $1;}
16415 }
16416 as_unset=as_fn_unset
16417 # as_fn_append VAR VALUE
16418 # ----------------------
16419 # Append the text in VALUE to the end of the definition contained in VAR. Take
16420 # advantage of any shell optimizations that allow amortized linear growth over
16421 # repeated appends, instead of the typical quadratic growth present in naive
16422 # implementations.
16423 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16424 eval 'as_fn_append ()
16425 {
16426 eval $1+=\$2
16427 }'
16428 else
16429 as_fn_append ()
16430 {
16431 eval $1=\$$1\$2
16432 }
16433 fi # as_fn_append
16434
16435 # as_fn_arith ARG...
16436 # ------------------
16437 # Perform arithmetic evaluation on the ARGs, and store the result in the
16438 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16439 # must be portable across $(()) and expr.
16440 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16441 eval 'as_fn_arith ()
16442 {
16443 as_val=$(( $* ))
16444 }'
16445 else
16446 as_fn_arith ()
16447 {
16448 as_val=`expr "$@" || test $? -eq 1`
16449 }
16450 fi # as_fn_arith
16451
16452
16453 if expr a : '\(a\)' >/dev/null 2>&1 &&
16454 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16455 as_expr=expr
16456 else
16457 as_expr=false
16458 fi
16459
16460 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16461 as_basename=basename
16462 else
16463 as_basename=false
16464 fi
16465
16466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16467 as_dirname=dirname
16468 else
16469 as_dirname=false
16470 fi
16471
16472 as_me=`$as_basename -- "$0" ||
16473 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16474 X"$0" : 'X\(//\)$' \| \
16475 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16476 $as_echo X/"$0" |
16477 sed '/^.*\/\([^/][^/]*\)\/*$/{
16478 s//\1/
16479 q
16480 }
16481 /^X\/\(\/\/\)$/{
16482 s//\1/
16483 q
16484 }
16485 /^X\/\(\/\).*/{
16486 s//\1/
16487 q
16488 }
16489 s/.*/./; q'`
16490
16491 # Avoid depending upon Character Ranges.
16492 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16493 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16494 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16495 as_cr_digits='0123456789'
16496 as_cr_alnum=$as_cr_Letters$as_cr_digits
16497
16498 ECHO_C= ECHO_N= ECHO_T=
16499 case `echo -n x` in #(((((
16500 -n*)
16501 case `echo 'xy\c'` in
16502 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16503 xy) ECHO_C='\c';;
16504 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16505 ECHO_T=' ';;
16506 esac;;
16507 *)
16508 ECHO_N='-n';;
16509 esac
16510
16511 rm -f conf$$ conf$$.exe conf$$.file
16512 if test -d conf$$.dir; then
16513 rm -f conf$$.dir/conf$$.file
16514 else
16515 rm -f conf$$.dir
16516 mkdir conf$$.dir 2>/dev/null
16517 fi
16518 if (echo >conf$$.file) 2>/dev/null; then
16519 if ln -s conf$$.file conf$$ 2>/dev/null; then
16520 as_ln_s='ln -s'
16521 # ... but there are two gotchas:
16522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16524 # In both cases, we have to default to `cp -p'.
16525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16526 as_ln_s='cp -p'
16527 elif ln conf$$.file conf$$ 2>/dev/null; then
16528 as_ln_s=ln
16529 else
16530 as_ln_s='cp -p'
16531 fi
16532 else
16533 as_ln_s='cp -p'
16534 fi
16535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16536 rmdir conf$$.dir 2>/dev/null
16537
16538
16539 # as_fn_mkdir_p
16540 # -------------
16541 # Create "$as_dir" as a directory, including parents if necessary.
16542 as_fn_mkdir_p ()
16543 {
16544
16545 case $as_dir in #(
16546 -*) as_dir=./$as_dir;;
16547 esac
16548 test -d "$as_dir" || eval $as_mkdir_p || {
16549 as_dirs=
16550 while :; do
16551 case $as_dir in #(
16552 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16553 *) as_qdir=$as_dir;;
16554 esac
16555 as_dirs="'$as_qdir' $as_dirs"
16556 as_dir=`$as_dirname -- "$as_dir" ||
16557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16558 X"$as_dir" : 'X\(//\)[^/]' \| \
16559 X"$as_dir" : 'X\(//\)$' \| \
16560 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16561 $as_echo X"$as_dir" |
16562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16563 s//\1/
16564 q
16565 }
16566 /^X\(\/\/\)[^/].*/{
16567 s//\1/
16568 q
16569 }
16570 /^X\(\/\/\)$/{
16571 s//\1/
16572 q
16573 }
16574 /^X\(\/\).*/{
16575 s//\1/
16576 q
16577 }
16578 s/.*/./; q'`
16579 test -d "$as_dir" && break
16580 done
16581 test -z "$as_dirs" || eval "mkdir $as_dirs"
16582 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16583
16584
16585 } # as_fn_mkdir_p
16586 if mkdir -p . 2>/dev/null; then
16587 as_mkdir_p='mkdir -p "$as_dir"'
16588 else
16589 test -d ./-p && rmdir ./-p
16590 as_mkdir_p=false
16591 fi
16592
16593 if test -x / >/dev/null 2>&1; then
16594 as_test_x='test -x'
16595 else
16596 if ls -dL / >/dev/null 2>&1; then
16597 as_ls_L_option=L
16598 else
16599 as_ls_L_option=
16600 fi
16601 as_test_x='
16602 eval sh -c '\''
16603 if test -d "$1"; then
16604 test -d "$1/.";
16605 else
16606 case $1 in #(
16607 -*)set "./$1";;
16608 esac;
16609 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16610 ???[sx]*):;;*)false;;esac;fi
16611 '\'' sh
16612 '
16613 fi
16614 as_executable_p=$as_test_x
16615
16616 # Sed expression to map a string onto a valid CPP name.
16617 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16618
16619 # Sed expression to map a string onto a valid variable name.
16620 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16621
16622
16623 exec 6>&1
16624 ## ----------------------------------- ##
16625 ## Main body of $CONFIG_STATUS script. ##
16626 ## ----------------------------------- ##
16627 _ASEOF
16628 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16629
16630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16631 # Save the log message, to keep $0 and so on meaningful, and to
16632 # report actual input values of CONFIG_FILES etc. instead of their
16633 # values after options handling.
16634 ac_log="
16635 This file was extended by $as_me, which was
16636 generated by GNU Autoconf 2.64. Invocation command line was
16637
16638 CONFIG_FILES = $CONFIG_FILES
16639 CONFIG_HEADERS = $CONFIG_HEADERS
16640 CONFIG_LINKS = $CONFIG_LINKS
16641 CONFIG_COMMANDS = $CONFIG_COMMANDS
16642 $ $0 $@
16643
16644 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16645 "
16646
16647 _ACEOF
16648
16649 case $ac_config_files in *"
16650 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16651 esac
16652
16653 case $ac_config_headers in *"
16654 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16655 esac
16656
16657
16658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16659 # Files that config.status was made for.
16660 config_files="$ac_config_files"
16661 config_headers="$ac_config_headers"
16662 config_links="$ac_config_links"
16663 config_commands="$ac_config_commands"
16664
16665 _ACEOF
16666
16667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16668 ac_cs_usage="\
16669 \`$as_me' instantiates files and other configuration actions
16670 from templates according to the current configuration. Unless the files
16671 and actions are specified as TAGs, all are instantiated by default.
16672
16673 Usage: $0 [OPTION]... [TAG]...
16674
16675 -h, --help print this help, then exit
16676 -V, --version print version number and configuration settings, then exit
16677 -q, --quiet, --silent
16678 do not print progress messages
16679 -d, --debug don't remove temporary files
16680 --recheck update $as_me by reconfiguring in the same conditions
16681 --file=FILE[:TEMPLATE]
16682 instantiate the configuration file FILE
16683 --header=FILE[:TEMPLATE]
16684 instantiate the configuration header FILE
16685
16686 Configuration files:
16687 $config_files
16688
16689 Configuration headers:
16690 $config_headers
16691
16692 Configuration links:
16693 $config_links
16694
16695 Configuration commands:
16696 $config_commands
16697
16698 Report bugs to the package provider."
16699
16700 _ACEOF
16701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16702 ac_cs_version="\\
16703 config.status
16704 configured by $0, generated by GNU Autoconf 2.64,
16705 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16706
16707 Copyright (C) 2009 Free Software Foundation, Inc.
16708 This config.status script is free software; the Free Software Foundation
16709 gives unlimited permission to copy, distribute and modify it."
16710
16711 ac_pwd='$ac_pwd'
16712 srcdir='$srcdir'
16713 INSTALL='$INSTALL'
16714 AWK='$AWK'
16715 test -n "\$AWK" || AWK=awk
16716 _ACEOF
16717
16718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16719 # The default lists apply if the user does not specify any file.
16720 ac_need_defaults=:
16721 while test $# != 0
16722 do
16723 case $1 in
16724 --*=*)
16725 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16726 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16727 ac_shift=:
16728 ;;
16729 *)
16730 ac_option=$1
16731 ac_optarg=$2
16732 ac_shift=shift
16733 ;;
16734 esac
16735
16736 case $ac_option in
16737 # Handling of the options.
16738 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16739 ac_cs_recheck=: ;;
16740 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16741 $as_echo "$ac_cs_version"; exit ;;
16742 --debug | --debu | --deb | --de | --d | -d )
16743 debug=: ;;
16744 --file | --fil | --fi | --f )
16745 $ac_shift
16746 case $ac_optarg in
16747 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16748 esac
16749 as_fn_append CONFIG_FILES " '$ac_optarg'"
16750 ac_need_defaults=false;;
16751 --header | --heade | --head | --hea )
16752 $ac_shift
16753 case $ac_optarg in
16754 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16755 esac
16756 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16757 ac_need_defaults=false;;
16758 --he | --h)
16759 # Conflict between --help and --header
16760 as_fn_error "ambiguous option: \`$1'
16761 Try \`$0 --help' for more information.";;
16762 --help | --hel | -h )
16763 $as_echo "$ac_cs_usage"; exit ;;
16764 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16765 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16766 ac_cs_silent=: ;;
16767
16768 # This is an error.
16769 -*) as_fn_error "unrecognized option: \`$1'
16770 Try \`$0 --help' for more information." ;;
16771
16772 *) as_fn_append ac_config_targets " $1"
16773 ac_need_defaults=false ;;
16774
16775 esac
16776 shift
16777 done
16778
16779 ac_configure_extra_args=
16780
16781 if $ac_cs_silent; then
16782 exec 6>/dev/null
16783 ac_configure_extra_args="$ac_configure_extra_args --silent"
16784 fi
16785
16786 _ACEOF
16787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16788 if \$ac_cs_recheck; then
16789 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16790 shift
16791 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16792 CONFIG_SHELL='$SHELL'
16793 export CONFIG_SHELL
16794 exec "\$@"
16795 fi
16796
16797 _ACEOF
16798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16799 exec 5>>config.log
16800 {
16801 echo
16802 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16803 ## Running $as_me. ##
16804 _ASBOX
16805 $as_echo "$ac_log"
16806 } >&5
16807
16808 _ACEOF
16809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16810 #
16811 # INIT-COMMANDS
16812 #
16813 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16814
16815 _ACEOF
16816
16817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16818
16819 # Handling of arguments.
16820 for ac_config_target in $ac_config_targets
16821 do
16822 case $ac_config_target in
16823 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16824 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16825 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16826 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16827 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
16828 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16829 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
16830 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16831 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
16832 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16833
16834 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16835 esac
16836 done
16837
16838
16839 # If the user did not use the arguments to specify the items to instantiate,
16840 # then the envvar interface is used. Set only those that are not.
16841 # We use the long form for the default assignment because of an extremely
16842 # bizarre bug on SunOS 4.1.3.
16843 if $ac_need_defaults; then
16844 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16845 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16846 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16847 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16848 fi
16849
16850 # Have a temporary directory for convenience. Make it in the build tree
16851 # simply because there is no reason against having it here, and in addition,
16852 # creating and moving files from /tmp can sometimes cause problems.
16853 # Hook for its removal unless debugging.
16854 # Note that there is a small window in which the directory will not be cleaned:
16855 # after its creation but before its name has been assigned to `$tmp'.
16856 $debug ||
16857 {
16858 tmp=
16859 trap 'exit_status=$?
16860 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16861 ' 0
16862 trap 'as_fn_exit 1' 1 2 13 15
16863 }
16864 # Create a (secure) tmp directory for tmp files.
16865
16866 {
16867 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16868 test -n "$tmp" && test -d "$tmp"
16869 } ||
16870 {
16871 tmp=./conf$$-$RANDOM
16872 (umask 077 && mkdir "$tmp")
16873 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16874
16875 # Set up the scripts for CONFIG_FILES section.
16876 # No need to generate them if there are no CONFIG_FILES.
16877 # This happens for instance with `./config.status config.h'.
16878 if test -n "$CONFIG_FILES"; then
16879
16880 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16881 ac_cs_awk_getline=:
16882 ac_cs_awk_pipe_init=
16883 ac_cs_awk_read_file='
16884 while ((getline aline < (F[key])) > 0)
16885 print(aline)
16886 close(F[key])'
16887 ac_cs_awk_pipe_fini=
16888 else
16889 ac_cs_awk_getline=false
16890 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16891 ac_cs_awk_read_file='
16892 print "|#_!!_#|"
16893 print "cat " F[key] " &&"
16894 '$ac_cs_awk_pipe_init
16895 # The final `:' finishes the AND list.
16896 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16897 fi
16898 ac_cr=`echo X | tr X '\015'`
16899 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16900 # But we know of no other shell where ac_cr would be empty at this
16901 # point, so we can use a bashism as a fallback.
16902 if test "x$ac_cr" = x; then
16903 eval ac_cr=\$\'\\r\'
16904 fi
16905 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16906 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16907 ac_cs_awk_cr='\r'
16908 else
16909 ac_cs_awk_cr=$ac_cr
16910 fi
16911
16912 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16913 _ACEOF
16914
16915 # Create commands to substitute file output variables.
16916 {
16917 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16918 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16919 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16920 echo "_ACAWK" &&
16921 echo "_ACEOF"
16922 } >conf$$files.sh &&
16923 . ./conf$$files.sh ||
16924 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16925 rm -f conf$$files.sh
16926
16927 {
16928 echo "cat >conf$$subs.awk <<_ACEOF" &&
16929 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16930 echo "_ACEOF"
16931 } >conf$$subs.sh ||
16932 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16933 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16934 ac_delim='%!_!# '
16935 for ac_last_try in false false false false false :; do
16936 . ./conf$$subs.sh ||
16937 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16938
16939 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16940 if test $ac_delim_n = $ac_delim_num; then
16941 break
16942 elif $ac_last_try; then
16943 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16944 else
16945 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16946 fi
16947 done
16948 rm -f conf$$subs.sh
16949
16950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16951 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16952 _ACEOF
16953 sed -n '
16954 h
16955 s/^/S["/; s/!.*/"]=/
16956 p
16957 g
16958 s/^[^!]*!//
16959 :repl
16960 t repl
16961 s/'"$ac_delim"'$//
16962 t delim
16963 :nl
16964 h
16965 s/\(.\{148\}\).*/\1/
16966 t more1
16967 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16968 p
16969 n
16970 b repl
16971 :more1
16972 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16973 p
16974 g
16975 s/.\{148\}//
16976 t nl
16977 :delim
16978 h
16979 s/\(.\{148\}\).*/\1/
16980 t more2
16981 s/["\\]/\\&/g; s/^/"/; s/$/"/
16982 p
16983 b
16984 :more2
16985 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16986 p
16987 g
16988 s/.\{148\}//
16989 t delim
16990 ' <conf$$subs.awk | sed '
16991 /^[^""]/{
16992 N
16993 s/\n//
16994 }
16995 ' >>$CONFIG_STATUS || ac_write_fail=1
16996 rm -f conf$$subs.awk
16997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16998 _ACAWK
16999 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17000 for (key in S) S_is_set[key] = 1
17001 FS = "\a"
17002 \$ac_cs_awk_pipe_init
17003 }
17004 {
17005 line = $ 0
17006 nfields = split(line, field, "@")
17007 substed = 0
17008 len = length(field[1])
17009 for (i = 2; i < nfields; i++) {
17010 key = field[i]
17011 keylen = length(key)
17012 if (S_is_set[key]) {
17013 value = S[key]
17014 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17015 len += length(value) + length(field[++i])
17016 substed = 1
17017 } else
17018 len += 1 + keylen
17019 }
17020 if (nfields == 3 && !substed) {
17021 key = field[2]
17022 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17023 \$ac_cs_awk_read_file
17024 next
17025 }
17026 }
17027 print line
17028 }
17029 \$ac_cs_awk_pipe_fini
17030 _ACAWK
17031 _ACEOF
17032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17033 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17034 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17035 else
17036 cat
17037 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17038 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17039 _ACEOF
17040
17041 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17042 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17043 # trailing colons and then remove the whole line if VPATH becomes empty
17044 # (actually we leave an empty line to preserve line numbers).
17045 if test "x$srcdir" = x.; then
17046 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17047 s/:*\$(srcdir):*/:/
17048 s/:*\${srcdir}:*/:/
17049 s/:*@srcdir@:*/:/
17050 s/^\([^=]*=[ ]*\):*/\1/
17051 s/:*$//
17052 s/^[^=]*=[ ]*$//
17053 }'
17054 fi
17055
17056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17057 fi # test -n "$CONFIG_FILES"
17058
17059 # Set up the scripts for CONFIG_HEADERS section.
17060 # No need to generate them if there are no CONFIG_HEADERS.
17061 # This happens for instance with `./config.status Makefile'.
17062 if test -n "$CONFIG_HEADERS"; then
17063 cat >"$tmp/defines.awk" <<\_ACAWK ||
17064 BEGIN {
17065 _ACEOF
17066
17067 # Transform confdefs.h into an awk script `defines.awk', embedded as
17068 # here-document in config.status, that substitutes the proper values into
17069 # config.h.in to produce config.h.
17070
17071 # Create a delimiter string that does not exist in confdefs.h, to ease
17072 # handling of long lines.
17073 ac_delim='%!_!# '
17074 for ac_last_try in false false :; do
17075 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17076 if test -z "$ac_t"; then
17077 break
17078 elif $ac_last_try; then
17079 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17080 else
17081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17082 fi
17083 done
17084
17085 # For the awk script, D is an array of macro values keyed by name,
17086 # likewise P contains macro parameters if any. Preserve backslash
17087 # newline sequences.
17088
17089 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17090 sed -n '
17091 s/.\{148\}/&'"$ac_delim"'/g
17092 t rset
17093 :rset
17094 s/^[ ]*#[ ]*define[ ][ ]*/ /
17095 t def
17096 d
17097 :def
17098 s/\\$//
17099 t bsnl
17100 s/["\\]/\\&/g
17101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17102 D["\1"]=" \3"/p
17103 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17104 d
17105 :bsnl
17106 s/["\\]/\\&/g
17107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17108 D["\1"]=" \3\\\\\\n"\\/p
17109 t cont
17110 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17111 t cont
17112 d
17113 :cont
17114 n
17115 s/.\{148\}/&'"$ac_delim"'/g
17116 t clear
17117 :clear
17118 s/\\$//
17119 t bsnlc
17120 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17121 d
17122 :bsnlc
17123 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17124 b cont
17125 ' <confdefs.h | sed '
17126 s/'"$ac_delim"'/"\\\
17127 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17128
17129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17130 for (key in D) D_is_set[key] = 1
17131 FS = "\a"
17132 }
17133 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17134 line = \$ 0
17135 split(line, arg, " ")
17136 if (arg[1] == "#") {
17137 defundef = arg[2]
17138 mac1 = arg[3]
17139 } else {
17140 defundef = substr(arg[1], 2)
17141 mac1 = arg[2]
17142 }
17143 split(mac1, mac2, "(") #)
17144 macro = mac2[1]
17145 prefix = substr(line, 1, index(line, defundef) - 1)
17146 if (D_is_set[macro]) {
17147 # Preserve the white space surrounding the "#".
17148 print prefix "define", macro P[macro] D[macro]
17149 next
17150 } else {
17151 # Replace #undef with comments. This is necessary, for example,
17152 # in the case of _POSIX_SOURCE, which is predefined and required
17153 # on some systems where configure will not decide to define it.
17154 if (defundef == "undef") {
17155 print "/*", prefix defundef, macro, "*/"
17156 next
17157 }
17158 }
17159 }
17160 { print }
17161 _ACAWK
17162 _ACEOF
17163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17164 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17165 fi # test -n "$CONFIG_HEADERS"
17166
17167
17168 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17169 shift
17170 for ac_tag
17171 do
17172 case $ac_tag in
17173 :[FHLC]) ac_mode=$ac_tag; continue;;
17174 esac
17175 case $ac_mode$ac_tag in
17176 :[FHL]*:*);;
17177 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17178 :[FH]-) ac_tag=-:-;;
17179 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17180 esac
17181 ac_save_IFS=$IFS
17182 IFS=:
17183 set x $ac_tag
17184 IFS=$ac_save_IFS
17185 shift
17186 ac_file=$1
17187 shift
17188
17189 case $ac_mode in
17190 :L) ac_source=$1;;
17191 :[FH])
17192 ac_file_inputs=
17193 for ac_f
17194 do
17195 case $ac_f in
17196 -) ac_f="$tmp/stdin";;
17197 *) # Look for the file first in the build tree, then in the source tree
17198 # (if the path is not absolute). The absolute path cannot be DOS-style,
17199 # because $ac_f cannot contain `:'.
17200 test -f "$ac_f" ||
17201 case $ac_f in
17202 [\\/$]*) false;;
17203 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17204 esac ||
17205 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17206 esac
17207 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17208 as_fn_append ac_file_inputs " '$ac_f'"
17209 done
17210
17211 # Let's still pretend it is `configure' which instantiates (i.e., don't
17212 # use $as_me), people would be surprised to read:
17213 # /* config.h. Generated by config.status. */
17214 configure_input='Generated from '`
17215 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17216 `' by configure.'
17217 if test x"$ac_file" != x-; then
17218 configure_input="$ac_file. $configure_input"
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17220 $as_echo "$as_me: creating $ac_file" >&6;}
17221 fi
17222 # Neutralize special characters interpreted by sed in replacement strings.
17223 case $configure_input in #(
17224 *\&* | *\|* | *\\* )
17225 ac_sed_conf_input=`$as_echo "$configure_input" |
17226 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17227 *) ac_sed_conf_input=$configure_input;;
17228 esac
17229
17230 case $ac_tag in
17231 *:-:* | *:-) cat >"$tmp/stdin" \
17232 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17233 esac
17234 ;;
17235 esac
17236
17237 ac_dir=`$as_dirname -- "$ac_file" ||
17238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17239 X"$ac_file" : 'X\(//\)[^/]' \| \
17240 X"$ac_file" : 'X\(//\)$' \| \
17241 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17242 $as_echo X"$ac_file" |
17243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17244 s//\1/
17245 q
17246 }
17247 /^X\(\/\/\)[^/].*/{
17248 s//\1/
17249 q
17250 }
17251 /^X\(\/\/\)$/{
17252 s//\1/
17253 q
17254 }
17255 /^X\(\/\).*/{
17256 s//\1/
17257 q
17258 }
17259 s/.*/./; q'`
17260 as_dir="$ac_dir"; as_fn_mkdir_p
17261 ac_builddir=.
17262
17263 case "$ac_dir" in
17264 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17265 *)
17266 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17267 # A ".." for each directory in $ac_dir_suffix.
17268 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17269 case $ac_top_builddir_sub in
17270 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17271 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17272 esac ;;
17273 esac
17274 ac_abs_top_builddir=$ac_pwd
17275 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17276 # for backward compatibility:
17277 ac_top_builddir=$ac_top_build_prefix
17278
17279 case $srcdir in
17280 .) # We are building in place.
17281 ac_srcdir=.
17282 ac_top_srcdir=$ac_top_builddir_sub
17283 ac_abs_top_srcdir=$ac_pwd ;;
17284 [\\/]* | ?:[\\/]* ) # Absolute name.
17285 ac_srcdir=$srcdir$ac_dir_suffix;
17286 ac_top_srcdir=$srcdir
17287 ac_abs_top_srcdir=$srcdir ;;
17288 *) # Relative name.
17289 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17290 ac_top_srcdir=$ac_top_build_prefix$srcdir
17291 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17292 esac
17293 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17294
17295
17296 case $ac_mode in
17297 :F)
17298 #
17299 # CONFIG_FILE
17300 #
17301
17302 case $INSTALL in
17303 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17304 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17305 esac
17306 _ACEOF
17307
17308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17309 # If the template does not know about datarootdir, expand it.
17310 # FIXME: This hack should be removed a few years after 2.60.
17311 ac_datarootdir_hack=; ac_datarootdir_seen=
17312 ac_sed_dataroot='
17313 /datarootdir/ {
17314 p
17315 q
17316 }
17317 /@datadir@/p
17318 /@docdir@/p
17319 /@infodir@/p
17320 /@localedir@/p
17321 /@mandir@/p'
17322 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17323 *datarootdir*) ac_datarootdir_seen=yes;;
17324 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17326 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17327 _ACEOF
17328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17329 ac_datarootdir_hack='
17330 s&@datadir@&$datadir&g
17331 s&@docdir@&$docdir&g
17332 s&@infodir@&$infodir&g
17333 s&@localedir@&$localedir&g
17334 s&@mandir@&$mandir&g
17335 s&\\\${datarootdir}&$datarootdir&g' ;;
17336 esac
17337 _ACEOF
17338
17339 # Neutralize VPATH when `$srcdir' = `.'.
17340 # Shell code in configure.ac might set extrasub.
17341 # FIXME: do we really want to maintain this feature?
17342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17343 ac_sed_extra="$ac_vpsub
17344 $extrasub
17345 _ACEOF
17346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17347 :t
17348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17349 s|@configure_input@|$ac_sed_conf_input|;t t
17350 s&@top_builddir@&$ac_top_builddir_sub&;t t
17351 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17352 s&@srcdir@&$ac_srcdir&;t t
17353 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17354 s&@top_srcdir@&$ac_top_srcdir&;t t
17355 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17356 s&@builddir@&$ac_builddir&;t t
17357 s&@abs_builddir@&$ac_abs_builddir&;t t
17358 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17359 s&@INSTALL@&$ac_INSTALL&;t t
17360 $ac_datarootdir_hack
17361 "
17362 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17363 if $ac_cs_awk_getline; then
17364 $AWK -f "$tmp/subs.awk"
17365 else
17366 $AWK -f "$tmp/subs.awk" | $SHELL
17367 fi >$tmp/out \
17368 || as_fn_error "could not create $ac_file" "$LINENO" 5
17369
17370 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17371 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17372 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17374 which seems to be undefined. Please make sure it is defined." >&5
17375 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17376 which seems to be undefined. Please make sure it is defined." >&2;}
17377
17378 rm -f "$tmp/stdin"
17379 case $ac_file in
17380 -) cat "$tmp/out" && rm -f "$tmp/out";;
17381 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17382 esac \
17383 || as_fn_error "could not create $ac_file" "$LINENO" 5
17384 ;;
17385 :H)
17386 #
17387 # CONFIG_HEADER
17388 #
17389 if test x"$ac_file" != x-; then
17390 {
17391 $as_echo "/* $configure_input */" \
17392 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17393 } >"$tmp/config.h" \
17394 || as_fn_error "could not create $ac_file" "$LINENO" 5
17395 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17397 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17398 else
17399 rm -f "$ac_file"
17400 mv "$tmp/config.h" "$ac_file" \
17401 || as_fn_error "could not create $ac_file" "$LINENO" 5
17402 fi
17403 else
17404 $as_echo "/* $configure_input */" \
17405 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17406 || as_fn_error "could not create -" "$LINENO" 5
17407 fi
17408 ;;
17409 :L)
17410 #
17411 # CONFIG_LINK
17412 #
17413
17414 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17415 :
17416 else
17417 # Prefer the file from the source tree if names are identical.
17418 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17419 ac_source=$srcdir/$ac_source
17420 fi
17421
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17423 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17424
17425 if test ! -r "$ac_source"; then
17426 as_fn_error "$ac_source: file not found" "$LINENO" 5
17427 fi
17428 rm -f "$ac_file"
17429
17430 # Try a relative symlink, then a hard link, then a copy.
17431 case $srcdir in
17432 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17433 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17434 esac
17435 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17436 ln "$ac_source" "$ac_file" 2>/dev/null ||
17437 cp -p "$ac_source" "$ac_file" ||
17438 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17439 fi
17440 ;;
17441 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17442 $as_echo "$as_me: executing $ac_file commands" >&6;}
17443 ;;
17444 esac
17445
17446
17447 case $ac_file$ac_mode in
17448 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17449 "gcore":F) chmod +x gcore ;;
17450 "default":C)
17451 case x$CONFIG_HEADERS in
17452 xconfig.h:config.in)
17453 echo > stamp-h ;;
17454 esac
17455 ;;
17456
17457 esac
17458 done # for ac_tag
17459
17460
17461 as_fn_exit 0
17462 _ACEOF
17463 ac_clean_files=$ac_clean_files_save
17464
17465 test $ac_write_fail = 0 ||
17466 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17467
17468
17469 # configure is writing to config.log, and then calls config.status.
17470 # config.status does its own redirection, appending to config.log.
17471 # Unfortunately, on DOS this fails, as config.log is still kept open
17472 # by configure, so config.status won't be able to write to it; its
17473 # output is simply discarded. So we exec the FD to /dev/null,
17474 # effectively closing config.log, so it can be properly (re)opened and
17475 # appended to by config.status. When coming back to configure, we
17476 # need to make the FD available again.
17477 if test "$no_create" != yes; then
17478 ac_cs_success=:
17479 ac_config_status_args=
17480 test "$silent" = yes &&
17481 ac_config_status_args="$ac_config_status_args --quiet"
17482 exec 5>/dev/null
17483 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17484 exec 5>>config.log
17485 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17486 # would make configure fail if this is the last instruction.
17487 $ac_cs_success || as_fn_exit $?
17488 fi
17489
17490 #
17491 # CONFIG_SUBDIRS section.
17492 #
17493 if test "$no_recursion" != yes; then
17494
17495 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17496 # so they do not pile up.
17497 ac_sub_configure_args=
17498 ac_prev=
17499 eval "set x $ac_configure_args"
17500 shift
17501 for ac_arg
17502 do
17503 if test -n "$ac_prev"; then
17504 ac_prev=
17505 continue
17506 fi
17507 case $ac_arg in
17508 -cache-file | --cache-file | --cache-fil | --cache-fi \
17509 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17510 ac_prev=cache_file ;;
17511 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17512 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17513 | --c=*)
17514 ;;
17515 --config-cache | -C)
17516 ;;
17517 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17518 ac_prev=srcdir ;;
17519 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17520 ;;
17521 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17522 ac_prev=prefix ;;
17523 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17524 ;;
17525 --disable-option-checking)
17526 ;;
17527 *)
17528 case $ac_arg in
17529 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17530 esac
17531 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17532 esac
17533 done
17534
17535 # Always prepend --prefix to ensure using the same prefix
17536 # in subdir configurations.
17537 ac_arg="--prefix=$prefix"
17538 case $ac_arg in
17539 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17540 esac
17541 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17542
17543 # Pass --silent
17544 if test "$silent" = yes; then
17545 ac_sub_configure_args="--silent $ac_sub_configure_args"
17546 fi
17547
17548 # Always prepend --disable-option-checking to silence warnings, since
17549 # different subdirs can have different --enable and --with options.
17550 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17551
17552 ac_popdir=`pwd`
17553 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17554
17555 # Do not complain, so a configure script can configure whichever
17556 # parts of a large source tree are present.
17557 test -d "$srcdir/$ac_dir" || continue
17558
17559 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17560 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17561 $as_echo "$ac_msg" >&6
17562 as_dir="$ac_dir"; as_fn_mkdir_p
17563 ac_builddir=.
17564
17565 case "$ac_dir" in
17566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17567 *)
17568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17569 # A ".." for each directory in $ac_dir_suffix.
17570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17571 case $ac_top_builddir_sub in
17572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17574 esac ;;
17575 esac
17576 ac_abs_top_builddir=$ac_pwd
17577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17578 # for backward compatibility:
17579 ac_top_builddir=$ac_top_build_prefix
17580
17581 case $srcdir in
17582 .) # We are building in place.
17583 ac_srcdir=.
17584 ac_top_srcdir=$ac_top_builddir_sub
17585 ac_abs_top_srcdir=$ac_pwd ;;
17586 [\\/]* | ?:[\\/]* ) # Absolute name.
17587 ac_srcdir=$srcdir$ac_dir_suffix;
17588 ac_top_srcdir=$srcdir
17589 ac_abs_top_srcdir=$srcdir ;;
17590 *) # Relative name.
17591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17592 ac_top_srcdir=$ac_top_build_prefix$srcdir
17593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17594 esac
17595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17596
17597
17598 cd "$ac_dir"
17599
17600 # Check for guested configure; otherwise get Cygnus style configure.
17601 if test -f "$ac_srcdir/configure.gnu"; then
17602 ac_sub_configure=$ac_srcdir/configure.gnu
17603 elif test -f "$ac_srcdir/configure"; then
17604 ac_sub_configure=$ac_srcdir/configure
17605 elif test -f "$ac_srcdir/configure.in"; then
17606 # This should be Cygnus configure.
17607 ac_sub_configure=$ac_aux_dir/configure
17608 else
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17610 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17611 ac_sub_configure=
17612 fi
17613
17614 # The recursion is here.
17615 if test -n "$ac_sub_configure"; then
17616 # Make the cache file name correct relative to the subdirectory.
17617 case $cache_file in
17618 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17619 *) # Relative name.
17620 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17621 esac
17622
17623 { $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
17624 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17625 # The eval makes quoting arguments work.
17626 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17627 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17628 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17629 fi
17630
17631 cd "$ac_popdir"
17632 done
17633 fi
17634 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17636 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17637 fi
17638
17639
17640 exit 0
This page took 0.724815 seconds and 5 git commands to generate.